Skip to content

Replace curl by checkout-files#3

Merged
soehms merged 1 commit intosync_labelsfrom
sync_labels_checkout_files
Mar 13, 2023
Merged

Replace curl by checkout-files#3
soehms merged 1 commit intosync_labelsfrom
sync_labels_checkout_files

Conversation

@soehms
Copy link
Copy Markdown
Owner

@soehms soehms commented Mar 13, 2023

📚 Description

Replace the installation of the Python script via curl by Bhacaz/checkout-files@v2.

📝 Checklist

  • I have made sure that the title is self-explanatory and the description concisely explains the PR.
  • I have linked an issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Mar 13, 2023

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Starting tests for sync_labels

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action opened

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action reopened

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action closed

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action labeled

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Label s: positive review can not be added. Please use the corresponding functionality of GitHub

@github-actions
Copy link
Copy Markdown

Label s: needs review can not be removed. Please add the state-label which should replace it

1 similar comment
@github-actions
Copy link
Copy Markdown

Label s: needs review can not be removed. Please add the state-label which should replace it

@github-actions
Copy link
Copy Markdown

Label s: positive review can not be added due to s: needs work!

@github-actions
Copy link
Copy Markdown

Label s: positive review can not be removed. Please add the state-label which should replace it

@github-actions
Copy link
Copy Markdown

Label s: positive review can not be removed. Please add the state-label which should replace it

@github-actions
Copy link
Copy Markdown

Label s: positive review can not be added. Please use the corresponding functionality of GitHub

@github-actions
Copy link
Copy Markdown

Label s: needs work can not be added due to s: positive review!

1 similar comment
@github-actions
Copy link
Copy Markdown

Label s: needs work can not be added due to s: positive review!

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action ready_for_review

@github-actions
Copy link
Copy Markdown

Label p: major /3 can not be added due to p: blocker /1!

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action synchronize

@github-actions
Copy link
Copy Markdown

Label p: major /3 can not be added due to p: blocker /1!

@github-actions
Copy link
Copy Markdown

Label p: minor /4 can not be removed. Please add the priority-label which should replace it

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action review_requested

@github-actions
Copy link
Copy Markdown

Label p: minor /4 can not be removed. Please add the priority-label which should replace it

@github-actions
Copy link
Copy Markdown

Label p: trivial /5 can not be removed. Please add the priority-label which should replace it

1 similar comment
@github-actions
Copy link
Copy Markdown

Label p: trivial /5 can not be removed. Please add the priority-label which should replace it

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action converted_to_draft

@github-actions
Copy link
Copy Markdown

Label p: trivial /5 can not be added due to p: minor /4!

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Test action submitted

@github-actions
Copy link
Copy Markdown

Label s: needs review can not be removed. Please add the state-label which should replace it

@github-actions
Copy link
Copy Markdown

Label s: needs review can not be removed. Please add the state-label which should replace it

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Mar 13, 2023

Log-file of run_tests:

sage$ .github/sync_labels.py https://github.com/soehms/sage/pull/3 sagetrac-github-bot
INFO:root:cmdline_args (2) ['https://github.com/soehms/sage/pull/3', 'sagetrac-github-bot']
INFO:root:url: https://github.com/soehms/sage/pull/3
INFO:root:actor: sagetrac-github-bot
INFO:root:Create label handler for pull request #3 and actor sagetrac-github-bot
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Starting tests for sync_labels"
https://github.com/soehms/sage/pull/3#issuecomment-1465623156
INFO:root:Add comment to pull request #3: Starting tests for sync_labels
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action opened"
https://github.com/soehms/sage/pull/3#issuecomment-1465623180
INFO:root:Add comment to pull request #3: Test action opened
INFO:root:Issue pull request #3 is draft False
INFO:root:List of labels for pull request #3: ['s: needs review']
INFO:root:Active partners of  State.needs_review: []
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action reopened"
https://github.com/soehms/sage/pull/3#issuecomment-1465623212
INFO:root:Add comment to pull request #3: Test action reopened
INFO:root:List of labels for pull request #3: ['s: needs review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action closed"
https://github.com/soehms/sage/pull/3#issuecomment-1465623285
INFO:root:Add comment to pull request #3: Test action closed
INFO:root:List of labels for pull request #3: []
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action labeled"
https://github.com/soehms/sage/pull/3#issuecomment-1465623304
INFO:root:Add comment to pull request #3: Test action labeled
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: positive review"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: positive review
INFO:root:List of labels for pull request #3: ['s: positive review']
INFO:root:Reviews for pull request #3: []
INFO:root:PR pull request #3 can't be approved because of missing member review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *s: positive review* can not be added. Please use the corresponding functionality of GitHub"
https://github.com/soehms/sage/pull/3#issuecomment-1465623365
INFO:root:Add comment to pull request #3: Label *s: positive review* can not be added. Please use the corresponding functionality of GitHub
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: positive review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: positive review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs work"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs work
INFO:root:List of labels for pull request #3: ['s: needs work']
INFO:root:Issue pull request #3 is draft False
INFO:root:Review decision for pull request #3: COMMENTED
INFO:root:PR pull request #3 doesn't need work (by decision)
INFO:root:PR pull request #3 doesn't have positve review (by decision)
INFO:root:PR pull request #3 needs review
INFO:root:Execute command: gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot requested changes for this PR" "--request-changes"
failed to create review: Message: Can not request changes on your own pull request, Locations: [{Line:1 Column:66}]
WARNING:root:Execution of gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot requested changes for this PR" "--request-changes" failed with exit code: 256
INFO:root:Changes requested for PR pull request #3 by sagetrac-github-bot
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs review
INFO:root:List of labels for pull request #3: ['s: needs review', 's: needs work']
INFO:root:Issue pull request #3 is draft False
INFO:root:Review decision for pull request #3: COMMENTED
INFO:root:PR pull request #3 doesn't need work (by decision)
INFO:root:PR pull request #3 doesn't have positve review (by decision)
INFO:root:PR pull request #3 needs review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs work"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs work
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs info"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs info
INFO:root:List of labels for pull request #3: ['s: needs info', 's: needs review', 's: positive review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: positive review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: positive review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: blocker /1"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: blocker /1
INFO:root:List of labels for pull request #3: ['p: blocker /1', 's: needs info']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: critical /2"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: critical /2
INFO:root:List of labels for pull request #3: ['p: critical /2', 'p: blocker /1', 's: needs info']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: blocker /1"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: blocker /1
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: major /3"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: major /3
INFO:root:List of labels for pull request #3: ['p: major /3', 'p: critical /2', 's: needs info']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: critical /2"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: critical /2
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: minor /4"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: minor /4
INFO:root:List of labels for pull request #3: ['p: minor /4', 'p: major /3', 's: needs info', 's: needs review', 's: needs work', 's: positive review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: major /3"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: major /3
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: trivial /5"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: trivial /5
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 's: needs info', 's: needs review', 's: needs work', 's: positive review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: minor /4"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: minor /4
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action unlabeled"
https://github.com/soehms/sage/pull/3#issuecomment-1465624005
INFO:root:Add comment to pull request #3: Test action unlabeled
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: positive review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: positive review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *s: positive review* can not be removed. Please add the state-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624077
INFO:root:Add comment to pull request #3: Label *s: positive review* can not be removed. Please add the state-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: critical /2', 'p: blocker /1', 's: needs info', 's: needs review', 's: needs work']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: positive review"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: positive review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs work"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs work
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *s: needs work* can not be removed. Please add the state-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624162
INFO:root:Add comment to pull request #3: Label *s: needs work* can not be removed. Please add the state-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 'p: major /3', 'p: critical /2', 's: needs info', 's: needs review', 's: positive review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs work"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs work
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *s: needs review* can not be removed. Please add the state-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624246
INFO:root:Add comment to pull request #3: Label *s: needs review* can not be removed. Please add the state-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 's: needs info', 's: needs work', 's: positive review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs review
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs info"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs info
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 's: needs review', 's: needs work', 's: positive review']
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *p: blocker /1* can not be removed. Please add the priority-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624353
INFO:root:Add comment to pull request #3: Label *p: blocker /1* can not be removed. Please add the priority-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 's: needs review', 's: needs work']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: blocker /1"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: blocker /1
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *p: critical /2* can not be removed. Please add the priority-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624412
INFO:root:Add comment to pull request #3: Label *p: critical /2* can not be removed. Please add the priority-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 'p: blocker /1', 's: needs work']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: critical /2"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: critical /2
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *p: major /3* can not be removed. Please add the priority-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624467
INFO:root:Add comment to pull request #3: Label *p: major /3* can not be removed. Please add the priority-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 'p: critical /2', 'p: blocker /1', 's: needs review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: major /3"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: major /3
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: minor /4"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: minor /4
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *p: minor /4* can not be removed. Please add the priority-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624556
INFO:root:Add comment to pull request #3: Label *p: minor /4* can not be removed. Please add the priority-label which should replace it
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: major /3', 'p: critical /2', 'p: blocker /1']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: minor /4"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: minor /4
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "p: trivial /5"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: p: trivial /5
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Label *p: trivial /5* can not be removed. Please add the priority-label which should replace it"
https://github.com/soehms/sage/pull/3#issuecomment-1465624641
INFO:root:Add comment to pull request #3: Label *p: trivial /5* can not be removed. Please add the priority-label which should replace it
INFO:root:List of labels for pull request #3: ['p: minor /4', 'p: blocker /1']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "p: trivial /5"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: p: trivial /5
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action ready_for_review"
https://github.com/soehms/sage/pull/3#issuecomment-1465624701
INFO:root:Add comment to pull request #3: Test action ready_for_review
INFO:root:Issue pull request #3 is draft False
INFO:root:Review decision for pull request #3: CHANGES_REQUESTED
INFO:root:PR pull request #3 needs work (by decision)
INFO:root:PR pull request #3 already under review (needs work)
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action synchronize"
https://github.com/soehms/sage/pull/3#issuecomment-1465624732
INFO:root:Add comment to pull request #3: Test action synchronize
INFO:root:Issue pull request #3 is draft False
INFO:root:Review decision for pull request #3: CHANGES_REQUESTED
INFO:root:PR pull request #3 needs work (by decision)
INFO:root:PR pull request #3 already under review (needs work)
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action review_requested"
https://github.com/soehms/sage/pull/3#issuecomment-1465624772
INFO:root:Add comment to pull request #3: Test action review_requested
INFO:root:List of labels for pull request #3: ['p: trivial /5', 'p: minor /4', 'p: blocker /1']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --add-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Add label to pull request #3: s: needs review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action converted_to_draft"
https://github.com/soehms/sage/pull/3#issuecomment-1465624849
INFO:root:Add comment to pull request #3: Test action converted_to_draft
INFO:root:List of labels for pull request #3: ['s: needs review']
INFO:root:Execute command: gh pr edit https://github.com/soehms/sage/pull/3 --remove-label "s: needs review"
https://github.com/soehms/sage/pull/3
INFO:root:Remove label from pull request #3: s: needs review
INFO:root:Execute command: gh pr comment https://github.com/soehms/sage/pull/3 -b "Test action submitted"
https://github.com/soehms/sage/pull/3#issuecomment-1465624905
INFO:root:Add comment to pull request #3: Test action submitted
INFO:root:Execute command: gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot approved this PR" "--approve"
failed to create review: Message: Can not approve your own pull request, Locations: [{Line:1 Column:66}]
WARNING:root:Execution of gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot approved this PR" "--approve" failed with exit code: 256
INFO:root:PR pull request #3 approved by sagetrac-github-bot
INFO:root:Execute command: gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot requested changes for this PR" "--request-changes"
failed to create review: Message: Can not request changes on your own pull request, Locations: [{Line:1 Column:66}]
WARNING:root:Execution of gh pr review https://github.com/soehms/sage/pull/3 -b "sagetrac-github-bot requested changes for this PR" "--request-changes" failed with exit code: 256
INFO:root:Changes requested for PR pull request #3 by sagetrac-github-bot

@soehms soehms merged commit 9abdff3 into sync_labels Mar 13, 2023
@soehms soehms deleted the sync_labels_checkout_files branch March 13, 2023 19:52
soehms pushed a commit that referenced this pull request Apr 9, 2023
soehms pushed a commit that referenced this pull request Apr 9, 2023
sagemathgh-35114: libgap: Remove some GC hazards
    
### 📚 Description

Trac branch `u/gh-collares/gap-gc` from sagemath#34701, now migrated to GitHub.
Currently based atop sagemath#35093; will rebase once that is merged.

The rest of the description below is copied from sagemath#34701:

A refactor in sagemath#27946 introduced "unprotected" (not surrounded by
`GAP_Enter`/`GAP_Leave`) `GAP_ValueGlobalVariable` calls. I believe this
might be a GC hazard, because after updating to GAP 4.12.1 I started
seeing aarch64 crashes on NixOS infrastructure such as:

```
#0  0x0000fffff79740e8 in wait4 ()
#1  0x0000fffff5dc6b78 in print_enhanced_backtrace ()
#2  0x0000fffff5dc8190 in sigdie ()
#3  0x0000fffff5dcb1c0 in cysigs_signal_handler ()
#4  0x0000fffff7ffb7cc in __kernel_rt_sigreturn ()
#5  0x0000ffff99a0bf28 in ConvString ()
#6  0x0000000000000000 in ?? ()
#7  0x0000000000000000 in ?? ()
#8  0x0000000000000000 in ?? ()
#9  0x0000ffff99989930 in Pr ()
#10 0x0000ffff9998aa18 in CloseOutput ()
#11 0x0000ffff99884828 in capture_stdout () at /build/sage-
src-9.7/pkgs/sagemath-standard/sage/libs/gap/element.pyx:154
...
```
I also see cases where `capture_stdout` throws errors such as
`sage.libs.gap.util.GAPError: Error, Length: <list> must be a list (not
the integer 255)` and then crashes. Both types of errors are fixed by
this ticket.

Note that I am nesting `GAP_Enter`/`GAP_Leave` calls because I didn't
remove the preexisting calls inside `capture_stdout`. That's because I
feared removing the innermost calls might create a new footgun (and I
believe nested `GAP_Enter`/`GAP_Leave` calls are explicitly supported),
but removing them should cause no problem. Removing them might even be
preferable for performance reasons, I don't know.

Fixes sagemath#34701

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [x] I have made sure that the title is self-explanatory and the
description concisely explains the PR.
- [x] I have linked an issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies
<!-- List all open pull requests that this PR logically depends on -->
<!--
- #xyz: short description why this is a dependency
- #abc: ...
-->
- sagemath#35093: GAP 4.12.2 upgrade, which touches the same function and should
land first.
    
URL: sagemath#35114
Reported by: Mauricio Collares
Reviewer(s): Dima Pasechnik
soehms pushed a commit that referenced this pull request Sep 12, 2023
soehms pushed a commit that referenced this pull request Oct 9, 2023
Added the covering array file to documentation, fixed a couple format…
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.

1 participant