Skip to content

Conversation

kaisecheng
Copy link
Contributor

@kaisecheng kaisecheng commented Jul 16, 2025

This commit removes the UBI acceptance test.
The default base image is UBI. Full flavour test has covered UBI flavour

Fixes: #17830

This commit removes the unwanted warning which pollutes the plugins list

installed_plugins is polluted with ["pass JVM parameters via LS_JAVA_OPTS", "logstash-codec-avro", "logstash-codec-cef", ... ]

@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Jul 16, 2025

This pull request does not have a backport label. Could you fix it @kaisecheng? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@kaisecheng kaisecheng added the backport-8.19 Automated backport to the 8.19 branch label Jul 16, 2025
@donoghuc
Copy link
Member

hmm, something must have changed in the UBI image? If that base image is setting JAVA_OPTS I think any consumer of the container would get an annoying message every time they use logstash. Maybe we should unset that in the container build process?

@donoghuc
Copy link
Member

Also, is it expected that we run the trim task for containers other than observability SRE?

@donoghuc
Copy link
Member

Not seeing it set in the ubi base

➜  build git:(restore-cgi-pin) ✗ docker image ls
REPOSITORY                                                     TAG               IMAGE ID       CREATED          SIZE
redhat/ubi9-minimal                                            latest            6d5a6576c838   28 hours ago     151MB
➜  build git:(restore-cgi-pin) ✗ docker run -it 6d5a6576c838 /bin/bash
[root@251cbbf98cae /]# echo $JAVA_OPTS

[root@251cbbf98cae /]# printenv | grep JAVA

@kaisecheng
Copy link
Contributor Author

Since v9, the full / default image use UBI as base image, so "full flavour acceptance" has covered UBI in main. The failures are from all docker test, which is mapped to "ubi flavour acceptance". I think we should clean up UBI from exhaustive test for main and v9

For v8, the "full" use Ubuntu as base image and UBI flavour is still available.

@kaisecheng kaisecheng added backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches and removed backport-8.19 Automated backport to the 8.19 branch labels Jul 16, 2025
# https://github.com/elastic/logstash/pull/17125
next false if line.match?(/^Using (system java|bundled JDK|LS_JAVA_HOME defined java)/)

next false if line.match?(/pass JVM parameters via LS_JAVA_OPTS/)
Copy link
Member

Choose a reason for hiding this comment

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

If this warning is being printed, that means the environment has a legitimate issue IMO. JAVA_HOME should not be set, if it is somewhere in our build process (or even worse our final container artifacts) we should find that and fix it. Ignoring it here seems to be papering over a real problem.

Copy link
Contributor Author

@kaisecheng kaisecheng Jul 16, 2025

Choose a reason for hiding this comment

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

The issue is not related to JAVA_HOME, but rather to JAVA_OPTS

I don't think any base image set JAVA_OPTS. It is the project bash script running in some repeated way in "all docker tests" and set the JAVA_OPTS, probably here

Maybe "all docker tests" was part of the CI in the past, but it is not anymore.

Just confirmed the CI has passed the failing point by removing this line. But I am going to revert it, because UBI test should be removed

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, i meant JAVA_OPTS that was a typo, i was also looking at JAVA_HOME for something else 🤦

The ubi removal makes sense!

@kaisecheng
Copy link
Contributor Author

@kaisecheng kaisecheng changed the title [CI] fix observabilitySRE in docker acceptance test [CI] Remove UBI docker acceptance test Jul 16, 2025
@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@kaisecheng kaisecheng merged commit f4c195c into main Jul 16, 2025
13 checks passed
@kaisecheng kaisecheng deleted the fix_ObsSRE_build branch July 16, 2025 21:50
@github-actions
Copy link
Contributor

@Mergifyio backport 9.0 9.1

@mergify
Copy link
Contributor

mergify bot commented Jul 16, 2025

backport 9.0 9.1

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 16, 2025
This commit removes the UBI acceptance test.
The default base image is UBI. Full flavour test has covered UBI flavour

Fixes: #17830
(cherry picked from commit f4c195c)
mergify bot pushed a commit that referenced this pull request Jul 16, 2025
This commit removes the UBI acceptance test.
The default base image is UBI. Full flavour test has covered UBI flavour

Fixes: #17830
(cherry picked from commit f4c195c)
kaisecheng added a commit that referenced this pull request Jul 16, 2025
This commit removes the UBI acceptance test.
The default base image is UBI. Full flavour test has covered UBI flavour

Fixes: #17830
(cherry picked from commit f4c195c)

Co-authored-by: kaisecheng <[email protected]>
kaisecheng added a commit that referenced this pull request Jul 16, 2025
This commit removes the UBI acceptance test.
The default base image is UBI. Full flavour test has covered UBI flavour

Fixes: #17830
(cherry picked from commit f4c195c)

Co-authored-by: kaisecheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Exhaustive tests failed after forwardport observability-sre internal distro

3 participants