Skip to content

feat: trace Project sync ancestry - #10939

Merged
zouyonghe merged 2 commits into
AstrBotDevs:masterfrom
zouyonghe:fix/project-sync-ancestry-diagnostics
Nov 1, 2026
Merged

zouyonghe merged 2 commits into
AstrBotDevs:masterfrom
zouyonghe:fix/project-sync-ancestry-diagnostics

Conversation

@zouyonghe

@zouyonghe zouyonghe commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add flushed start/complete logs around stable-release ancestry checks.
  • Include commit prefix, matched tag count, and elapsed time to identify long-tail candidates before the 30-minute workflow timeout.
  • Preserve all synchronization semantics and failure behavior.

Verification

  • 15 entrypoint/workflow tests pass.
  • 27 delivery tests pass.
  • 8 bounded event tests pass.
  • Full Ruff checks and Actionlint pass.

Follow-up to #10935. No live Project write performed.

Summary by Sourcery

Improve Project sync observability for release ancestry checks without changing synchronization behavior.

Enhancements:

  • Add flushed progress logging for release ancestry checks, including the commit prefix, matched tag count, and elapsed time.

Tests:

  • Verify release ancestry logs include start and completion details.

@sourcery-ai sourcery-ai Bot 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.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tests/test_project_delivery.py" line_range="376-377" />
<code_context>
                     ],
                     "v2",
                 )
+            self.assertIn("release ancestry start", output.getvalue())
+            self.assertIn("release ancestry complete", output.getvalue())

     def test_tag_containment_failure_fails_closed(self):
</code_context>
<issue_to_address>
**Diagnostic details can be omitted**

When the ancestry logs retain both labels but omit the commit prefix, tag count, or elapsed time, `test_tags_containing_commit_handles_annotated_lightweight_and_divergent_tags` uses `assertIn` on only the two labels at lines 376–377, so logs containing just those labels pass even when the commit prefix, tag count, and elapsed time are missing; the test then accepts diagnostics that cannot identify slow candidates.

Assert that the captured output includes the expected commit prefix and completion fields, including tag count and elapsed time.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: tests/test_project_delivery.py:377


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread tests/test_project_delivery.py Resolved

@sourcery-ai sourcery-ai Bot 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.

Sourcery assessment

Approved.

@zouyonghe
zouyonghe merged commit a6c2b31 into AstrBotDevs:master Nov 1, 2026
26 checks passed
@Soulter Soulter moved this to Done in AstrBot Roadmap Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant