Repository navigation
Conversation
…os release Build every family's provider for a Junos OS and a Junos OS Evolved release in one go, from a clone of the Juniper YANG repository: junos-mx, -es, -ex, -nfx, -qfx for 25.4R1 and junos-evo for 25.4R1-EVO, each --generic --groups. - Modules are read out of the clone's git objects (git archive at YANG_REF), so its working tree does not matter and two releases can be built from one clone. `make latest` discovers the newest release of each branch; JUNOS_RELEASE / EVO_RELEASE pin one. Both repository layouts are handled (<=22.4 flat, >=23.4 native/conf-and-rpcs/.../models). - Outputs land under dist/<release>/: binaries, each provider's schema for jtaf-xml2tf, a manifest (commit, sha256, fingerprint, exclusions) and a dev_overrides CLI configuration, plus a combined dist/terraformrc where the newest release provides each name. Provider names carry no release. - Hashed input stamps give incremental rebuilds and an accurate `make -n`; a second `make all` is a no-op. - `make preflight` checks tools, disk (MIN_FREE_GB) and memory; heavy steps run under nice/ionice with JOBS=2, and TMPDIR/GOTMPDIR point under build/ so nothing lands on the system temporary directory. - `make clean-space` reclaims stale build output, stopped containers older than PRUNE_UNTIL, dangling images and unreferenced build cache. It never touches a running container; tagged images, the Go caches and the user's own /tmp entries are opt-in, and DRY_RUN=1 previews everything. - The 25.4R1 NFX model's hash-function choice holds a CRC16 leaf beside a crc16 container, which map to one Terraform attribute and the generator refuses; EXCLUDE_nfx leaves that choice out by default (8 paths, recorded in the manifest). Per-family EXCLUDE_<type> adds to the global EXCLUDE. - scripts/release/jtaf_release.py does discovery, layout resolution, family enumeration, tooling-id, manifest and terraformrc; preflight.sh and clean_space.sh are the shell helpers. 33 tests cover them with fixtures and a stub container runtime, without a YANG clone, Go or Docker. - README-terraform.md gains "Building a release set with make"; the OpenSpec change build-release-provider-matrix records proposal, specs, design (with measured costs) and tasks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aburston
marked this pull request as draft
October 28, 2026 09:58
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.
Build every family's provider for a Junos OS and a Junos OS Evolved
Build every family's provider for a Junos OS and a Junos OS Evolved release in one go, from a clone of the Juniper YANG repository: junos-mx, -es, -ex, -nfx, -qfx for 25.4R1 and junos-evo for 25.4R1-EVO, each --generic --groups.
make latestdiscovers the newest release of each branch; JUNOS_RELEASE / EVO_RELEASE pin one. Both repository layouts are handled (<=22.4 flat, >=23.4 native/conf-and-rpcs/.../models).make -n; a secondmake allis a no-op.make preflightchecks tools, disk (MIN_FREE_GB) and memory; heavy steps run under nice/ionice with JOBS=2, and TMPDIR/GOTMPDIR point under build/ so nothing lands on the system temporary directory.make clean-spacereclaims stale build output, stopped containers older than PRUNE_UNTIL, dangling images and unreferenced build cache. It never touches a running container; tagged images, the Go caches and the user's own /tmp entries are opt-in, and DRY_RUN=1 previews everything.