GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TST: tox option to exclude scipy by pllim · Pull Request #15742 · astropy/astropy

Conversation

@pllim

@pllim pllim commented Dec 14, 2023

Copy link
Copy Markdown
Member

Description

This pull request is to add tox option to exclude scipy so we can test devdeps without scipy-dev. I opted to run this combo in weekly cron. The setup and cadence are all negotiable.

Also cc @neutrinoceros

Fixes #15701

  • By checking this box, the PR author has requested that maintainers do NOT use the "Squash and Merge" button. Maintainers should respect this when possible; however, the final decision is at the discretion of the maintainer that merges the PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pllim pllim added no-changelog-entry-needed Extra CI Run cron CI as part of PR labels Dec 14, 2023
@pllim pllim added this to the v6.1.0 milestone Dec 14, 2023
@pllim
pllim requested a review from dhomeier December 14, 2023 23:20
@github-actions github-actions Bot added testing visualization labels Dec 14, 2023
@github-actions

github-actions Bot commented Dec 14, 2023 •
edited by dhomeier
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see instructions for rebase and squash.
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • Is a milestone set? Milestone must be set but we cannot check for it on Actions; do not let the green checkmark fool you.
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Dec 14, 2023

Copy link
Copy Markdown
Contributor

👋 Thank you for your draft pull request! Do you know that you can use [ci skip] or [skip ci] in your commit messages to skip running continuous integration tests until you are ready?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim pllim added numpy-dev and removed visualization labels Dec 14, 2023
@pllim

This comment was marked as resolved.

Sign in to view
@pllim pllim added the backport-v6.0.x label Dec 15, 2023
@pllim pllim modified the milestones: v6.1.0, v6.0.1 Dec 15, 2023
@pllim

pllim commented Dec 15, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

I have no idea why flynt is failing here. Looks unrelated. @nstarman or @WilliamJamieson , what is going on with flynt here?

EDIT: OK, nvm. It passed again after I downgrade it back to Python 3.10. Didn't know it is sensitive to Python version. 🤷

nstarman reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim
pllim requested a review from saimn December 15, 2023 02:25
@pllim

pllim commented Dec 15, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

OK, looks like I got it: https://github.com/astropy/astropy/actions/runs/7217133913/job/19664457683?pr=15742

Package versions: 
Numpy: 2.0.0.dev0+git20231212.9726755
Scipy: not available
Matplotlib: not available
h5py: not available
Pandas: not available
PyERFA: 2.0.1.2.dev9+g0d5ddca
Cython: not available
Scikit-image: not available
pyarrow: not available
asdf-astropy: not available

p.s. Link check failure is unrelated. You can ignore it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim
pllim marked this pull request as ready for review December 15, 2023 02:37
neutrinoceros
neutrinoceros reviewed Dec 15, 2023
View reviewed changes

@neutrinoceros neutrinoceros left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It's a great idea, thank you @pllim
I note that I was expecting this combo to run alongside the "all dev devs" one, not to replace it, but maybe there's a cost to having both that I'm not seeing ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pllim

pllim commented Dec 15, 2023

Copy link
Copy Markdown
Member Author

run alongside the "all dev devs" one

I guess we can. I just thought we already have enough jobs as it is, and we have so much traffic that the devdeps in CI for PR and push basically runs constantly, so no point also calling it again in cron job. But perhaps having both in cron is safer in case this repo gets a slow period.

What do others think?

neutrinoceros reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

@dhomeier , do you have any opinions here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhomeier

dhomeier commented Jan 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

I guess we can. I just thought we already have enough jobs as it is, and we have so much traffic that the devdeps in CI for PR and push basically runs constantly, so no point also calling it again in cron job. But perhaps having both in cron is safer in case this repo gets a slow period.

I don't have a strong opinion, but also think this can be read both ways – we typically have a dozen or more full runs of ci_workflows every day, so any standard job on top of that in cron_weekly or actually even cron_daily has fairly negligible impact. There is the same job just with py312 indeed (and even with remote data), but I'd tend to test those for at least two Python versions (though actually the combination of newest devdeps with oldest supported Python may be more interesting).
But I also don't know why e.g. mpldev warrants its own extra job in workflows...

Bottom line is probably I'd see cron_weekly as primarily serving the really long and expensive jobs like the exotic archs, while this job could well go into cron_daily – along with the old py311-test-devdeps or perhaps in fact a py310-test-devdeps.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim
TST: tox option to exclude scipy
f78da7f
so we can test devdeps without scipy-dev
as dhomeier requested in astropygh-15701
@pllim
pllim force-pushed the numpydev-without-scipy branch from 9c2baa4 to f78da7f Compare January 9, 2024 18:05
@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

I thought about it but I only want to deal with devdeps failures once a week, so I opted to keep it in weekly but make it a new job with older Python 3.10. Testing cutting age stuff with oldest supported Python seems like we are just asking for trouble.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

@neutrinoceros and @dhomeier , what do you think now?

https://github.com/astropy/astropy/actions/runs/7465080616/job/20313469760?pr=15742

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neutrinoceros

neutrinoceros commented Jan 9, 2024

Copy link
Copy Markdown
Contributor
pluggy._manager.PluginValidationError: Plugin 'pytest_mpl' for hook 'pytest_report_header'
hookimpl definition: pytest_report_header(config, startdir)
Argument(s) {'startdir'} are declared in the hookimpl but can not be found in the hookspec

If I'm reading this right, this means that pytest_mpl isn't compatible with pytest-dev at the moment. At a first glance it doesn't seem like it was reported upstream yet.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

You can ignore devinfra failures. I have a patch already at matplotlib/pytest-mpl#219 that is being tested at #15820

neutrinoceros and dhomeier reacted with rocket emoji
All reactions
  • 🚀 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

linkcheck and predeps failures are also unrelated. What is important here is that the new job is successful and did not pull in scipy.

dhomeier reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neutrinoceros

neutrinoceros commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Ah sorry I completely missed the point !
Can we add a step to invoke pip freeze right before tests so it's easier to track down in logs ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 9, 2024

Copy link
Copy Markdown
Member Author

There is a pip freeze right before the test starts, see https://github.com/astropy/astropy/actions/runs/7465080616/job/20313469760?pr=15742

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neutrinoceros

neutrinoceros commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Please ignore everything I said (apparently) 😅

pllim reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhomeier

dhomeier commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Testing cutting age stuff with oldest supported Python seems like we are just asking for trouble.

That was the point of testing it. ;-)
I was rather thinking of py311-test-devdeps-noscipy + py310-test-devdeps, but should not matter too much.

And I take your point that it would be enough to deal with this once a week, had only thought about CI resources.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim
TST: Flip the Python versions in cron devdeps
03f33e1
between scipy and no scipy as dhomeier requested
@pllim

pllim commented Jan 10, 2024

Copy link
Copy Markdown
Member Author

@dhomeier , OK I flipped the Python versions as you requested. If it looks good now, can you please approve? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhomeier
dhomeier approved these changes Jan 10, 2024
View reviewed changes

@dhomeier dhomeier left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks, remaining weekly jobs should be no issue!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhomeier

dhomeier commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

How do we enable auto-merge here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim

pllim commented Jan 10, 2024

Copy link
Copy Markdown
Member Author

Auto merge won't make sense since the new job isn't required. Thanks for the approval. I will keep an eye on it and merge when the optional new job passes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhomeier

dhomeier commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

Has already, just waiting for the slower archs, so I thought about shortening that...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim
pllim merged commit c22af5c into astropy:main Jan 10, 2024
@pllim
pllim deleted the numpydev-without-scipy branch January 10, 2024 16:27
@lumberbot-app

This comment was marked as resolved.

Sign in to view
@lumberbot-app lumberbot-app Bot added the Still Needs Manual Backport label Jan 10, 2024
@pllim

pllim commented Jan 10, 2024

Copy link
Copy Markdown
Member Author

I cancelled the really long jobs and merged.

Hmm... I guess backport isn't critical since auto-backport failed. I'll update the milestone.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pllim pllim modified the milestones: v6.0.1, v6.1.0 Jan 10, 2024
@pllim pllim removed Still Needs Manual Backport backport-v6.0.x labels Jan 10, 2024
@neutrinoceros neutrinoceros mentioned this pull request May 12, 2024
Remove weekly cron for devdeps-noscipy [skip ci] #16440
Closed
@pllim pllim mentioned this pull request Feb 26, 2026
TST/DEP: configure devdeps-!noscipy to depend on test_all again #19336
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@neutrinoceros neutrinoceros neutrinoceros left review comments
@dhomeier dhomeier dhomeier approved these changes
@saimn saimn Awaiting requested review from saimn

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Extra CI Run cron CI as part of PR no-changelog-entry-needed numpy-dev testing

Projects

None yet

Milestone

v6.1.0

Development

Successfully merging this pull request may close these issues.

CI: test numpy-dev without scipy?

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@pllim @dhomeier @neutrinoceros
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.