Git Product home page Git Product logo

Comments (4)

haampie avatar haampie commented on June 7, 2024 1

With #42160 (and also #42143)

==> Error: POST https://ghcr.io/v2/berquist/spack-gha-buildcache-example/blobs/uploads/ returned 401: Failed to login: Unauthorized

from spack.

berquist avatar berquist commented on June 7, 2024

I get a much better error

urllib.error.HTTPError: HTTP Error 401: Failed to login to https://ghcr.io/v2/berquist/spack-gha-buildcache-example/blobs/uploads/: Unauthorized

after

diff --git lib/spack/spack/cmd/buildcache.py lib/spack/spack/cmd/buildcache.py
index 75011a3e9b..9a13b2cb65 100644
--- lib/spack/spack/cmd/buildcache.py
+++ lib/spack/spack/cmd/buildcache.py
@@ -718,9 +718,7 @@ def _push_oci(
     )

     # Upload blobs
-    new_blobs = pool.starmap(
-        _push_single_spack_binary_blob, ((target_image, spec, tmpdir) for spec in to_be_uploaded)
-    )
+    new_blobs = [_push_single_spack_binary_blob(target_image, spec, tmpdir) for spec in to_be_uploaded]

     # And update the spec to blob mapping
     for spec, blob in zip(to_be_uploaded, new_blobs):

so the multiprocessing code is obscuring it.

from spack.

alecbcs avatar alecbcs commented on June 7, 2024

@haampie ^

from spack.

trws avatar trws commented on June 7, 2024

That's a huge improvement!

from spack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.