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
Snapshots in Pipelines #2399
Snapshots in Pipelines #2399
Conversation
Pezmc
commented
Jul 4, 2023
- Re-order methods in pipeline file
- Extract snapshot creation logic into a service
- Deployment of pipeline stages using snapshots
As mentioned when discussing:
|
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.
Looks like credentials are getting copied if I've read this right
Notes from testing
|
e6f6901
to
44407b7
Compare
@hardillb / @knolleary Can you start on review of this while I'm finishing the unit test coverage? |
@Pezmc will do |
This is all looking good - although we have identified a blocker with the current implementation that will require more time than available to get this in to 1.9 tomorrow. When promoting between stages, the snapshot is created at the source, copied to target and then applied - all good. However, the snapshot overwrites the target's env var values - where as it should be merging them. So the step to create the target's copy of the snapshot needs to merge in the target's env vars at that point in time. A secondary issue I've just spotted, but needs a bit more diagnosis work; I think the credentials object needs to be re-encrypted for the target instance's key, otherwise it cannot decrypt properly. |
81bdcf9
to
1f018c6
Compare
1f018c6
to
b460ba1
Compare
@knolleary @hardillb Theoretically this is ready for review and to be tested locally, but the tests are hanging for a reason I haven't fully explained yet. Please validate it's behaving as you'd expect locally while I get to the bottom of the hanging. |
Looking good to me locally. Created a flow using a credential-type env var. Deployed through the pipeline to another instance, which had access to the env var value. Confirmed the stored versions (ie encrypted) of the credentials were different - so re-encryption had occurred. Just want to figure out why the test runs are running away in GH Actions. |
I've just merged main back to this branch in a hope to get the tests behaving. |
@knolleary Still hanging and I really can't explain why... the tests should all have a 5000ms timeout set on them... |
It feels like the step of the action is just never starting, so not getting as far as have any tests to timeout. |
@hardillb @knolleary Tests fixed, PR ready for re-review. |