Skip to content

Standardize environment variables on DOCSRS_ #1373

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

Merged
merged 2 commits into from
Jun 24, 2021
Merged

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Apr 20, 2021

This changes the following env variables used in prod:

  • CRATESFYI_PREFIX
  • CRATESFYI_DATABASE_URL
  • CRATESFYI_GITHUB_ACCESSTOKEN
  • CRATESFYI_RUSTWIDE_WORKSPACE
  • CRATESFYI_TOOLCHAIN
  • DOCS_RS_BUILD_CPU_LIMIT

Before deploying, we should set the new names of all these variables.
After deploying, we can delete the old names.

Helps with #244.

@jyn514 jyn514 added the C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users label Apr 20, 2021
@jyn514 jyn514 force-pushed the cratesfyi branch 3 times, most recently from f5b46f2 to 3508810 Compare April 20, 2021 22:53
@jyn514
Copy link
Member Author

jyn514 commented Jun 12, 2021

@pietroalbini do you have time to review this?

@jyn514 jyn514 added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jun 12, 2021
@pietroalbini
Copy link
Member

I'm wondering if we should have some code that errors out if the old environment variables are present, pointing to the new ones. That would help with people's local development environments, especially ones that are used occasionally.

@jyn514
Copy link
Member Author

jyn514 commented Jun 21, 2021

@pietroalbini we can't do that until this is deployed because the production server needs to be able to switch between the two, there's no way to switch the environment and update the code at the same time currently. Happy to turn it into a hard error in a future PR.

@pietroalbini
Copy link
Member

Sure, sounds good to have it in a followup PR!

@jyn514 jyn514 closed this Jun 24, 2021
@jyn514 jyn514 reopened this Jun 24, 2021
Previously, it could be used inconsistently with the CRATESFYI_PREFIX
environment variable, which was confusing.
This changes the following env variables used in prod:

- CRATESFYI_PREFIX
- CRATESFYI_DATABASE_URL
- CRATESFYI_GITHUB_ACCESSTOKEN
- CRATESFYI_RUSTWIDE_WORKSPACE
- CRATESFYI_TOOLCHAIN
- DOCS_RS_BUILD_CPU_LIMIT

Before deploying, we should set the new names of all these variables.
After deploying, we can delete the old names.
@jyn514 jyn514 merged commit 127d2b9 into rust-lang:master Jun 24, 2021
@jyn514 jyn514 deleted the cratesfyi branch June 24, 2021 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants