Thoughts on using Metaflow w/ CI/CD systems: right...
# dev-metaflow
u
Thoughts on using Metaflow w/ CI/CD systems: right now, the lack of a programmatic API is really painful when it comes to triggering stepfunctions runs in CI/CD context.  I think aside from pattern matching on the stdout of the metaflow CLI, there's no way for a CI/CD system to get the execution id of the flow it just started if it wants to track its progress (for example, if you want to run an actual flow as part of an integration test). Per @straight-shampoo-11124, there is a
run --run-id-file
option for local runs; could we add something similar for step-functions?
a
Yep, that's a straight-forward addition.
@average-beach-28850 ^^
a
let me look into this, should be pretty easy to add
🙏 1
a
Technically you can do the same thing with
step-functions trigger
as well - with the caveat that
step-functions trigger
is async and you may have to wait a bit before the actual state-machine is launched which will then register the metadata with the metadata service.
u
it also means the CI/CD system needs to have Metaflow API access, but for our particular usecase we just want it to trigger the sfn execution and fail a build if the execution fails.
a
a
Tested, approved and merged!
👍 1
The package should be available in pypi in another 45 mins - https://github.com/Netflix/metaflow/actions/runs/984333365 and in conda this evening.
u
Thanks guys!!! This is a big help for us using stepfunctions in integration tests 😄
🎉 1
👍 2
v
📣 in case you haven't followed this thread, we just released a small new feature (
step-functions trigger --run-id-file
) that helps automating SFN deployments and testing
d
This is great! We had the same problem and the team was chatting about this last week. Thanks for this 🙏
🎉 4
s
a good reason to give feedback early and frequently 😄
👍 2