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

devenv: Use NIX_USER_CONF_FILES to set caches. #12265

Merged
5 commits merged into from
Jan 5, 2022
Merged

devenv: Use NIX_USER_CONF_FILES to set caches. #12265

5 commits merged into from
Jan 5, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jan 5, 2022

This means that configs stack, rather than being clobbered.

I also updated the configuration file itself so it appends cache information, rather than overwriting, using the "extra-" prefix.

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description
  • If you mean to change the status of a component, please make sure you keep the Component Status page up to date.

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

The "extra-" prefix tells Nix to append.

We also switch to non-deprecated configuration keys.

CHANGELOG_BEGIN
CHANGELOG_END
@ghost ghost requested a review from garyverhaegen-da as a code owner January 5, 2022 10:00
@ghost ghost requested a review from cocreature January 5, 2022 10:00
@ghost ghost added the Standard-Change label Jan 5, 2022
@ghost ghost requested a review from cocreature January 5, 2022 11:21
Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Thanks!

@ghost ghost changed the title devenv: On newer versions of Nix, use NIX_USER_CONF_FILES to set caches. devenv: Use NIX_USER_CONF_FILES to set caches. Jan 5, 2022
@ghost ghost merged commit 854b66e into main Jan 5, 2022
@ghost ghost deleted the samir/nix-user-conf branch January 5, 2022 12:24
garyverhaegen-da added a commit that referenced this pull request Jan 10, 2022
Our Terraform configuration has been slightly broken by two recent
changes:

- The nixpkgs upgrade in #12280 means a new version of our GCP plugin
  for Terraform, which as a breaking change added a required argument to
  `google_project_iam_member`. The new version also results in a number
  of smaller changes in the way Terraform handles default arguments, which
  doesn't result in any changes to our configuration files or to the
  behaviour of our deployed infrastructure, but does require re-syncing
  the Terraform state (by running `terraform apply`, which would
  essentially be a no-op if it were not for the next bullet point).
- The nix configuration changes in #12265 have changed the Linux CI
  nodes configuration but have not been deployed yet.

This PR is an audit log of the steps taken to rectfy those and bring us
back to a state where our deployed configuration and our recorded
Terraform state both agree with our current `main` branch tip.

CHANGELOG_BEGIN
CHANGELOG_END
garyverhaegen-da added a commit that referenced this pull request Jan 10, 2022
@garyverhaegen-da garyverhaegen-da mentioned this pull request Jan 10, 2022
garyverhaegen-da added a commit that referenced this pull request Jan 10, 2022
Our Terraform configuration has been slightly broken by two recent
changes:

- The nixpkgs upgrade in #12280 means a new version of our GCP plugin
  for Terraform, which as a breaking change added a required argument to
  `google_project_iam_member`. The new version also results in a number
  of smaller changes in the way Terraform handles default arguments, which
  doesn't result in any changes to our configuration files or to the
  behaviour of our deployed infrastructure, but does require re-syncing
  the Terraform state (by running `terraform apply`, which would
  essentially be a no-op if it were not for the next bullet point).
- The nix configuration changes in #12265 have changed the Linux CI
  nodes configuration but have not been deployed yet.

This PR is an audit log of the steps taken to rectfy those and bring us
back to a state where our deployed configuration and our recorded
Terraform state both agree with our current `main` branch tip.

CHANGELOG_BEGIN
CHANGELOG_END
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants