Skip to content

[WIP] Fix failing GitHub Actions workflow for integration#15731

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-github-actions-workflow-183ed52c-2e39-4864-a2cb-1717af641b03
Feb 14, 2026
Merged

[WIP] Fix failing GitHub Actions workflow for integration#15731
pelikhan merged 3 commits intomainfrom
copilot/fix-github-actions-workflow-183ed52c-2e39-4864-a2cb-1717af641b03

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Fix TestValidateContainerImages integration test failure

The TestValidateContainerImages/valid_container_image test is failing in CI because:

  • Test checks if Docker binary exists (exec.LookPath("docker"))
  • Validation code checks if Docker daemon is running (isDockerDaemonRunning())
  • In CI, Docker binary exists but daemon is not running

Solution:

Updated both TestValidateContainerImages and TestValidateDockerImage to check if Docker daemon is running using the same isDockerDaemonRunning() function that the validation code uses. This ensures consistent behavior between tests and production code.

Changes:

  • pkg/workflow/validation_test.go: Added Docker daemon running check before executing container image validation tests

Plan:

  • Update test to check if Docker daemon is running (not just if binary exists)
  • Use the same isDockerDaemonRunning() function from docker_validation.go
  • Run the specific failing test to verify fix
  • Run make build, lint, test-unit for validation
  • Verify all checks pass
Original prompt

Fix the failing GitHub Actions workflow Integration: Workflow Actions & Containers
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63632171514
Job URL: https://github.com/github/gh-aw/actions/runs/22021859466/job/63632171514


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 14, 2026 18:12
- Update TestValidateContainerImages to check Docker daemon status
- Update TestValidateDockerImage to check Docker daemon status
- Use isDockerDaemonRunning() function to match validation code behavior
- Tests now properly skip when Docker daemon is not running (not just when binary is missing)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review February 14, 2026 18:17
Copilot AI review requested due to automatic review settings February 14, 2026 18:17
@pelikhan pelikhan merged commit 5b953fa into main Feb 14, 2026
51 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-actions-workflow-183ed52c-2e39-4864-a2cb-1717af641b03 branch February 14, 2026 18:17
Copilot AI requested a review from pelikhan February 14, 2026 18:17
Copilot stopped work on behalf of pelikhan due to an error February 14, 2026 18:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes failing integration tests in CI by adding Docker daemon status checks to test skip conditions. The tests were failing because Docker binary exists in CI but the daemon is not running, causing test execution to proceed and fail.

Changes:

  • Added isDockerDaemonRunning() checks to TestValidateContainerImages and TestValidateDockerImage test functions
  • Updated test skip logic to check both Docker binary availability AND daemon running status

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +71 to +73
// Also check if Docker daemon is running (not just if binary exists)
if !isDockerDaemonRunning() {
t.Skip("docker daemon not running, skipping test")
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The same Docker daemon check should be applied to the tests in compiler_container_validation_test.go. The tests TestCompileWithInvalidContainerImage and TestCompileWithInvalidContainerValidationDisabled also check for Docker binary at lines 26-28 and 80-82 respectively, but don't verify the daemon is running. They will fail in CI with the same issue this PR fixes.

Copilot uses AI. Check for mistakes.
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// Skip test if docker is not available
// Skip test if docker daemon is not running
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The comment is slightly misleading. It says "Skip test if docker daemon is not running" but the code checks both Docker binary availability (line 68-70) AND daemon running status (line 72-74). Consider updating to "Skip test if docker is not available or daemon is not running" for accuracy.

Suggested change
// Skip test if docker daemon is not running
// Skip test if docker is not available or daemon is not running

Copilot uses AI. Check for mistakes.
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