-
Notifications
You must be signed in to change notification settings - Fork 13
Forward envvars from JSON payload #306
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
base: main
Are you sure you want to change the base?
Conversation
@cscheid if you're wanting to run this in CI in quarto-dev/quarto-cli#12621 then temporarily committing a |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
==========================================
+ Coverage 79.40% 79.42% +0.01%
==========================================
Files 39 39
Lines 2064 2066 +2
==========================================
+ Hits 1639 1641 +2
Misses 425 425 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks, I will take you on your offer. I'm trying to do this locally and failing. I've confirmed that the branch I'm working on fails without this version of QuartoNotebookRunner:
However, adding the following [[QuartoNotebookRunner]]
git-tree-sha1 = "57f9bd985428b9112fa258a7d889eb8cc90db19d"
uuid = "4c0109c6-14e9-4c88-93f0-2b974d3468f4"
version = "0.17.3"
repo-rev = "mh/env"
repo-url = "https://github.com/PumasAI/QuartoNotebookRunner.jl" It's almost certain that I'm doing something wrong, but I'm not sure what that would be. |
Looks like you're installing QNR into the notebook's environment rather than the server environment. Needs to be installed into this one: https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/julia |
Ok, I think I got it to update, but I don't think the environment is being updated through correctly:
|
Does |
This commit is 57f9... so I think the answer is "just 0.17.3" |
Isn't the quarto CI running a sufficiently new Julia version that a
|
Locally you'd do something like:
to change it. |
Yeah, they're on 1.11 then that'll work as well |
@cscheid did you get a chance to try this out to see whether it was doing what had wanted it to do? |
@MichaelHatherly I'm sorry for the delay. I was out of commission for the last 10 days and I'm getting back today. I'll report back here as soon as I have updates (hopefully today even.) |
Hi! This worked 🎉
|
This linked PR is changing the way that several
QUARTO_*
environment variables are forwarded to the engine. Instead of just being available viaENV
they are passed in a.env
field in the options JSON that Quarto passes to QNR. Pick out the env vars if they exist and add them to the notebook process's env vars.Cc @cscheid, this will provide the fix needed for quarto-dev/quarto-cli#12621.