Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable step to run stack tests on Windows #2173

Merged
merged 7 commits into from
Oct 18, 2024

Conversation

mrodm
Copy link
Contributor

@mrodm mrodm commented Oct 18, 2024

Closes #2107

Enable again the windows step that run some tests on stack commands.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@@ -30,7 +30,7 @@ function withDocker($version) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current version defined in our pipeline for docker (26.1.2) is not available in chocolatey: https://community.chocolatey.org/packages/docker-engine#versionhistory
So not too much we can do there.

Probably it could be added also the flag --allow-downgrade in case it exists the next docker version we set eventually. Or just keep it as it is now.

Copy link
Member

Choose a reason for hiding this comment

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

Current version defined in our pipeline for docker (26.1.2) is not available in chocolatey: https://community.chocolatey.org/packages/docker-engine#versionhistory
So not too much we can do there.

Is this producing any problem? Could we change to 26.1.4, that is available in chocolatey?

Copy link
Contributor Author

@mrodm mrodm Oct 18, 2024

Choose a reason for hiding this comment

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

It would be meaning to update also integrations repository to ensure they are running the same versions (docker and docker-compose).
I would leave it for a different issue/PR.

Comment on lines +64 to +66
# running this stack up command adds the required files under ~/.elastic-package to run afterwards "elastic-package stack down" successfully
# that uses docker-compose under the hood
go run . stack up -v -d
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even though this command fails, this creates the required files under ~/.elastic-package so the latest command to run stack down can run successfully.

WDYT? Is this interesting to keep it? or should we just keep stack status command as before?

Copy link
Member

Choose a reason for hiding this comment

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

The more we can test the better. Can we do anything about the failure of stack up? Does it also fail for users?

Copy link
Contributor Author

@mrodm mrodm Oct 18, 2024

Choose a reason for hiding this comment

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

For the time being, I think we cannot do so much. As for instance, there are no windows images for package-registry available (I didn't check the other services).

Copy link
Member

Choose a reason for hiding this comment

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

Ah ok, the problem was that we were not able to run the daemon in Windows in Linux mode, right?

Copy link
Contributor Author

@mrodm mrodm Oct 18, 2024

Choose a reason for hiding this comment

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

Exactly, that was the main issue why it was failing elastic-package stack up in windows steps in our CI.

@mrodm mrodm self-assigned this Oct 18, 2024
@mrodm mrodm marked this pull request as ready for review October 18, 2024 13:13
@mrodm mrodm requested a review from a team as a code owner October 18, 2024 13:13
@mrodm mrodm requested a review from jsoriano October 18, 2024 13:39
@mrodm mrodm merged commit a39b666 into elastic:main Oct 18, 2024
3 checks passed
@mrodm mrodm deleted the test-enable-windows-step branch October 18, 2024 15:49
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.

[CI] Docker commands failing in the integration test for running stack command in Windows
3 participants