Skip to content

Conversation

mathematicalmichael
Copy link

@mathematicalmichael mathematicalmichael commented Oct 8, 2025

Our contributor build for the website is broken because we have a package that was accepted via our new JOSS fast track process! (see the new policy pr here https://github.com/pyOpenSci/software-peer-review/pull/342/files)

This change updates reviewers to accept None and defaults to it instead of an empty list.

+also includes bugfix for bold/italics formatting in values of the templated issue, introduced by the same submission

Update get_contributor_data method to return None when no models are found.
return None instead of trying to instantiate a ReviewUser
Copy link

@ucodery ucodery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good

@lwasser
Copy link
Member

lwasser commented Oct 8, 2025

👋🏻 Hello there. I need to allow tests to run on all incoming pr's. it looks like the tests are still failing here. Let me fix the settings for the repo to ensure tests always run.

@mathematicalmichael
Copy link
Author

workflow for ae652fb failed because of an unrelated connection error. I checked the URL manually and it worked, so I assume this was just a temporary blip.

early return when we're missing a ReviewUser / fail to validate the PersonModel (skip behavior to align with the existing log statement)
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 42.85714% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.05%. Comparing base (8a7f61e) to head (313f844).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/pyosmeta/parse_issues.py 33.33% 1 Missing and 1 partial ⚠️
src/pyosmeta/utils_parse.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
- Coverage   79.47%   79.05%   -0.42%     
==========================================
  Files          12       12              
  Lines         760      764       +4     
  Branches       98      100       +2     
==========================================
  Hits          604      604              
- Misses        144      146       +2     
- Partials       12       14       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

there's a contributor that's being processed with * in their name. stripping this character should allow them to be processed as a PersonModel (in theory)
Copy link

@erik-whiting erik-whiting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix to the spec

Strip markdown formatting from returned value.
@mathematicalmichael
Copy link
Author

mathematicalmichael commented Oct 9, 2025

it seems that pyOpenSci/software-submission#254 broke things in two ways:

  • first, this PR was meant to fix the empty reviewers, which was fixed with some modeling changes
  • later, I noticed that the ** formatting in the markdown of the linked issue was causing a failure for fetch of github metrics. this was due to the lack of handling the issue author used, which was fixed with some processing changes.

"""Remove unwanted characters from a name."""

unwanted = ["(", ")", "@"]
unwanted = ["(", ")", "@", "*"]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arguably, not needed anymore since this is stripped during parsing time. it did help earlier but only for the username, not the package name.

Suggested change
unwanted = ["(", ")", "@", "*"]
unwanted = ["(", ")", "@"]

@mathematicalmichael mathematicalmichael changed the title Change reviewers field to be optional schema: reviewers can be empty now + parsing: handle bold/italics formatting Oct 9, 2025
Copy link
Contributor

@banesullivan banesullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, nice fix @mathematicalmichael! Thanks for jumping on this!

Added details for version 1.7.6 including bug fix and feature.
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.

5 participants