Skip to content

👷 Test generated templates against the exact QDMI revision - #476

Merged
burgholzer merged 1 commit into
developfrom
agent/qdmi-template-exact-revision-ci
Jul 28, 2026
Merged

👷 Test generated templates against the exact QDMI revision#476
burgholzer merged 1 commit into
developfrom
agent/qdmi-template-exact-revision-ci

Conversation

@burgholzer

@burgholzer burgholzer commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

Description

Make the reusable template CI build generated projects against the exact QDMI
repository owner and revision being tested.

The job previously generated a standalone project and then fetched mutable
develop. This caused QDMI #475 to fail because its generated project used
functionality introduced by that pull request but absent from develop. The
workflow now passes the pull request head owner and SHA to the direct CMake
builds and forwards the same CMAKE_ARGS into cibuildwheel's Linux containers.
Push and merge-queue events fall back to the current repository owner and event
SHA.

The generated template and its normal dependency defaults remain unchanged.
This is a CI-only correction that also makes future template changes test their
exact source revision.

Related to #475.

Validation

  • uvx prek run -a
  • Generated the ✨ Export stable metadata from QDMI device targets #475 device template and built it as a standalone CMake project
    against exact head c5564bc7a031f6716a4e7bc105ad7aadb4cd79f9
  • Built the generated Python wheel with the same exact-revision CMAKE_ARGS
  • Independent read-only review of the final diff

Checklist

  • The pull request only contains commits that are focused and relevant to
    this change.
  • The reusable template CI job directly covers the changed behavior.
  • Documentation changes are not required for this CI-only correction.
  • A changelog entry is not warranted because there is no user-facing
    behavior change.
  • Migration instructions are not needed.
  • The changes follow the project's style guidelines and introduce no new
    warnings.
  • The changes passed the relevant local validation listed above.
  • The code changes have been independently reviewed.

If PR contains AI-assisted content:

  • AI assistance is disclosed at the beginning of this description.
  • The AI-assisted commit includes the required Assisted-by footer.
  • A human maintainer has personally reviewed and understood all AI-assisted
    content and accepts responsibility for it.

@burgholzer burgholzer added the usability Increasing usability of the library label Jul 28, 2026
@burgholzer burgholzer self-assigned this Jul 28, 2026
@burgholzer burgholzer added the continuous integration Changes related to CI/CD label Jul 28, 2026
@burgholzer
burgholzer marked this pull request as ready for review July 28, 2026 21:12
@burgholzer
burgholzer merged commit 60c3e99 into develop Jul 28, 2026
12 checks passed
@burgholzer
burgholzer deleted the agent/qdmi-template-exact-revision-ci branch July 28, 2026 21:12
burgholzer added a commit that referenced this pull request Jul 29, 2026
🤖 *AI text below* 🤖

## Description

Allow the aggregate `🚦 Check` job to accept skipped test, lint, and
template
jobs on `pull_request: closed` events.

The producer jobs already skip closed pull requests, while the aggregate
job
previously allowed skips only when change detection marked a job
irrelevant.
After #476 merged, change detection correctly marked template CI as
relevant,
the template job skipped because the event was `closed`, and the
aggregate job
incorrectly treated that skip as a failure in
[run
30399676581](https://github.com/Munich-Quantum-Software-Stack/QDMI/actions/runs/30399676581).

The allowed-skip expressions now mirror the producer job conditions:
tests,
lint, and templates may skip on closed events or when their path filters
disable
them. Documentation remains unchanged because its closed-event path may
remove
the pull request preview. Other pull request events, pushes, merge-group
runs,
and manual runs continue to require every relevant job.

## Validation

- `uvx prek run -a`
- `git diff --check`
- Independent read-only review of the closed/non-closed event truth
table and
  documentation cleanup path

The definitive hosted regression check is this pull request's own
`closed` run
after merge.

## Checklist

- [x] The pull request only contains commits that are focused and
relevant to
  this change.
- [x] The workflow's existing aggregate gate covers the changed
behavior.
- [x] Documentation changes are not required for this CI-only
correction.
- [x] A changelog entry is not warranted because there is no user-facing
  behavior change.
- [x] Migration instructions are not needed.
- [x] The changes follow the project's style guidelines and introduce no
new
  warnings.
- [x] The changes passed the relevant local validation listed above.
- [x] The code changes have been independently reviewed.

**If PR contains AI-assisted content:**

- [x] AI assistance is disclosed at the beginning of this description.
- [x] The AI-assisted commit includes the required `Assisted-by` footer.
- [x] A human maintainer has personally reviewed and understood all
AI-assisted
  content and accepts responsibility for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continuous integration Changes related to CI/CD usability Increasing usability of the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant