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

Upgrade checkout and java-setup actions to version v4 #38550

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

mcruzdev
Copy link
Contributor

@mcruzdev mcruzdev commented Feb 2, 2024

Fixes #38549

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Feb 2, 2024
@gastaldi
Copy link
Contributor

gastaldi commented Feb 2, 2024

Nice! Can you also bump actions/checkout to v4? Thanks

@gastaldi
Copy link
Contributor

gastaldi commented Feb 2, 2024

BTW some tests are going to fail because of this change, you need to run mvn clean verify -Dsnap in the integration-tests/maven directory

@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from 4a7c84f to 92efb53 Compare February 2, 2024 20:01
@mcruzdev mcruzdev changed the title Upgrade actions/setup-java to version v4 Upgrade checkout and java-setup actions to version v4 Feb 2, 2024
@mcruzdev mcruzdev marked this pull request as ready for review February 2, 2024 20:01
@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from 92efb53 to 01fefc2 Compare February 2, 2024 20:02
@mcruzdev
Copy link
Contributor Author

mcruzdev commented Feb 2, 2024

Hi @gastaldi I executed the command into the specified module and works well. I upgraded the checkout action too.

@gastaldi
Copy link
Contributor

gastaldi commented Feb 2, 2024

Ah sorry, I think the correct command is something like:
mvn clean install -Dsnap -Dit.test=CreateExtensionMojoIT -Dtest=CreateExtensionMojoIT

Error:  Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 30.89 s <<< FAILURE! -- in io.quarkus.maven.it.CreateExtensionMojoIT
Error:  io.quarkus.maven.it.CreateExtensionMojoIT.testCreateQuarkiverseExtension(TestInfo) -- Time elapsed: 6.987 s <<< FAILURE!
java.lang.AssertionError: 
[Snapshot is not matching (use -Dsnap to update it automatically): CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_build.yml] 
Path:
  target/test-classes/output/create-quarkiverse-extension/quarkus-my-quarkiverse-ext/.github/workflows/build.yml
and path:
  src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_build.yml
do not have same content:

Changed content at line 47:
expecting:
  ["      - uses: actions/checkout@v3"]
but was:
  ["      - uses: actions/checkout@v4"]

Changed content at line 49:
expecting:
  ["        uses: actions/setup-java@v3"]
but was:
  ["        uses: actions/setup-java@v4"]

	at io.quarkus.devtools.testing.SnapshotTesting.lambda$assertThatMatchSnapshot$0(SnapshotTesting.java:183)
	at io.quarkus.devtools.testing.SnapshotTesting.withSnapshotsDir(SnapshotTesting.java:97)
	at io.quarkus.devtools.testing.SnapshotTesting.assertThatMatchSnapshot(SnapshotTesting.java:160)
	at io.quarkus.devtools.testing.SnapshotTesting.assertThatMatchSnapshot(SnapshotTesting.java:136)
	at io.quarkus.maven.it.CreateExtensionMojoIT.testCreateQuarkiverseExtension(CreateExtensionMojoIT.java:118)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

This comment has been minimized.

@gastaldi
Copy link
Contributor

gastaldi commented Feb 3, 2024

Can you squash those commits before we merge this?

@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from 6fbdd60 to bcb67ba Compare February 3, 2024 00:42
@mcruzdev
Copy link
Contributor Author

mcruzdev commented Feb 3, 2024

I accidentally made a merge. Now, is ok!

@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from 8baadff to e58ca7d Compare February 3, 2024 00:44

This comment has been minimized.

@mcruzdev
Copy link
Contributor Author

mcruzdev commented Feb 3, 2024

I am fixing the broken tests.

EDIT: Done @gastaldi

This comment has been minimized.

@mcruzdev
Copy link
Contributor Author

mcruzdev commented Feb 3, 2024

@gastaldi this issue is related to the pull request or is just a flaky test as quarkus said?

@gastaldi
Copy link
Contributor

gastaldi commented Feb 3, 2024

The ones in independent-projects/tools/devtools-testing seem related to this change 🤔

@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from ebc465b to 4f408ce Compare February 3, 2024 20:22
@mcruzdev mcruzdev requested a review from gastaldi February 4, 2024 01:53
@gastaldi
Copy link
Contributor

gastaldi commented Feb 4, 2024

Please squash all commits before we merge this

This comment has been minimized.

@mcruzdev mcruzdev force-pushed the upgrade-actions-to-v4 branch from ff23cf7 to 94d6966 Compare February 5, 2024 13:33
@mcruzdev
Copy link
Contributor Author

mcruzdev commented Feb 5, 2024

Hi @gastaldi, done! Thank you for the support!

@gastaldi gastaldi added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Feb 5, 2024
Copy link

quarkus-bot bot commented Feb 5, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 94d6966.

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
✔️ JVM Tests - JDK 17 Logs Raw logs 🚧
JVM Tests - JDK 21 Build Failures Logs Raw logs 🚧

Full information is available in the Build summary check run.

Failures

⚙️ JVM Tests - JDK 21 #

- Failing: integration-tests/virtual-threads/jms-virtual-threads 

📦 integration-tests/virtual-threads/jms-virtual-threads

io.quarkus.it.vthreads.jms.VirtualThreadTest.testAlert - History - More details - Source on GitHub

java.lang.RuntimeException: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.artemis.core.deployment.DevServicesArtemisProcessor#startArtemisDevService threw an exception: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=quay.io/artemiscloud/activemq-artemis-broker:1.0.18, imagePullPolicy=DefaultPullPolicy(), imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@91aba9e)
	at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1367)
	at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:362)
	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:333)
	at io.quarkus.artemis.core.deployment.DevServicesArtemisProcessor.lambda$startArtemis$1(DevServicesArtemisProcessor.java:252)
	at java.base/java.util.Optional.or...

Flaky tests - Develocity

⚙️ JVM Tests - JDK 17

📦 extensions/smallrye-reactive-messaging-kafka/deployment

io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase.sseStream - History

  • Assertion condition defined as a io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase Expecting size of: [] to be greater than or equal to 2 but was 0 within 10 seconds. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: 
Assertion condition defined as a io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev.KafkaDevServicesDevModeTestCase 
Expecting size of:
  []
to be greater than or equal to 2 but was 0 within 10 seconds.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)

@gastaldi gastaldi merged commit cf7ae80 into quarkusio:main Feb 5, 2024
49 of 50 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.9 - main milestone Feb 5, 2024
@quarkus-bot quarkus-bot bot added kind/enhancement New feature or request and removed triage/waiting-for-ci Ready to merge when CI successfully finishes labels Feb 5, 2024
@gsmet gsmet modified the milestones: 3.9 - main, 3.7.2 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven area/platform Issues related to definition and interaction with Quarkus Platform kind/enhancement New feature or request triage/flaky-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade actions/setup-java to v4
3 participants