GeezerVison is showing github.com — Keeping old binaries to allow resuming fanned jobs · Issue #1496 · nodejs/build
Keeping old binaries to allow resuming fanned jobs #1496DescriptionCurrently, we delete the temporary branch at the end of the fanned jobs. This means that when a fanned job is resumed, if the compile job succeeded only the test job will run again, and will not be able to find the temporary branch from last run.
I'd like to stop deleting temporary branches at the end of the runs, but this change is not urgent so it should be discussed with @nodejs/build first. Also, it would be good to do this when we have people available in the next few days to put out any fire.
At first, this sounds like the size of the binary repo could become a problem. However, git keeps references around long after the branches are deleted, so this might have a very small impact. Note that we have a job that runs daily and deletes branches for which the Jenkins job is no longer accessible, so branches will still get deleted after about one week.
Emergency cleanup of the binary repo
ssh jenkins-workspace-1
su binary_tmp -s /bin/bash
cd ~/binary_tmp.git
du -sh .
git prune
du -sh .
ActivityTrott commented on Sep 15, 2018
this change is not urgent
If we can get this working before Code + Learn, that could be immensely helpful. joaocgreis commented on Sep 17, 2018 I've changed the jobs, will monitor the temporary repo.
For now the changes were minimal (changed the delete parameter to false). If all goes well, in a couple of months will remove the parameter and the build step. joyeecheung commented on Sep 18, 2018 refack commented on Sep 18, 2018 refack commented on Sep 18, 2018
I've changed in to ${JOB_NAME}-${GIT_COMMIT}
I reverted that because now node-test-commit-windows-fanned is not a git job... joaocgreis commented on Sep 19, 2018 Reacted by Refael Ackermann joaocgreis commented on Sep 19, 2018 joaocgreis commented on Sep 21, 2018 refack commented on Sep 21, 2018
Resuming at the level of node-test-commit-windows-fanned works, but does not at any level above. This is because the REBASE_ONTO parameter gets updated.
I think that is a bug. We should strive to have "resume" use the exact same parameters (in this case a SHA and not a ref for the rebase point). I'll look at that... refack commented on Sep 21, 2018
This might cause subtle issues in CI, if the same commit has more than one job running simultaneously.
IMHO we can consider skipping compilation job altogether, if we find the binary branch... joaocgreis commented on Sep 21, 2018
I think that is a bug. We should strive to have "resume" use the exact same parameters (in this case a SHA and not a ref for the rebase point). I'll look at that...
I don't think that's going to be possible (but would be great to find a way!). The only thing you have is "rebase against the base branch", so you have to find out what the "base branch" is somewhere. Resuming at that level will calculate the SHA again... unless we find a way to know the job is a resume.
IMHO we can consider skipping compilation job altogether, if we find the binary branch...
For new builds or rebuilds, it should always rebase against the latest and compile again. It would be nice to have the resume feature working well, but it's not worth interfering with fresh builds because of it.
I've changed the compile job to delete the binary branch if found, before starting to compile. This is to make sure that if the compile job fails the test job doesn't simply pick an old branch and tests that.
If the current approach has issues, we could try to propagate a branch name from the top, from the test-PR job. Then, allow resuming only on the test-commit level and below. But this is one more bit of complexity, so I'd avoid it if possible. joaocgreis commented on Oct 11, 2018 Reacted by Refael Ackermann refack commented on Oct 12, 2018 refack commented on Nov 17, 2018 joaocgreis commented on Dec 1, 2018 @refack LGTM, thanks!
I think we're all done here. #1515 is still open but we can discuss there.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|