Conversation
fe13624 to
3bcbdda
Compare
Huh, on main this command also works just fine and I never encountered a race condition in actions after the initial issues we had before the release 🤔 |
|
@DanielMSchmidt yes; main isn't using the instances expander to validate action expansion. I'm sorry I wasn't clear: the race condition appears when the actions.Actions() struct is removed and we validate against the instance expander instead. There is an underlying bug with the action graph, related to missing dependency edges during apply: #37975 . I believe that issue is directly related to the race condition in my POC. |
One thing I'd like to note down on the topic is that we have this name in all the protobuf definitions as well. If we rename it, it will be harder to find these places through a simple search and might be confusing. This includes all cross-repo naming as well (tfc-agent, atlas), so I just want to make sure we are clear on the trade-off of renaming this. |
Good point! Since it's only in the planproto, and not the provider protocol, we can just change those names too - I'll add that change. |
3bcbdda to
c9918d2
Compare
|
@mildwonkey We should inform upstream teams (provider, actions, etc) of this so they can also adjust their code properly 👍 |
c9918d2 to
02f2501
Compare
|
@DanielMSchmidt the provider protocol is not changing; no providers need to change anything |
|
@mildwonkey I am aware, but if providers or the cloud codebase in their code talk about LifecycleActionTriggers it would be beneficial if they would rename that as well so that we all talk about the same thing. |
|
That's a good point, I'll definitely spread the info around - we did start removing references to lifecycle actions back before the actual release, so I'm hoping it's not around too many other places: #37533 |
02f2501 to
4f20390
Compare
|
👍 Yeah, I think we still distinguish between CLI triggered and Lifecycle triggered actions and |
|
lol so something went very wrong when i squashed my last commit (actually post squash, when I tried to reset something) and now most of my changes are gone. I'll open this again and do a better job with the commits while i'm at it 🤦🏻 sorry for all the noise! |
This PR is half renaming things and half real changes.
LifecycleActionTrigger->ResourceActionTriggerConfigActionto theActionRefstruct so we don't have to parse it multiple timessplat is disallowedtest - we now catch that during configload (and with a different error)actions.Actionstoctx.InstancesExpander(a future PR will add an AttachActionConfigTransformer to attach the action configuration to any node that needs it)Actual changy-change:
Since race conditions are an issue with actions, I offer this additional proof:
Fixes #
Target Release
1.15.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry