Repository navigation
Add --redirect-stderr flag to atmos commands - #322
Conversation
|
Andriy Knysh (@aknysh) This implementation is slightly different from what I had in mind...specifically, I was only expecting atmos to "ignore" writing to stderr in the case of selecting a workspace that doesn't exist, as we then immediately create the missing workspace. This case, specifically, is what GitHub Actions is showing as an error. With your proposed implementation, If we redirect all of stderr to a file, we'd then have to parse that file and somehow figure out to ignore just the select workspace error, but raise an error if any other error occurred. Also, I don't think this command, as implemented, actually brings any additional value over |
This covers the Specifically for this will redirect the errors for the Or you can do the following (if you don't want to redirect the errors, if any, from other TF commands): this will create a new workspace and redirect the errors to stderr, and then I've also added so for normal operations, you don't need to use |
|
This updated implementation LGTM, thanks Andriy Knysh (@aknysh) |
…e#3502) * fix: upgrade Node.js to 24.22.1 for October 2026 security releases Node.js 24.22.1 fixes CVE-2026-111497 (Brotli OOB write / RCE), CVE-2026-105483 and CVE-2026-106069 (TLS hostname verification bypasses), CVE-2026-105482 (dns.resolve NUL truncation), and several medium/low CVEs. - pkg/auth/providers/aws: bump the Node runtime Atmos downloads for the SAML Playwright driver from 24.18.0 to 24.22.1. - website/.nvmrc: move off EOL Node 25.1.0 (unpatched) to 24.22.1 LTS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(security): remediate 7 website Dependabot alerts Raise pnpm overrides to patched releases: - dompurify ^3.4.17 (cloudposse#327, cloudposse#328, cloudposse#329) - launch-editor ^2.14.2 (cloudposse#324, cloudposse#325, cloudposse#326) - follow-redirects ^1.16.1 (cloudposse#322, cloudposse#323) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(security): bump Go to 1.26.10 for GO-2026-6809 Go 1.26.10 makes crypto/x509 distrust compromised intermediate certificates (CVE-2026-111943), which govulncheck reports Atmos calls. The Windows exception-reserve CI workaround is version-locked, so re-pin it to go1.26.10. golang/go#81238 is still open, and src/runtime/stack.go is byte-identical between 1.26.9 and 1.26.10, so the verified source SHA256 and the replacement are unchanged. Add a fix log covering this PR's Node, Go, and npm upgrades. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * docs: say pnpm overrides in the security upgrades fix log Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(security): remediate x/net and follow-redirects advisories Bump golang.org/x/net to v0.62.0 (GO-2026-6866, GO-2026-6860) and pin follow-redirects to 1.16.1 in the cdk-terraform example via an npm override (Dependabot 336, 337). Regenerate NOTICE. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix: tidy go.mod after merging origin/main Drop duplicate pre-merge requirements and the stale gocloud.dev pin comment (main moved to v0.46.0 and removed the pin), keeping the x/net security bumps. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(plugins): bump auth-secrets to 1.0.1 for changed go.mod build input The x/net security bump changes go.mod, a declared build input for auth-secrets, so the plugin release check requires a version increase. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(casts): stage screengrabs beside the output to avoid EXDEV The generator recorded casts into the system temp directory and then called os.replace into website/static, which fails with 'Invalid cross-device link' on CI runners where /tmp and the workspace are on different filesystems. Stage inside the output directory so the final move is always same-filesystem. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix: tidy go.mod after merging origin/main Remove the duplicate gocloud.dev requirement left by the merge. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
what
--redirect-stderrflag toatmoscommands--redirect-stderrflag is not passed, always redirectstderrtostdoutforterraform workspace selectcommandwhy
stderrto whenatmosexecutes subcommands likeatmos terraformandatmos helmfile/dev/nulland/dev/stdout)stderrmakes the action failexamples
test