-
Notifications
You must be signed in to change notification settings - Fork 311
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
Add filename to env #1945
Add filename to env #1945
Conversation
33d2a54
to
810e972
Compare
Hey, thanks a ton Tarek. Overall this LGTM! Two small things:
PS In the longer term, I think we'll need to have a list of all Maestro-provided env variables, so people will not override them when they pass their own |
810e972
to
b2996a7
Compare
@tokou I rebased with master (to make github checks ✅) and renamed the variable. If you have some free time (and will!), tests would be great to see:) |
I noticed with the tests that we populate the env var with subflow file names in the subflows. I think it makes more sense for it to always be the top level flow name. So I fixed it and added some tests. |
Agreed, thanks a ton! After the conflicts are resolved this is good to go. |
8757349
to
d648d9c
Compare
d648d9c
to
ecf28f1
Compare
One last ask, if I may - could we keep
makes it obvious that "system env vars" (like Lmk what you think. You already did a lot and I don't want you to lose enthusiasm :) |
On the other hand, this is good enough. Thanks a lot! EDIT This was followed up in #2010 |
Proposed changes
FILENAME
env value to the flow file's nameTesting
I updated 2 of the integration tests to use the
FILENAME
env var and check their correct namingRun ./gradlew :maestro-test:test
Run ./gradlew :maestro-orchestra:test
Run ./gradlew :maestro-orchestra-models:test
Issues fixed
Fixes #1616