Skip to content

build: make ordinary validation workspace-first - #2911

Merged
jbeda merged 5 commits into
mainfrom
impl/workspace-first-defaults
Nov 20, 2026
Merged

jbeda merged 5 commits into
mainfrom
impl/workspace-first-defaults

Conversation

@jbeda

@jbeda jbeda commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Default ordinary test, build, lint, and deployment E2E tasks to sibling source from the current checkout. An inherited GOWORK, including off, overrides ordinary Task defaults; explicit workspace and standalone tasks still select their named mode.
  • Use native go work sync for workspace-wide dependency alignment. task deps:sync updates metadata; task test:workspace-sync runs sync and fails on uncommitted metadata. task tidy aliases sync; targeted standalone tidy remains available.
  • Remove custom per-module candidate validation/repair and its 25 tests. Add five focused regressions using existing fixtures. This transition removes 605 net lines.
  • Reject unsynchronized reviewed source during module-publication preflight and synchronize final adoption metadata, preserving standalone release qualification and public-download proofs.

Why change Kind's dependency mode?

Official application archives and official mecak8s images compile sibling modules from the immutable release checkout through go.work. Kind previously built fresh root application/fixture code with GOWORK=off, linking published engine/adapters/providers rather than their checkout source. That could ignore the nested-module changes under review, or reject a coordinated unpublished API change that the actual release build would accept.

Default Kind E2E uses the same source-selection model as the application we ship, unless the caller explicitly overrides GOWORK. The explicit pinned variant reuses the same suite when published-dependency evidence is wanted; it is not a second mandatory ordinary PR run. Third-party dependencies and container base images remain pinned. Module publication continues its own standalone and public-consumer proofs; it does not run the full pinned Kind suite.

Implementation notes

  • Ordinary Task commands share one checkout-rooted workspace default and honor caller overrides. Explicit workspace and synchronization commands pin this checkout; standalone commands select GOWORK=off. Module-local replacements still apply to standalone commands.
  • Workspace synchronization records dependency floors selected by the combined workspace graph. It does not tidy every module, synthesize missing sibling requirements, or prove standalone compatibility. Coordinated source can use unpublished sibling APIs; independent module publication is the standalone qualification boundary. Routine all-module standalone tidy is removed because it can conflict with workspace alignment or fail on unpublished sibling packages.
  • The sync gate can modify files and leaves native Go edits for review. It requires intended metadata to be committed, using the existing staged/unstaged/untracked cleanliness check. go.work.sum remains ignored supplemental state; checksum verification stays enabled.
  • Publication preflight uses trusted tooling to reject source drift before workspace testing or any publication. Selected modules retain dependency-ordered standalone tidy/build/test and public proof, with no whole-workspace sync between tags. Final credential-free reconciliation synchronizes metadata across the existing inventory, rechecks pin/source policies, and captures sync-only changes in the existing adoption artifact. The final adoption tree must be sync-stable; it need not also be a standalone-tidy fixed point. Writer authority, immutable tags, and human merge-commit adoption are unchanged.
  • Kind builds its images through ko without an unused whole-repository build prerequisite. MicroVM E2E preparation passes the workspace into packaging; official packaging keeps its standalone default. MicroVM's local engine replacement means workspace-off testing is not a pure published-dependency proof.

API compatibility

Build and validation policy only. No remote-observable API, protocol major, feature identifier, public Go API, or stored-data contract changes. No client upgrade or migration is required.

Verification

Latest workspace-sync transition passed locally with Go 1.27.3:

  • task test:workspace-infrastructure: 8 metadata and 11 workspace tests.
  • task test:module-publication-tools: 55 helper and 26 writer tests, plus the Go workflow contract exercising workflow-specific fixtures.
  • MicroVM release-script regression tests.
  • task test:workspace-sync, task docs, task lint:actions, and whitespace checks.
  • Spec, standards, test-adequacy, and domain reviews; one test-ordering gap was corrected and independently rechecked.

Real fixtures exercise dependency-version drift, committed-metadata enforcement, stale preflight rejection, and sync-only adoption changes. No dependency pins or checksums changed in this checkout.

The earlier workspace-default implementation passed the complete offline normal/race suites, Go lint, task check:pr, and the offline demo. Those broad Go suites were not repeated for this build/tooling-only transition. Live deployment E2E and paid-provider tests were not run locally; existing CI owns deployment coverage.

jbeda and others added 4 commits November 19, 2026 18:39
Use a shared Task workspace default while preserving caller overrides and explicit workspace/standalone modes. Clarify contributor guidance and remove costly, redundant test machinery.

Co-authored-by: Mecatl <[email protected]>
Stub ko alongside the other Kind prerequisites so infrastructure tests do not depend on developer-installed tools. Remove assertions that pin the old Taskfile command spelling and standalone default rather than updating them to another implementation snapshot.

Co-authored-by: Mecatl <[email protected]>
Focus development guidance on task selection, validation, and metadata repair. Move publication and recovery to a separate guide and update the release and reading-map pointers.

Co-authored-by: Mecatl <[email protected]>
Replace per-module candidate validation and repair with native workspace synchronization. Enforce synchronization in PR validation and publication preflight, then synchronize final adoption metadata while preserving standalone release qualification.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda enabled auto-merge (squash) November 20, 2026 20:14
@jbeda
jbeda merged commit aab9a4f into main Nov 20, 2026
51 checks passed
@jbeda
jbeda deleted the impl/workspace-first-defaults branch November 20, 2026 20:24
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