Skip to content

Fix recursive formatting #475 - #498

Merged
GamelinAl merged 1 commit into
mainfrom
fix-475
Oct 30, 2026
Merged

GamelinAl merged 1 commit into
mainfrom
fix-475

Conversation

@GamelinAl

Copy link
Copy Markdown
Member

See #475 and #490

close #475

@GamelinAl GamelinAl self-assigned this Oct 30, 2026
@GamelinAl GamelinAl added the bug Something isn't working label Oct 30, 2026
Squashed from PR #490 (BM804/fix/magnet-missing-model-errors).
Excluded properties are no longer evaluated by __pyaml_repr__, so a getter
raising with str(self) cannot re-enter the repr. Error messages in magnet,
CFM magnet, serialized magnet and BPM accessors now use self.name.
Adds regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gubaidulinvadim

Copy link
Copy Markdown
Member

@TeresiaOlsson there's some issue with new GitHub rules. We cannot merge without bypass
image

@TeresiaOlsson

Copy link
Copy Markdown
Member

Hmm... There should already be a bypass for everyone in the maintainer group. Can you check the rulesets and see what is needed for it to work? https://github.com/python-accelerator-middle-layer/pyaml/settings/rules

@GamelinAl

Copy link
Copy Markdown
Member Author

Hmm... There should already be a bypass for everyone in the maintainer group. Can you check the rulesets and see what is needed for it to work? https://github.com/python-accelerator-middle-layer/pyaml/settings/rules

I think I understand, we can merge but only if we choose to bypass. It's the way we are supposed to do it @TeresiaOlsson ?

@TeresiaOlsson

Copy link
Copy Markdown
Member

It seems like this is the only way to do it with rulesets. But it's ugly. I will check if it's possible to switch back to branch protection rules and there is a setting to say who is allowed to merge to a specific branch. But as I have understood it rulesets are the new way to do it on Github.

@GamelinAl

Copy link
Copy Markdown
Member Author

ok I'll merge like this for now

@GamelinAl
GamelinAl merged commit 9ad5278 into main Oct 30, 2026
4 checks passed
@GamelinAl
GamelinAl deleted the fix-475 branch October 30, 2026 15:57
@TeresiaOlsson

Copy link
Copy Markdown
Member

@GamelinAl @gubaidulinvadim I have gone back to the branch protection rules and added that only the pyaml-maintainers team should be allowed to push to main and stable. Does it work better now?

@TeresiaOlsson

Copy link
Copy Markdown
Member

No, I don't think it's better. Github still seems to consider it a bypass rule. Then I'm not sure that this is possible to do.

@TeresiaOlsson

Copy link
Copy Markdown
Member

No, I don't think it does. The problem is that I had to add the pyaml-maintainers team as direct members otherwise it wasn't found in the list of options to give permissions to merge. And that now allows all maintainers to merge by bypassing the review...

@TeresiaOlsson

Copy link
Copy Markdown
Member

There seemed to be another setting to control that. Maybe now it works? Github's interface for permissions is really awful...

@gubaidulinvadim

Copy link
Copy Markdown
Member

There seemed to be another setting to control that. Maybe now it works? Github's interface for permissions is really awful...

on another PR there's no issue anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite Loop in magnet repr

3 participants