Skip to content

Allow CI to run advanced/regular Go validation separately - #166

Open
dplyukhin wants to merge 1 commit into
mainfrom
go-sample-toolchain-matrix
Open

Allow CI to run advanced/regular Go validation separately#166
dplyukhin wants to merge 1 commit into
mainfrom
go-sample-toolchain-matrix

Conversation

@dplyukhin

@dplyukhin dplyukhin commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

What was changed

  • Added cargo validate go-regular and cargo validate go-advanced commands that validate just the "regular" and "advanced" samples, respectively.
  • Split the "Validate Go" step from CI in twain:
    • Validate regular samples wrt samples/go/go.mod
    • Validate advanced samples wrt advanced/samples/go/go.mod.

Why?

The regular and advanced Go samples use different Go toolchains, so they need to be set up separately.

Checklist

  1. Closes: N/A

  2. How was this tested:

    • cargo validate go-regular
    • cargo validate go-advanced
    • cargo test -p xtask
    • cargo fmt --check
    • Parsed .github/workflows/ci.yml with Ruby YAML
    • git diff --check
  3. Any docs updates needed?

No.

@dplyukhin
dplyukhin requested a review from a team as a code owner August 28, 2026 21:34
@dplyukhin
dplyukhin marked this pull request as draft August 28, 2026 21:34
@dplyukhin
dplyukhin force-pushed the go-sample-toolchain-matrix branch from 179fa06 to fe915f7 Compare August 28, 2026 21:42
@dplyukhin
dplyukhin marked this pull request as ready for review August 28, 2026 21:56
@dplyukhin dplyukhin changed the title Test Go sample tiers with declared toolchains Allow CI to run advanced/regular Go validation separately Aug 31, 2026
Comment thread xtask/src/validate.rs
@@ -38,6 +40,10 @@ pub fn validate(request: &ValidateRequest) -> Result<()> {
ValidationLanguage::Python => validate_python(&repo_root)?,
ValidationLanguage::Typescript => validate_typescript(&repo_root)?,
ValidationLanguage::Go => validate_go(&repo_root)?,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the difference between Go and GoRegular? Does Go do both but not work? Or does it only not work in CI?

@dplyukhin
dplyukhin force-pushed the go-sample-toolchain-matrix branch from fe915f7 to 5d9a2c3 Compare September 2, 2026 22:12
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.

2 participants