Skip to content

Conversation

@ivanovac
Copy link
Contributor

@ivanovac ivanovac commented Jan 14, 2026

Fix Docker integration tests by explicitly specifying nginx buildpack

Problem
When running integration tests on Docker platform, buildpack auto-detection was incorrectly selecting the PHP buildpack instead of the nginx buildpack. This caused tests to fail with errors like:
Expected the staging logs to contain "Installing nginx [\d\.]+" but got "Installing PHP 8.1.32" instead

The issue occurred because the test fixtures didn't explicitly specify which buildpack to use, so Docker's auto-detection logic chose PHP based on the directory structure.

Solution
Added explicit buildpack specification using .WithBuildpacks("nginx_buildpack") to all integration test

Copy link
Contributor

@tnikolova82 tnikolova82 left a comment

Choose a reason for hiding this comment

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

LGTM

@tnikolova82 tnikolova82 merged commit 1032143 into master Jan 14, 2026
7 checks passed
@tnikolova82 tnikolova82 deleted the fix-tests branch January 14, 2026 14:12
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