Skip to content
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

Trigger a build of release binder env on mybinder.org #156

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Dec 13, 2021

The goal is to reduce the starting time for real users. Indeed,
according to the mybinder documentation, the build step occurs only the
first time the binderhub launches a jupyter session for a repo with an updated ref. Cf https://mybinder.readthedocs.io/en/latest/about/about.html#what-factors-influence-how-long-it-takes-a-binder-session-to-start

We use a script taken from https://github.com/scikit-hep/pyhf/blob/master/binder/trigger_binder.sh
to ping the endpoints of each binderhub in the mybinder.org federation.
(cf https://mybinder.readthedocs.io/en/latest/about/federation.html)

We do not need to stay connected to the binderhub for the build to go on, so the trigger step in the workflow takes less than 1' as one can see in the workflow generated by a fake release on my fork: https://github.com/nhuet/scikit-decide/runs/4505623076?check_suite_focus=true
We can see that the build has been done for the commit corresponding to the updated binder environment:
https://mybinder.org/v2/gh/nhuet/scikit-decide/a0e09be06f993f0000b4d6c4a2908f7eec3e266f

(Here you have to trust me for not having follow this link before the workflow took place :)

The goal is to reduce the starting time for real users. Indeed,
according to the mybinder documentation, the build step occurs only the
first time the binderhub launches a jupyter session for a repo with an updated ref. Cf https://mybinder.readthedocs.io/en/latest/about/about.html#what-factors-influence-how-long-it-takes-a-binder-session-to-start

We use a script taken from https://github.com/scikit-hep/pyhf/blob/master/binder/trigger_binder.sh
to ping the endpoints of each binderhub in the mybinder.org federation.
(cf https://mybinder.readthedocs.io/en/latest/about/federation.html)
@@ -505,6 +505,13 @@ jobs:
# switch back to original branch
git checkout $TAG_NAME

- name: Trigger a build on each BinderHub deployments in the mybinder.org federation
run: |
bash scripts/trigger_binder.sh https://gke.mybinder.org/build/gh/nhuet/scikit-decide/${BINDER_RELEASE_ENV_SHA1}
Copy link
Contributor

Choose a reason for hiding this comment

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

should not be nhuet there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😱

@nhuet
Copy link
Contributor Author

nhuet commented Dec 14, 2021

Retesting release workflow after correction of repository name in https://github.com/nhuet/scikit-decide/actions/runs/1576990657

@galleon galleon merged commit d8889d0 into airbus:master Dec 14, 2021
@nhuet nhuet deleted the nh/trigger_binder_build branch December 16, 2021 09:44
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