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

Test sync_labes #1

Closed
2 tasks done
soehms opened this issue Feb 22, 2023 · 18 comments
Closed
2 tasks done

Test sync_labes #1

soehms opened this issue Feb 22, 2023 · 18 comments

Comments

@soehms
Copy link
Owner

soehms commented Feb 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Did you read the documentation and troubleshoot guide?

  • I have read the documentation and troubleshoot guide

Environment

- **OS: Ubuntu 20.04**
- **Sage Version: 9.8**

Steps To Reproduce

No response

Expected Behavior

Labels of selection list should be unique.

Actual Behavior

You can select more than one label from a selection list.

Additional Information

No response

@github-actions
Copy link

Label s: needs work can not be added to an issue. Please use it on the corresponding PR

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Starting tests for sync_labels

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action opened

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action reopened

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action closed

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action labeled

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Label s: positive review can not be added to an issue. Please use it on the corresponding PR

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Label s: needs work can not be added to an issue. Please use it on the corresponding PR

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Label s: needs review can not be added to an issue. Please use it on the corresponding PR

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action unlabeled

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action ready_for_review

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Label p: major /3 can not be added due to p: minor /4!

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action synchronize

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action review_requested

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action converted_to_draft

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Test action submitted

@soehms
Copy link
Owner Author

soehms commented Mar 9, 2023

Almost all of the above comments and label changes have be created by the run_tests method of class GhLabelSynchronizer. Here are the log-messages of the run:

sage$ .github/sync_labels.py https://github.com/soehms/sage/issues/1 sagetrac-github-bot
INFO:root:cmdline_args (2) ['https://github.com/soehms/sage/issues/1', 'sagetrac-github-bot']
INFO:root:url: https://github.com/soehms/sage/issues/1
INFO:root:actor: sagetrac-github-bot
INFO:root:Create label handler for issue #1 and actor sagetrac-github-bot
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Starting tests for sync_labels"
https://github.com/soehms/sage/issues/1#issuecomment-1462475155
INFO:root:Add comment to issue #1: Starting tests for sync_labels
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action opened"
https://github.com/soehms/sage/issues/1#issuecomment-1462475184
INFO:root:Add comment to issue #1: Test action opened
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action reopened"
https://github.com/soehms/sage/issues/1#issuecomment-1462475215
INFO:root:Add comment to issue #1: Test action reopened
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action closed"
https://github.com/soehms/sage/issues/1#issuecomment-1462475245
INFO:root:Add comment to issue #1: Test action closed
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action labeled"
https://github.com/soehms/sage/issues/1#issuecomment-1462475275
INFO:root:Add comment to issue #1: Test action labeled
INFO:root:List of labels for issue #1: ['s: needs info']
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "s: positive review"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: s: positive review
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "s: needs work"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: s: needs work
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "s: needs review"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: s: needs review
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "p: blocker /1"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: p: blocker /1
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "p: critical /2"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: p: critical /2
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "p: major /3"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: p: major /3
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "p: minor /4"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: p: minor /4
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --add-label "p: trivial /5"
https://github.com/soehms/sage/issues/1
INFO:root:Add label to issue #1: p: trivial /5
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action unlabeled"
https://github.com/soehms/sage/issues/1#issuecomment-1462475756
INFO:root:Add comment to issue #1: Test action unlabeled
INFO:root:Execute command: gh issue edit https://github.com/soehms/sage/issues/1 --remove-label "s: needs info"
https://github.com/soehms/sage/issues/1
INFO:root:Remove label from issue #1: s: needs info
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action ready_for_review"
https://github.com/soehms/sage/issues/1#issuecomment-1462475829
INFO:root:Add comment to issue #1: Test action ready_for_review
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action synchronize"
https://github.com/soehms/sage/issues/1#issuecomment-1462475923
INFO:root:Add comment to issue #1: Test action synchronize
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action review_requested"
https://github.com/soehms/sage/issues/1#issuecomment-1462475990
INFO:root:Add comment to issue #1: Test action review_requested
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action converted_to_draft"
https://github.com/soehms/sage/issues/1#issuecomment-1462476130
INFO:root:Add comment to issue #1: Test action converted_to_draft
INFO:root:Execute command: gh issue comment https://github.com/soehms/sage/issues/1 -b "Test action submitted"
https://github.com/soehms/sage/issues/1#issuecomment-1462476164
INFO:root:Add comment to issue #1: Test action submitted

soehms pushed a commit that referenced this issue Mar 13, 2023
updated sage installation method with pip
soehms pushed a commit that referenced this issue Mar 13, 2023
soehms pushed a commit that referenced this issue Mar 13, 2023
sort result of doctest to avoid random failures
soehms pushed a commit that referenced this issue Apr 9, 2023
    
### 📚 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 issue Jul 3, 2023
move bliss_find_automorphisms.h to subdir
soehms pushed a commit that referenced this issue Sep 8, 2023
soehms pushed a commit that referenced this issue Oct 9, 2023
@soehms soehms closed this as completed Nov 21, 2023
@soehms
Copy link
Owner Author

soehms commented Nov 21, 2023

Thats'done

soehms pushed a commit that referenced this issue Sep 13, 2024
For C-return-type functions that raise exceptions (and their heirs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant