Skip to content

Add runtime smoke tests for uncovered code samples - #6792

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
dprotaso:samples-ci-coverage
Nov 9, 2026
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
dprotaso:samples-ci-coverage

Conversation

@dprotaso

@dprotaso dprotaso commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Add smoke-test scripts for nine existing samples, following the existing build → deploy → test pattern.

Use a Go GitHub API fixture under testdata and a Go WebSocket client under cmd/client. Both reuse their samples’ Dockerfiles and Go modules.

Existing CI scripts and the workflow are unchanged. Bookstore samples are excluded.

Validation

Validation left to GitHub CI; local test clusters have been cleaned up.

@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 7, 2026
@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for knative ready!

Name Link
🔨 Latest commit c868044
🔍 Latest deploy log https://app.netlify.com/projects/knative/deploys/6af0ce66073e8e63655a5285
😎 Deploy Preview https://deploy-preview-6792--knative.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@knative-prow
knative-prow Bot requested review from Cali0707 and skonto November 7, 2026 02:44
@knative-prow knative-prow Bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 7, 2026
@dprotaso
dprotaso force-pushed the samples-ci-coverage branch 2 times, most recently from ffc5679 to eac9a71 Compare November 8, 2026 19:19
Add nine self-contained CI scripts using the existing build, deploy, and test pattern. Include a Go GitHub API fixture under testdata and reuse the app Dockerfile with a package-selection build argument. Leave existing CI scripts and the samples-test workflow unchanged.
@dprotaso
dprotaso force-pushed the samples-ci-coverage branch from eac9a71 to c868044 Compare November 8, 2026 19:32
@dprotaso
dprotaso marked this pull request as ready for review November 8, 2026 20:08
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2026
@knative-prow
knative-prow Bot requested a review from Leo6Leo November 8, 2026 20:08
@dprotaso

dprotaso commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

/assign @dsimansk

some more ci.sh scripts for code-samples coverage. I might do a refactor in a later PR

@dsimansk

dsimansk commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/assign @dsimansk

some more ci.sh scripts for code-samples coverage. I might do a refactor in a later PR

Refactor towards shared bash ci.sh script/library?

@dsimansk

dsimansk commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2026
@knative-prow

knative-prow Bot commented Nov 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, dsimansk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot merged commit 5bb8326 into knative:main Nov 9, 2026
35 checks passed
@dprotaso
dprotaso deleted the samples-ci-coverage branch November 9, 2026 13:38
@dprotaso

dprotaso commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Refactor towards shared bash ci.sh script/library?

yeah exactly

@dsimansk

dsimansk commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Refactor towards shared bash ci.sh script/library?

yeah exactly

@dprotaso let me know if you need any hand with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants