Repository navigation
fix(build,docgen): bootstrap star for codegen rules; fix docs template fields - #290
Merged
Merged
Conversation
…e fields
Makefile: every codegen recipe invokes $(STAR), but nothing built it, so a
fresh CI checkout died with "build/star: No such file or directory" whenever
checkout mtimes made a gen file look stale -- the quality-gate Build failure
on develop and the first of two docs-publish failures. Add a build/star
bootstrap rule ($(MAKE) star; star builds from the committed gen files) and
give all 31 codegen rules an order-only prerequisite on $(STAR). Order-only
preserves regenerate-only-when-stale semantics, is correct under parallel
make, and is a no-op for LKG users ($(STAR) already resolved to the LKG).
docgen: the page template referenced {{ .ReceiverName }} while FlagInfo,
ParentInfo, and ChildInfo all declare Name, so every docs run failed with
"can't evaluate field ReceiverName" -- a rename swept the template text.
Restore .Name in the four references.
Verified on a pristine develop tarball: reproduced both failures, then
make build and make docs exit 0 from a cold tree with hostile mtimes; the
generated flag tables render correctly.
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.
Two stacked defects broke CI on develop and docs-publish. (1) The Makefile's 31 codegen rules invoke
$(STAR)but nothing built it, so fresh checkouts failed with "build/star: No such file or directory" whenever checkout mtimes made a gen file look stale -- a mtime lottery, which is why PR runs passed while develop runs failed. Abuild/starbootstrap rule plus an order-only| $(STAR)prerequisite on each codegen rule fixes it under both serial and parallel make, with no effect for LKG users. (2) docgen's page template referenced.ReceiverNamewhere the structs declareName, somake docsfailed even once star existed. Both reproduced and verified green on a pristine develop tarball (cold tree, hostile mtimes).