When browsing a snapshot, errors while trying to get archived objects in it can occur, for instance:
a directory or content can end up not found when changing the current branch
a branch contained in a snapshot points to a null revision
The current behavior of the web application is to display a generic error page when such cases occur.
In order to keep the snapshot context (with links to branches and releases), the error message should
be displayed at the center of the snapshot UI in place of previously browsed object.
Yes, thanks, now i have a better message. That is it finds the snapshot now
\m/.
NotFoundExc: Branch evaluation associated to visit with timestamp 2020-04-17T17:25:13Z for origin with url https://nix-community.github.io/nixpkgs-swh/sources-unstable.json not found!
It's still displayed as a generic message. So no snapshot context yet. That's
what i initially tried to fix, so it's still on ;)
That's because the "evaluation" targetting the nixpkgs repository is not
resolvable [2]. Specifically in the case of the staging infra, it's because we
never ingested it. [3]
Nonetheless, we cannot assume we ingested an up-to-date version of nixpkgs
anyway. For example, in production right now, the nixpkgs repository's last
visit dates back from 12nd march 2019 iirc [4]. So we may end up with this
situation in production anyway. I.e. nixguix loading is done. Its last snapshot
referencing the "evaluation" branch with an up-to-date nixpkgs we did not
ingest yet.
What i can say for sure is that the other branches for the nixguix snapshot are
resolvable. It's just too bad we elected the only one unresolvable. I recall an
irc discussion explaining branch names are lexicographically sorted so
"evaluation" is the first one (before the other ones starting with "https://"
;)
Apparently, the changes I introduced in !295 (closed) makes the above issue disappear ... I need to dig further on this.
Ok got it, branches with a non resolvable revision are filtered out by my changes in !295 (closed), lol. I will revert to previous behavior.
I am lucky that you got that case in the same time I was working on this ;-)
!296 (closed) handles the branch with non resolvable revision case.
I keep that task open to handle missing directory or content when switching branches
(a similar message should be displayed instead of a plain 404 error page).