Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

fix: Correctly use test image #17

Merged
merged 2 commits into from
May 29, 2024

Conversation

hubertdeng123
Copy link
Member

@hubertdeng123 hubertdeng123 commented May 29, 2024

Tests in relay/snuba likely weren't being properly run with the pre-submit images that were built. This led to an event today where a change led to self-hosted e2e test breakage in relay on master that was not caught on the PR. I suspect the custom env file for every commit on a PR wasn't being used for e2e tests that is built here: https://github.com/getsentry/action-self-hosted-e2e-tests/blob/main/action.yml#L64. In the meantime, I think directly writing to the .env file is fine for now, and it works as I have verified in https://github.com/getsentry/self-hosted/actions/runs/9293290182/job/25576089323?pr=3094

@hubertdeng123 hubertdeng123 requested a review from azaslavsky May 29, 2024 21:38
echo "${image_var}=${{ inputs.image_url }}" >> .env.custom
cat .env.custom
sed -i "/^$image_var/d" .env
echo "${image_var}=${{ inputs.image_url }}" >> .env

Choose a reason for hiding this comment

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

Can we still cat the .env file? I think this is used to make test logs a bit more informative.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

@hubertdeng123 hubertdeng123 merged commit 362bf68 into main May 29, 2024
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/correctly-use-test-image branch May 29, 2024 22:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants