-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Nix: make Nix dev env passing optional #2488
CI: Nix: make Nix dev env passing optional #2488
Conversation
This makes Nix dev env configuration in HLS development a non-blocking process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, I think the problematic nix builds are only triggered for master (and it does not block the pr) and if the pr is touching nix config files, thanks to skip-action rules about file globs triggering the job
And I think failing in the changing nix files case should be kept.
Well, then yesterday the skip rule seemed to skip the build in the #2470. The failing build in the & then master branch failed to build. At the time - I looked through reviews & the doc in #2476, everything was addressed & the change was minor. Decided that it is good enough to be done with, so marked green & set So from what I've seen, skipping a workflow means that PR does not need to check it. But when after that I'm solid that was the case. Because CI failed with that error & when I was doing a report & stuff only after that PR got blocked in review 8) Making build optional allows to be soft management about it & punting the build until it fixed. The downside to it |
@Anton-Latukha I think it's more like a (arguable) bug of |
Well, it is also a skipping action bug. It is both at the same time. I just generally found allowing the build to report error & PRs still be mergeable - a good soft management approach. But also essentially containing Nix checks to PRs that do changes to Nix configuration & to the main branch - is almost the same, but better 😆 |
Ok then. |
Yeah take a look to that pr jobs: The three first commits skipped correctly the nix build, but the merge commit with master (42a9d59) included commits with changes to .nix files: From the pre job of https://github.com/haskell/haskell-language-server/runs/4510223222?check_suite_focus=true:
And it triggered the nix build incorrectly cause the pr itself did not change any of those files. So i think doing a rebase instead of merge would not triggered it. I would prefer continue being as strict as possible without bother contributors. If the nix build is broken on master we can rebase master onto the pr branch before merging the pr itslef (instead with a merge commit), or even merge the pr forcily if the unique failing job is the nix build and it is already failing in master. |
This makes Nix dev env configuration in HLS development a non-blocking process.
Now CI would simply report the status of the build, but wouldn't block the workflow/merges.
This allows both HLS to be developed & for Nix dev env to be maintained at its own pase.
derived from #2480