Skip to content

CI: Use docker compose instead of docker-compose#12712

Open
dveeden wants to merge 1 commit into
pingcap:masterfrom
dveeden:ci_upgrade_dm_via_tiup_docker_compose
Open

CI: Use docker compose instead of docker-compose#12712
dveeden wants to merge 1 commit into
pingcap:masterfrom
dveeden:ci_upgrade_dm_via_tiup_docker_compose

Conversation

@dveeden

@dveeden dveeden commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: ref #12542

The "Upgrade DM via TiUP" workflow fails with:

line 3: docker-compose: command not found

The ubuntu-24.04 runner image no longer ships the standalone docker-compose v1 binary; it only includes the Docker Compose v2 CLI plugin (docker compose).

See also: https://github.com/pingcap/tiflow/actions?query=branch%3Amaster+workflow%3A%22Upgrade%20DM%20via%20TiUP%22

What is changed and how it works?

Replace all docker-compose ... invocations in .github/workflows/upgrade_dm_via_tiup.yaml with docker compose ..., which is provided by the runner image out of the box. No installation step is needed and the v1 command style is deprecated anyway.

The docker-compose.yml file name references are intentionally unchanged, since Compose v2 still picks up that file name by default.

Check List

Tests

  • Manual test: the workflow can be verified via workflow_dispatch or the next scheduled run.
  • No code

Questions

Will it cause performance regression or break compatibility?

No.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None

🤖 Generated with Claude Code

The ubuntu-24.04 runner image no longer ships the standalone
docker-compose v1 binary, causing the upgrade_dm_via_tiup workflow to
fail with "docker-compose: command not found". The image does include
the Docker Compose v2 CLI plugin, so switch all invocations to
`docker compose`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@ti-chi-bot ti-chi-bot Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue do-not-merge/needs-triage-completed labels Jun 12, 2026
@dveeden

dveeden commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

/cc @OliverS929 @kennytm

@ti-chi-bot ti-chi-bot Bot requested review from OliverS929 and kennytm June 12, 2026 06:55
@ti-chi-bot ti-chi-bot Bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jun 12, 2026
@dveeden

dveeden commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@dveeden

dveeden commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

/cc @D3Hunter

@ti-chi-bot ti-chi-bot Bot requested a review from D3Hunter June 16, 2026 09:59
@ti-chi-bot ti-chi-bot Bot added the lgtm label Jun 17, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, kennytm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 17, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

[LGTM Timeline notifier]

Timeline:

  • 2026-06-12 07:51:33.150245691 +0000 UTC m=+1119194.220563091: ☑️ agreed by kennytm.
  • 2026-06-17 10:20:34.445847445 +0000 UTC m=+1560135.516164825: ☑️ agreed by D3Hunter.

@wuhuizuo

Copy link
Copy Markdown
Contributor

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants