Skip to content

Inconsistent outcome with conditional jobs in reusable workflow #32439

Closed
@2franix

Description

Description

Repro case here: https://code2.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 to false 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:
image

On the machine succeeding:
image

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: gitea/gitea:latest-rootless
  • ACT Runner: gitea/act_runner:latest
  • The runner is configured with GITEA_RUNNER_LABELS: "ubuntu-latest:docker:ghcr.io/catthehacker/ubuntu:act-latest"

Database

MySQL/MariaDB

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions