feat(ci): per-product codeblock testing with shared content resolution#6817
Open
jstirnaman wants to merge 4 commits intoclaude/add-codeblock-ci-tests-jRvG9from
Open
feat(ci): per-product codeblock testing with shared content resolution#6817jstirnaman wants to merge 4 commits intoclaude/add-codeblock-ci-tests-jRvG9from
jstirnaman wants to merge 4 commits intoclaude/add-codeblock-ci-tests-jRvG9from
Conversation
- Add support for all products: core, enterprise, v2, v1, telegraf, cloud, cloud-dedicated, cloud-serverless, clustered, explorer - Define default test group (core + telegraf) when no product specified - Exclude cloud products from automatic CI (manual dispatch only) - Add placeholder scripts for products without pytest services - Normalize product name handling (core, influxdb3_core, influxdb3-core) - Log informative messages when excluded products' content changes
- Remove pull_request trigger, keep only workflow_dispatch - Change all exit codes to 0 so workflow never blocks PRs - Use warnings instead of errors for failed tests - Simplify job from detect-changes to parse-inputs
…ution - PRs now trigger detection-only mode that suggests which products to test - Actual test execution only runs via manual workflow_dispatch - Add detect-test-products.js script using existing content-utils library - Properly resolve shared content to affected product pages - Non-blocking: PRs won't fail due to codeblock test issues
- Replace Node.js detect-test-products.js with shell-based approach - Add .github/scripts/resolve-shared-content.sh (from docs-v2-jts-vale-ci) - Remove Node.js setup step from detect-changes job - No external dependencies required for shared content resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Workflow updates (
.github/workflows/test.yml)content/shared/*files to product pages that source theminfluxdb3_core+telegrafwhen no products specifiedNew scripts
.github/scripts/resolve-shared-content.sh- Resolves shared content to consuming pages (reusable across workflows)Package.json updates
test:codeblocks:default- Run default group (core + telegraf)test:codeblocks:influxdb3_enterprise- Placeholder for enterprise teststest:codeblocks:v1- Placeholder for v1 teststest:codeblocks:explorer- Placeholder for explorer testsTest plan