-
Notifications
You must be signed in to change notification settings - Fork 148
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
[squash] Jupyterlab3 CI updates #454
Conversation
c8f924f
to
304edb7
Compare
I was thinking about making release workflow as separate from test, with some fancy trigger. |
b44e168
to
6ac92ef
Compare
I think the actual uploading is a separate concern. With this approach, I'm just ensuring we are testing exactly what we would be shipping. The release step could pull from this artifact, though I still am not super-excited about putting my pypi/npm creds into CI, no matter the encryption, etc. Another approach is to create github "draft" releases from tags, and then
If you do want to put creds in, a nice approach is posting a "draft" github release, which you can then Push The Button to promote it, and have that make the magic happen. |
Right. Though it does not that bad - no need for full credentials, just API token which may be limited in scope to only one project, as per https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ Edit: also missed one lint issue earlier - sorry! |
Right, but I like those creds to only be available to the release job, and not to every random npm post-install script and github action. |
4f9c475
to
6d49e83
Compare
Calling it for the day. I updated the pr description with all the stuff I've been fiddling with. This is probably ready to be merged into #452, if there's nothing overly-offensive happening, but haven't retargeted as:
Still no update on conda-forge/jupyter_server-feedstock#34 for py36 builds, maybe the PR fairy will come over night 🧚 . |
Timings look good... getting close to 10 minutes saved on the slowest windows excursion, and inching us back from the dreaded hour. Future versions of Without doing more entropy plumbing with make/doit (e.g. pre-solved lock files), I don't think I can get it down much more... I guess the Will re-target, and will be off open source stuff (but occasionally checking email) for the next $DAY_JOB worth of hours... I've no idea what started on fire over the holidays! |
"packageName": "jupyter_lsp", | ||
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyter_lsp" | ||
"packageName": "jupyterlab_lsp", | ||
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_lsp" |
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.
Good catch
@@ -130,7 +129,7 @@ | |||
"discovery": { | |||
"server": { | |||
"base": { | |||
"name": "jupyter-lsp" | |||
"name": "jupyterlab_lsp" |
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.
Well, if I publish another npm release and someone installs from npm, jupyter-lsp
would suffice. Otherwise they would not see this anyway.
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.
yeah, who knows. just thought of it while fixing the other one...
acceptance: | ||
runs-on: ${{ matrix.os }}-latest | ||
name: ${{ matrix.os }} py${{ matrix.python }} node${{ matrix.nodejs }} | ||
name: atest ${{ matrix.os }} py${{ matrix.python }} |
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.
Not a fan of atest
abbreviation, but we already use it so it can stay I guess.
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.
we can call it whatever you like! but shorter is better so we can get some info off the UI. robot
, browser
, etc.
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.
if they could be emoji, i'd be all for 🤖
Great work, I like the idea with building once! I restarted the CI to make sure it works with 3.6. |
omg so green 🤯 |
References
Code changes
Packaging/metdata
install.json
andjupyterlab-lsp/package.json
to point at the new package nameCI
build
step to do the all the distribution builds, uploads for downstream jobs+~4min
before anyatest
jobs start--find-links
and--no-index
to installwhl
s without knowing the version-~3min
-~2min
node_modules
, falls back to.yarn-packages
-~4min
jedi
andtectonic
cache$HOME
postBuild
to (probably) workUser-facing changes
n/a
Backwards-incompatible changes
n/a
Chores