Skip to content

Fix failing docker packaging tests due to too long commandline #125053

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

Merged
merged 2 commits into from
Mar 20, 2025

Conversation

breskeby
Copy link
Contributor

@breskeby breskeby commented Mar 17, 2025

Use jps for now to avoid issues with too long commandline when relying on plain ps ax and terminal specific COLUMN restrictions.

Fixes #119441

@breskeby breskeby added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 v9.1.0 v8.16.6 v8.17.4 labels Mar 17, 2025
@breskeby breskeby self-assigned this Mar 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@breskeby breskeby added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Mar 17, 2025
@breskeby breskeby requested a review from Copilot March 17, 2025 19:53
Copy link

@Copilot 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 addresses failing docker packaging tests by replacing the usage of "ps ax" with a direct call to "jps" to avoid issues with overly long command lines.

  • Changed the shell command to use "/usr/share/elasticsearch/jdk/bin/jps -mlV" for better output.
Comments suppressed due to low confidence (1)

qa/packaging/src/test/java/org/elasticsearch/packaging/util/docker/Docker.java:190

  • Ensure that the specified jps binary exists in all expected docker environments; consider adding a fallback or check to prevent potential runtime errors if the binary is missing.
psOutput = dockerShell.run("bash -c '/usr/share/elasticsearch/jdk/bin/jps -mlV'").stdout();

@breskeby breskeby force-pushed the fix-packaging-tests branch 4 times, most recently from 7c2a5cd to 22dda80 Compare March 19, 2025 16:22
@breskeby breskeby force-pushed the fix-packaging-tests branch from 22dda80 to 768db15 Compare March 19, 2025 18:27
@breskeby breskeby merged commit 38f2439 into elastic:main Mar 20, 2025
15 of 19 checks passed
@breskeby breskeby deleted the fix-packaging-tests branch March 20, 2025 07:28
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts
8.16 Commit could not be cherrypicked due to conflicts
8.17 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125053

breskeby added a commit to breskeby/elasticsearch that referenced this pull request Mar 20, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
@breskeby
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x
9.0

Questions ?

Please refer to the Backport tool documentation

breskeby added a commit to breskeby/elasticsearch that referenced this pull request Mar 20, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Mar 20, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Mar 20, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
#	qa/packaging/src/test/java/org/elasticsearch/packaging/util/docker/Docker.java
@breskeby
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.18
8.17

Questions ?

Please refer to the Backport tool documentation

breskeby added a commit that referenced this pull request Mar 21, 2025
…) (#125286)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
#	qa/packaging/src/test/java/org/elasticsearch/packaging/util/docker/Docker.java
breskeby added a commit that referenced this pull request Mar 21, 2025
…) (#125284)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test

(cherry picked from commit 38f2439)

# Conflicts:
#	muted-tests.yml
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Mar 21, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
…ic#125053)

* Increate COLUMN for detecting running elasticsearch instance
* Unmute DockerTest test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport pending :Delivery/Build Build or test infrastructure :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >non-issue Team:Delivery Meta label for Delivery team v8.16.6 v8.17.4 v8.18.1 v8.19.0 v9.0.1 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] DockerTests test010Install failing
2 participants