question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

External versions: keep build log

See original GitHub issue

Currently, when a PR is closed/merged, we delete the version, and it deletes the build objects with it, but we do keep the files in storage. The problem with this is that it feels weird lo lose the information from the build after the PR is closed.

  • One idea is to not cascade delete the build objects, but do we want to do the same behavior for normal versions?
  • If we delete the version and left it as null, we still need to save some extra information in the build model, like the version_slug and version_name (version.verbose_name). This is to allow us to link back to the PR (the view docs button wouldn’t be available here, or we can save that as well).

With the last sentence there is the additional question… Do we want to delete the docs too? Currently, we don’t delete the docs, they are kept forever. Should we delete them after x days? This probably something we want to do in .com, as we shouldn’t keep private docs around forever.

Some ideas:

  • Delete the version, but don’t delete the build object, the extra fields should be able to link to the original PR and build docs (docs are kept).
  • Don’t delete the version when the PR is closed, but mark it as inactive. Have a task delete all external versions marked as inactive and where the last edited date is greater than x days, but set the relationship of the build to null, so it doesn’t get deleted (here the docs are deleted as well).
  • The same as above, but delete the build objects too.
  • Keep both, version/builds and docs, but allow users to delete them manually, additionally have an automation rule to delete versions from closed PRs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ericholschercommented, Nov 17, 2020

Edit: Misunderstood

I think we want to keep the docs around, but perhaps for some limited time? Eventually this will start costing us real money, so probably after 3-6 months we delete it? Maybe we keep Versions & Docs around for 3 months, and then delete them together.

0reactions
agjohnsoncommented, Nov 19, 2020

Yeah, filters are already a part of the new theme on the build list page and version list page. I’d also like to make a special filter eventually which is latest/stable at the top of the queryset filter. I’ll note to add a filter for pull request builds if there isn’t already a filter on version/builds

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio generate C++ build logs outside specified ...
When building C++ projects, sometime visual studio will generate C++ build logs outside specified intermediate directory. For example, if the "Intermediate ...
Read more >
Should I store log files in version control
Like Thomas' answer states, the source code branch that is used to build/deploy the app should be be separate so that your build...
Read more >
Build Log File - µVision User's Guide - Keil
The Build Log file contains information about the last build process for a target. The file is located in the folder defined through...
Read more >
Job logs - GitLab Docs
Job logs are sent by a runner while it's processing a job. You can see logs in job pages, pipelines, email notifications, and...
Read more >
Locating IDE log files – IDEs Support (IntelliJ Platform)
The easiest way to find the product log file is the Help menu, the item name would depend on the IDE version and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found