Skip to content

fix(tests): run smoke tests with partial metadata#2445

Merged
rostalan merged 5 commits into
redhat-developer:mainfrom
rostalan:rhidp-13245-partial-smoketest-metadata
Jun 2, 2026
Merged

fix(tests): run smoke tests with partial metadata#2445
rostalan merged 5 commits into
redhat-developer:mainfrom
rostalan:rhidp-13245-partial-smoketest-metadata

Conversation

@rostalan

@rostalan rostalan commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow smoke tests to run when at least one published plugin has runnable metadata instead of requiring metadata for every export
  • report published plugins skipped for missing metadata in workflow comments (missing .env behaviour unchanged)
  • update smoke-test docs to describe the skip/fail behavior

Test plan

  • Parse .github/workflows/workspace-tests.yaml with Python YAML
  • Verify partial-metadata scenario produces runnable plugins instead of skipping entirely
  • Verify no-metadata scenario still skips smoke tests
  • Verify missing required smoke-tests/test.env still triggers the skip path
  • Confirm the missing-metadata summary is formatted for GitHub comments

Made with Cursor

@rostalan rostalan requested review from a team, gashcrumb and kadel as code owners May 11, 2026 12:19
@rostalan rostalan requested a review from davidfestal May 11, 2026 12:27
@rostalan

rostalan commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

tested here: github.com/rostalan/pull/133

@redhat-developer redhat-developer deleted a comment from github-actions Bot May 11, 2026
@github-actions github-actions Bot added the non-workspace-changes PR changes files outside workspace directories label May 11, 2026
@nickboldt

Copy link
Copy Markdown
Member

[12:26 PM]Nick Boldt would it be better to prevent merging changes that cause incomplete metadata to be included? Shouldn't this be a failure that causes the plugin owner to go back and FIX the problem rather than hiding it for a future person to discover?
[12:26 PM]Nick Boldt   instead of requiring metadata for every exportdon't all plugins need working metadata?
[12:27 PM]Stan Lewis  I guess if a plugin doesn't have metadata it's not going to be included in any catalog, would this break the catalog build?
[12:33 PM]Nick Boldt  currently we include all the metadata but once Frank's stuff is ready, there will be the "only RHDH core plugins (default.packages.yaml + supported plugins.txt)" catalog and a second one for "everything else"

Eventually we might have 3 catalogs so there's one for DP content in an incubator catalog
[12:34 PM]Nick Boldt  catalog "build" is more like "copy the yaml files into a new location and then generate an index.json of all the ghcr.io links"
[12:34 PM]Stan Lewis  I wonder, if we want to make metadata required (or it should be required), should that be a specific metadata check vs relying on this smoke test check. (edited) 
[12:36 PM]Stan Lewis  which I think is done as part of publish currently?
[1:03 PM]Nick Boldt  I would hope that you can't add a plugin without metadata... otherwise how does the extensions UI know the plugin exists? And yes, this should be a PR check, not a smoke check
[1:52 PM]Stan Lewis  probably be good to add these concerns to the PR.  I guess the question is, do these changes allow for running the smoketest check while the metadata files aren't ready yet to provide for iterating on this easily in a PR before it's ready for merging.  Looking at some past merged PRs, the publish check includes the metadata validation, I don't think this PR gets around that.

@nickboldt nickboldt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if we don't allow partial metadata. Instead we should prevent adding plugins which don't include their associated metadata.

Unless there's a use case for plugins being included in this repo for export, but NOT being in the extensions catalog for marketing them?

@openshift-ci openshift-ci Bot removed the lgtm label May 12, 2026
@rostalan rostalan force-pushed the rhidp-13245-partial-smoketest-metadata branch from 876a099 to 8cceb3d Compare May 27, 2026 11:01
@rostalan

Copy link
Copy Markdown
Contributor Author

/publish

@github-actions

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

@rostalan rostalan force-pushed the rhidp-13245-partial-smoketest-metadata branch from 8cceb3d to 8bf7b35 Compare May 27, 2026 12:22
@rostalan

Copy link
Copy Markdown
Contributor Author

@rostalan

rostalan commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

/publish

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

rostalan and others added 4 commits June 1, 2026 13:06
Allow smoke tests to continue when a workspace has runnable metadata for only some published plugins, and surface skipped plugin metadata gaps in workflow comments.

Co-authored-by: Cursor <cursoragent@cursor.com>
Point workflow calls to the forked export-utils workflows and include metadata coverage warnings in the auto-publish PR completion comment so warning-only missing metadata is visible.
Stop passing the `force` input into the forked update-plugins-repo-refs reusable workflow since that input is not declared in the current forked contract.
Restore workflow references from the temporary forked export-utils repo back to redhat-developer now that the utils changes are merged upstream.
@rostalan rostalan force-pushed the rhidp-13245-partial-smoketest-metadata branch from 9dde3e6 to 36d1261 Compare June 1, 2026 11:06
@rostalan

rostalan commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

/publish

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

…kflow

Pass the force input again now that update-plugins-repo-refs uses upstream utils workflow contract supporting this input.
@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

@rostalan

rostalan commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

/publish

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

@rostalan rostalan merged commit c9faea6 into redhat-developer:main Jun 2, 2026
3 checks passed
@rostalan rostalan deleted the rhidp-13245-partial-smoketest-metadata branch June 2, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-workspace-changes PR changes files outside workspace directories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants