-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Several workflows but only one produces test results #200
Comments
No errors and no results published |
Do all three actions use the same value for Are your workflows in a public repo so I can take a closer look? The random workflow is a known issue with GitHubs AP (#12) and out of our control. |
Oh wow! Didn't expect such a quick response. None of them specify I found that other issue too. How annoying :( |
So I used a unique I only get results published for the first one workflow I start. The other two never produce anything. If I change the order that I start them in, then the first one works always, even though it didn't work when it was run second or third. |
I tried running two workflows and they both ran concurrently, both uploaded uniquely names artifacts, downloaded them, ran this action but produced no output. Very weird. |
I have now added the |
Another thing to try is setting the log level for all of the three actions as follows:
Then lets compare the log output of all three actions (the log zip you added before). If that does not provide any insights, could you provide the workflow yaml files so I can reproduce it in a public repo? You said they start due to a |
Triggered three times (individually). I will try this now.... |
Worked |
Your third action's |
Do you run the |
I have tried to reproduce this in my playground repo EnricoMi/python. There are two manual trigger workflows: https://github.com/EnricoMi/python/tree/master/.github/workflows I triggered them to run on master concurrently. You can navigate to the results as follows:
My two manual workflows have individual |
Blimey - that is sure convoluted. I did find them that way. Not sure it is the answer my team will want though :D I am thinking I might try just putting the three runs in a composite action and publish all the results just once. |
You can have the build and test job of all three workflows in one workflow as separate jobs and have a single publish job. That is probably what you meant with composite, but "composite action" means something different in GitHub. I am glad you found your results. The workflow, runs and check model of GitHub is frustratingly complex. Well, convoluted is really the right term here. We are all set then? |
Yes I know what a composite action is :) I created a single private composite action (that does a build/test/upload) that accepts an input for the thing it is going to operate on. So instead of three separate workflows I just have one that calls the composite action for each of the components - then has one single publication job at the end for the whole lot. It is not ideal, because it is aggregating all the results together. I probably need to give the XML output unique names to work around that (at the moment the XML files are the same name in different folders). It isn't a great solution but I think we can close this if there is no other way around it. |
You can have three "builds and tests" jobs and have the publish job depend on all three. This way the three jobs run in parallel. Anyway, glad we could solve the where-are-the-results mystery. |
I have three workflows. All three produce unit test results and all three try to publish them with this action. Only one of them actually publishes anything. The others publish nothing despite showing no errors. Similarly, when all three workflows run as checks as the result of a push, only one set of results are published, and against a completely random workflow that doesn't even use this action. Am I missing something specific that needs to be added to the inputs?
The text was updated successfully, but these errors were encountered: