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

N0ury master #514

Merged
merged 8 commits into from Apr 13, 2023
Merged

N0ury master #514

merged 8 commits into from Apr 13, 2023

Conversation

niccokunzmann
Copy link
Member

This updates #502 to have a merge with master.

@mister-roboto
Copy link

@niccokunzmann thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@coveralls
Copy link

coveralls commented Apr 12, 2023

Pull Request Test Coverage Report for Build 4682326578

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 93.485%

Totals Coverage Status
Change from base Build 4155249620: 0.2%
Covered Lines: 1191
Relevant Lines: 1274

💛 - Coveralls

@niccokunzmann
Copy link
Member Author

Interesting ... There are new Jenkins jobs appearing. I can understand the changelog one. I will experiment with the others.

@niccokunzmann
Copy link
Member Author

This PR does indeed fix #348. However, I wonder for the tests how the values can be accessed:

E           TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Is now:

>       assert freebusy["ORGANIZER"]["CN"] == "Sixt SE"
E       TypeError: string index indices must be integers or slices, not str

for this line:

ORGANIZER;CN=Sixt SE

@niccokunzmann
Copy link
Member Author

I fixed the test with the help of the documentation. The current error is that the parameter is missing a character.

AssertionError: assert 'Sixt S' == 'Sixt SE'

On it ...

@niccokunzmann
Copy link
Member Author

@mauritsvanrees The plone PR tests were added and I do not know if they work for this module. They just appeared. I will run them but I do not know if they actually mean something. Could you check that they use the code from this PR when they run?

@niccokunzmann
Copy link
Member Author

niccokunzmann commented Apr 12, 2023

@mauritsvanrees The Plone 3.8 test fails.
https://jenkins.plone.org/job/pull-request-6.0-3.8/2576/robot/report/robot_report.html#totals
I am not really clear about why and how this bug fix contributed to that. I will wait a bit for a reply. If I merge this, then I will wait a bit with the release if the tests fail.

@mauritsvanrees
Copy link
Member

I see the Jenkins tests pass on Python 3.9, 3.10 and 3.11 and only fail on 3.8. The two failures are in robot framework tests, and there can be some instability in there. Looks unrelated.

But really, the Jenkins jobs should not run. We have a GitHub Actions test in this repo that uses Plone, and that should be enough. I think I or someone else has pushed a button to automatically re-enable these tests on lots of repositories.
I have deleted some web hooks in the settings. The Jenkins tests should not be started for new PRs now.

For the record, the Jenkins jobs do use the branch from this PR. See the 3.8 console:

mr.developer: Cloned 'icalendar' with git using branch 'N0ury-master' from 'https://github.com/niccokunzmann/icalendar.git'.

So: should be fine to merge and release, but I will leave both to you. Thanks!

@niccokunzmann
Copy link
Member Author

@mauritsvanrees Thanks for the clarification! I like the changelog test by the way. That is a handy reminder. If you like to enable this again, that should be ok to try out.

@niccokunzmann niccokunzmann merged commit 4bbb44e into collective:master Apr 13, 2023
13 of 14 checks passed
@niccokunzmann niccokunzmann deleted the N0ury-master branch April 13, 2023 11:32
mauritsvanrees added a commit to plone/mr.roboto that referenced this pull request Apr 27, 2023
See collective/icalendar#514 (comment) and following comments.
From a Plone core development perspective, `icalendar` is a third party package since a while.
It is used a lot outside of Plone, and is taken care of by people who are not core Plone developers.

The `plone.app.event` tests are run on every PR of this package, see [yaml file](https://github.com/collective/icalendar/blob/v5.0.5/.github/workflows/tests.yml#L26) and [`tox.ini`](https://github.com/collective/icalendar/blob/v5.0.5/tox.ini#L27).
I keep tabs on new versions, and manually update its version in `buildout.coredev`.
So nothing is needed on Jenkins, so `mr.roboto` does not need to do anything.  I have removed the roboto hooks in the settings of the `icalendar` repo.

But: checking for a changelog entry is still wanted.  That is where this PR comes in:

1. Add `icalendar` to all ignore lists, except for the required changelog.  (Also sort them alphabetically.)
2. Fix the `githubcommithooks` endpoint to look for a single repo in the collective if it is not in Plone.

With this in place, I can enable the hooks again for this single repo, and only the changelog entry would be checked.
@mauritsvanrees
Copy link
Member

@mauritsvanrees Thanks for the clarification! I like the changelog test by the way. That is a handy reminder. If you like to enable this again, that should be ok to try out.

@niccokunzmann The hooks for that should have been restored just now. Please ping me if anything goes wrong with new PRs. Only the changelog test should be active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants