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

MAINT: git security shim for 1.9.x #16329

Merged

Conversation

tylerjereddy
Copy link
Contributor

  • replicate WIP, BLD, MAINT: git security/version shim #16139 on the latest maintenance branch
    because the master branch of the wheels repo will
    encounter the issues described in that PR (for example, see:
    MAINT: master->main refs MacPython/scipy-wheels#166 which
    has Travis and Azure failures caused by those same
    versioning issues)

  • I think the cwd is still correct even though the patch
    is being applied to a different file this time (used to be
    setup.py), though we could double check this by pointing
    the wheels PR at the commit hash of this PR on my fork if we want

  • any reason not to forward port this as well at this point,
    if we're going to need to keep "backporting" it?

(there are other issues in the wheels repo as well, possibly even the PROPACK
Windows stuff to shim around again? but one thing at a time)

* replicated scipygh-16139 on the latest maintenance branch
because the `master` branch of the wheels repo will
encounter the issues described in that PR (for example, see:
MacPython/scipy-wheels#166 which
has Travis and Azure failures caused by those same
versioning issues)

* I think the `cwd` is still correct even though the patch
is being applied to a different file this time (used to be
`setup.py`), though we could double check this by pointing
the wheels PR at the commit hash of this PR if we want

* any reason not to forward port this as well at this point,
if we're going to need to keep backporting it?
@tylerjereddy tylerjereddy added the maintenance Items related to regular maintenance tasks label May 31, 2022
@tylerjereddy tylerjereddy added this to the 1.9.0 milestone May 31, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

An odd error in two of the jobs:

___________________________ test_valid_scipy_version ___________________________
[gw1] linux -- Python 3.9.12 /opt/hostedtoolcache/Python/3.9.12/x64/bin/python
../../build-install/lib/python3.9/site-packages/scipy/_lib/tests/test_scipy_version.py:18: in test_valid_scipy_version
    assert_(res is not None, scipy.__version__)
E   AssertionError: 1.9.0.dev0+0.
        dev_suffix = '(\\.dev0\\+.+([0-9a-f]{7}|Unknown))'
        res        = None
        version_pattern = '^[0-9]+\\.[0-9]+\\.[0-9]+(|a[0-9]|b[0-9]|rc[0-9])'
=========================== short test summary info ============================
FAILED ../../build-install/lib/python3.9/site-packages/scipy/_lib/tests/test_scipy_version.py::test_valid_scipy_version
= 1 failed, 37647 passed, 2657 skipped, 140 xfailed, 9 xpassed in 385.93s (0:06:25) =

Looks fine to me to forward-port to main once CI is green.

tools/version_utils.py Outdated Show resolved Hide resolved
* make the `git` directory scoping more robust
@tylerjereddy
Copy link
Contributor Author

Ok, I'll have to debug this locally, the CI failures are similar to exactly what I want to fix in the wheels repo.

* adjustments that work locally for setting
the SciPy version with `git` dir scoping
@tylerjereddy tylerjereddy force-pushed the treddy_git_security_shim_again branch from d0154d3 to 6434ee2 Compare June 1, 2022 03:24
@tylerjereddy
Copy link
Contributor Author

I fixed locally with two versions of git (including the bleeding edge version), we'll see if CI agrees.

I do see an unrelated mingw download error on Windows Azure 32-bit

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM now, thanks Tyler.

@rgommers rgommers merged commit 8620a22 into scipy:maintenance/1.9.x Jun 1, 2022
@tylerjereddy tylerjereddy deleted the treddy_git_security_shim_again branch June 1, 2022 15:55
tylerjereddy added a commit to tylerjereddy/scipy that referenced this pull request Jun 1, 2022
* forward port scipygh-16329 so we don't have to keep
backporting to each new maintenance branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants