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

Include Geb/Selenium dependencies for MacOS Arch64 #385

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Oct 7, 2024

The inclusion of Geb/Selenium dependencies for MacOS Arch64 was already addressed in commit ad660a5, but this specific part appears to have been missed.

This was already enabled in another part of the code in
ad660a5

It looks like this was missed.
@matrei matrei changed the title Enable inclusion of Geb/Selenium deps for Macos Arch64 Include Geb/Selenium dependencies for MacOS Arch64 Oct 7, 2024
@matrei matrei marked this pull request as draft October 7, 2024 19:00
Due to an issue with the integrationTest task during the create-app tests, the task is being temporarily disabled. The tests fail with `org.openqa.selenium.SessionNotCreatedException`, which seems to be related to the inclusion of Geb/Selenium dependencies for `OperatingSystem.MACOS_ARCH64`.

The apps in the create-app tests are created with `OperatingSystem.MACOS_ARCH64` as the operating system parameter, but will fail also for other operating systems.

This issue was likely masked before commit 8675723, when the Geb/Selenium dependencies were not included for MACOS_ARCH64. With the dependencies now included, the integrationTest task fails.
@matrei matrei marked this pull request as ready for review October 8, 2024 08:23
@matrei matrei requested a review from jamesfredley October 8, 2024 08:23
@matrei matrei merged commit 4f9ff39 into 6.2.x Oct 8, 2024
10 checks passed
@matrei matrei deleted the matrei/fix-geb-macos-arch64 branch October 8, 2024 20:08
jamesfredley added a commit that referenced this pull request Oct 9, 2024
* Add grails-app/conf/spring/resources.groovy as a default feature (#366)

* Add grails-app/conf/spring/resources.groovy as a default feature to align with pre Grails 6 versions

* Set "executable" flag on grailsw

* Update to grails wrapper 4.0.1 - includes update-wrapper command for Grails 6 (#375)

* prep for grails 6.2.1 release (#376)

* [skip ci] Release v6.2.1

* chore: Bump version to 6.2.2-SNAPSHOT

* update grails-core to 6.2.2-SNAPSHOT (#379)

* update grails-core 6.2.2-SNAPSHOT

* Use Java 11 in 6.2.x branch (#382)

* ci: Use Java 11 in 6.2.x branch

If native image is built with Java 17, application created with it will not be compatible with Java 11.

Error: LinkageError occurred while loading main class g621app.Application java.lang.UnsupportedClassVersionError: g621app/Application has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

* ci: graalvm +version -distribution

Test tip from graalvm/setup-graalvm#105 (comment)

* ci: Disable OSX Arm Native CLI

Graalvm cannot build Java 11 OSX Arm Native Image

Error: Failed to download graalvm-ce-java11-darwin-aarch64-22.3.3. Are you sure version: '22.3.3' and java-version: '11' are correct?

* Include Geb/Selenium dependencies for MacOS Arch64 (#385)

* fix: Enable inclusion of Geb/Selenium deps for Macos Arch64

This was already enabled in another part of the code in
ad660a5

It looks like this was missed.

* test: Temporarily disable integrationTest task in create-app specs

Due to an issue with the integrationTest task during the create-app tests, the task is being temporarily disabled. The tests fail with `org.openqa.selenium.SessionNotCreatedException`, which seems to be related to the inclusion of Geb/Selenium dependencies for `OperatingSystem.MACOS_ARCH64`.

The apps in the create-app tests are created with `OperatingSystem.MACOS_ARCH64` as the operating system parameter, but will fail also for other operating systems.

This issue was likely masked before commit 8675723, when the Geb/Selenium dependencies were not included for MACOS_ARCH64. With the dependencies now included, the integrationTest task fails.

---------

Co-authored-by: Scott Murphy <scott@alwaysvip.com>
Co-authored-by: grails-build <grails-build@users.noreply.github.com>
Co-authored-by: Mattias Reichel <mattias.reichel@gmail.com>
matrei added a commit that referenced this pull request Oct 28, 2024
After switching to `ContainerGebSpec`, it is no longer necessary to have the integration tests disabled.

Related: #385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants