-
Notifications
You must be signed in to change notification settings - Fork 10
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
Upload of package version of same name causes error and package removal #57
Comments
Opened anaconda/anaconda-client#702 to try to get input from Anaconda. |
While we are at it, could we update the token used by NetworkX? It's still using a global token instead of a personal one which is less than ideal. (Xarray is the only other one doing that, and we should also migrate) |
@MridulS @jarrodmillman can you please take care of this for NetworkX? I don't remember who is responsible for the Xarray uploads, so tagging @martinfleis to see if they can do it or point us to the correct people to ask. (@tupui if you know please tag them in. 👍) |
That's the thing I don't know who they are as the team on Anaconda is empty 😅 (sorry for hijacking the issue, hum...) |
@matthewfeickert I believe that @keewis is the one with right permissions over in xarray. |
Also hitting this in scipy-openblas32 and scipy-openblas64, with @honno's API key, see the latest merge CI run which all failed to upload. |
From https://scientific-python.org/specs/spec-0004/#process-for-adding-new-projects:
(see #60 for an issue on updating the readme) |
Could an admin check that the tokens in question have the "Allow read access to the API site" permission? |
@mattip This is a different issue, so can you please move the discussion to Issue #61? |
Are you using the |
@dholth, yes. This is the command that is being run Lines 75 to 79 in 66bc1b6
This works with multiple wheels, yes, but in this case only 1 wheel is being uploaded. I assume that's what you mean by archives here. The problem here is not that the command can not run, it is that there has been a behavior change in how Anaconda Cloud seems to be dealing with the isntance when there already exists a package release of the same name. To step through (the perceived order of events) for what is causing the fail/pass alternation in First,
- name: Upload nighlty wheel
uses: scientific-python/upload-nightly-action@6e9304f7a3a5501c6f98351537493ec898728299 # 0.3.0
with:
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }}
artifacts_path: dist/ , which is going to call the
This is also removing the only file under the https://anaconda.org/scientific-python-nightly-wheels/networkx package.
and despite the
This started happening on 2024-01-04. The last change to our lock file for our software environment and upload command before 2024 (5fb764c) was on 2023-10-06. You can see from the Given all this, my take away is that there was some backend (well, backend from the user point of view) change in Anaconda Cloud on 2024-01-04 that caused this breaking behavior. |
If it is helpful at all, I can also provide the passing 2024-01-03 and failing 2024-01-04 full run logs (for the same workflow). |
So in anaconda/anaconda-client#702 (comment) it seems that there is different behavior with one archive/wheel being uploaded vs. multiple. :? Or more accurately, with multiple archives being uploaded it is more unclear what is causing the original edit: From more testing, I can see that what is happening is that at the
stage, as there is only 1 release (
is because the package is gone, there isn't a package directory to upload the release to. This doesn't happen with Awkward testing above with multiple wheels, as when one wheel is removed there are others that keep the package directory from being removed mid-upload. |
Anaconda Cloud seems to have changed how they handle uploads of packages where there is already a package of the same name and version on Anaconda Cloud. In the past, this simply just resulted in the artifact being uploaded overwriting the previous artifact.
networkx
is one of the core packages that used this approach. However, I noticed thatnetworkx
's nightly workflow is failing to do so(The success after failure is due to the package being removed and so there is no conflict the next upload.)
This started happening on 2024-01-04 for
networkx
, and was not happening before that. For example, this 2024-01-02 upload ran successfullyWe know that as we're using a lock file
upload-nightly-action/cmd.sh
Lines 57 to 60 in 6f1e2b9
that nothing has changed from the
upload-nightly-action
action side, and so this has to be on the Anaconda Cloud side.cc as a heads up to @MridulS @jarrodmillman
The text was updated successfully, but these errors were encountered: