Skip to content

Less heavyweight jvm-channel by removing dependency on engine-common #13363

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

Merged
merged 9 commits into from
Jun 27, 2025

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Jun 25, 2025

Pull Request Description

Continuation of #13356 to make dependencies of dual mode JVM related libraries less heavyweight.

  • Less heavyweight jvm-channel by removing dependency on engine-common
  • Less heavyweight jvm-interop by removing dependency of engine-common on logging-* modules

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
  • Unit tests have been written where possible.

@JaroslavTulach JaroslavTulach self-assigned this Jun 25, 2025
@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Jun 25, 2025
@JaroslavTulach JaroslavTulach changed the title Less heavyweight jvm-channel by removing dependency on slf4j Less heavyweight jvm-channel by removing dependency on engine-common Jun 25, 2025

/** Configures provided builder via {@link LoggerSetup}. */
@Override
protected final void prepareBuilderForLogging(
Copy link
Member Author

@JaroslavTulach JaroslavTulach Jun 25, 2025

Choose a reason for hiding this comment

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

This method provides the same implementation that was in ContextFactory itself. By leveling it up here we can remove dependencies of org.enso.common on LoggerSetup, etc. All of that is done here.


/**
* Provides implementation of the {@link ContextLoggingConfigurator} for the `engine-common` module.
*/
@ServiceProvider(service = ContextLoggingConfigurator.class)
Copy link
Member Author

Choose a reason for hiding this comment

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

@Akirathan, the d82036a wouldn't be necessary, if we configured native image to use --module-path - I know you reported an issue about it, I just cannot find it now...

Copy link
Collaborator

@hubertp hubertp left a comment

Choose a reason for hiding this comment

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

If that refactoring helps, go for it.

@JaroslavTulach JaroslavTulach added CI: Clean build required CI runners will be cleaned before and after this PR is built. labels Jun 26, 2025
@JaroslavTulach
Copy link
Member Author

JaroslavTulach commented Jun 26, 2025

There is supposed to be a failure in engine-common according to the CI:

[error] (engine-common / Test / test) sbt.TestsFailedException: Tests unsuccessful

but I don't see the failure in the log and I cannot reproduce it locally! Running sbt engine-common/test works. Update:

@enso-bot
Copy link

enso-bot bot commented Jun 27, 2025

Jaroslav Tulach reports a new STANDUP for yesterday (2025-06-26):

Progress: .

. It should be finished by 2025-06-30.

Discord
Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label Jun 27, 2025
@mergify mergify bot merged commit a42b6b5 into develop Jun 27, 2025
100 of 113 checks passed
@mergify mergify bot deleted the wip/jtulach/LightweightJvmChannel branch June 27, 2025 11:22
@enso-bot
Copy link

enso-bot bot commented Jun 28, 2025

Jaroslav Tulach reports a new STANDUP for yesterday (2025-06-27):

Progress: .

. It should be finished by 2025-06-30.

Discord
Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants