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

Encapsulating State access by moving nodes to runtime.state package #12314

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Feb 18, 2025

Pull Request Description

Refactoring to fix #12294.

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 added the CI: No changelog needed Do not require a changelog entry for this PR. label Feb 19, 2025
main =
x_0 = 6
x_1 = 7
x_2 = (v "${aa}")*(v "${bb}")
Copy link
Member Author

@JaroslavTulach JaroslavTulach Feb 19, 2025

Choose a reason for hiding this comment

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

There seems to be no test for Runtime.value_for_uuid. Adding one in 5f0c43f, CCing @4e6. Writing it as Java method to:

  • not increase amount of Scala code
  • to reuse existing test infrastructure

Copy link
Member

@jdunkerley jdunkerley left a comment

Choose a reason for hiding this comment

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

Unblocking from libs side.

Comment on lines +56 to +57
value_for_uuid id = instrumentor_builtin "uuid" id
instrumentor_builtin op args = @Builtin_Method "Meta.instrumentor_builtin"
Copy link
Member

Choose a reason for hiding this comment

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

Do we not need these in the full distribution too?

Copy link
Member Author

Choose a reason for hiding this comment

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

The whole concept of micro distribution is flawed

Until that happens, we just have to update micro-distribution to be on par with builtins used by Standard.Base.

@JaroslavTulach JaroslavTulach force-pushed the wip/jtulach/StateNodes12294 branch from 5c4a006 to d379995 Compare February 19, 2025 15:16
new Runtime$Api$MethodPointer(moduleName, moduleName, "main"),
Option.empty(),
ScalaConversions.<String>nil().toVector()))));
var reply = context.receiveN(5, 3);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't override the timeout. Otherwise, it may randomly fail on CI.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not overriding timeout, but Java doesn't support default Scala arguments. I have to specify one.

* new Java instead of in Scala.
*/
final class RuntimeServerTesting {
static void accessRuntimeCache(TestContext context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd just make a new Junit test suite

Copy link
Member Author

Choose a reason for hiding this comment

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

That wouldn't inherit the infrastructure of RuntimeServerTest setup and teardown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-libs-API-change CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further rework State manipulation Nodes
4 participants