Repository navigation
fix(version-tracker): default track update/lock/status/diff to a table - #2698
Conversation
…vendor Add a shared pkg/yaml editing engine built on yqlib (fed raw bytes) that preserves comments, anchors/aliases, Atmos YAML functions, and Go templates, with a strict guard that rejects edits which would alter or expand an anchor. Expose it via three dot-notation command groups: - atmos config get|set|delete (edits the active atmos.yaml) - atmos stack get|set|delete (provenance resolves the manifest that defines the effective value; --file override) - atmos vendor get|set (version pinning by component name) Includes a PRD, Docusaurus docs, a changelog blog post, and a roadmap milestone. Supersedes the hardcoded sources[].version writer from the old feat/vendor-diff-and-update branch. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The new top-level `config` and `stack` command groups appear in `atmos --help`, `help`, and the unknown-command list. Regenerate the affected golden snapshots via -regenerate-snapshots (content-only change, identical across linux/macos/windows). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…serving engine
atmos vendor update checks each Git-backed source for a newer allowed version
(honoring per-source semver constraints, exclusions, and no_prereleases) and
updates the version field in place via the shared pkg/yaml engine — preserving
comments, anchors, and {{.Version}} templates. Supports --check (dry run),
--pull, --component, --tags, and --outdated.
atmos vendor diff shows the Git diff between two versions of a vendored
component without a local checkout.
Both use go-git (no git binary) behind mockable interfaces; tag listing and
ref-to-ref diff are network-isolated in tests. Adds a constraints schema to
AtmosVendorSource, a PRD, command docs, and reuses the existing
Masterminds/semver dependency. Supersedes the YAML-write approach of the old
feat/vendor-diff-and-update branch (~7k lines) with ~1k lines on the shared
engine.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Resolve the actionable CodeRabbit findings on the YAML get/set/delete PR: - yaml.Query: return a legitimate empty-string scalar instead of treating it as not-found (detect missing from the pre-trimmed result). - yaml.atomicWrite: use the shared cross-platform filesystem.WriteFileAtomic so an existing file can be replaced on Windows; preserve existing mode. - yaml.splitDotPath: reject empty path segments (a..b, trailing a.) so a typo cannot silently target a different key; refactor into dotPathScanner. - config: only os.IsNotExist maps to "no editable config"; propagate other stat errors with context (firstExistingConfig now returns an error). - vendoring.SetComponentVersion: gate the "component not found" rewrite on errors.Is(ErrYAMLPathNotFound); surface unreadable/invalid-YAML causes. - stack get: split the read path from the editable resolver (requireEditable) so get honors --file and does not fail on inherited/imported values. - stack edit: escape component-name path segments (BuildComponentYqPath + yaml.QuotePathSegment) so dotted/bracketed names address the right node, while keeping the raw path for provenance lookups. - docs: add the mandatory Screengrab block to all new config/stack/vendor command pages and register their --help screengrabs in demo-stacks.txt. Add regression tests for each fix. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…chema-split # Conflicts: # tests/snapshots/TestCLICommands_help_flag_works.stdout.golden
…chema-split # Conflicts: # pkg/auth/providers/aws/saml_driver_download_integration_test.go # tests/snapshots/TestCLICommands_atmos_non-existent.stderr.golden
YAML file edits (Set/SetRaw/Delete/Eval) were silently overwriting a file's existing indent width, line endings, and trailing newline with package defaults instead of preserving them. Add EditorConfig-aware style resolution so in-place edits keep the file's detected style, while FormatFile normalizes to the resolved EditorConfig settings. Also fixes a gocritic rangeValCopy finding in pkg/hooks/hooks.go surfaced by the --new-from-rev lint gate on this branch. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…chema-split # Conflicts: # pkg/hooks/hooks.go
Build (macos-intel) times out at 30m while the ARM macos leg finishes in ~9m, because setup-go-cache-warmup.yml's nightly matrix only warms windows and macos (arm64) — never macos-15-intel. Every PR build on that runner starts with a cold GOMODCACHE/GOCACHE, and downloading the full dependency tree from scratch blows through the timeout, which then cascades into skipped [k3s-macos] jobs and a failing "Check k3s matrix result" gate. Add macos-intel to the warmup matrix so it gets the same nightly cache as the other ephemeral hosted runners. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…2688) * feat(yaml): format-preserving get/set/delete for config, stacks, and vendor Add a shared pkg/yaml editing engine built on yqlib (fed raw bytes) that preserves comments, anchors/aliases, Atmos YAML functions, and Go templates, with a strict guard that rejects edits which would alter or expand an anchor. Expose it via three dot-notation command groups: - atmos config get|set|delete (edits the active atmos.yaml) - atmos stack get|set|delete (provenance resolves the manifest that defines the effective value; --file override) - atmos vendor get|set (version pinning by component name) Includes a PRD, Docusaurus docs, a changelog blog post, and a roadmap milestone. Supersedes the hardcoded sources[].version writer from the old feat/vendor-diff-and-update branch. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test: regenerate CLI snapshots for new config and stack commands The new top-level `config` and `stack` command groups appear in `atmos --help`, `help`, and the unknown-command list. Regenerate the affected golden snapshots via -regenerate-snapshots (content-only change, identical across linux/macos/windows). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(vendor): add 'vendor update' and 'vendor diff' on the format-preserving engine atmos vendor update checks each Git-backed source for a newer allowed version (honoring per-source semver constraints, exclusions, and no_prereleases) and updates the version field in place via the shared pkg/yaml engine — preserving comments, anchors, and {{.Version}} templates. Supports --check (dry run), --pull, --component, --tags, and --outdated. atmos vendor diff shows the Git diff between two versions of a vendored component without a local checkout. Both use go-git (no git binary) behind mockable interfaces; tag listing and ref-to-ref diff are network-isolated in tests. Adds a constraints schema to AtmosVendorSource, a PRD, command docs, and reuses the existing Masterminds/semver dependency. Supersedes the YAML-write approach of the old feat/vendor-diff-and-update branch (~7k lines) with ~1k lines on the shared engine. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(yaml): address CodeRabbit review on format-preserving editing Resolve the actionable CodeRabbit findings on the YAML get/set/delete PR: - yaml.Query: return a legitimate empty-string scalar instead of treating it as not-found (detect missing from the pre-trimmed result). - yaml.atomicWrite: use the shared cross-platform filesystem.WriteFileAtomic so an existing file can be replaced on Windows; preserve existing mode. - yaml.splitDotPath: reject empty path segments (a..b, trailing a.) so a typo cannot silently target a different key; refactor into dotPathScanner. - config: only os.IsNotExist maps to "no editable config"; propagate other stat errors with context (firstExistingConfig now returns an error). - vendoring.SetComponentVersion: gate the "component not found" rewrite on errors.Is(ErrYAMLPathNotFound); surface unreadable/invalid-YAML causes. - stack get: split the read path from the editable resolver (requireEditable) so get honors --file and does not fail on inherited/imported values. - stack edit: escape component-name path segments (BuildComponentYqPath + yaml.QuotePathSegment) so dotted/bracketed names address the right node, while keeping the raw path for provenance lookups. - docs: add the mandatory Screengrab block to all new config/stack/vendor command pages and register their --help screengrabs in demo-stacks.txt. Add regression tests for each fix. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Address vendor review feedback and coverage * Fix Windows acceptance test and vendor test cleanup * Normalize vendor report test output * Add config path listing commands * Show values in config path lists * Align config path value previews * Filter config path lists by pattern * Add config format commands * feat(version): managed version tracks with lock file, !version function, and tracks command (WIP) Phase 1 of the version-management PRD: version catalog in atmos.yaml (providers/defaults/groups/tracks), versions.lock.yaml, !version YAML function and .version template context, and the atmos version tracks command group (list/show/lock/update/status/diff/verify/render). Co-Authored-By: Claude Fable 5 <[email protected]> * chore: ignore repo-local .cache/ directory Co-Authored-By: Claude Fable 5 <[email protected]> * refactor(version): singular 'version track' namespace, StandardParser flags, pkg-owned context logic Phase A of the Version Tracker: move the .version template-context and !version YAML-function bodies from internal/exec into pkg/version/manager/context.go (internal/exec keeps one-line call sites), and rebuild the command group as 'atmos version track <verb>' (alias: tracks) with one verb per file, flags.NewStandardParser, and data.WriteYAML/WriteJSON output. Track selection now falls back from positional arg to --track to version.track in atmos.yaml. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(version): datasource resolver registry with github and toolchain resolvers Phase B of the Version Tracker: pkg/version/resolver defines the Resolver interface (Versions/Pin) with an init-registered datasource registry and ecosystem aliases. The toolchain resolver moves out of the manager; new github-tags/github-releases resolvers build on pkg/github (new ListTags returns tag names with commit SHAs; releases carry publish timestamps for future cooldown checks). Version selection (latest/constraint + allow/ignore rules) wraps the updatecli versionfilter engine; 'latest' is order-independent highest-SemVer with a datasource-order fallback for non-SemVer tags. Imports github.com/updatecli/updatecli; MVS impact verified: only opencontainers/go-digest bumped (indirect, patch). Co-Authored-By: Claude Fable 5 <[email protected]> * [autocommit] formatting fixes * fix(version): never let .version context injection trigger early template processing Fixes three CI failures on the Version Tracker branch: - The .version template-context injection used a naive substring check that matched '{{ .vars.versioning_enabled }}' and, worse, could turn an empty template context non-empty. A non-empty context is what gates whole-file template processing in the stack processor, so generate-section templates like '{{ .vars.environment }}' were evaluated too early with only the version key in scope, breaking all terraform_generate_files acceptance tests. AddTemplateContext now requires an already-non-empty context (piggybacks only on processing that would happen anyway) and matches \.version\b with a word boundary. Regression tests added. - Regenerate describe_config snapshots for the new version.defaults schema field (-regenerate-snapshots). - Allow github.com/opencontainers/go-digest in dependency review: the pseudo-version required by updatecli scans as 'Apache-2.0 AND CC-BY-SA-4.0', but the CC-BY-SA part covers documentation only. Regenerate NOTICE for the new dependencies. Co-Authored-By: Claude Fable 5 <[email protected]> * [autocommit] formatting fixes * refactor(version): move track command group into cmd/version/track package Follows the cmd/terraform/cache nested-command precedent: the track package exposes GetTrackCommand() and SetAtmosConfig(), and the parent version command wires both. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(version): SHA/digest pinning with pin policy and OCI resolver Phase C of the Version Tracker: opt-in 'pin: digest' (alias: sha) policy field inherits through the defaults -> track -> entry -> group chain. Locking resolves the immutable identifier alongside the version (git commit SHA for GitHub tags, sha256 manifest digest for OCI) into LockEntry.Digest plus the upstream released_at timestamp for future cooldown checks. A configured pin on a datasource that cannot pin fails loudly instead of being silently skipped. The .version template context now yields VersionRef values: String() emits the digest for pinned entries so '{{ .version.name }}' renders the pinned form, with .Version/.Digest individually addressable. New oci-tags/docker-tags resolver on go-containerregistry (tag listing + manifest digest pinning), with default-keychain auth and a GHCR token fallback extracted from internal/exec into pkg/oci for reuse. Providers gain 'insecure' for local/emulated registries. Co-Authored-By: Claude Fable 5 <[email protected]> * test(utils): add !version to the expected YAML tags list TestAtmosYamlTagsMap_ContainsAllTags asserts the exact tag count; the Version Tracker's !version function tag makes it 30. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(version): enforce update policy — strategy caps, cooldown, structured block reasons Phase D of the Version Tracker: 'atmos version track update' now advances within each entry's effective policy instead of aliasing lock. Strategy caps (major/minor/patch relative to the locked version; pin/digest never advance, refreshing pinned digests only), cooldown windows against upstream release timestamps (14d/2w/Go durations), and allow/ignore rules all apply, and every held-back candidate produces a structured reason (strategy and cooldown blocks reported separately). Status is now policy-aware: update-available means an update the policy would take, while a newer version held back by policy reports 'newer-available (blocked)' with the reason — and passes verify, since the locked version is exactly what the policy wants. Update gains --only to limit the run to named entries. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(version): file managers — in-place workflow refs, marker comments, template rendering Phase E of the Version Tracker: a file-manager registry (pkg/version/managers) keeps project files in sync with the lock, with pure Plan() output driven by shared Apply/Check drivers. Three managers ship: - github-actions: scans workflow 'uses:' lines and rewrites refs from the lock, matching entries by owner/repo (subdirectory actions and reusable workflow paths included; local ./ and docker:// refs never match). Pinned entries render the round-trippable convention 'uses: owner/repo@<commit-sha> # <version>'. Line-based rewriting — never a YAML round-trip — so formatting and comments survive. - marker: the Renovate regex-manager equivalent. A comment annotation '<comment> atmos:version <name> [match=<regex>]' marks a line (trailing) or the next line (standalone) for in-place rewriting, with comment delimiters detected across languages (#, //, ;, --, <!--, /*). Pinned entries replace digest tokens. - template: *.tmpl sources render to a sibling file with the .version context; covers comment-hostile formats like JSON. version.files rules in atmos.yaml declare which paths each manager maintains (defaults: workflows + templates). New verb 'atmos version track apply' (alias: sync) rewrites everything in one command; --check fails listing stale paths for CI, and verify now also fails when managed files drift from the lock. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(version): CRUD verbs for managed entries on the format-preserving YAML engine Phase F of the Version Tracker: 'atmos version track add|set|remove|get' manage version entries without hand-editing YAML. Edits go through the pkg/yaml engine (yqlib) so comments, anchors, and formatting in atmos.yaml survive, targeting the editable config resolved by the same precedence as 'atmos config set'. Add infers the ecosystem from the package coordinate (actions/* is github-actions, registry-hosted images are oci, bare tool names are toolchain, owner/repo is github); get shows the effective entry with its locked version. Co-Authored-By: Claude Fable 5 <[email protected]> * ci(version): demo example and end-to-end workflow for the Version Tracker examples/demo-version-tracker exercises all three file managers (github-actions uses: refs, marker-annotated Dockerfile, rendered template) against a committed lock with concrete versions, so the whole flow runs offline. The version-tracker.yaml workflow builds atmos on every PR touching the feature and validates the lifecycle: verify passes on the committed state, apply --check fails on injected drift, apply repairs it byte-identically, and verify passes again. Co-Authored-By: Claude Fable 5 <[email protected]> * docs(version): Version Tracker docs, blog post, roadmap, and PRD v2 decisions - New comprehensive command-group page for 'atmos version track' (replaces the tracks.mdx draft) covering all 13 verbs, the pinning workflow, and CI usage with apply --check + verify. - managed-versions.mdx updated for v2: pin policy, update-vs-lock semantics, blocked status, the three file managers with the marker syntax and per-language comment delimiter table, version.files rules, provider insecure, CRUD editing, implemented datasources. - !version function doc: always returns the version; template accessors emit the pinned form. - Changelog post (slug: atmos-version-tracker) and a shipped roadmap milestone on the Vendoring & Resilience initiative (pr 2688). - PRD retitled Atmos Version Tracker with an Implemented Decisions section recording the v2 architecture (resolver registry, pinning, policy engine, file managers, CRUD, updatecli import). Co-Authored-By: Claude Fable 5 <[email protected]> * Refine version tracker conventions * Use dependencies for version tracker catalog * fix(version): address tracker review feedback * [autocommit] formatting fixes * ci: harden macos k3s workflow * Add version tracker coverage * Fix version tracker workflow build step * Document version tracker subcommands * Add version tracker candidate filters * Render `atmos version track list` as a dependency x track version matrix Replaces the bare list of track names with a pivot table (one row per dependency, one column per track) so versions can be compared across tracks at a glance, reusing the existing pkg/list/format table/csv/json/yaml renderer. Adds --show (desired|locked) and --max-columns flags, and fixes TrackNames to include the implicit default track so it agrees with EffectiveEntries. Also includes: - docs_generate: fix the default fallback template to read through the "config" gomplate datasource instead of bare fields, since ProcessTmplWithDatasourcesGomplate binds root "." to the outer Env wrapper, not the merged input data. - pkg/hooks: fix a gocritic rangeValCopy lint finding blocking the --new-from-rev=origin/main pre-commit gate. Co-Authored-By: Claude Sonnet 5 <[email protected]> * Update stale subcommand description for `version track list` The track overview table still said "List configured version tracks." after list.mdx was rewritten for the dependency x track matrix view. Co-Authored-By: Claude Sonnet 5 <[email protected]> * Register the !version YAML tag in the pkg/function/tag catalog The Version Tracker's !version YAML function was wired into pkg/utils/yaml_utils.go (AtmosYamlFuncVersion) but never added to pkg/function/tag, the canonical tag catalog used for validation and "unsupported tag" error messages. This left fntag.AllYAML()/IsValidYAML out of sync with pkg/utils, failing TestFntagPackage_ContainsAllSupportedYamlTags and TestAllSupportedYamlTagsList in CI on all three platforms. Adds the Version constant (and its pkg/function mirror, TagVersion) to the catalog, and updates the enumerated tag lists in tag_test.go and tags_test.go to match. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: atmos-pro[bot] <173522224+atmos-pro[bot]@users.noreply.github.com>
atmos version track update/lock/status/diff printed raw YAML by default, unlike `version track list` which already defaults to a human-readable, TTY-aware table. Give the four verbs the same pkg/list/renderer-based table default (csv/tsv also supported), keeping --format=yaml/json as an explicit opt-in for full-fidelity output (e.g. digests). Update the affected docs and blog example to match. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…/renderer Codecov flagged this branch's patch coverage at 76.34% (below the informational 80% target) with cmd/stack, cmd/config, and cmd/vendor as the main drag. Closes the specific gaps it called out with unit tests, following each package's existing test patterns (no production code changes): - cmd/stack: 46.8% -> 85.7% - cmd/config: 61.7% -> 87.2% - cmd/vendor: 62.1% -> 86.3% - pkg/yaml: 94.4% -> 96.0% - pkg/list/renderer: 88.7% -> 92.7% - pkg/vendoring/version: 94.3% (added direct tests for previously indirectly-covered FilterBySemverConstraint/FilterExcludedVersions branches) Also includes a one-line CodeQL suppression comment in pkg/provisioner/workdir/fs.go documenting a false-positive go/weak-sensitive-data-hashing alert (content-checksum hashing, not password hashing) dismissed on GitHub as alert #5252. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…' into osterman/atmos-yaml-schema-split Co-Authored-By: Claude Sonnet 5 <[email protected]>
actions/download-artifact doesn't retry ENOTFOUND/ETIMEDOUT (only HTTP 5xx/429), and the existing single manual retry wasn't always enough for a sustained multi-minute network blip talking to the Actions artifact API (observed on k3s-macos/helm). Add a third attempt with a 15s backoff between tries, matching the attempt/N retry convention already used for `atmos test` below in the same job. Co-Authored-By: Claude Sonnet 5 <[email protected]>
actions/download-artifact only retries HTTP 5xx/429, not connection-level errors like ENOTFOUND/ETIMEDOUT, which have caused sustained multi-minute outages on hosted runners (observed on k3s-macos/helm). Rather than inlining a 3-attempt retry-with-backoff block in every job that needs it, add two local composite actions: - download-artifact-retry: generic retry wrapper, with optional run-id/github-token passthrough for cross-run downloads (verified safe against download-artifact's source: those inputs are no-ops for same-run downloads when github-token is empty). - setup-atmos-install: atmos-specific "install a prebuilt artifact" action built on top of it — downloads the binary the `build` job already produced, sets the executable bit (skipped on Windows), and optionally adds the install directory to PATH. Counterpart to setup-atmos-build, which compiles from source instead. Derives the artifact name from `target` (build-artifacts-<target>) by default, with an optional `name` override for compatibility with non-standard artifact names. Converts all 9 raw actions/download-artifact call sites across test.yml and website-preview-deploy.yml to use these, collapsing what was often 2-3 steps per site into one and centralizing the retry hardening so future improvements only need to change one file. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Local composite actions (uses: ./.github/actions/...) require the repo to already be checked out -- unlike marketplace actions referenced by SHA, which download independently. The floci, floci-go, and container-step jobs called setup-atmos-install before their checkout step, which worked when that step was the raw actions/download-artifact marketplace action but broke once it became a local action: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '.../.github/actions/setup-atmos-install'. Did you forget to run actions/checkout before running your local action? Reorder checkout first in all three jobs, matching every other converted call site. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
CodeRabbit (@coderabbitai) full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
.github/actions/download-artifact-retry/action.yml (1)
42-45: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick winUse env vars instead of direct expression interpolation in composite action
runsteps. All four sites interpolate${{ inputs.* }}directly into shell commands, which is a known GitHub Actions expression-injection anti-pattern. While every current caller passes safe values, the reusable actions should follow GitHub's security hardening guide and pass inputs through environment variables.
.github/actions/download-artifact-retry/action.yml#L42-L45: Replacesleep "${{ inputs.backoff-seconds }}"with an env-backedsleep "$BACKOFF"..github/actions/download-artifact-retry/action.yml#L58-L61: Same fix for the second wait step..github/actions/setup-atmos-install/action.yml#L41-L44: Replaceecho "${{ inputs.path }}"with an env-backedecho "$INSTALL_DIR"..github/actions/setup-atmos-install/action.yml#L46-L49: Replacechmod +x "${{ inputs.path }}/atmos"with an env-backedchmod +x "$INSTALL_DIR/atmos".🔒 Proposed fix for `download-artifact-retry/action.yml`
- name: Wait before retry if: steps.attempt_1.outcome == 'failure' shell: bash + env: + BACKOFF: ${{ inputs.backoff-seconds }} - run: sleep "${{ inputs.backoff-seconds }}" + run: sleep "$BACKOFF" - name: Wait before final retry if: steps.attempt_1.outcome == 'failure' && steps.attempt_2.outcome == 'failure' shell: bash + env: + BACKOFF: ${{ inputs.backoff-seconds }} - run: sleep "${{ inputs.backoff-seconds }}" + run: sleep "$BACKOFF"🔒 Proposed fix for `setup-atmos-install/action.yml`
- name: Add install directory to PATH if: inputs.add-to-path == 'true' shell: bash + env: + INSTALL_DIR: ${{ inputs.path }} - run: echo "${{ inputs.path }}" >> "$GITHUB_PATH" + run: echo "$INSTALL_DIR" >> "$GITHUB_PATH" - name: Set execute permissions on atmos if: runner.os != 'Windows' shell: bash + env: + INSTALL_DIR: ${{ inputs.path }} - run: chmod +x "${{ inputs.path }}/atmos" + run: chmod +x "$INSTALL_DIR/atmos"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/actions/download-artifact-retry/action.yml around lines 42 - 45, Replace direct input interpolation in all four composite-action run steps with environment-backed variables: in .github/actions/download-artifact-retry/action.yml lines 42-45 and 58-61, expose the backoff input as BACKOFF and use it for sleep; in .github/actions/setup-atmos-install/action.yml lines 41-44 and 46-49, expose the path input as INSTALL_DIR and use it for echo and chmod. Preserve the existing step behavior while removing `${{ inputs.* }}` from shell commands.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/version/track/track.go`:
- Around line 166-191: Move the format retrieval and validation switch in
writeRows before the len(rows) == 0 early return, so unsupported values such as
"toml" consistently return ErrUnsupportedFormat even when no rows match.
Preserve the existing emptyMessage behavior for valid formats and leave selector
creation and rendering unchanged.
In `@website/blog/2026-07-04-atmos-version-tracker.mdx`:
- Around line 75-81: Update the prose introducing the output example in the
version tracker documentation to distinguish piped default table output from
explicitly requested CSV output, matching the wording used in the sibling
update, lock, and status documentation pages; leave the CSV example unchanged.
---
Nitpick comments:
In @.github/actions/download-artifact-retry/action.yml:
- Around line 42-45: Replace direct input interpolation in all four
composite-action run steps with environment-backed variables: in
.github/actions/download-artifact-retry/action.yml lines 42-45 and 58-61, expose
the backoff input as BACKOFF and use it for sleep; in
.github/actions/setup-atmos-install/action.yml lines 41-44 and 46-49, expose the
path input as INSTALL_DIR and use it for echo and chmod. Preserve the existing
step behavior while removing `${{ inputs.* }}` from shell commands.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 1d4215fe-aee8-4db8-a93d-39003dda120c
📒 Files selected for processing (17)
.atmos.d/dev.yaml.github/actions/download-artifact-retry/action.yml.github/actions/setup-atmos-install/action.yml.github/workflows/test.yml.github/workflows/website-preview-deploy.ymlcmd/version/track/diff.gocmd/version/track/lock.gocmd/version/track/status.gocmd/version/track/track.gocmd/version/track/track_test.gocmd/version/track/update.gopkg/scheduler/adapters/terraform.gowebsite/blog/2026-07-04-atmos-version-tracker.mdxwebsite/docs/cli/commands/version/track/diff.mdxwebsite/docs/cli/commands/version/track/lock.mdxwebsite/docs/cli/commands/version/track/status.mdxwebsite/docs/cli/commands/version/track/update.mdx
…ck output Address CodeRabbit full-review findings on PR #2698: writeRows silently accepted an unsupported --format (e.g. toml) when zero rows matched (e.g. an unmatched --group), instead of returning ErrUnsupportedFormat like the non-empty path. Also fixes stale piped-vs-CSV wording in the version tracker blog post to match the sibling command docs. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
These changes were released in v1.223.0-rc.11. |
what
atmos version track update,lock,status, anddiffnow default to a human-readable, TTY-aware table (matchingatmos version track list), instead of raw YAML.--format=yaml/--format=jsonremain available as explicit opt-ins and continue to return the original full-fidelity struct (e.g. digests, ecosystem/datasource detail) unchanged.--format=csv/--format=tsvare now also supported for these four verbs, reusing the samepkg/list/rendererpipeline already used byversion track listandsecret list.lock's default table is scoped to the resolved track's entries (not the entire multi-track lock file);--format=yaml/jsonstill dump the fullversions.lock.yamlcontents.website/docs/cli/commands/version/track/{update,status,lock,diff}.mdxandwebsite/blog/2026-07-04-atmos-version-tracker.mdx(the source of a screenshot that surfaced this bug) to show the corrected default output.cmd/version/track/track_test.gofor the new default-format dispatch and for full-fidelity yaml/json output.why
atmos version track update(and its siblings) were printing raw YAML by default, which violates this project's UX convention that CLI output should be human-readable by default, with structured formats as an explicit opt-in.atmos version track listalready got this right;update/lock/status/diffshared awriteFormatted()helper that had no table option at all.references
osterman/atmos-yaml-schema-split(notmain) because this is a follow-up fix stacked on the still-open feat: format-preserving YAML edits + Atmos Version Tracker #2664, which already contains the merged Atmos Version Tracker feature (feat: Atmos Version Tracker — managed version tracks with lock file #2688).