Fix flaky PTY tests with sh -c and printf#1890
Conversation
* feat: Add file-scoped locals to stack configurations Implements file-scoped locals for Atmos stack manifests, similar to Terraform and Terragrunt. Locals enable temporary variables that are available within a single file with dependency resolution and circular dependency detection. Key features: - Locals defined at global, component-type, and component scopes - Dependency resolution using topological sorting - Circular dependency detection with clear error messages - File-scoped isolation (no inheritance across imports) - Integration with describe locals command with provenance tracking Includes comprehensive test scenarios and documentation. 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * fix: Correct broken links in file-scoped locals blog post 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * add tests, fix issues, add/update docs * address comments, update docs --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com> Co-authored-by: aknysh <andriy.knysh@gmail.com>
|
Warning This PR exceeds the recommended limit of 1,000 lines.Large PRs are difficult to review and may be rejected due to their size. Please verify that this PR does not address multiple issues. |
|
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1890 +/- ##
==========================================
- Coverage 73.19% 73.18% -0.01%
==========================================
Files 609 609
Lines 56766 56766
==========================================
- Hits 41548 41547 -1
+ Misses 12297 12296 -1
- Partials 2921 2923 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
These changes were released in v1.202.0. |
|
These changes were released in v1.203.0-test.1. |
what
TestExecWithPTY_BasicExecutionandTestExecWithPTY_DefaultOptionsechocommand withsh -cusingprintffor more reliable output handlingwhy
The flaky tests were failing intermittently because the direct
echocommand doesn't reliably output through the PTY in all environments. Usingsh -cwithprintfand a brief sleep resolves the race condition that occurs when the subprocess exits before all output is read from the PTY.references
TestExecWithPTY_WithMaskingandTestExecWithPTY_MaskingDisabled