Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ paths:
# the same way; see the autolabeler comment.
# yamllint disable-line rule:line-length
- 'reusable workflow call "\$/\.github/workflows/tox\-verify\.yaml" at "uses" is not following the format'
.github/workflows/ci-management-verify-action.yaml:
ignore:
# Same self-repository form as the callers above, and excused
# the same way; see the autolabeler comment.
# yamllint disable-line rule:line-length
- 'reusable workflow call "\$/\.github/workflows/ci\-management\-verify\.yaml" at "uses" is not following the format'
.github/workflows/clear-action-cache-action.yaml:
ignore:
# GitHub's self-repository reference ('$/', July 2026) resolves
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/ci-management-verify-action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Linux Foundation

# =============================================================================
# Thin ci-management verify caller (self-test)
# =============================================================================
# This repository consumes its own reusable ci-management verify
# workflow, so every pull request raised here runs the wiring shipped
# to consumers: plan -> Lint and JJB, each in block mode behind the
# organisation allow-list, against the fixture in
# tests/fixtures/ci-management/, shaped like a consumer's tree.
#
# What the run covers, and what it cannot:
# * JJB generates the fixture's one project from its one job
# template, in jjb/. A consumer links its global-jjb submodule
# into that tree as jjb/global-jjb -> ../global-jjb/jjb. A link
# must be committed for the reusable's JJB leg to see it, and this
# repository cannot commit one, so JJB does not read the fixture's
# sibling global-jjb/. jjb-action's own suite covers the linked
# layout; see docs/ci-management-verify.md.
# * Lint runs the fixture's .pre-commit-config.yaml with
# standalone-linting-action. prek runs a configuration's hooks
# from the git top level, so check-yaml reads every YAML file in
# this repository and actionlint every workflow here, not the
# fixture alone. Both pass here, and the run shows the actionlint
# hook consumers add works within the organisation allow-list.
# * A pull request cannot dispatch Gerrit mode, so the Gerrit
# checkout, a submodule fetched through it, and the credential
# removal are covered offline by
# tests/test-ci-management-verify-plan.sh instead.
#
# The reusable is referenced with the self-repository form ('$/'),
# which resolves this repository at the commit already running, so the
# branch's own copy runs. Consumers pin a released SHA instead, as
# examples/ci-management/ shows.
#
# The '-action' suffix is a local disambiguator: a caller in this
# repository cannot share a file name with the reusable it calls.
# =============================================================================
name: 'CI Management Verify (self) 🏗️'

# yamllint disable-line rule:truthy
on:
pull_request:
types: [opened, reopened, synchronize]

permissions: {}

concurrency:
group: 'ci-management-verify-self-${{ github.ref }}'
cancel-in-progress: true

jobs:
ci-management-verify:
name: 'CI Management Verify (self)'
permissions:
contents: read
uses: $/.github/workflows/ci-management-verify.yaml
with:
path_prefix: 'tests/fixtures/ci-management'
jjb_path: 'jjb'
harden_runner_egress: 'block'
Loading
Loading