-
Notifications
You must be signed in to change notification settings - Fork 109
Add support for github refs when downloading Ark #7645
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
E2E Tests 🚀 |
6cc8917
to
901b38b
Compare
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.
LGTM overall, worked great when I tried it out. A .ps.ark.version()
shows that Positron picks up the freshly compiled version:
> .ps.ark.version()
branch
"main"
commit
"21f11d9c"
date
"2025-08-07 12:12:36 PDT"
flavor
"release"
path
"/Users/jmcphers/git2/positron/extensions/positron-r/resources/ark/ark"
version
"0.1.201"
|
||
console.log('Building Ark from source...'); | ||
|
||
const buildOutput = await executeCommand('cargo build --release', undefined, tempDir); |
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.
Since this is for development only, would the debug build be preferable?
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 thought so as well but: posit-dev/ark#619
By the way, when R crashes the only symptom surfacing from startLanguageRuntime()
is an error about "http request failed". I assume this is from supervisor. https://github.com/posit-dev/positron/actions/runs/16799688806/job/47580232540#step:12:448
Starting language runtime failed. Reason: HTTP request failed
Would it be helpful to open an issue about this?
Log output Run Ark to check it's runnable Build for release
This reverts commit 901b38b.
4a68677
to
0eaf579
Compare
0eaf579
to
3615e4e
Compare
Written with the help of Claude as agent.
Adds support for specifying Ark versions as github refs in
package.json
:The github revision is downloaded, built, and installed.
This allows CI-testing a branch in the Positron repo against a branch in the Ark repo without having to release Ark first. Releasing just for the purpose of testing is really not ideal as the feature might not be working well yet and other developers might need to do further Ark releases to make progress with their own work.
To prevent committing a dev ref that might have been forgotten in the
package.json
file, a github action watches changes to this file and checks that a release version is used.Release Notes
New Features
Bug Fixes
QA Notes