Skip to content

Fix and Pin the Docker Task Workflow Test Reader's Limits - #3296

Merged
ptr727 merged 5 commits into
developfrom
feature/docker-test-reader-limits
Oct 21, 2026
Merged

ptr727 merged 5 commits into
developfrom
feature/docker-test-reader-limits

Conversation

@ptr727

@ptr727 ptr727 commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #3280

The stdlib-only reader in tests/test_docker_task_workflow.py now closes the limits that need a small change and pins the rest.

Fixed, each with a case that fails on the old reader:

  • A step whose first key is run: or uses:.
  • Docker global options before the subcommand.
  • A with: child indented deeper than ten spaces.
  • --push=false and --push=0 no longer count as a push.
  • A run script ends at its first dedent, so a later env: value is not read as script.

Pinned as known limits in KnownLimitsCase, each asserting the current behavior: heredoc, quoted separator, and trailing comment pushes, a type=registry cache source, folded and plain multi-line run, a multi-line flow with, a block-scalar login value, an inverted credential check, a check held in an echo, other missed push forms, and with: push: false.

Two limits are listed in the header without a case: a bare - sequence item and a shallow run body. The header lists every remaining limit.

No YAML dependency is added.

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 20, 2026 18:39
Read a step whose first key is run or uses, docker global options before the subcommand, a with child indented deeper than ten spaces, and --push=false. End a run script at its first dedent. Pin the remaining false negatives and positives as known-limit cases.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Prove the first-key uses fix with a hook step, fail instead of skip when the inverted check mutation does not apply, and pin the echo-held check tests. List the further limits the review found.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drop a hook case that passed without the fix, pin the missed push forms and the push false input, and state which limits have no case.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 21, 2026 01:46
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 92d7d1b1-1681-4aa2-a493-5e5ae8076a8a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Several documented parser limits still lack dedicated regression coverage.

1 open issue
What changed in this PR

Updates the stdlib-only Docker workflow reader and expands regression coverage for parser fixes and known limitations.

Changes:

  • Handles compact steps, Docker options, indentation, push flags, and script boundaries.
  • Adds tests documenting remaining parsing limits.
  • Keeps the reader dependency-free.
File Description
tests/​test_docker_task_workflow.py Updates reader logic and expands regression and known-limit coverage.

Review effort: Lite

Comment thread tests/test_docker_task_workflow.py Resolved
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@a86e92c). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3296   +/-   ##
==========================================
  Coverage           ?   65.49%           
==========================================
  Files              ?       17           
  Lines              ?    10011           
  Branches           ?        0           
==========================================
  Hits               ?     6557           
  Misses             ?     3454           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 65.49% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 21, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 36d957b9a199bc4553aebfbae86666c2ae1e11b9, the content this pull request carries at that commit against develop, and it recorded 3 findings.

@ptr727
ptr727 merged commit 848d629 into develop Oct 21, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/docker-test-reader-limits branch October 21, 2026 02:15
ptr727 added a commit that referenced this pull request Oct 21, 2026
…ixes to Main (#3299)

## Summary

Promotes these pull requests from develop.

- [#3297](#3297): the
write guard fails closed on an unread write target when no origin
resolves.
- [#3296](#3296): fixes
and pins the Docker task workflow test reader's known limits.
- [#3295](#3295): corrects
the smoke stub's `enable_*` description in the caller-stub paragraph.
- [#3293](#3293): carries
a command the user must run inside the prompt's own question.
- [#3291](#3291): matches
session-handoff's platform-lane exception to the fix-and-verify rule.

Closes #3288
Closes #3280
Closes #3282
Closes #3284
Closes #3275

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants