Skip to content

perf: allow eight Project sync workers and two hours - #10945

Merged
zouyonghe merged 1 commit into
AstrBotDevs:masterfrom
zouyonghe:perf/project-sync-8-workers
Nov 2, 2026
Merged

zouyonghe merged 1 commit into
AstrBotDevs:masterfrom
zouyonghe:perf/project-sync-8-workers

Conversation

@zouyonghe

@zouyonghe zouyonghe commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Increase Project item apply concurrency from four to eight workers while retaining ordered mutations within each item.
  • Increase the sync job execution budget from 30 to 120 minutes.
  • Update operator documentation and regression tests, including deterministic eight-worker overlap.

Verification

  • 52 focused offline tests pass (16 entrypoint/workflow, 28 delivery, 8 event).
  • Repository Ruff checks, Actionlint, and git diff checks pass.
  • No live Project writes or secret changes performed.

The longer job budget does not increase GitHub API rate limits; completion time still requires live verification.

Summary by Sourcery

Increase Project synchronization capacity and runtime limits while preserving mutation ordering and validating the updated workflow behavior.

Enhancements:

  • Increase Project synchronization apply concurrency to eight workers while preserving ordered mutations within each item.
  • Extend the Project synchronization job execution budget to 120 minutes.

Documentation:

  • Update Project synchronization operator documentation with the higher worker count and execution budget.

Tests:

  • Update regression coverage to verify deterministic eight-worker overlap, per-item mutation ordering, and the 120-minute workflow timeout.

@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 reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. Eight concurrent mutations could hit GitHub rate limits or fail partway through, leaving some Project fields updated and others stale. Those partial writes survive a revert, but the documented sync can be rerun to reconcile them.


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

@zouyonghe
zouyonghe merged commit 41a2c1b into AstrBotDevs:master Nov 2, 2026
24 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