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

Remove interactive confirmation for installing experimental packages #37995

Merged
merged 1 commit into from
May 25, 2024

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented May 12, 2024

This removes some complexity and eliminates the pitfall that Sage is waiting for confirmation from the user but the query is hidden in long terminal output from other package installations.
With this PR we just exit with an error and tell users what to do.

Fixes #35670.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

Documentation preview for this PR (built with commit 9e62617; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@jhpalmieri
Copy link
Member

Is it worth keeping the old warning "This probably won't work at all for you" (etc.)? The new version has the distinct advantage that the error appears in the log file, whereas the old version left an empty log file if you didn't said "y" to the question. (I'm guessing that the error is just as likely to get buried in other output, so it's great that it can now appear somewhere.)

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 13, 2024

Is it worth keeping the old warning "This probably won't work at all for you" (etc.)?

I don't think this kind of warning adds anything

@jhpalmieri
Copy link
Member

Okay, positive review.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 14, 2024

Thanks!

vbraun pushed a commit to vbraun/sage that referenced this pull request May 15, 2024
…rimental packages

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

This removes some complexity and eliminates the pitfall that Sage is
waiting for confirmation from the user but the query is hidden in long
terminal output from other package installations.
With this PR we just exit with an error and tell users what to do.

Fixes sagemath#35670.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->

URL: sagemath#37995
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request May 18, 2024
…rimental packages

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

This removes some complexity and eliminates the pitfall that Sage is
waiting for confirmation from the user but the query is hidden in long
terminal output from other package installations.
With this PR we just exit with an error and tell users what to do.

Fixes sagemath#35670.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37995
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request May 18, 2024
…rimental packages

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

This removes some complexity and eliminates the pitfall that Sage is
waiting for confirmation from the user but the query is hidden in long
terminal output from other package installations.
With this PR we just exit with an error and tell users what to do.

Fixes sagemath#35670.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37995
Reported by: Matthias Köppe
Reviewer(s):
@vbraun vbraun merged commit bcf2709 into sagemath:develop May 25, 2024
14 of 17 checks passed
@mkoeppe mkoeppe added this to the sage-10.4 milestone May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sage build stops waiting for response
3 participants