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

Set the DYNO env var when running integration tests #385

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

edmorley
Copy link
Member

The DYNO env var is now set when running the built containers during this repo's integration tests. This means they more accurately reflect the Heroku environment, which is important since some of the getting started guides (eg Python's) use the presence of the DYNO env var to determine whether to enable production mode or not.

In the Python getting started guide, if DYNO is not set then the guide runs in debug mode, which means static assets can be dynamically fetched from the source, and so bypass the normal production assets serving mechanism. By setting DYNO the integration tests will now validate that the production assets have been generated (via the manage.py collectstatic command that is now automatically run by the Python CNB).

GUS-W-14144906.

The `DYNO` env var is now set when running the built containers during
this repo's integration tests. This means they more accurately reflect the
Heroku environment, which is important since some of the getting started
guides (eg Python's) use the presence of the `DYNO` env var to determine
whether to enable production mode or not.

In the Python getting started guide, if DYNO is not set, then the guide runs
in debug mode, which means static assets can be dynamically fetched from
the source, and so bypass the normal production assets serving mechanism.
By setting `DYNO` the integration tests will now validate that the production
assets have been generated (via the `manage.py collectstatic` command that
is now automatically run by the Python CNB).

GUS-W-14144906.
@edmorley edmorley self-assigned this Sep 19, 2023
@edmorley edmorley marked this pull request as ready for review September 19, 2023 13:04
@edmorley edmorley requested a review from a team as a code owner September 19, 2023 13:04
@edmorley edmorley enabled auto-merge (squash) September 19, 2023 13:04
@edmorley edmorley merged commit 31d3f7f into main Sep 19, 2023
35 checks passed
@edmorley edmorley deleted the edmorley/ci-set-dyno-env-var branch September 19, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants