-
Notifications
You must be signed in to change notification settings - Fork 6
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
Run UI e2e tests with given aerie/gateway docker tags when provided in PR body #1439
Conversation
01c11f6
to
5bbc506
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another (possibly simpler) architecture we might want to consider for this is just cloning the aerie
repo into the e2e-test GH action workspace and building images (and mission models!) from scratch for each test run.
This would remove the need to make any changes to the backend repo's GH actions, i.e. no need to run publish
or add custom tags. The UI and gateway could just have a tag / command in the PR body that tell it which aerie
branch to checkout.
This would also solve the problem of having stale mission model jars in the UI repo.
Thanks @skovati - I considered that too... I think I'd prefer to keep the process of "how to build aerie backend" out of this UI repo if possible, from a separation of concerns/maintainability perspective. This way gives me slightly better assurance that the backend images I'm testing with will be exactly the same as the final published images, since they're created via the same process in the I think if you're OK with this method, let's do it this way for now, but I'm definitely open to talking about improving this process/general workflow for our different repos in future. |
For your tests, have you tested only having a Gateway PR and not the Backend and vice versa? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clean up the commit history before merging, but the work itself LGTM
5bbc506
to
eff768e
Compare
…E_PR and REQUIRES_GATEWAY_PR flags and use tagged docker images from specified PR if so
eff768e
to
f5537fb
Compare
Thanks - done on this and other PRs. Will merge when tests pass again 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for figuring this out!
…n PR body (#1439) GH workflows: update Test workflow to check PR body for REQUIRES_AERIE_PR and REQUIRES_GATEWAY_PR flags and use tagged docker images from specified PR if so
___REQUIRES_AERIE_PR___="1540"
___REQUIRES_GATEWAY_PR___="107"
Description
Supporting this issue: NASA-AMMOS/aerie#1538
This PR allows the
aerie-ui
PR e2e test suite to use different Docker image tags, published by PR(s) on their respective repos, for theaerie
&aerie-gateway
containers when testing, instead ofdevelop
as they usually do. The aerie/gateway PR(s) must first be opened and labeled with the "publish" label in github, which will cause them to publish images tagged eg.pr-1540
. (see NASA-AMMOS/aerie#1540 & NASA-AMMOS/aerie-gateway#107 )Once this is done, you can add the flag(s) at the top of this PR (
___REQUIRES_AERIE_PR___
and/or___REQUIRES_GATEWAY_PR___
) to your aerie-ui PR to indicate the PR branches to be tested with.Verification
This PR itself demonstrates the workflow:
pr-1540
for aerie andpr-107
for gateway)