Skip to content

MDBF-1200: Implement OldBuildCanceller#955

Merged
RazvanLiviuVarzaru merged 1 commit into
MariaDB:devfrom
RazvanLiviuVarzaru:MDBF-1200
Jun 15, 2026
Merged

MDBF-1200: Implement OldBuildCanceller#955
RazvanLiviuVarzaru merged 1 commit into
MariaDB:devfrom
RazvanLiviuVarzaru:MDBF-1200

Conversation

@RazvanLiviuVarzaru

Copy link
Copy Markdown
Collaborator

Make tarball-docker cancel older queued or running build requests for the same branch.
This ensures that builds for older commits on the same branch are cancelled, so only one commit per branch is built at a time.

@RazvanLiviuVarzaru

Copy link
Copy Markdown
Collaborator Author

Not urgent to review, I am planning to release it in dry-run mode after the April server release.

@RazvanLiviuVarzaru RazvanLiviuVarzaru force-pushed the MDBF-1200 branch 2 times, most recently from 14b8cae to 9d32802 Compare June 4, 2026 08:32
@RazvanLiviuVarzaru RazvanLiviuVarzaru requested review from fauust and grooverdan and removed request for fauust and grooverdan June 4, 2026 10:20
@RazvanLiviuVarzaru

Copy link
Copy Markdown
Collaborator Author

Ready for review

@grooverdan grooverdan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Worked last I saw it in action.

CancelDuplicateBuildRequests(buildbot_base_url=os.environ.get("BUILDMASTER_URL"))
)

f_tarball.addStep(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I notice this is beginning of steps.

Is a duplicate step of this at the end of the tarball build providing an extra minute window check useful?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not necessarily, same branch tarballs are always 1 minute apart as per treeStableTimer=60,
so the newest tarball will either:

  • cancel the other tarball immediately OR
  • if the older tarball already exited, will cancel its child builds.

Any corner case you have in mind?

Make tarball-docker cancel older queued or running build requests for the same branch.
This ensures that builds for older commits on the same branch are cancelled,
so only one commit per branch is built at a time.
@RazvanLiviuVarzaru RazvanLiviuVarzaru merged commit 26c518d into MariaDB:dev Jun 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants