unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* SWH: fallback error
@ 2021-09-09  0:52 zimoun
  2021-09-09  9:39 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2021-09-09  0:52 UTC (permalink / raw)
  To: Guix Devel

Hi,

In order to check if the SWH fallback works, time to time, I test it.  I
have a variant package of hello defined here:

   <https://github.com/zimoun/channel-example>

The source had been archived on SWH long time ago (via their Web
submission or via “guix lint -c archival”).  

Using Guix 16ef7b4, I get this:

--8<---------------cut here---------------start------------->8---
$ guix build -L /tmp/channel-example/ hi -S
The following derivation will be built:
   /gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv
building /gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv...
guile: warning: failed to install locale
environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /gnu/store/884nsva9r8wkp40kbqyvpj1ad57jc5dd-git-checkout/.git/
fatal: could not read Username for 'https://github.com': No such device or address
Failed to do a shallow fetch; retrying a full fetch...
fatal: could not read Username for 'https://github.com': No such device or address
git-fetch: '/gnu/store/5vai7bfrfkzv22dx13bxpszjrqyi78x6-git-minimal-2.33.0/bin/git fetch origin' failed with exit code 128
Trying content-addressed mirror at berlin.guix.gnu.org...
Trying content-addressed mirror at berlin.guix.gnu.org...
Trying to download from Software Heritage...
SWH: found revision e1eefd033b8a2c4c81babc6fde08ebb116c6abb8 with directory at 'https://archive.softwareheritage.org/api/1/directory/c3e538ed2de412d54c567ed7c8cfc46cbbc35d07/'
Backtrace:
           6 (primitive-load "/gnu/store/xq0z66k209klw42wwssgww5mq6y?")
In ice-9/boot-9.scm:
    152:2  5 (with-fluid* _ _ _)
In guix/swh.scm:
    622:8  4 (call-with-temporary-directory #<procedure 7ffff46216c0?>)
    632:5  3 (_ "/tmp/guix-build-git-checkout.drv-0/guix-directory.a?")
    543:0  2 (vault-fetch _ _ #:log-port _)
   261:30  1 (call "https://archive.softwareheritage.org/api/1/vaul?" ?)
    390:0  0 (json->vault-reply _)

guix/swh.scm:390:0: In procedure json->vault-reply:
In procedure string->symbol: Wrong type argument in position 1 (expecting string): #<unspecified>
builder for `/gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv' failed with exit code 1
build of /gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv failed
View build log at '/var/log/guix/drvs/bi/i72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv.bz2'.
guix build: error: build of `/gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv' failed
--8<---------------cut here---------------end--------------->8---

The revision is found but then an error.  Hum?

Any clue?


All the best,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SWH: fallback error
  2021-09-09  0:52 SWH: fallback error zimoun
@ 2021-09-09  9:39 ` Ludovic Courtès
  2021-09-09  9:51   ` zimoun
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-09-09  9:39 UTC (permalink / raw)
  To: zimoun; +Cc: Guix Devel

Hi!

zimoun <zimon.toutoune@gmail.com> skribis:

> Using Guix 16ef7b4, I get this:
>
> $ guix build -L /tmp/channel-example/ hi -S
> The following derivation will be built:
>    /gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv
> building /gnu/store/bii72cavifd0ll151vjiz3brmdfxjdyp-git-checkout.drv...
> guile: warning: failed to install locale
> environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin'
> hint: Using 'master' as the name for the initial branch. This default branch name
> hint: is subject to change. To configure the initial branch name to use in all
> hint: of your new repositories, which will suppress this warning, call:
> hint: 
> hint: 	git config --global init.defaultBranch <name>
> hint: 
> hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
> hint: 'development'. The just-created branch can be renamed via this command:
> hint: 
> hint: 	git branch -m <name>
> Initialized empty Git repository in /gnu/store/884nsva9r8wkp40kbqyvpj1ad57jc5dd-git-checkout/.git/
> fatal: could not read Username for 'https://github.com': No such device or address
> Failed to do a shallow fetch; retrying a full fetch...
> fatal: could not read Username for 'https://github.com': No such device or address
> git-fetch: '/gnu/store/5vai7bfrfkzv22dx13bxpszjrqyi78x6-git-minimal-2.33.0/bin/git fetch origin' failed with exit code 128
> Trying content-addressed mirror at berlin.guix.gnu.org...
> Trying content-addressed mirror at berlin.guix.gnu.org...
> Trying to download from Software Heritage...
> SWH: found revision e1eefd033b8a2c4c81babc6fde08ebb116c6abb8 with directory at 'https://archive.softwareheritage.org/api/1/directory/c3e538ed2de412d54c567ed7c8cfc46cbbc35d07/'
> Backtrace:
>            6 (primitive-load "/gnu/store/xq0z66k209klw42wwssgww5mq6y?")
> In ice-9/boot-9.scm:
>     152:2  5 (with-fluid* _ _ _)
> In guix/swh.scm:
>     622:8  4 (call-with-temporary-directory #<procedure 7ffff46216c0?>)
>     632:5  3 (_ "/tmp/guix-build-git-checkout.drv-0/guix-directory.a?")
>     543:0  2 (vault-fetch _ _ #:log-port _)
>    261:30  1 (call "https://archive.softwareheritage.org/api/1/vaul?" ?)
>     390:0  0 (json->vault-reply _)
>
> guix/swh.scm:390:0: In procedure json->vault-reply:
> In procedure string->symbol: Wrong type argument in position 1 (expecting string): #<unspecified>

As you might have seen on #swh-devel on irc.libera.chat, this is due to
an API change on their side, which is now fixed in
fb32a38db1d3a6d9bc970e14df5be95e59a8ab02.  Tested with the usual:

  guix build -S guile-bash --check

The API change (removing “obj_id” and “obj_type” from vault replies)
might be reverted, according to what SWH folks said on IRC.

However, other incompatible changes may happen on /api/1.  For instance,
I noticed by chance that /api/1/vault/directory, which we use in
‘request-cooking’, is marked as deprecated.  I’ll update our code to the
new API soonish if nobody beats me at it, but it’s a bummer that old
code might break anytime.  :-/  (The API is officially not considered
stable.)

Thanks,
Ludo’.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SWH: fallback error
  2021-09-09  9:39 ` Ludovic Courtès
@ 2021-09-09  9:51   ` zimoun
  0 siblings, 0 replies; 3+ messages in thread
From: zimoun @ 2021-09-09  9:51 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix Devel

Hi,

On Thu, 9 Sept 2021 at 11:39, Ludovic Courtès <ludo@gnu.org> wrote:

> As you might have seen on #swh-devel on irc.libera.chat, this is due to

No, I have not. :-)

> an API change on their side, which is now fixed in
> fb32a38db1d3a6d9bc970e14df5be95e59a8ab02.  Tested with the usual:

Cool!

>   guix build -S guile-bash --check
>
> The API change (removing “obj_id” and “obj_type” from vault replies)
> might be reverted, according to what SWH folks said on IRC.

Hum?!

> However, other incompatible changes may happen on /api/1.  For instance,
> I noticed by chance that /api/1/vault/directory, which we use in
> ‘request-cooking’, is marked as deprecated.  I’ll update our code to the
> new API soonish if nobody beats me at it, but it’s a bummer that old
> code might break anytime.  :-/  (The API is officially not considered
> stable.)

Wait, they work for long term support and they break backward compatibility.
For instance, all the versions that "guix time-machine" is able to
reach can break because they change their API in the future.  Wow.
Do I understand well?

Cheers,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-09  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  0:52 SWH: fallback error zimoun
2021-09-09  9:39 ` Ludovic Courtès
2021-09-09  9:51   ` zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).