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

remove minor versions for tomcat #1669

Merged
merged 1 commit into from
Sep 19, 2024
Merged

remove minor versions for tomcat #1669

merged 1 commit into from
Sep 19, 2024

Conversation

dirkmueller
Copy link
Member

there should be "branch" (which is major version) and fullversion-flavor.

dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
Copy link

github-actions bot commented Sep 13, 2024

Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-1669
Changes pushed to branch 6-1669 as commit e426766840703de57a53eca181470a8a2c9225b2
Build succeeded ✅

Build Results

Repository images in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for x86_64: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for aarch64: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for s390x: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for ppc64le: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for x86_64: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for aarch64: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for s390x: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP6:6-1669 for ppc64le: current state: published
Build results:

package name status build log
sac-apache-tomcat-10-java21-image ⛔ excluded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.6 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1669/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1669/containerfile/containers/apache-tomcat:10.1-openjdk21

Copy link

github-actions bot commented Sep 13, 2024

Created a staging project on OBS for 7: home:defolos:BCI:Staging:SLE-15-SP7:7-1669
Changes pushed to branch 7-1669 as commit f906fcb36abde4d14add7e1283d39ef5d2942102
Build succeeded ✅

Build Results

Repository images in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for x86_64: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log
kiwi-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for aarch64: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log
kiwi-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for s390x: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log
kiwi-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for ppc64le: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log
kiwi-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for x86_64: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log
kiwi-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for aarch64: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log
kiwi-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for s390x: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log
kiwi-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP7:7-1669 for ppc64le: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log
kiwi-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-1669/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-1669/containerfile/bci/bci-init:15.7
  • registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-1669/containerfile/bci/kiwi:9
⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️

Copy link

github-actions bot commented Sep 13, 2024

Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669
Changes pushed to branch Tumbleweed-1669 as commit 762f98e43496a9414b3c47ddc79372dd7c142d11
Build succeeded ✅

Build Results

Repository images in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669 for x86_64: current state: published
Build results:

package name status build log
apache-tomcat-10-java-17-image ⛔ excluded live log
apache-tomcat-10-java-21-image ⛔ excluded live log
apache-tomcat-10-java-22-image ⛔ excluded live log
apache-tomcat-9-java-17-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669 for aarch64: current state: published
Build results:

package name status build log
apache-tomcat-10-java-17-image ⛔ excluded live log
apache-tomcat-10-java-21-image ⛔ excluded live log
apache-tomcat-10-java-22-image ⛔ excluded live log
apache-tomcat-9-java-17-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669 for x86_64: current state: published
Build results:

package name status build log
apache-tomcat-10-java-17-image ✅ succeeded live log
apache-tomcat-10-java-21-image ✅ succeeded live log
apache-tomcat-10-java-22-image ✅ succeeded live log
apache-tomcat-9-java-17-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1669 for aarch64: current state: published
Build results:

package name status build log
apache-tomcat-10-java-17-image ✅ succeeded live log
apache-tomcat-10-java-21-image ✅ succeeded live log
apache-tomcat-10-java-22-image ✅ succeeded live log
apache-tomcat-9-java-17-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1669/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1669/containerfile/opensuse/apache-tomcat:latest

dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
dcermak pushed a commit that referenced this pull request Sep 13, 2024
],
cmd=[
f"/usr/{'libexec' if os_version in (OsVersion.TUMBLEWEED, OsVersion.SLE16_0) else 'lib'}/tomcat/server",
"start",
],
exposes_tcp=[8080],
env={
"TOMCAT_MAJOR": tomcat_major,
"TOMCAT_MAJOR": math.floor(tomcat_ver),
Copy link
Member

Choose a reason for hiding this comment

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

nit: int(tomcat_ver) achieves the same thing and does not require an extra library import.

(10, OsVersion.TUMBLEWEED, 22),
(10, OsVersion.TUMBLEWEED, 21),
(10, OsVersion.TUMBLEWEED, 17),
for tomcat_ver, os_version, jre_version in (
Copy link
Member

Choose a reason for hiding this comment

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

if you are hardcoding versions already, why not include tomcat_ver_major and avoid any math conversions?

Copy link
Member Author

Choose a reason for hiding this comment

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

deriving it from one value is more DRY than duplicating it in the tuple, imho.

Copy link
Collaborator

@dcermak dcermak left a comment

Choose a reason for hiding this comment

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

Floats are imho not the right way to handle version numbers due to potential representation & rounding issues. I'd suggest to use either strings or instances of packaging.Version

dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
Copy link

github-actions bot commented Sep 19, 2024

Created a staging project on OBS for 16.0: home:defolos:BCI:Staging:16.0:16.0-1669
Changes pushed to branch 16.0-1669 as commit 169fed590dc170b59daeb6066a118954a72acd22
⚠️⚠️ Project and Branch have been deleted ⚠️⚠️
⚠️⚠️ Project and Branch have been deleted ⚠️⚠️
⚠️⚠️ Project and Branch have been deleted ⚠️⚠️

dcermak pushed a commit that referenced this pull request Sep 19, 2024
Copy link

github-actions bot commented Sep 19, 2024

Created a staging project on OBS for 5: home:defolos:BCI:Staging:SLE-15-SP5:5-1669
Changes pushed to branch 5-1669 as commit 37b4b5b68c98bd43f9464bc33d355c4d69283d4b
Build succeeded ✅

Build Results

Repository images in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for x86_64: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for aarch64: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for s390x: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for ppc64le: current state: published
Build results:

package name status build log
init-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for x86_64: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for aarch64: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for s390x: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:SLE-15-SP5:5-1669 for ppc64le: current state: published
Build results:

package name status build log
init-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.5 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1669/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1669/containerfile/bci/bci-init:15.5
⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️

dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
Copy link
Collaborator

@dcermak dcermak left a comment

Choose a reason for hiding this comment

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

LGTM, only have one nitpick

src/bci_build/package/apache_tomcat.py Outdated Show resolved Hide resolved
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
We should only have the tags for the listed product versions
and their patch releases.
dcermak pushed a commit that referenced this pull request Sep 19, 2024
dcermak pushed a commit that referenced this pull request Sep 19, 2024
@dcermak dcermak merged commit 146630d into main Sep 19, 2024
9 checks passed
@dcermak dcermak deleted the tomcat_no_minor branch September 19, 2024 16:51
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.

3 participants