Skip to content

Add script to audit plugin container image tags on Quay - #159

Merged
christoph-jerolimov merged 1 commit into
mainfrom
add-audit-plugin-container-image-tags-script
Oct 1, 2026
Merged

christoph-jerolimov merged 1 commit into
mainfrom
add-audit-plugin-container-image-tags-script

Conversation

@christoph-jerolimov

@christoph-jerolimov christoph-jerolimov commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds scripts/audit-plugin-container-image-tags.ts, which audits the tags of quay.io/rhdh-community/rhdh-loadtest-plugins:

  • Fetches all tags via the Quay API (paginated)
  • Groups tags of the form bs_<version>_<plugin>-<n> by Backstage version and plugin
  • Reports per group how many of the expected 1–100 tags are present, which are missing, and the oldest/newest upload
  • Lists tags that don't match the expected format
  • Exits non-zero if any group is incomplete or unexpected tags exist

Usage

./scripts/audit-plugin-container-image-tags.ts

Example output

Run on 2026-10-02 (exit code 1, because the bs_1.54_* groups are incomplete):

Fetching tags for quay.io/rhdh-community/rhdh-loadtest-plugins ...
Fetched 1278 tags.

Group                Present  Missing  Oldest upload             Newest upload             
-------------------  -------  -------  ------------------------  --------------------------
bs_1.42_catalog-tab  100/100  -        #7  2026-07-15T13:12:20Z  #6  2026-10-01T22:28:47Z  
bs_1.42_page         100/100  -        #7  2026-07-15T13:11:59Z  #6  2026-10-01T22:28:21Z  
bs_1.45_catalog-tab  100/100  -        #7  2026-07-15T15:09:00Z  #6  2026-10-01T22:28:40Z  
bs_1.45_page         100/100  -        #7  2026-07-15T15:08:24Z  #6  2026-10-01T22:28:16Z  
bs_1.49_catalog-tab  100/100  -        #1  2026-07-15T22:07:04Z  #100  2026-07-15T23:58:19Z
bs_1.49_page         100/100  -        #1  2026-07-15T22:06:31Z  #100  2026-07-15T23:57:46Z
bs_1.52_catalog-tab  100/100  -        #1  2026-07-16T07:50:50Z  #100  2026-07-16T10:00:38Z
bs_1.52_page         100/100  -        #1  2026-07-16T07:50:11Z  #100  2026-07-16T09:59:54Z
bs_1.54_catalog-tab  25/100   26-100   #1  2026-09-24T13:53:16Z  #25  2026-09-24T14:11:14Z 
bs_1.54_page         25/100   26-100   #1  2026-09-24T13:52:52Z  #25  2026-09-24T14:10:50Z 

No unexpected tags.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GKXnKKssmvRFxF3uFiJYy5

Fetches all tags of quay.io/rhdh-community/rhdh-loadtest-plugins, groups
them by Backstage version and plugin, and reports which of the expected
1-100 tags are missing along with the oldest/newest upload times.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GKXnKKssmvRFxF3uFiJYy5
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
@christoph-jerolimov
christoph-jerolimov merged commit aba74b4 into main Oct 1, 2026
7 checks passed
@christoph-jerolimov
christoph-jerolimov deleted the add-audit-plugin-container-image-tags-script branch October 1, 2026 22:32
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