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

chore: removing it profile #63

Merged
merged 17 commits into from
Dec 11, 2024
Merged

chore: removing it profile #63

merged 17 commits into from
Dec 11, 2024

Conversation

franciscolopezsancho
Copy link
Contributor

Bringing https://github.com/lightbend/akka-javasdk/pull/652

Changes

  • the parent pom
  • the archetype
  • samples and READMEs
  • docs

@github-actions github-actions bot added documentation documentation related java-sdk labels Dec 6, 2024
Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

This is looking really good. Much nicer!

I left a few comments related to what we discussed today.

@@ -440,7 +440,7 @@ jobs:
fi
if [ true == '${{matrix.it}}' ]; then
${PRE_CMD}
KALIX_TESTKIT_DEBUG=true mvn verify -Pit --no-transfer-progress
KALIX_TESTKIT_DEBUG=true mvn verify --no-transfer-progress
Copy link
Member

Choose a reason for hiding this comment

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

we can change this to AKKA_TESTKIT_DEBUG, but later.

@@ -11,7 +11,7 @@
* It interacts with the components of the application using a componentClient
* (already configured and provided automatically through injection).
*/
public class IntegrationTest extends TestKitSupport {
public class HelloWorldIT extends TestKitSupport {
Copy link
Member

@octonato octonato Dec 6, 2024

Choose a reason for hiding this comment

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

We can keep this as IntegrationTest because IntegrationTest is excluded from the mvn test. Also, HelloWorldIT is completely unrelated with the archetype.

IMO, we should prefer suffixing the test with IntegrationTest instead of IT in all cases because it makes it more obvious.

I understand that the folks from the fail failsafe plugin had to choose for IT, because they don't know where it will be used. So they needed to step out of *IntegrationTest to avoid conflicts with the more general *Test.

But our parent pom configures the failsafe plugin and the surefire plugin. So we don't need to favor IT.

Then we have:

  • *Test for unit tests, picked by surefire. *IntegratrionTest are excluded.
  • *IntegratrionTest and all the variants with IT (as originally define by failsafe plugin). Those will be picked by failsafe plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, my idea was to follow the convention but I think you make a valid point. It's for sure clearer.

akka-javasdk-maven/akka-javasdk-parent/pom.xml Outdated Show resolved Hide resolved
akka-javasdk-maven/akka-javasdk-parent/pom.xml Outdated Show resolved Hide resolved
@@ -51,7 +51,7 @@
import static org.assertj.core.api.Assertions.assertThat;

@ExtendWith(Junit5LogCapturing.class)
public class SdkIntegrationTest extends TestKitSupport {
Copy link
Member

Choose a reason for hiding this comment

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

Let's revert them all back to *IntegrationTest as per other comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright.

docs/src/modules/java/pages/event-sourced-entities.adoc Outdated Show resolved Hide resolved
docs/src/modules/java/pages/key-value-entities.adoc Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@franciscolopezsancho franciscolopezsancho marked this pull request as ready for review December 7, 2024 20:34
Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

This is really nice DX improvement!

@octonato octonato merged commit ed4bded into main Dec 11, 2024
24 checks passed
@octonato octonato deleted the chore_removing_it_profile branch December 11, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation related java-sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants