cask / cask

Project management tool for Emacs
http://cask.readthedocs.io
GNU General Public License v3.0
1.27k stars 147 forks source link

Failed cask-install-test/{fetcher-branch, fetch-files, fetcher-git, ...} #563

Closed ndw closed 2 years ago

ndw commented 2 years ago

Attempting to install cask from a git clone with

GNU Emacs 28.1 (build 2, x86_64-apple-darwin21.4.0, NS appkit-2113.40 Version 12.3.1 (Build 21E258)) of 2022-04-09

Make ends with:

Ran 132 tests in 59.107 seconds
6 unexpected results:
   FAILED  cask-install-test/fetcher-branch
   FAILED  cask-install-test/fetcher-files
   FAILED  cask-install-test/fetcher-git
   FAILED  cask-install-test/fetcher-git-unregistered
   FAILED  cask-install-test/fetcher-install-twice
   FAILED  cask-install-test/fetcher-ref
gmake[1]: Entering directory '/Volumes/Projects/emacs/cask'
gmake[1]: Leaving directory '/Volumes/Projects/emacs/cask'
! (grep -q "unexpected results" /tmp/cask.unit.out)
gmake: *** [Makefile:55: unit] Error 1

Perhaps Emacs 28 is not yet supported?

dickmao commented 2 years ago

I upgraded the CI for 28.1 in 50df921. The test output is at https://github.com/dickmao/cask/actions/runs/2143764531

It's impossible to know your particular cause of failure without inspecting /tmp/cask.unit.out.

ndw commented 2 years ago

If I missed a note that said it was best to include /tmp/cask.unit.out with bug reports, please accept my apologies. FWIW, here it is:

Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (0.0.1)... downloading
  - Installing [ 1/2] package-b (0.0.1)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (0.0.1)... downloading
  - Installing [ 1/2] package-b (0.0.1)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (latest)... downloading
  - Installing [ 1/2] package-b (latest)... done
  - Installing [ 2/2] package-a (latest)... downloading
  - Installing [ 2/2] package-a (latest)... done
.....Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
..............Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.......Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.......Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-e (0.0.1)... downloading
  - Installing [ 1/1] package-e (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-e (0.0.1)... downloading
  - Installing [ 1/1] package-e (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-e (0.0.1)... downloading
  - Installing [ 1/1] package-e (0.0.1)... done
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-e (0.0.1)... downloading
  - Installing [ 1/1] package-e (0.0.1)... done
.............Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (0.0.1)... downloading
  - Installing [ 1/2] package-b (0.0.1)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] emacs (latest)... already present
.Test cask-install-test/fetcher-branch backtrace:

Test cask-install-test/fetcher-branch condition:

    (error "Running command git commit -a -m Add package-a. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FTest cask-install-test/fetcher-files backtrace:

Test cask-install-test/fetcher-files condition:

    (error "Running command git commit -a -m Add package-a and package-b. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FTest cask-install-test/fetcher-git backtrace:

Test cask-install-test/fetcher-git condition:

    (error "Running command git commit -a -m Add package-a. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FTest cask-install-test/fetcher-git-unregistered backtrace:

Test cask-install-test/fetcher-git-unregistered condition:

    (error "Running command git commit -a -m Add package-not. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FTest cask-install-test/fetcher-install-twice backtrace:

Test cask-install-test/fetcher-install-twice condition:

    (error "Running command git commit -a -m Add package-a. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FTest cask-install-test/fetcher-ref backtrace:

Test cask-install-test/fetcher-ref condition:

    (error "Running command git commit -a -m Add package-a. failed with: ’error: gpg failed to sign the data\nfatal: failed to write commit object\n’")

FPackage operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... linked
already present
  - Installing [ 2/3] package-d (0.0.1)... downloading
  - Installing [ 2/3] package-d (0.0.1)... done
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 0 installs, 0 removals
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (0.0.1)... downloading
  - Installing [ 1/2] package-b (0.0.1)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] project (99.0)... downloading
  - Installing [ 1/2] project (99.0)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.2)... not available
Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.2)... downloading
  - Installing [ 1/1] package-a (0.0.2)... done
..Package operations: 0 installs, 0 removals
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] project (20210113.1134)... not available
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
....Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-d (0.0.1)... downloading
  - Installing [ 1/2] package-d (0.0.1)... done
  - Installing [ 2/2] package-f (0.0.1)... already present
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
....Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-d (0.0.1)... downloading
  - Installing [ 1/2] package-d (0.0.1)... done
  - Installing [ 2/2] package-f (0.0.1)... already present
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-b (0.0.1)... downloading
  - Installing [ 1/1] package-b (0.0.1)... done
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
..Package operations: 0 installs, 0 removals
..Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-d (0.0.1)... downloading
  - Installing [ 1/3] package-d (0.0.1)... done
  - Installing [ 2/3] package-c (0.0.1)... downloading
  - Installing [ 2/3] package-c (0.0.1)... done
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-b (0.0.1)... downloading
  - Installing [ 1/2] package-b (0.0.1)... done
  - Installing [ 2/2] package-a (0.0.1)... downloading
  - Installing [ 2/2] package-a (0.0.1)... done
..Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-a (0.0.1)... downloading
  - Installing [ 1/2] package-a (0.0.1)... done
  - Installing [ 2/2] package-b (0.0.1)... downloading
  - Installing [ 2/2] package-b (0.0.1)... done
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
............Package operations: 3 installs, 0 removals
  - Installing [ 1/3] package-c (0.0.1)... downloading
  - Installing [ 1/3] package-c (0.0.1)... done
  - Installing [ 2/3] package-d (0.0.1)... already present
  - Installing [ 3/3] package-f (0.0.1)... already present
.........Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 2 installs, 0 removals
  - Installing [ 1/2] package-d (0.0.1)... downloading
  - Installing [ 1/2] package-d (0.0.1)... done
  - Installing [ 2/2] package-f (0.0.1)... already present
..Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
.Package operations: 1 installs, 0 removals
  - Installing [ 1/1] package-a (0.0.1)... downloading
  - Installing [ 1/1] package-a (0.0.1)... done
..

Ran 132 tests in 59.107 seconds
6 unexpected results:
   FAILED  cask-install-test/fetcher-branch
   FAILED  cask-install-test/fetcher-files
   FAILED  cask-install-test/fetcher-git
   FAILED  cask-install-test/fetcher-git-unregistered
   FAILED  cask-install-test/fetcher-install-twice
   FAILED  cask-install-test/fetcher-ref
dickmao commented 2 years ago

make aliases to make test, and that's probably bad. Most people just want make install.

make test blithely runs git commands to test cask, and assumes the basest of baseline git installations. If your git installation has anything but the most vanilla of requirements, say an expired gpg key, then make test will fail in the manner described.