-
Notifications
You must be signed in to change notification settings - Fork 334
Test Standard.Microsoft in (mocked) dual JVM mode
#14037
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
Conversation
distribution/lib/Standard/Microsoft/0.0.0-dev/src/SQLServer_Connection.enso
Show resolved
Hide resolved
distribution/lib/Standard/Microsoft/0.0.0-dev/src/SQLServer_Connection.enso
Outdated
Show resolved
Hide resolved
…oftServerInHotSpot
- While trying to understand the `HideableValue` usages - which is not working fine with #14037 yet - trying to _lower the conceptual scope_ - by encapsulating various `HideableValue` implementations - and exposing only factories and virtual methods on the `HideableValue`
distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Microsoft/0.0.0-dev/src/SQLServer_Connection.enso
Show resolved
Hide resolved
2736f70 to
d4a1ac7
Compare
build.sbt
Outdated
| `std-aws-polyglot-root`.listFiles("*.jar").map(_.getAbsolutePath()) ++ | ||
| `std-microsoft-polyglot-root` | ||
| .listFiles("*.jar") | ||
| .map(_.getAbsolutePath()) ++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- for now we want to keep building with
Standard.Microsoftlibraries processed - thus 20529f8 returns it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdunkerley has asked, how to test these changes in the IDE?
- once this PR is integrated, then one can opt-in by
- running in
--jvmmode - turning the mocking on by
--vm.D=polyglot.enso.classLoading=Standard.Microsoft:guest,hosted - just pass the options via
ENSO_JVM_OPTSand that's it!
- running in
- since 8af9c47 one can rebuild with
ENSO_LAUNCHER=-ms sbt buildEngineDistribution
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Result_Set.enso
Show resolved
Hide resolved
vitvakatu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI changes
so far I haven't reproduced it locally, so I am trying this: enso$ ENSO_LAUNCHER=test ./run backend build
enso$ ./run backend test std-mock-dual-microsoftlet's see if it finally reproduces... So the reproducer is as simple as: and the problem is in |
I tried various ways to fix it, but for now I decided to just make the tests pending. |
jdunkerley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits but generally looks good
| handle t = Panic.catch t handler=(_-> Error.throw (Incomparable_Values.Error Nothing Nothing)) | ||
| handle t = Panic.catch t handler=_-> | ||
| Error.throw (Incomparable_Values.Error Nothing Nothing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to place breakpoint on this Error.throw only. With our current tooling, it can only be done when it is on separate line.
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/JDBC_Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/JDBC_Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/JDBC_Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/JDBC_Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Statement_Setter.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Microsoft/0.0.0-dev/src/Internal/SQLServer_Dialect.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Microsoft/0.0.0-dev/src/SQLServer_Connection.enso
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.0.0-dev/src/Internal/In_Memory_Table_Implementation.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.0.0-dev/src/Internal/Java_Problems.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/JDBC_Connection.enso
Show resolved
Hide resolved
|
Jaroslav Tulach reports a new STANDUP for yesterday (2025-10-01): Progress: .
|
Co-authored-by: James Dunkerley <[email protected]>
…enso into wip/jtulach/MicrosoftServerInHotSpot
Co-authored-by: James Dunkerley <[email protected]>
Co-authored-by: James Dunkerley <[email protected]>
…enso into wip/jtulach/MicrosoftServerInHotSpot
hubertp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to click "submit review" so here is a late review.
| "type": "lldb", | ||
| "request": "launch", | ||
| "preLaunchTask": "Rust Gen CI", | ||
| "name": "Rust Gen CI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds like something that could be added to dev docs rather than only be mentioned (and forgotten) in a PR comment.
| image debugger_ | ||
| - using `native,-ls` disables support for _language server_ in the generated | ||
| binary | ||
| - using `native,-ms` **opts-out** for `Standard.Microsoft` library being |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the -ms short name is cryptic. Could we use sth with stdlib prefix, say -stdlib-ms or -stdlib-microsoft?
| return obj != null | ||
| && iop.hasLanguage(obj) | ||
| && iop.getLanguage(obj).getSimpleName().equals("OtherLanguage"); | ||
| && iop.getLanguage(obj).getSimpleName().equals("EpbLanguage"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we could avoid relying on strings to determine that?
|
Jaroslav Tulach reports a new STANDUP for yesterday (2025-10-02): Progress: .
|
Pull Request Description
Standard.Microsoftinto "dual JVM" mode library #13804test/Microsoft_TestsChecklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,