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

UnstableSrcUri: check for unstable SRC_URI #599

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

arthurzam
Copy link
Member

I've currently collected the patterns from the linked issues. I can add more as requested.

For ::gentoo it results in:

dev-haskell/memory
  UnstableSrcUri: version 0.15.0-r1: unstable SRC_URI: [ https://patch-diff.githubusercontent.com/raw/vincenthz/hs-memory/pull/81.patch ]

dev-python/jupyter
  UnstableSrcUri: version 1.0.0-r4: unstable SRC_URI: [ https://patch-diff.githubusercontent.com/raw/jupyter/jupyter/pull/198.patch ]

net-voip/telepathy-rakia
  UnstableSrcUri: version 0.8.0-r1: unstable SRC_URI: [ https://patch-diff.githubusercontent.com/raw/TelepathyIM/telepathy-rakia/pull/1.patch ]

For ::guru it results in:

sci-electronics/verible
  UnstableSrcUri: version 0.0.2275: unstable SRC_URI: [ https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz ]
  UnstableSrcUri: version 0.0.3124: unstable SRC_URI: [ https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz ]

Resolves: #505
Resolves: #510

@arthurzam arthurzam requested a review from mgorny July 7, 2023 14:51
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Patch coverage: 76.47% and project coverage change: -0.02 ⚠️

Comparison is base (2b9b8e7) 79.77% compared to head (f2a83ca) 79.76%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #599      +/-   ##
==========================================
- Coverage   79.77%   79.76%   -0.02%     
==========================================
  Files          58       58              
  Lines        8652     8667      +15     
  Branches     1966     1970       +4     
==========================================
+ Hits         6902     6913      +11     
- Misses       1648     1650       +2     
- Partials      102      104       +2     
Impacted Files Coverage Δ
src/pkgcheck/checks/metadata.py 89.04% <76.47%> (-0.25%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/pkgcheck/checks/metadata.py Outdated Show resolved Hide resolved
src/pkgcheck/checks/metadata.py Outdated Show resolved Hide resolved
@arthurzam arthurzam force-pushed the check-unstable-uri branch from 7f1444d to 68adf7c Compare July 8, 2023 17:43
@arthurzam arthurzam requested a review from mgorny July 9, 2023 16:06
@arthurzam arthurzam force-pushed the check-unstable-uri branch from 68adf7c to f2a83ca Compare July 14, 2023 06:02
DESCRIPTION="Ebuild with unstable SRC_URI"
HOMEPAGE="https://github.com/pkgcore/pkgcheck"
SRC_URI="
https://patch-diff.githubusercontent.com/raw/pkgcore/pkgcheck/pull/599.patch
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this check catch also the pre-redirect https://github.com/foo/bar/pull/1234.patch form? Perhaps we should do that as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

It didn't catch in original version, updated and included in tests.

Copy link
Contributor

@mgorny mgorny left a comment

Choose a reason for hiding this comment

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

LGTM

@gentoo-bot gentoo-bot merged commit c6f50b4 into pkgcore:master Sep 1, 2023
8 checks passed
@arthurzam arthurzam deleted the check-unstable-uri branch September 1, 2023 11:22
@gentoo-bot gentoo-bot temporarily deployed to github-pages September 1, 2023 11:23 — with GitHub Actions Inactive
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.

Add check to warning if certain known unstable URLs are used in SRC_URI Add a check for hashed pypi URLs
4 participants