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

Use temp directories and error handling better in release process and release testing. #7243

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

jasongrout
Copy link
Contributor

References

Code changes

  • Make release process use temp directories with sensible prefixes.
  • Make test script actually execute a script, with error handling.

User-facing changes

Backwards-incompatible changes

None

@jasongrout jasongrout added this to the 1.2 milestone Sep 19, 2019
@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

cd $WORK_DIR

conda deactivate
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we need this here? To me it looks like we should instead be adding this to release_test.sh as well to make sure we start from a fresh env.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

conda activate appropriately nests environments these days.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i.e.,

conda activate A
conda activate B

puts you in environment B, and conda deactivate puts you back in A.

I'm always running these scripts from a fresh terminal anyway. If you're not, there's no guarantee that conda deactivate actually deactivates all environments.

Copy link
Member

Choose a reason for hiding this comment

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

I meant the remove part. I needed to call deactivate first because it wouldn't remove the active env. But point taken about using a fresh terminal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

conda now automatically removes an environment if you create one with the same name as an existing one: conda/conda#7133

@jasongrout jasongrout merged commit 4cead36 into jupyterlab:master Oct 10, 2019
@jasongrout jasongrout modified the milestones: 1.2, 2.0 Oct 10, 2019
@jasongrout
Copy link
Contributor Author

@meeseeksdev backport to 1.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Oct 10, 2019
…better in release process and release testing.
jasongrout added a commit that referenced this pull request Oct 10, 2019
…3-on-1.x

Backport PR #7243 on branch 1.x (Use temp directories and error handling better in release process and release testing.)
@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Nov 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants