← Back to issue list

in travis, the docker container is not getting the environment variables

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1663088
Type
issue
State
closed
Author
~elopio
Labels
tests
Created
Updated
Closed

Current evaluation

Fixed Travis CI Docker environment propagation by passing host values with Docker -e arguments in canonical/snapcraft#1125 (commit 44834f539).

Resolution: closed resolved

Reason: Merged PR #1125 corrected the Travis Docker environment-variable syntax so store integration tests receive required secrets and use real store services.

Evaluated by: mr-cal-bot

No scores available.

Issue body

We run our tests in travis using a docker xenial container. We need to pass some secrets through environment variables, but we are using the wrong syntax so they are never getting to the container. The right syntax is something like: -e ENV_VAR=$ENV_VAR We currently have -e ENV_VAR.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed Travis CI Docker environment propagation by passing host values with Docker -e arguments in canonical/snapcraft#1125 (commit 44834f539).
stealth/space-bunny-alpha — closed resolved Fixed Travis Docker environment forwarding; PR #1125 was merged as commit 44834f539.
stealth/space-bunny-alpha — closed resolved Travis Docker secret forwarding required -e ENV_VAR=$ENV_VAR instead of -e ENV_VAR; no linked PR or commit is available.
stealth/space-bunny-alpha — closed not a bug Closed after identifying the Travis Docker configuration error: environment forwarding required -e ENV_VAR=$ENV_VAR rather than -e ENV_VAR. No linked closing PR or commit is available.
qwen/qwen3.6-35b-a3b — — Resolved by updating Travis CI docker configuration syntax from -e ENV_VAR to -e ENV_VAR=$ENV_VAR, ensuring secrets are correctly passed to the container.
qwen/qwen3.6-35b-a3b — — Fixed Travis CI docker environment variable passing by updating the -e flag syntax to -e ENV_VAR=$ENV_VAR. The issue was closed after the configuration correction was applied.
qwen/qwen3.6-35b-a3b — — Closed. Resolved by correcting Travis CI Docker syntax from -e ENV_VAR to -e ENV_VAR=$ENV_VAR, ensuring environment variables and secrets are properly passed to the container.
qwen3.6-35b-a3b-mtp-q6 — — Resolved by updating the Travis CI Docker configuration to use -e ENV_VAR=$ENV_VAR instead of -e ENV_VAR, fixing the missing environment variables.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1125 (confidence 100%)

    Merged commit 44834f539 fixed environment forwarding into the Travis Docker test container.

Related issues

Issue Project State Summary Similarity
#1125 tests: fix the env vars passed to the docker container in travis snapcraft merged Merged PR #1125 in commit 44834f539, fixing Travis CI to pass required environment variables into its Docker test container and resolving LP #1663088.
72%