Skip to content
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

Detect failing nix builds on CI #120

Merged
merged 4 commits into from
Jun 10, 2022
Merged

Conversation

rudymatela
Copy link

@rudymatela rudymatela commented Jun 10, 2022

closes #119

This separates the nix-build and cachix store steps of the build in two commands.

Previously failures in nix-build were not being detected due to it not being the last command in the pipe. This PR fixes the issue by avoiding piping the two commands.

@rudymatela rudymatela self-assigned this Jun 10, 2022
@rudymatela rudymatela added bug Something isn't working testing Testing hackathon Hackathon day labels Jun 10, 2022
@rudymatela rudymatela requested a review from maartenberg June 10, 2022 13:00
@rudymatela rudymatela marked this pull request as ready for review June 10, 2022 13:00
@rudymatela
Copy link
Author

This is ready for review. @maartenberg, can you please take a look?

Copy link
Member

@maartenberg maartenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! I have one optional suggestion, feel free to merge either way.

Comment on lines +86 to +88
# Print working directory for debugging purposes
- "pwd"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly, but I think it is useful to record the working directory since we are creating the nix-store-location file there.

.semaphore/semaphore.yml Show resolved Hide resolved
.semaphore/semaphore.yml Outdated Show resolved Hide resolved
@rudymatela
Copy link
Author

@OpsBotPrime merge on friday 😈 afternoon 👹

@OpsBotPrime
Copy link

Pull request approved for merge by @rudymatela, rebasing now.

Approved-by: rudymatela
Auto-deploy: false
@OpsBotPrime
Copy link

Rebased as b0bf0a6, waiting for CI …

@OpsBotPrime OpsBotPrime merged commit b0bf0a6 into master Jun 10, 2022
@OpsBotPrime OpsBotPrime deleted the fix/ci-detect-failing-nix-builds branch June 10, 2022 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hackathon Hackathon day testing Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make CI red when build fails
3 participants