carlos / contra Public

CI failed 40s

Branch
web/shared-vaults
Commit
d1623b2f Paul Campbell
Runner
ci-aws~paul@keymail.dev/ip-172-31-19-148
Reported by
ci-aws~paul@keymail.dev/ip-172-31-19-148
Queued
Started
Waited for a runner
4s
Last change
Attempt
1 of 2

Steps run in order, one after another.

  1. vet passed 18s
    go vet ./...
    go: downloading gorm.io/gorm v1.31.2
    go: downloading github.com/carlosframework/rastrillo v0.23.0
    go: downloading github.com/go-chi/chi/v5 v5.3.2
    go: downloading golang.org/x/crypto v0.55.0
    go: downloading github.com/jinzhu/now v1.1.5
    go: downloading golang.org/x/text v0.41.0
    go: downloading github.com/jinzhu/inflection v1.0.0
    go: downloading gorm.io/plugin/dbresolver v1.6.2
    go: downloading modernc.org/sqlite v1.55.0
    go: downloading golang.org/x/sys v0.47.0
    go: downloading modernc.org/libc v1.74.1
    go: downloading github.com/google/uuid v1.6.0
    go: downloading modernc.org/memory v1.11.0
    go: downloading github.com/dustin/go-humanize v1.0.1
    go: downloading modernc.org/mathutil v1.7.1
    go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
    
  2. fmt passed

    No output.

  3. test passed 14s
    go test ./...
    ?   	github.com/carlosframework/contra/cmd/contra	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra/auth	[no test files]
    ok  	github.com/carlosframework/contra/internal/contra/crypto	0.422s
    ?   	github.com/carlosframework/contra/internal/contra/icons	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra/mail	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra/model	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra/store	[no test files]
    ?   	github.com/carlosframework/contra/internal/contra/vault	[no test files]
    ok  	github.com/carlosframework/contra/internal/contratest	9.624s
    
  4. js-test failed 8s
    node --test test/crypto.test.mjs test/items.test.mjs test/qr.test.mjs test/kit.test.mjs
    TAP version 13
    # Subtest: HKDF: every contra/v1 label
    ok 1 - HKDF: every contra/v1 label
      ---
      duration_ms: 10.103316
      type: 'test'
      ...
    # Subtest: KCV
    ok 2 - KCV
      ---
      duration_ms: 2.202828
      type: 'test'
      ...
    # Subtest: P-256 from a seed, including the rejection branch
    ok 3 - P-256 from a seed, including the rejection branch
      ---
      duration_ms: 12.703534
      type: 'test'
      ...
    # Subtest: signed challenge round-trips against the derived public key
    ok 4 - signed challenge round-trips against the derived public key
      ---
      duration_ms: 5.196914
      type: 'test'
      ...
    # Subtest: Crockford: alphabet, encoding, normalisation, strict decoding
    ok 5 - Crockford: alphabet, encoding, normalisation, strict decoding
      ---
      duration_ms: 1.042981
      type: 'test'
      ...
    # Subtest: the printed code, and the O/I/L confusions it has to survive
    ok 6 - the printed code, and the O/I/L confusions it has to survive
      ---
      duration_ms: 2.153955
      type: 'test'
      ...
    # Subtest: repair recovers one substituted character
    ok 7 - repair recovers one substituted character
      ---
      duration_ms: 47.474483
      type: 'test'
      ...
    # Subtest: AEAD: the AAD binding and every wrap
    ok 8 - AEAD: the AAD binding and every wrap
      ---
      duration_ms: 2.767756
      type: 'test'
      ...
    # Subtest: AEAD: the item, scoped to its vault
    ok 9 - AEAD: the item, scoped to its vault
      ---
      duration_ms: 1.12289
      type: 'test'
      ...
    # Subtest: a transplanted ciphertext does not open
    ok 10 - a transplanted ciphertext does not open
      ---
      duration_ms: 1.931961
      type: 'test'
      ...
    # Subtest: padding quantises into 256-byte buckets and round-trips
    ok 11 - padding quantises into 256-byte buckets and round-trips
      ---
      duration_ms: 0.936282
      type: 'test'
      ...
    # Subtest: the KDF parameter floor refuses what a malicious server would offer
    ok 12 - the KDF parameter floor refuses what a malicious server would offer
      ---
      duration_ms: 1.184606
      type: 'test'
      ...
    # Subtest: Argon2id matches the published PHC reference vector
    ok 13 - Argon2id matches the published PHC reference vector
      ---
      duration_ms: 1823.868372
      type: 'test'
      ...
    # Subtest: Argon2id at the corners the 64 MiB case does not reach
    ok 14 - Argon2id at the corners the 64 MiB case does not reach
      ---
      duration_ms: 216.409146
      type: 'test'
      ...
    # Subtest: Argon2id matches the golden vector at the parameters DESIGN.md pins
    ok 15 - Argon2id matches the golden vector at the parameters DESIGN.md pins
      ---
      duration_ms: 2605.207522
      type: 'test'
      ...
    # Subtest: the account chain, end to end
    ok 16 - the account chain, end to end
      ---
      duration_ms: 2615.170273
      type: 'test'
      ...
    # Subtest: an item round-trips through create, list and update
    ok 17 - an item round-trips through create, list and update
      ---
      duration_ms: 10.996845
      type: 'test'
      ...
    # Subtest: nothing readable reaches the network
    ok 18 - nothing readable reaches the network
      ---
      duration_ms: 2.58775
      type: 'test'
      ...
    # Subtest: item ciphertexts are quantised into 256-byte buckets
    ok 19 - item ciphertexts are quantised into 256-byte buckets
      ---
      duration_ms: 1.589656
      type: 'test'
      ...
    # Subtest: an item does not open in another slot
    ok 20 - an item does not open in another slot
      ---
      duration_ms: 2.817362
      type: 'test'
      ...
    # Subtest: every field is present whether or not it was filled in
    ok 21 - every field is present whether or not it was filled in
      ---
      duration_ms: 1.271498
      type: 'test'
      ...
    # Subtest: the Account Key cache is storage handed in, not reached for
    ok 22 - the Account Key cache is storage handed in, not reached for
      ---
      duration_ms: 0.353666
      type: 'test'
      ...
    # Traceback (most recent call last):
    #   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py", line 25, in <module>
    #     import numpy as np
    # ModuleNotFoundError: No module named 'numpy'
    # Subtest: both documents render, scan, and read back
    not ok 23 - both documents render, scan, and read back
      ---
      duration_ms: 128.662061
      type: 'test'
      location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:41:1'
      failureType: 'testCodeFailure'
      error: |-
        Command failed: python3 /var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py
        Traceback (most recent call last):
          File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py", line 25, in <module>
            import numpy as np
        ModuleNotFoundError: No module named 'numpy'
        
      code: 'ERR_TEST_FAILURE'
      stack: |-
        genericNodeError (node:internal/errors:983:15)
        wrappedFn (node:internal/errors:537:14)
        checkExecSyncError (node:child_process:916:11)
        execFileSync (node:child_process:952:15)
        ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:33:15)
        TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:45:20)
        async Test.run (node:internal/test_runner/test:1054:7)
        async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
      ...
    # Subtest: neither document carries the other's secret
    ok 24 - neither document carries the other's secret
      ---
      duration_ms: 8.262336
      type: 'test'
      ...
    # Subtest: the writer refuses characters it cannot draw
    ok 25 - the writer refuses characters it cannot draw
      ---
      duration_ms: 1.033356
      type: 'test'
      ...
    # Traceback (most recent call last):
    #   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
    #     import numpy as np
    # ModuleNotFoundError: No module named 'numpy'
    # Traceback (most recent call last):
    #   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
    #     import numpy as np
    # ModuleNotFoundError: No module named 'numpy'
    # Subtest: every symbol scans, and is the symbol another encoder would have made
    not ok 26 - every symbol scans, and is the symbol another encoder would have made
      ---
      duration_ms: 136.700986
      type: 'test'
      location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:57:1'
      failureType: 'testCodeFailure'
      error: 'spawnSync python3 EPIPE'
      code: 'EPIPE'
      stack: |-
        Object.spawnSync (node:internal/child_process:1120:20)
        spawnSync (node:child_process:902:24)
        execFileSync (node:child_process:945:15)
        ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:49:15)
        TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:68:20)
        Test.runInAsyncScope (node:async_hooks:214:14)
        Test.run (node:internal/test_runner/test:1047:25)
        Test.start (node:internal/test_runner/test:944:17)
        startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17)
      ...
    # Subtest: the automatically chosen mask still scans
    not ok 27 - the automatically chosen mask still scans
      ---
      duration_ms: 120.971465
      type: 'test'
      location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:82:1'
      failureType: 'testCodeFailure'
      error: |-
        Command failed: python3 /var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py
        Traceback (most recent call last):
          File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
            import numpy as np
        ModuleNotFoundError: No module named 'numpy'
        
      code: 'ERR_TEST_FAILURE'
      stack: |-
        genericNodeError (node:internal/errors:983:15)
        wrappedFn (node:internal/errors:537:14)
        checkExecSyncError (node:child_process:916:11)
        execFileSync (node:child_process:952:15)
        ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:49:15)
        TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:87:19)
        Test.runInAsyncScope (node:async_hooks:214:14)
        Test.run (node:internal/test_runner/test:1047:25)
        Test.processPendingSubtests (node:internal/test_runner/test:744:18)
        Test.postRun (node:internal/test_runner/test:1173:19)
      ...
    # Subtest: a printed code is a version 3 symbol at EC-Q
    ok 28 - a printed code is a version 3 symbol at EC-Q
      ---
      duration_ms: 1.484397
      type: 'test'
      ...
    # Subtest: it refuses what it cannot encode
    ok 29 - it refuses what it cannot encode
      ---
      duration_ms: 0.624701
      type: 'test'
      ...
    1..29
    # tests 29
    # suites 0
    # pass 26
    # fail 3
    # cancelled 0
    # skipped 0
    # todo 0
    # duration_ms 7419.495084
    make: *** [Makefile:95: test-js] Error 1
    
    amadan: step js-test failed: exit status 2
    
  5. migration-check not run

    No output.

Whole run log
=== vet ===
go vet ./...
go: downloading gorm.io/gorm v1.31.2
go: downloading github.com/carlosframework/rastrillo v0.23.0
go: downloading github.com/go-chi/chi/v5 v5.3.2
go: downloading golang.org/x/crypto v0.55.0
go: downloading github.com/jinzhu/now v1.1.5
go: downloading golang.org/x/text v0.41.0
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading gorm.io/plugin/dbresolver v1.6.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/sys v0.47.0
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== fmt ===
=== test ===
go test ./...
?   	github.com/carlosframework/contra/cmd/contra	[no test files]
?   	github.com/carlosframework/contra/internal/contra	[no test files]
?   	github.com/carlosframework/contra/internal/contra/auth	[no test files]
ok  	github.com/carlosframework/contra/internal/contra/crypto	0.422s
?   	github.com/carlosframework/contra/internal/contra/icons	[no test files]
?   	github.com/carlosframework/contra/internal/contra/mail	[no test files]
?   	github.com/carlosframework/contra/internal/contra/model	[no test files]
?   	github.com/carlosframework/contra/internal/contra/store	[no test files]
?   	github.com/carlosframework/contra/internal/contra/vault	[no test files]
ok  	github.com/carlosframework/contra/internal/contratest	9.624s
=== js-test ===
node --test test/crypto.test.mjs test/items.test.mjs test/qr.test.mjs test/kit.test.mjs
TAP version 13
# Subtest: HKDF: every contra/v1 label
ok 1 - HKDF: every contra/v1 label
  ---
  duration_ms: 10.103316
  type: 'test'
  ...
# Subtest: KCV
ok 2 - KCV
  ---
  duration_ms: 2.202828
  type: 'test'
  ...
# Subtest: P-256 from a seed, including the rejection branch
ok 3 - P-256 from a seed, including the rejection branch
  ---
  duration_ms: 12.703534
  type: 'test'
  ...
# Subtest: signed challenge round-trips against the derived public key
ok 4 - signed challenge round-trips against the derived public key
  ---
  duration_ms: 5.196914
  type: 'test'
  ...
# Subtest: Crockford: alphabet, encoding, normalisation, strict decoding
ok 5 - Crockford: alphabet, encoding, normalisation, strict decoding
  ---
  duration_ms: 1.042981
  type: 'test'
  ...
# Subtest: the printed code, and the O/I/L confusions it has to survive
ok 6 - the printed code, and the O/I/L confusions it has to survive
  ---
  duration_ms: 2.153955
  type: 'test'
  ...
# Subtest: repair recovers one substituted character
ok 7 - repair recovers one substituted character
  ---
  duration_ms: 47.474483
  type: 'test'
  ...
# Subtest: AEAD: the AAD binding and every wrap
ok 8 - AEAD: the AAD binding and every wrap
  ---
  duration_ms: 2.767756
  type: 'test'
  ...
# Subtest: AEAD: the item, scoped to its vault
ok 9 - AEAD: the item, scoped to its vault
  ---
  duration_ms: 1.12289
  type: 'test'
  ...
# Subtest: a transplanted ciphertext does not open
ok 10 - a transplanted ciphertext does not open
  ---
  duration_ms: 1.931961
  type: 'test'
  ...
# Subtest: padding quantises into 256-byte buckets and round-trips
ok 11 - padding quantises into 256-byte buckets and round-trips
  ---
  duration_ms: 0.936282
  type: 'test'
  ...
# Subtest: the KDF parameter floor refuses what a malicious server would offer
ok 12 - the KDF parameter floor refuses what a malicious server would offer
  ---
  duration_ms: 1.184606
  type: 'test'
  ...
# Subtest: Argon2id matches the published PHC reference vector
ok 13 - Argon2id matches the published PHC reference vector
  ---
  duration_ms: 1823.868372
  type: 'test'
  ...
# Subtest: Argon2id at the corners the 64 MiB case does not reach
ok 14 - Argon2id at the corners the 64 MiB case does not reach
  ---
  duration_ms: 216.409146
  type: 'test'
  ...
# Subtest: Argon2id matches the golden vector at the parameters DESIGN.md pins
ok 15 - Argon2id matches the golden vector at the parameters DESIGN.md pins
  ---
  duration_ms: 2605.207522
  type: 'test'
  ...
# Subtest: the account chain, end to end
ok 16 - the account chain, end to end
  ---
  duration_ms: 2615.170273
  type: 'test'
  ...
# Subtest: an item round-trips through create, list and update
ok 17 - an item round-trips through create, list and update
  ---
  duration_ms: 10.996845
  type: 'test'
  ...
# Subtest: nothing readable reaches the network
ok 18 - nothing readable reaches the network
  ---
  duration_ms: 2.58775
  type: 'test'
  ...
# Subtest: item ciphertexts are quantised into 256-byte buckets
ok 19 - item ciphertexts are quantised into 256-byte buckets
  ---
  duration_ms: 1.589656
  type: 'test'
  ...
# Subtest: an item does not open in another slot
ok 20 - an item does not open in another slot
  ---
  duration_ms: 2.817362
  type: 'test'
  ...
# Subtest: every field is present whether or not it was filled in
ok 21 - every field is present whether or not it was filled in
  ---
  duration_ms: 1.271498
  type: 'test'
  ...
# Subtest: the Account Key cache is storage handed in, not reached for
ok 22 - the Account Key cache is storage handed in, not reached for
  ---
  duration_ms: 0.353666
  type: 'test'
  ...
# Traceback (most recent call last):
#   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py", line 25, in <module>
#     import numpy as np
# ModuleNotFoundError: No module named 'numpy'
# Subtest: both documents render, scan, and read back
not ok 23 - both documents render, scan, and read back
  ---
  duration_ms: 128.662061
  type: 'test'
  location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:41:1'
  failureType: 'testCodeFailure'
  error: |-
    Command failed: python3 /var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py
    Traceback (most recent call last):
      File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/pdforacle.py", line 25, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'
    
  code: 'ERR_TEST_FAILURE'
  stack: |-
    genericNodeError (node:internal/errors:983:15)
    wrappedFn (node:internal/errors:537:14)
    checkExecSyncError (node:child_process:916:11)
    execFileSync (node:child_process:952:15)
    ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:33:15)
    TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/kit.test.mjs:45:20)
    async Test.run (node:internal/test_runner/test:1054:7)
    async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
  ...
# Subtest: neither document carries the other's secret
ok 24 - neither document carries the other's secret
  ---
  duration_ms: 8.262336
  type: 'test'
  ...
# Subtest: the writer refuses characters it cannot draw
ok 25 - the writer refuses characters it cannot draw
  ---
  duration_ms: 1.033356
  type: 'test'
  ...
# Traceback (most recent call last):
#   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
#     import numpy as np
# ModuleNotFoundError: No module named 'numpy'
# Traceback (most recent call last):
#   File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
#     import numpy as np
# ModuleNotFoundError: No module named 'numpy'
# Subtest: every symbol scans, and is the symbol another encoder would have made
not ok 26 - every symbol scans, and is the symbol another encoder would have made
  ---
  duration_ms: 136.700986
  type: 'test'
  location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:57:1'
  failureType: 'testCodeFailure'
  error: 'spawnSync python3 EPIPE'
  code: 'EPIPE'
  stack: |-
    Object.spawnSync (node:internal/child_process:1120:20)
    spawnSync (node:child_process:902:24)
    execFileSync (node:child_process:945:15)
    ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:49:15)
    TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:68:20)
    Test.runInAsyncScope (node:async_hooks:214:14)
    Test.run (node:internal/test_runner/test:1047:25)
    Test.start (node:internal/test_runner/test:944:17)
    startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17)
  ...
# Subtest: the automatically chosen mask still scans
not ok 27 - the automatically chosen mask still scans
  ---
  duration_ms: 120.971465
  type: 'test'
  location: '/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:82:1'
  failureType: 'testCodeFailure'
  error: |-
    Command failed: python3 /var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py
    Traceback (most recent call last):
      File "/var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qroracle.py", line 30, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'
    
  code: 'ERR_TEST_FAILURE'
  stack: |-
    genericNodeError (node:internal/errors:983:15)
    wrappedFn (node:internal/errors:537:14)
    checkExecSyncError (node:child_process:916:11)
    execFileSync (node:child_process:952:15)
    ask (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:49:15)
    TestContext.<anonymous> (file:///var/lib/amadan-runner/w2/repos/carlos__contra/wt/web__shared-vaults/test/qr.test.mjs:87:19)
    Test.runInAsyncScope (node:async_hooks:214:14)
    Test.run (node:internal/test_runner/test:1047:25)
    Test.processPendingSubtests (node:internal/test_runner/test:744:18)
    Test.postRun (node:internal/test_runner/test:1173:19)
  ...
# Subtest: a printed code is a version 3 symbol at EC-Q
ok 28 - a printed code is a version 3 symbol at EC-Q
  ---
  duration_ms: 1.484397
  type: 'test'
  ...
# Subtest: it refuses what it cannot encode
ok 29 - it refuses what it cannot encode
  ---
  duration_ms: 0.624701
  type: 'test'
  ...
1..29
# tests 29
# suites 0
# pass 26
# fail 3
# cancelled 0
# skipped 0
# todo 0
# duration_ms 7419.495084
make: *** [Makefile:95: test-js] Error 1

amadan: step js-test failed: exit status 2

amadan: job failed at step js-test — its output is above, not at the tail of this log