Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions airflow/.test.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AIRFLOW__CORE__EXECUTOR=SequentialExecutor
AIRFLOW__SCHEDULER__CATCHUP_BY_DEFAULT=false
AIRFLOW_CONN_GOOGLE_CLOUD_DEFAULT='google-cloud-platform://'
AIRFLOW_ENV=cal-itp-data-infra-staging
CALITP_BUCKET__AGGREGATOR_SCRAPER=gs://calitp-staging-pytest
CALITP_BUCKET__AIRTABLE=gs://calitp-staging-pytest
CALITP_BUCKET__AMPLITUDE_BENEFITS_EVENTS=gs://calitp-staging-pytest
Expand Down
2 changes: 1 addition & 1 deletion airflow/dags/dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def log_failure_to_slack(context):
latest_only=False,
user_defined_macros={
"image_tag": lambda: "development"
if os.environ["AIRFLOW_ENV"] == "development"
if os.environ["AIRFLOW_ENV"] == "cal-itp-data-infra-staging"
else "latest",
"env_var": os.environ.get,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# {html_report}
# """ # noqa: E231,E241

# if os.environ["AIRFLOW_ENV"] == "development":
# if os.environ["AIRFLOW_ENV"] == "cal-itp-data-infra-staging":
# print(
# f"Skipping since in development mode! Would have emailed {failures_df.shape[0]} failures."
# )
Expand Down
Copy link
Contributor

Choose a reason for hiding this comment

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

As noted in the ticket, I am just not sure what this env var does in this context, not sure if there's been a functional issue on the test archiver?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I haven't work with that yet. I asked about your tests to see if any were related to this on.
We definitely need to test it before merging this change.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: archiver-channel-vars
data:
AIRFLOW_ENV: development
AIRFLOW_ENV: cal-itp-data-infra-staging
CALITP_BUCKET__GTFS_DOWNLOAD_CONFIG: "gs://test-calitp-gtfs-download-config"
CALITP_BUCKET__GTFS_RT_RAW: "gs://test-calitp-gtfs-rt-raw-v2"
CALITP_HUEY_CONSUMER_WORKERS: "8"
Expand Down
2 changes: 1 addition & 1 deletion packages/calitp-data-infra/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import os

os.environ["AIRFLOW_ENV"] = "development"
os.environ["AIRFLOW_ENV"] = "cal-itp-data-infra-staging"
2 changes: 1 addition & 1 deletion services/gtfs-rt-archiver-v3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-gtfs-rt-archiver-v3-common:
&gtfs-rt-archiver-v3-common
build: .
environment:
AIRFLOW_ENV: development
AIRFLOW_ENV: cal-itp-data-infra-staging
CALITP_BUCKET__AIRTABLE: "gs://test-calitp-airtable"
CALITP_BUCKET__GTFS_DOWNLOAD_CONFIG: "gs://test-calitp-gtfs-download-config"
CALITP_BUCKET__GTFS_RT_RAW: "gs://dev-calitp-gtfs-rt-raw"
Expand Down
Loading