Skip to content

CI doesn't run all jobs when GitHub Actions job is removed from Apache approved_patterns.yml聽#16914

Closed

Description

@ebyhr

Please describe the bug 馃悶

CI shows false green when the GitHub Actions job is excluded from https://github.com/apache/infrastructure-actions/blob/main/approved_patterns.yml

For example, #16903 only ran 6 jobs because gradle/actions/setup-gradle was stale after apache/infrastructure-actions@25ab499

Image

https://github.com/apache/iceberg-python has the same problem (apache/iceberg-python#3510).
I haven't confirmed other Iceberg repositories.

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Activity

  1. changed the title [-]CI silently passes when GitHub Actions job is expired[/-] [+]CI doesn't run all jobs when GitHub Actions job is removed from Apache approved_patterns.yml[/+] on Jun 22, 2026
  2. added 3 commits that reference this issue on Jun 22, 2026
    0987666
    f27be47
    5c4039f
  3. kevinjqliu commented on Jun 22, 2026

    @kevinjqliu
    Contributor

    I looked into this, i think its actually expected that dependabot PRs (like #16903) do not modify the runtime-deps.txt file. And thus there can be a potential drift

    This is somewhat documented at

    // generateRuntimeDeps - resolves runtimeClasspath and writes a sorted
    // baseline of group:artifact:major.minor coordinates
    // to runtime-deps.txt in the project directory.
    // Patch versions are omitted so that routine
    // Dependabot bumps never cause baseline drift.

    In #16233, I tried to get rid of the patch version runtime-deps.txt so that we see less noise.

    All the changes in https://github.com/apache/iceberg/pull/16908/changes are for minor versions, which lines up with the above

    I think maybe we just have to deal with this and manually update runtime-deps.txt. Open to suggestions! I'm just out of ideas

  4. ebyhr commented on Jun 22, 2026

    @ebyhr
    MemberAuthor

    The stale runtime-deps.txt isn't the problem I want to address in this issue.

    The problem I was seeing is CI shows false green when the action is removed from Apache approved_patterns.yml. I think CI should fail in the PR so we can avoid accidental merge.

  5. kevinjqliu commented on Jun 22, 2026

    @kevinjqliu
    Contributor

    Oh I see, you're right.

    https://github.com/apache/iceberg/pull/16903/checks has a bunch of skipped CI (the black part of the progress bar). This is what .github/workflows/asf-allowlist-check.yml should prevent, so #16926 makes sense to me

  6. kevinjqliu commented on Jun 22, 2026

    @kevinjqliu
    Contributor

    Thanks for catching this!

  7. kevinjqliu commented on Jun 22, 2026

    @kevinjqliu
    Contributor

    Unfortunately I copied this bug to every iceberg repo 馃槶

    https://grep.app/search?f.path.pattern=github%2Fworkflows%2Fasf-allowlist-check.yml&f.repo.pattern=apache%2Ficeberg&q=paths%3A

    • apache/iceberg
    • apache/iceberg-python
    • apache/iceberg-rust
    • apache/iceberg-go
    • apache/iceberg-cpp

    We should also copy over this CI check to https://github.com/apache/terraform-provider-iceberg/tree/main/.github for parity

  8. kevinjqliu commented on Jun 22, 2026

    @kevinjqliu
    Contributor

    tracking in #16934

  9. added a commit that references this issue on Jun 22, 2026
    02631cd
  10. added a commit that references this issue on Jun 29, 2026
    7fb2f0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions