Skip to content

Integrate Conductor into java-slang#95

Draft
kjw142857 wants to merge 10 commits into
mainfrom
conductor
Draft

Integrate Conductor into java-slang#95
kjw142857 wants to merge 10 commits into
mainfrom
conductor

Conversation

@kjw142857

Copy link
Copy Markdown
Contributor

No description provided.

@kjw142857 kjw142857 requested a review from martin-henz June 10, 2026 02:01
Comment thread .github/workflows/build-deploy.yml Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a minimal JavaEvaluator and associated conductor runner infrastructure to support executing Java class files encoded as base64, along with corresponding unit tests. Feedback on the changes includes: initializing the entries array in ExceptionTable to prevent runtime errors, importing EVALUATOR directly from the evaluator module to avoid using @ts-expect-error, and addressing the unused setupJVM call in JavaEvaluator which currently acts as dead code.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/jvm/exception-table.ts Outdated
Comment thread src/conductor/initialise.ts Outdated
Comment on lines +2 to +3
// @ts-expect-error — __EVALUATOR__ is replaced at build time by bundlers
import { __EVALUATOR__ } from './index'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Instead of importing __EVALUATOR__ from ./index (which does not export it) and using @ts-expect-error, you can import it directly from ./evaluator where it is declared and exported as default. This provides full type safety and avoids compilation/bundling workarounds.

Suggested change
// @ts-expect-error — __EVALUATOR__ is replaced at build time by bundlers
import { __EVALUATOR__ } from './index'
import __EVALUATOR__ from './evaluator'

Comment thread src/conductor/JavaEvaluator.ts Outdated
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
69.36% (-3.14% 🔻)
7490/10799
🔴 Branches
57.91% (-1.27% 🔻)
2483/4288
🟡 Functions
66.8% (-2.24% 🔻)
1326/1985
🟡 Lines
70.14% (-3.23% 🔻)
7056/10060
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / JavaEvaluator.ts
33.96% 7.14% 25% 34.62%
🟡 jvm/index.ts 54.55% 0% 0% 60%
🔴
... / index.ts
21.05% 100% 100% 22.64%
🔴
... / readAttributes.ts
1.19% 0% 0% 1.27%
🟢
... / attributes.ts
100% 100% 100% 100%
🔴
... / readConstants.ts
1.72% 0% 0% 1.74%
🔴
... / readField.ts
32.35% 100% 0% 33.33%
🔴
... / readMethod.ts
15.79% 100% 0% 16.67%
🔴
... / CustomSystem.ts
18.18% 100% 0% 18.18%
🟡 conductor/runner.ts 66.67% 100% 33.33% 66.67%

Test suite run success

1136 tests passing in 65 suites.

Report generated by 🧪jest coverage report action from ed2b8f6

@martin-henz martin-henz requested review from AaravMalani and removed request for martin-henz June 10, 2026 06:56

@AaravMalani AaravMalani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Apologies if the PR still in progress, I'm making it a draft for now in either case till some Conductor functionality is in place

expect(mock.outputs[0]).toMatch(/unsupported file type/)
expect(mock.errors.length).toBe(0)
})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe add a test-case where the .class works? Is the PR still in progress? For now, I'm making it a draft till some functionality is supported

Comment thread src/conductor/runner.ts Outdated
Comment thread src/jvm/exception-table.ts Outdated
Comment thread src/conductor/runner.ts Outdated
@AaravMalani AaravMalani marked this pull request as draft June 13, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants