Skip to content

Resolve Failing Storage Builds - #25542

Merged
Scott Beddall (scbedd) merged 6 commits into
Azure:mainfrom
scbedd:hotfix/failing-storage-build
Aug 4, 2022
Merged

Resolve Failing Storage Builds#25542
Scott Beddall (scbedd) merged 6 commits into
Azure:mainfrom
scbedd:hotfix/failing-storage-build

Conversation

@scbedd

Copy link
Copy Markdown
Member

Resolves #25490

Friday of last week I noticed that azure-storage-file-datalake was having some issues on scheduled builds. The error was during installation, throwing out the fact that it couldn't resolve a version of azure-storage-blob that meats the requirements for azure-storage-file-datalake.

There were two main problems at play here:

  1. We need to auth to the dev feed during the nightly build, if we want to actually talk to it! We weren't prior to this PR. This was causing any packages that have an unreleased dependency to fail building the artifact or docs.
  2. We had an actual bug causing us to not retrieve from the dev feed even if we WERE auth-ing to the feed properly.

Issue for 2) is now properly resolved. Will definitely need to mirror this patch in the refactor PR

The core of the issue. We need up update the specifier to pull in an alpha package when the version is NOT on pypi. To do that, we do a string replacement operation.

azure-storage-blob<13.0.0,>=12.14.0b1 -> azure-storage-blob<13.0.0,>=12.14.0ab1

Notice the ab1 that we were inserting? That's straight up wrong. I have implemented the regex to match PEP440

The incorrect prerelease sectionab1 is what was breaking pip's resolution.

@laiapat Laia Patiño (laiapat) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The regex is a little hairy, but it looks correct to me. The dev feed auth bit is more straightforward and makes sense 🙂

Comment thread eng/tox/sanitize_setup.py
@scbedd
Scott Beddall (scbedd) merged commit 7e486d9 into Azure:main Aug 4, 2022
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.

Storage Nightly Alpha Build Failing on unretrievable dependency

3 participants