Skip to content

Close the Docker Task Workflow Test's Five Undetected Shapes - #3281

Merged
ptr727 merged 2 commits into
developfrom
feature/docker-task-test-shapes
Oct 20, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/docker-task-test-shapes

Conversation

@ptr727

@ptr727 ptr727 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Closes #3159.

The test reader now detects the five shapes: the credential check's || operator, the login step's username and password wiring and registry, compact YAML with steps at the steps: indent, flow-style with: mappings, and run: steps that push. PyYAML is not guaranteed in the CI test job, which runs plain python -m unittest, so the stdlib reader was extended instead of adding a dependency.

Each new case carries its own in-file mutation proof, and each caught-defect case was confirmed to fail against the previous reader.

Two local review passes found further reader limits. They are filed as #3280 and not fixed here.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 20, 2026 14:54
Pin the credential check's || operator, the login step's input wiring and registry, compact and flow-style YAML, and run steps that push.

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

coderabbitai Bot commented Oct 20, 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: dfe62f21-20c7-4bea-850f-10d9f8f80342
  • 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

Fix the escaped dollar signs so credential checks match the workflow correctly.

1 open issue
What changed in this PR

This PR extends the standard-library Docker workflow reader and adds mutation-proof tests for previously undetected workflow shapes.

Changes:

  • Parses compact steps and flow-style mappings.
  • Validates credentials, login wiring, registries, and push commands.
  • Adds regression coverage for each supported shape.
File Description
tests/​test_docker_task_workflow.py Extends workflow parsing and regression tests.

Review effort: Lite

Comment thread tests/test_docker_task_workflow.py Resolved
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.49%. Comparing base (1914fad) to head (3582443).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3281   +/-   ##
========================================
  Coverage    65.49%   65.49%           
========================================
  Files           17       17           
  Lines        10011    10011           
========================================
  Hits          6557     6557           
  Misses        3454     3454           
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 merged commit d4bae64 into develop Oct 20, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/docker-task-test-shapes branch October 20, 2026 22:13
ptr727 added a commit that referenced this pull request Oct 20, 2026
## Summary

Promotes these pull requests from develop.

- [#3281](#3281): closes
the five shapes the Docker task workflow test left undetected.
- [#3279](#3279): notes
that a multi-target dispatch bypass must force the `enable_*` inputs on.
- [#3283](#3283): the
write guard reads owner flags, issue links, and run-time paths.

Closes #3165

🤖 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