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

Nix CI: follow-up of #14590. #14723

Merged
merged 2 commits into from
Oct 8, 2021
Merged

Conversation

Zimmi48
Copy link
Member

@Zimmi48 Zimmi48 commented Jul 30, 2021

  1. Build only Coq and not coq-shell.

    For some reason I do not understand, while Coq is built on CI, it is not uploaded to Cachix and not required when fetching coq-shell from Cachix.

    Cf. https://gitlab.com/coq/coq/-/jobs/1464705325 (first success) vs https://gitlab.com/coq/coq/-/jobs/1465481056 (retry).

  2. Test that CACHIX_AUTH_TOKEN is set to run pkg:nix:deploy.

    Coq has now a managed Cachix so this variable should be defined and we check for its presence. This will avoid failures when building on forks where it is not defined.

coq-shell is a fake package which depends on Coq.

For some reason I do not understand, while Coq is built on CI, it is
not uploaded to Cachix and not required when fetching coq-shell from
Cachix.
@Zimmi48 Zimmi48 added kind: infrastructure CI, build tools, development tools. platform: Nix This is a Nix specific issue. labels Jul 30, 2021
@Zimmi48 Zimmi48 added this to the 8.14+rc1 milestone Jul 30, 2021
@Zimmi48 Zimmi48 requested review from CohenCyril and a team July 30, 2021 13:12
@Zimmi48 Zimmi48 requested a review from a team as a code owner July 30, 2021 13:12
@Zimmi48 Zimmi48 force-pushed the toolbox-deploy-adjustments branch from 85b2f86 to c8dfb0a Compare July 30, 2021 13:16
Coq is now a managed Cachix so this variable should be defined and we
check for its presence.

This will avoid failures when building on forks where this is not
defined.
@Zimmi48
Copy link
Member Author

Zimmi48 commented Aug 6, 2021

ping @CohenCyril

@Zimmi48
Copy link
Member Author

Zimmi48 commented Aug 31, 2021

For some reason I do not understand, while Coq is built on CI, it is not uploaded to Cachix and not required when fetching coq-shell from Cachix.

Maybe that's because | cachix push coq will only push the result and its propagatedBuildInputs and not its buildInputs. A better solution might be to follow the advice in https://docs.cachix.org/continuous-integration-setup/gitlab and use the before_script / after_script nix path-info trick instead.

Copy link
Contributor

@CohenCyril CohenCyril left a comment

Choose a reason for hiding this comment

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

LGTM, next iteration should use nix path-info instead

@CohenCyril CohenCyril self-assigned this Oct 8, 2021
@CohenCyril
Copy link
Contributor

@coqbot merge now!!!

@coqbot-app coqbot-app bot merged commit 51a6e6c into coq:master Oct 8, 2021
@Zimmi48 Zimmi48 deleted the toolbox-deploy-adjustments branch November 15, 2021 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: infrastructure CI, build tools, development tools. platform: Nix This is a Nix specific issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants