Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ipfs refs is broken after kubo 12 #77

Open
Tracked by #56
SgtPooki opened this issue Nov 10, 2022 · 3 comments
Open
Tracked by #56

bug: ipfs refs is broken after kubo 12 #77

SgtPooki opened this issue Nov 10, 2022 · 3 comments

Comments

@SgtPooki
Copy link
Member

discovered during #56

GO_IPFS_GAMUT=true npm run test -- -f 'test/interface-tests.spec.js' --bail=false -g 'should print added files'

> [email protected] test
> aegir test "-f" "test/interface-tests.spec.js" "--bail=false" "-g" "should print added files"

test node.js

  go-ipfs current at undefined
    .refs
      1) should print added files

  go-ipfs 12.0 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12.0/go-ipfs/ipfs
    .refs
      ✔ should print added files

  go-ipfs 12 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12/go-ipfs/ipfs
    .refs
      ✔ should print added files

  go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
    .refs
      2) should print added files

  go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
    .refs
      3) should print added files

  go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
    .refs
      4) should print added files

  go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
    .refs
      5) should print added files


  2 passing (28s)
  5 failing

  1) go-ipfs current at undefined
       .refs
         should print added files:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  2) go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
       .refs
         should print added files:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  3) go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
       .refs
         should print added files:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  4) go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
       .refs
         should print added files:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  5) go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
       .refs
         should print added files:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
@SgtPooki
Copy link
Member Author

> GO_IPFS_GAMUT=true npm run test -- -f 'test/interface-tests.spec.js' --bail=false -g 'should print files in edges format'

> [email protected] test
> aegir test "-f" "test/interface-tests.spec.js" "--bail=false" "-g" "should print files in edges format"

test node.js


  go-ipfs current at undefined
    .refs
      1) should print files in edges format

  go-ipfs 12.0 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12.0/go-ipfs/ipfs
    .refs
      ✔ should print files in edges format

  go-ipfs 12 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12/go-ipfs/ipfs
    .refs
      ✔ should print files in edges format

  go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
    .refs
      2) should print files in edges format

  go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
    .refs
      3) should print files in edges format

  go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
    .refs
      4) should print files in edges format

  go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
    .refs
      5) should print files in edges format


  2 passing (28s)
  5 failing

  1) go-ipfs current at undefined
       .refs
         should print files in edges format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  2) go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
       .refs
         should print files in edges format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  3) go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
       .refs
         should print files in edges format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  4) go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
       .refs
         should print files in edges format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  5) go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
       .refs
         should print files in edges format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s -> QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

@SgtPooki
Copy link
Member Author

GO_IPFS_GAMUT=true npm run test -- -f 'test/interface-tests.spec.js' --bail=false -g 'should print files in custom format'

> [email protected] test
> aegir test "-f" "test/interface-tests.spec.js" "--bail=false" "-g" "should print files in custom format"

test node.js


  go-ipfs current at undefined
    .refs
      1) should print files in custom format

  go-ipfs 12.0 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12.0/go-ipfs/ipfs
    .refs
      ✔ should print files in custom format

  go-ipfs 12 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-12/go-ipfs/ipfs
    .refs
      ✔ should print files in custom format

  go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
    .refs
      2) should print files in custom format

  go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
    .refs
      3) should print files in custom format

  go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
    .refs
      4) should print files in custom format

  go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
    .refs
      5) should print files in custom format


  2 passing (29s)
  5 failing

  1) go-ipfs current at undefined
       .refs
         should print files in custom format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "atlantic-animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "fruits: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +  "mushroom.txt: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  2) go-ipfs 13 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-13/go-ipfs/ipfs
       .refs
         should print files in custom format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "atlantic-animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "fruits: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +  "mushroom.txt: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  3) go-ipfs 14 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-14/go-ipfs/ipfs
       .refs
         should print files in custom format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "atlantic-animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "fruits: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +  "mushroom.txt: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  4) go-ipfs 15 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-15/go-ipfs/ipfs
       .refs
         should print files in custom format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "atlantic-animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "fruits: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +  "mushroom.txt: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  5) go-ipfs 16 at /Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/go-ipfs-16/go-ipfs/ipfs
       .refs
         should print files in custom format:

      AssertionError: expected [] to deeply equal [ …(4) ]
      + expected - actual

      -[]
      +[
      +  "animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYEJ7qQNZUvBnv4SZ3rEbksagaan3sGvnUq948vSG8Z34"
      +  "atlantic-animals: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmUXzZKa3xhTauLektUiK4GiogHskuz1c57CnnoP4TgYJD"
      +  "fruits: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmYLvZrFn8KE2bcJ9UFhthScBVbbcXEgkJnnCBeKWYkpuQ"
      +  "mushroom.txt: Qmd5MhNjx3NSZm3L2QKG1TFvqkTRbtZwGJinqEfqpfHH7s => QmRfqT4uTUgFXhWbfBZm6eZxi2FQ8pqYK5tcWRyTZ7RcgY"
      +]

      at Context.<anonymous> (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/test/interface-tests/src/refs.js:73:48)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

SgtPooki added a commit that referenced this issue Dec 7, 2022
SgtPooki added a commit that referenced this issue Dec 15, 2022
* chore: sync with ipfs/test/interface-http-go.js

see: https://github.com/ipfs/js-ipfs/blob/6ae5eb7da33adfdee70c7edc09a0f644d5347718/packages/ipfs/test/interface-http-go.js

* chore: install multiple go-ipfs versions

`ipfs` uses `[email protected]`, which means the tests we copied will not
work the same.
See https://github.com/ipfs/js-ipfs/blob/6ae5eb7/packages/ipfs/package.json#L93

Adding multiple go versions in this commit. Will be facilitating the
use of these versions in the next commit

* fix: .bitswap.wantlist before test

* fix: .bitswap.wantlistForPeer before

* chore: enable running interface tests against multiple kubo versions

* fix: bitswap ipfs spawn types

* fix: dht utils ipfs api usage

* fix: dag.get test

* fix: dht tests

* fix: .id test

* fix: pinning service tests

* fix: misc tests

* fix: pinning tests

* fix: .ping tests

* fix: .swarm.peers passes

* fix: .swarm.addrs passes

* fix: .swarm.disconnect passes

* fix: all tests are passing in node

some additional tests were skipped, but node tests are succeeding

* fix: browser interface tests are passing or skipped

* fix: webworker tests pass

* feat: fix webworker tests

* chore: code cleanup

* chore: commentary and code cleanup

* fix: update package-lock.json

* chore: update current go-ipfs to v0.17

* chore: 'should compress a directory as a tarball' actually passes

* Revert "chore: 'should compress a directory as a tarball' actually passes"

This reverts commit 1efca00.

* use lts on test node

* fix: .pubsub.subscribe tests

* chore: actually wait for factory cleanup

* chore: fix lint and package-lock

* fix: dep-check

* chore: skip .refs tests

@see #77

* chore: remove root tests not implemented in kubo

* chore: add lint:fix script

* chore: consolidate eslint configs and add mocha plugin

* chore: fix mocha lint failures

* chore: remove check for cidv0 from block.put

* chore: attempt to fix hang after test

'restricts the number of concurrent connections' was hanging after running. Some things were not tied up.
@see https://github.com/ipfs/js-kubo-rpc-client/actions/runs/3642110903/jobs/6148859075

* chore: skip broken test

@see https://github.com/ipfs/js-kubo-rpc-client/tree/investigateConcurrencyTest

* fix: ipfs libs do not work with node LTS fetch

* fix: .cat beforeAll hook

* fix: .get beforeAll

* chore: update logger name

* fix: .get test 'should get a directory'

grouped files/dirs in describe

* chore: add dev helper scripts

* fix(test): should put a buffer, using defaults

* chore: remove currently broken typedocs

* fix(test): should error when removing non-existent blocks

* fix(test): should import car with roots but no blocks

* chore: add more debug output to test

* fix(test): should respect timeout option when removing a block

* chore(lint): fix lint failure

* fix(test): should import car with roots but no blocks

* fix(tests): .dag tests

* fix(test): should fail to find other peer if peer does not exist

* chore(test): disable opsPerSec expectation

* test(chore): supports concurrent writes

* fix(tests): .pin.remote.ls

* Significant DX improvement
* Significant setup improvement
* Significant speed improvement

* chore(lint): fix jsdoc complaint

* chore(test): increase .pin.remote.rm & .rmAll timeouts

* fix(test): should receive multiple messages

* fix(test): should receive messages from a different node on lots of topics

* fix(test): should unsubscribe individual handlers

* fix(test): .pubsub.peers

* chore: attempt to fix 'should list "queued" pins'

see https://github.com/ipfs/js-kubo-rpc-client/actions/runs/3662612448/jobs/6191849862

* fix(lint): unused import

* chore: attempt to clear pins prior to .pin.remote.ls 'after adding pins' group

* chore(tmp): don't fail fast in CI to ease debugging

* fix(test): .pubsub.subscribe

significant overhaul of tests. they're much more stable now

* fix(lint): build passes

* fix(test): .pin.remote.ls

* chore: cleanup .aegir and add more types

* chore: reduce duplication in js-test-and-release workflow

* chore(tmp): temporarily bail=false and fail-fast=false for non-node targets

* chore: remove tests for things not implemented in kubo

* feat: unskip should resolve IPNS link tests

* fix(test): .get directories

* chore(test): skip should default to blocking pin on chrome

* fix(lint): build succeeds

* chore(test): unskip should pin dag-cbor

* chore(test): increase 'with sharding' test timeout

see #83 (comment)

* chore: remove old go-ipfs version testing support

* fix(test): node/request-api - trailer headers

* fix: test running when not in node

* chore: move byCID function to utils

* fix(test): 'should import car with roots but no blocks' succeeds consistently

* fix(test): re-add 'should export a chunk of a file'

* fix(test): test 'should list peers this node is connected to' specifics

* chore: address the rest of the PR comments

Co-authored-by: Henrique Dias <[email protected]>
@SgtPooki
Copy link
Member Author

SgtPooki commented Jan 3, 2023

note that GO_IPFS_GAMUT is no longer supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant