Skip to content

ci: test add-ons from their main branch, not the latest release - #72

Merged
stasadev merged 1 commit into
mainfrom
20261104_stasadev_test_addon_main
Nov 4, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261104_stasadev_test_addon_main

Conversation

@stasadev

@stasadev stasadev commented Nov 4, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

The add-ons test now checks out each add-on's main branch, so a test-only fix in an add-on reaches this workflow without an add-on release.

The Issue

The scheduled add-ons test failed for all three ddev/ddev-adminer jobs on 2026-11-04: https://github.com/ddev/github-action-add-on-test/actions/runs/41799787471

Adminer 6.3.0 answers the login redirect with HTTP/2 303, and the ddev-adminer v1.4.1 test expects HTTP/2 302. The test fix is on ddev-adminer main (ddev/ddev-adminer#59). This workflow checked out the latest release tag, so the failure stayed until somebody released ddev-adminer. Add-on users don't need that release, because only the test changed.

How This PR Solves The Issue

The workflow passes addon_ref: main to the action. The step that read the latest release tag from releases/latest is removed. This workflow tests the action, and the add-ons are only fixtures. The add-on's own CI already tests its main, so a failure here points to the action.

The release-tagged test still installs the latest release with ddev add-on get ddev/ddev-adminer, and runs the test file from main against it.

Manual Testing Instructions

Push and pull request runs skip the release-tagged tests, so start a manual run for the full set:

gh workflow run add-ons-test.yml --repo ddev/github-action-add-on-test --ref 20261104_stasadev_test_addon_main
gh run watch --repo ddev/github-action-add-on-test

Expect all six "Add-on test" jobs to pass. In a ddev-adminer job, the "Run add-on test" step shows ref: main for repository: ddev/ddev-adminer.

Automated Testing Overview

No tests were added. Nobody has run the changed workflow yet. The CI run on this PR and the manual run above confirm it.

Release/Deployment Notes

Don't create releases manually. Follow the release process documentation when making a new release.

🤖 Developed with assistance from Claude Code

## Short Summary (TL;DR)

The add-ons test now checks out each add-on's `main` branch, so a test-only fix in an add-on reaches this workflow without an add-on release.

## The Issue

The scheduled add-ons test failed for all three `ddev/ddev-adminer` jobs on 2026-11-04: https://github.com/ddev/github-action-add-on-test/actions/runs/41799787471

Adminer 6.3.0 answers the login redirect with `HTTP/2 303`, and the ddev-adminer v1.4.1 test expects `HTTP/2 302`. The test fix is on ddev-adminer `main` (ddev/ddev-adminer#59). This workflow checked out the latest release tag, so the failure stayed until somebody released ddev-adminer. Add-on users don't need that release, because only the test changed.

## How This PR Solves The Issue

The workflow passes `addon_ref: main` to the action. The step that read the latest release tag from `releases/latest` is removed. This workflow tests the action, and the add-ons are only fixtures. The add-on's own CI already tests its `main`, so a failure here points to the action.

The `release`-tagged test still installs the latest release with `ddev add-on get ddev/ddev-adminer`, and runs the test file from `main` against it.

## Manual Testing Instructions

Push and pull request runs skip the `release`-tagged tests, so start a manual run for the full set:

```bash
gh workflow run add-ons-test.yml --repo ddev/github-action-add-on-test --ref 20261104_stasadev_test_addon_main
gh run watch --repo ddev/github-action-add-on-test
```

Expect all six "Add-on test" jobs to pass. In a ddev-adminer job, the "Run add-on test" step shows `ref: main` for `repository: ddev/ddev-adminer`.

## Automated Testing Overview

No tests were added. Nobody has run the changed workflow yet. The CI run on this PR and the manual run above confirm it.

## Release/Deployment Notes

Don't create releases manually. Follow the [release process documentation](https://github.com/ddev/github-action-add-on-test/blob/main/docs/DEVELOPER.md#release-process) when making a new release.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stasadev
stasadev merged commit e5e1967 into main Nov 4, 2026
7 checks passed
@stasadev
stasadev deleted the 20261104_stasadev_test_addon_main branch November 4, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant