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

fix(tests): properly test negative indexing #190

Merged
merged 2 commits into from
Jan 25, 2024

refactor: explain what we test and why

7ed58d1
Select commit
Loading
Failed to load commit list.
Merged

fix(tests): properly test negative indexing #190

refactor: explain what we test and why
7ed58d1
Select commit
Loading
Failed to load commit list.
Fleek.co / conformance-ipfs succeeded Jan 24, 2024 in 2m 43s

Build succeed

You can preview build output on the link below.

Details

Deploy started at 2024-01-24T01:18:00.824Z

2024-01-24T01:18:02.188Z: Deploy started
2024-01-24T01:18:04.154Z: Docker image: 'node:lts'
2024-01-24T01:18:04.154Z: Build command: 'apt update && apt install --yes jq hugo && npm ci && make website'
2024-01-24T01:18:04.154Z: Triggering build execution...
2024-01-24T01:18:48.628Z: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2024-01-24T01:18:48.664Z: Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
2024-01-24T01:18:48.688Z: Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
2024-01-24T01:18:48.698Z: Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
2024-01-24T01:18:48.750Z: Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8787 kB]
2024-01-24T01:18:48.854Z: Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [12.7 kB]
2024-01-24T01:18:48.856Z: Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [134 kB]
2024-01-24T01:18:49.927Z: Fetched 9185 kB in 1s (7128 kB/s)
2024-01-24T01:18:50.434Z: Reading package lists...
2024-01-24T01:18:50.566Z: Building dependency tree...
2024-01-24T01:18:50.566Z: Reading state information...
2024-01-24T01:18:50.577Z: All packages are up to date.
2024-01-24T01:18:50.584Z: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2024-01-24T01:18:51.117Z: Reading package lists...
2024-01-24T01:18:51.263Z: Building dependency tree...
2024-01-24T01:18:51.263Z: Reading state information...
2024-01-24T01:18:51.390Z: The following additional packages will be installed:
2024-01-24T01:18:51.391Z: golang-1.19-go golang-1.19-src golang-any golang-go golang-src libjq1
2024-01-24T01:18:51.391Z: libonig5 libsass1
2024-01-24T01:18:51.392Z: Suggested packages:
2024-01-24T01:18:51.392Z: bzr | brz asciidoctor npm pandoc python3-docutils
2024-01-24T01:18:51.466Z: The following NEW packages will be installed:
2024-01-24T01:18:51.467Z: golang-1.19-go golang-1.19-src golang-any golang-go golang-src hugo jq
2024-01-24T01:18:51.468Z: libjq1 libonig5 libsass1
2024-01-24T01:18:51.495Z: 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
2024-01-24T01:18:51.495Z: Need to get 94.2 MB of archives.
2024-01-24T01:18:51.495Z: After this operation, 522 MB of additional disk space will be used.
2024-01-24T01:18:51.495Z: Get:1 http://deb.debian.org/debian bookworm/main amd64 golang-1.19-src all 1.19.8-2 [18.3 MB]
2024-01-24T01:18:51.696Z: Get:2 http://deb.debian.org/debian bookworm/main amd64 golang-1.19-go amd64 1.19.8-2 [62.7 MB]
2024-01-24T01:18:52.219Z: Get:3 http://deb.debian.org/debian bookworm/main amd64 golang-src all 2:1.19~1 [5756 B]
2024-01-24T01:18:52.219Z: Get:4 http://deb.debian.org/debian bookworm/main amd64 golang-go amd64 2:1.19~1 [45.0 kB]
2024-01-24T01:18:52.220Z: Get:5 http://deb.debian.org/debian bookworm/main amd64 golang-any amd64 2:1.19~1 [5876 B]
2024-01-24T01:18:52.222Z: Get:6 http://deb.debian.org/debian bookworm/main amd64 libsass1 amd64 3.6.5+20220909-1 [717 kB]
2024-01-24T01:18:52.226Z: Get:7 http://deb.debian.org/debian bookworm/main amd64 hugo amd64 0.111.3-1 [12.0 MB]
2024-01-24T01:18:52.327Z: Get:8 http://deb.debian.org/debian bookworm/main amd64 libonig5 amd64 6.9.8-1 [188 kB]
2024-01-24T01:18:52.328Z: Get:9 http://deb.debian.org/debian bookworm/main amd64 libjq1 amd64 1.6-2.1 [135 kB]
2024-01-24T01:18:52.329Z: Get:10 http://deb.debian.org/debian bookworm/main amd64 jq amd64 1.6-2.1 [64.9 kB]
2024-01-24T01:18:52.472Z: debconf: delaying package configuration, since apt-utils is not installed
2024-01-24T01:18:52.502Z: Fetched 94.2 MB in 1s (110 MB/s)
2024-01-24T01:18:52.551Z: Selecting previously unselected package golang-1.19-src.
2024-01-24T01:18:52.565Z: (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23259 files and directories currently installed.)
2024-01-24T01:18:52.565Z: Preparing to unpack .../0-golang-1.19-src_1.19.8-2_all.deb ...
2024-01-24T01:18:52.570Z: Unpacking golang-1.19-src (1.19.8-2) ...
2024-01-24T01:18:54.360Z: Selecting previously unselected package golang-1.19-go.
2024-01-24T01:18:54.367Z: Preparing to unpack .../1-golang-1.19-go_1.19.8-2_amd64.deb ...
2024-01-24T01:18:54.371Z: Unpacking golang-1.19-go (1.19.8-2) ...
2024-01-24T01:18:56.685Z: Selecting previously unselected package golang-src.
2024-01-24T01:18:56.689Z: Preparing to unpack .../2-golang-src_2%3a1.19~1_all.deb ...
2024-01-24T01:18:56.693Z: Unpacking golang-src (2:1.19~1) ...
2024-01-24T01:18:56.728Z: Selecting previously unselected package golang-go:amd64.
2024-01-24T01:18:56.731Z: Preparing to unpack .../3-golang-go_2%3a1.19~1_amd64.deb ...
2024-01-24T01:18:56.737Z: Unpacking golang-go:amd64 (2:1.19~1) ...
2024-01-24T01:18:56.774Z: Selecting previously unselected package golang-any:amd64.
2024-01-24T01:18:56.778Z: Preparing to unpack .../4-golang-any_2%3a1.19~1_amd64.deb ...
2024-01-24T01:18:56.783Z: Unpacking golang-any:amd64 (2:1.19~1) ...
2024-01-24T01:18:56.827Z: Selecting previously unselected package libsass1:amd64.
2024-01-24T01:18:56.830Z: Preparing to unpack .../5-libsass1_3.6.5+20220909-1_amd64.deb ...
2024-01-24T01:18:56.838Z: Unpacking libsass1:amd64 (3.6.5+20220909-1) ...
2024-01-24T01:18:56.931Z: Selecting previously unselected package hugo.
2024-01-24T01:18:56.935Z: Preparing to unpack .../6-hugo_0.111.3-1_amd64.deb ...
2024-01-24T01:18:56.939Z: Unpacking hugo (0.111.3-1) ...
2024-01-24T01:18:57.558Z: Selecting previously unselected package libonig5:amd64.
2024-01-24T01:18:57.562Z: Preparing to unpack .../7-libonig5_6.9.8-1_amd64.deb ...
2024-01-24T01:18:57.566Z: Unpacking libonig5:amd64 (6.9.8-1) ...
2024-01-24T01:18:57.622Z: Selecting previously unselected package libjq1:amd64.
2024-01-24T01:18:57.626Z: Preparing to unpack .../8-libjq1_1.6-2.1_amd64.deb ...
2024-01-24T01:18:57.630Z: Unpacking libjq1:amd64 (1.6-2.1) ...
2024-01-24T01:18:57.670Z: Selecting previously unselected package jq.
2024-01-24T01:18:57.674Z: Preparing to unpack .../9-jq_1.6-2.1_amd64.deb ...
2024-01-24T01:18:57.681Z: Unpacking jq (1.6-2.1) ...
2024-01-24T01:18:57.730Z: Setting up libsass1:amd64 (3.6.5+20220909-1) ...
2024-01-24T01:18:57.748Z: Setting up golang-1.19-src (1.19.8-2) ...
2024-01-24T01:18:57.759Z: Setting up golang-src (2:1.19~1) ...
2024-01-24T01:18:57.776Z: Setting up libonig5:amd64 (6.9.8-1) ...
2024-01-24T01:18:57.787Z: Setting up golang-1.19-go (1.19.8-2) ...
2024-01-24T01:18:57.798Z: Setting up hugo (0.111.3-1) ...
2024-01-24T01:18:57.814Z: Setting up golang-go:amd64 (2:1.19~1) ...
2024-01-24T01:18:57.826Z: Setting up libjq1:amd64 (1.6-2.1) ...
2024-01-24T01:18:57.837Z: Setting up golang-any:amd64 (2:1.19~1) ...
2024-01-24T01:18:57.853Z: Setting up jq (1.6-2.1) ...
2024-01-24T01:18:57.864Z: Processing triggers for libc-bin (2.36-9+deb12u3) ...
2024-01-24T01:18:59.582Z: npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
2024-01-24T01:19:00.418Z: added 114 packages, and audited 115 packages in 2s
2024-01-24T01:19:00.418Z: 5 packages are looking for funding
2024-01-24T01:19:00.418Z: run `npm fund` for details
2024-01-24T01:19:00.419Z: found 0 vulnerabilities
2024-01-24T01:19:00.420Z: npm notice
2024-01-24T01:19:00.420Z: npm notice New minor version of npm available! 10.2.4 -> 10.3.0
2024-01-24T01:19:00.420Z: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.3.0>
2024-01-24T01:19:00.420Z: npm notice Run `npm install -g npm@10.3.0` to update!
2024-01-24T01:19:00.420Z: npm notice
2024-01-24T01:19:00.456Z: cat REPOSITORIES | xargs ./munge_download.sh ./artifacts
2024-01-24T01:19:00.468Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:00.468Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:00.757Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  6345  100  6345    0     0  21930      0 --:--:-- --:--:-- --:--:-- 21955
2024-01-24T01:19:00.767Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:00.767Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:01.145Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 30704  100 30704    0     0  81156      0 --:--:-- --:--:-- --:--:-- 81227
2024-01-24T01:19:01.155Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:01.155Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:01.357Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2988  100  2988    0     0  14787      0 --:--:-- --:--:-- --:--:-- 14792
2024-01-24T01:19:01.367Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:01.367Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:01.613Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-01-24T01:19:02.439Z: 51  307k   51  159k    0     0   173k      0  0:00:01 --:--:--  0:00:01  173k
100  307k  100  307k    0     0   286k      0  0:00:01  0:00:01 --:--:--  966k
2024-01-24T01:19:02.443Z: Archive:  /tmp/tmp.a9fGZygrYj/kubo-artifact.zip
2024-01-24T01:19:02.466Z: inflating: /tmp/tmp.a9fGZygrYj/output.json
2024-01-24T01:19:02.479Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:02.479Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:02.767Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 12697  100 12697    0     0  44043      0 --:--:-- --:--:-- --:--:-- 44086
2024-01-24T01:19:02.776Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:02.776Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:03.081Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13331  100 13331    0     0  43751      0 --:--:-- --:--:-- --:--:-- 43851
2024-01-24T01:19:03.090Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:03.090Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:03.284Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1512  100  1512    0     0   7776      0 --:--:-- --:--:-- --:--:--  7753
100  1512  100  1512    0     0   7772      0 --:--:-- --:--:-- --:--:--  7753
2024-01-24T01:19:03.294Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:03.294Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:03.558Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-01-24T01:19:04.457Z: 100  123k    0  123k    0     0   123k      0 --:--:--  0:00:01 --:--:--  123k
100  290k    0  290k    0     0   249k      0 --:--:--  0:00:01 --:--:-- 1034k
2024-01-24T01:19:04.461Z: Archive:  /tmp/tmp.P6iVGTVj5x/boxo-artifact.zip
2024-01-24T01:19:04.482Z: inflating: /tmp/tmp.P6iVGTVj5x/output.json
2024-01-24T01:19:04.494Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:04.494Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:04.866Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13157  100 13157    0     0  35294      0 --:--:-- --:--:-- --:--:-- 35368
2024-01-24T01:19:04.875Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:04.876Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:05.160Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14274  100 14274    0     0  50161      0 --:--:-- --:--:-- --:--:-- 50260
2024-01-24T01:19:05.169Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:05.169Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:05.389Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1548  100  1548    0     0   7044      0 --:--:-- --:--:-- --:--:--  7036
2024-01-24T01:19:05.398Z: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-01-24T01:19:05.398Z: Dload  Upload   Total   Spent    Left  Speed
2024-01-24T01:19:05.602Z: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   134  100   134    0     0    655      0 --:--:-- --:--:-- --:--:--   656
2024-01-24T01:19:05.606Z: Archive:  /tmp/tmp.pSTKhgau7y/bifrost-gateway-artifact.zip
2024-01-24T01:19:05.606Z: End-of-central-directory signature not found.  Either this file is not
2024-01-24T01:19:05.606Z: a zipfile, or it constitutes one disk of a multi-part archive.  In the
2024-01-24T01:19:05.606Z: latter case the central directory and zipfile comment will be found on
2024-01-24T01:19:05.606Z: the last disk(s) of this archive.
2024-01-24T01:19:05.606Z: unzip:  cannot find zipfile directory in one of /tmp/tmp.pSTKhgau7y/bifrost-gateway-artifact.zip or
2024-01-24T01:19:05.606Z: /tmp/tmp.pSTKhgau7y/bifrost-gateway-artifact.zip.zip, and cannot find /tmp/tmp.pSTKhgau7y/bifrost-gateway-artifact.zip.ZIP, period.
2024-01-24T01:19:05.606Z: ::warning::Failed to extract output.json for ipfs/bifrost-gateway
2024-01-24T01:19:05.606Z: find ./artifacts -name '*.json' -exec sh -c 'cat "{}" | node ./munge.js > out && mv out "{}"' \;
2024-01-24T01:19:11.896Z: rm -f ./aggregates.db
2024-01-24T01:19:11.896Z: node ./munge_sql.js ./aggregates.db ./artifacts/*.json
2024-01-24T01:19:11.976Z: Connected to the database.
2024-01-24T01:19:12.010Z: Processing ./artifacts/boxo.json...
2024-01-24T01:19:37.086Z: Processing ./artifacts/kubo.json...
2024-01-24T01:20:09.691Z: done
2024-01-24T01:20:09.692Z: Closed the database connection.
2024-01-24T01:20:09.697Z: node ./munge_aggregates.js ./aggregates.db ./www
2024-01-24T01:20:09.796Z: Connected to the database.
2024-01-24T01:20:16.018Z: done
2024-01-24T01:20:16.020Z: Closed the database connection.
2024-01-24T01:20:16.029Z: cd www && hugo --minify
2024-01-24T01:20:16.073Z: Start building sites …
2024-01-24T01:20:16.073Z: hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
2024-01-24T01:20:21.439Z: |  EN
2024-01-24T01:20:21.439Z: -------------------+--------
2024-01-24T01:20:21.439Z: Pages            | 11596
2024-01-24T01:20:21.439Z: Paginator pages  |   578
2024-01-24T01:20:21.439Z: Non-page files   |     0
2024-01-24T01:20:21.439Z: Static files     |     6
2024-01-24T01:20:21.439Z: Processed images |     0
2024-01-24T01:20:21.439Z: Aliases          |     4
2024-01-24T01:20:21.439Z: Sitemaps         |     1
2024-01-24T01:20:21.439Z: Cleaned          |     0
2024-01-24T01:20:21.439Z: Total in 5377 ms
2024-01-24T01:20:40.809Z: Deployed to IPFS and got the hash:
2024-01-24T01:20:40.809Z: QmYcCkCidWLxGQ7pFCyfS4JHVWLw7fE2SsTdrYc1eoYYB2
2024-01-24T01:20:40.809Z: Checking content availability on IPFS...
2024-01-24T01:20:42.354Z: You can preview this build on :
2024-01-24T01:20:42.354Z: https://bafybeieysdhamfi25txed6ut26r2zft456kmq5l23audosgxinhawl4f7e.on.fleek.co