-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Inconsistent outcome with conditional jobs in reusable workflow #32439
Comments
Don't mind the name of the repo If anyone has a clue or any ideas as to how I could debug this further, I'd love to hear from them. Thanks! |
FWIW, I also reproduced the bug after removing the I also tried to reverse the order of jobs in the reusable workflow and it led to the same outcome. |
When changing the condition to |
I think this might be a bug on the act_runner side. I'll take a look |
Thanks! Let me know if there is anything I can help with. It looks like this is a bug that may be difficult to reproduce. |
I reproduced the issue. But I don't know why one of your machines can run the job successfully. Are the configurations of the two act_runners different? |
First and foremost: thank you for looking into it. No, all my config is identical on the two machines, except two env vars: Anyway, that's good news if you managed to reproduce! Maybe if you explain what you have found, I can figure out why one of my machines does not exhibit the issue? |
I created a PR to fix this issue https://gitea.com/gitea/act/pulls/122 |
Description
Repro case here: https://code.defx.fr/cyrille/shell-bug-repro
This repo contains two workflows: one calling the other. The reusable workflows contains two jobs, the first being conditional, controlled by a
cond
input. The caller sets the input tofalse
so the first job in the reusable workflow should always be skipped.When running the caller workflow, I expect it to complete successfully by skipping the first reusable job and completing the second. This is what I get on one machine (see the screenshot with the light theme). But on another machine, I get what's shown on the screenshot with the dark theme: the workflow fails.
On the two machines, I am running the exact same docker compose project, with the exact same images that I pulled today. I consistently get the same result.
I have tried to dig into the code but after a few hours of research, I could not come to any conclusion.
I added a gist to the logs on the machine that fails to run the workflow as expected.
Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/2franix/6d130a03c51ec33cc09ad33cb00e6cf5
Screenshots
On the machine failing to run the workflow:
On the machine succeeding:
Git Version
1.22.3
Operating System
Debian Bookworm 12.7
How are you running Gitea?
I am running Gitea on Docker with the following images:
GITEA_RUNNER_LABELS: "ubuntu-latest:docker:ghcr.io/catthehacker/ubuntu:act-latest"
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: