Skip to content

Comments

fix: update syntax to V2 in GitHub Actions#580

Merged
ritikrajdev merged 4 commits intov2from
fix/docker-compose-v2-syntax
Jan 14, 2026
Merged

fix: update syntax to V2 in GitHub Actions#580
ritikrajdev merged 4 commits intov2from
fix/docker-compose-v2-syntax

Conversation

@CreatorHead
Copy link
Contributor

  • Replace 'docker-compose' with 'docker compose' (V2 syntax)
  • Fixes 'command not found' error in GitHub Actions runners
  • Modern GitHub Actions runners have Docker Compose V2 pre-installed
  • Resolves SMB test workflow failures

This change ensures the SMB integration tests can run successfully in the CI environment without requiring additional Docker Compose installation steps.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

- Replace 'docker-compose' with 'docker compose' (V2 syntax)
- Fixes 'command not found' error in GitHub Actions runners
- Modern GitHub Actions runners have Docker Compose V2 pre-installed
- Resolves SMB test workflow failures

This change ensures the SMB integration tests can run successfully
in the CI environment without requiring additional Docker Compose
installation steps.
- Replace actions/upload-artifact@v3 with @v4 in both linux and windows jobs
- Fixes deprecation warnings and potential workflow failures
- v3 was deprecated on April 16, 2024 and will stop working
- v4 is the current supported version for artifact uploads

This resolves the automatic failure message:
'This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3'
- Update aws-actions/configure-aws-credentials from deprecated v1 to v4
- Improves security and compatibility with latest AWS authentication methods
- Ensures reliable cloud resource authentication in CI workflows
- Part of comprehensive GitHub Actions modernization effort
- Make artifact names unique by including Go version and directory matrix values
- Replace '.' directory with 'root' in artifact names for better compatibility
- Fixes 409 Conflict error: 'an artifact with this name already exists'
- Each matrix combination now creates distinctly named artifacts

Example artifact names:
- linux-test-results-go1.19-root
- linux-test-results-go1.20-s3
- windows-test-results-go1.21-gcs
@CreatorHead CreatorHead changed the title fix: update Docker Compose syntax to V2 in GitHub Actions fix: update syntax to V2 in GitHub Actions Jan 14, 2026
Copy link

@ritikrajdev ritikrajdev left a comment

Choose a reason for hiding this comment

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

Overall LGTM, Feel free to resolve above mentioned questions and merge the PR.

@ritikrajdev ritikrajdev merged commit 88847d8 into v2 Jan 14, 2026
22 checks passed
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