-
Notifications
You must be signed in to change notification settings - Fork 30
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
IndexError: list index out of range - AT runid = commitMessageArray[2] #37
Comments
Also, I think assuming that there is only a single runId/commitId behind a manifest commit is not a good assumption. In my workflows there are dozens of different services owned by different teams each with their own workflows to publish containers. If multiple services updates happen at the same time, they may be picked up as a group by flux image automation controller and the manifests are updated in a single commit. In order to make a gitops connector flow work, I need to pass an array of runIds and commitId that represent all of the container images updated in this manifest commit. Then the publish workflow would then use these arrays to package up all of the necessary services. |
I think it would be more flexible with error handling in case the message isn’t in the expected format, also would be great if there was a third parameter sent that contains the whole commit message without parsing, this would allow user to pass whatever data is necessary through the commit message. |
Agree! PRs are welcome :) |
Sure will give it a try. I’m not too familiar with python but seems simple enough. |
Fixed in #39 |
I was not seeing the dispatch event on deploy completion, so went to the logs and noticed there is an index out of range error where it tries to fetch the runid/commitId.
Looks like it is expecting a commit message to exist on the manifest update commit with these values. I haven't seen that documented anywhere though, and in my case I am using flux image automation to automatically update manifests when a new image hits the container registry, so I don't think I will have any easy way to generate this commit message from flux.
The text was updated successfully, but these errors were encountered: