From 28a57ed8b7c2cc9c16ca8ffea4b486774720e86e Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Wed, 26 Jul 2023 12:21:39 +0200 Subject: [PATCH 1/9] ci: add dev e2e --- .github/workflows/test-dev-e2e.yml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/test-dev-e2e.yml diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml new file mode 100644 index 000000000..902bfd202 --- /dev/null +++ b/.github/workflows/test-dev-e2e.yml @@ -0,0 +1,54 @@ +name: Test Dev (e2e) + +on: + workflow_dispatch: + push: + # branches: + # - main + pull_request: + +jobs: + test: + strategy: + matrix: + target: ["laurentsenta/bifrost-gateway"] + fail-fast: false + uses: ${{ matrix.target }}/.github/workflows/gateway-conformance.yml@main + with: + version_gway: "latest" + artifact_json_name: ${{ matrix.target }}-output.json + aggregate: + runs-on: "ubuntu-latest" + needs: [test] + # the tests might have failed + if: always() + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v3 + with: + path: "gateway-conformance" + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + - name: Aggregate results + working-directory: ./artifacts + run: | + set -e + set -o pipefail + mkdir ./aggregates + + # download-artifact downloads artifacts in a directory named after the artifact + # details: https://github.com/actions/download-artifact#download-all-artifacts + for folder in ./conformance-*.json; do + file="${folder}/output.json" + new_file="aggregates/${folder#conformance-}" + jq -ns 'inputs' "$file" | node ../gateway-conformance/aggregate.js 1 > "${new_file}" + done + + node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > ./table.md + - name: Set summary + if: (failure() || success()) + run: cat ./artifacts/table.md >> $GITHUB_STEP_SUMMARY \ No newline at end of file From 415ca48c58e3f13fd6915482f2fa14209050e5de Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Wed, 26 Jul 2023 12:25:44 +0200 Subject: [PATCH 2/9] fix: cannot use custom workflow in matrix --- .github/workflows/test-dev-e2e.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml index 902bfd202..0a75cd07b 100644 --- a/.github/workflows/test-dev-e2e.yml +++ b/.github/workflows/test-dev-e2e.yml @@ -8,18 +8,23 @@ on: pull_request: jobs: - test: - strategy: - matrix: - target: ["laurentsenta/bifrost-gateway"] - fail-fast: false - uses: ${{ matrix.target }}/.github/workflows/gateway-conformance.yml@main + # test: + # strategy: + # matrix: + # target: ["laurentsenta/bifrost-gateway"] + # fail-fast: false + # uses: ${{ matrix.target }}/.github/workflows/gateway-conformance.yml@main + # with: + # version_gway: "latest" + # artifact_json_name: ${{ matrix.target }}-output.json + bifrost-gateway: + uses: singulargarden/bifrost-gateway/.github/workflows/gateway-conformance.yml@main with: version_gway: "latest" - artifact_json_name: ${{ matrix.target }}-output.json + artifact_json_name: conformance-bifrost-gateway.json aggregate: runs-on: "ubuntu-latest" - needs: [test] + needs: [bifrost-gateway] # the tests might have failed if: always() defaults: From 94c0e3e6f157d40d902dd00c3eddf90ecf4bcd13 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Wed, 26 Jul 2023 14:35:18 +0200 Subject: [PATCH 3/9] ci: tweaks --- .github/workflows/test-dev-e2e.yml | 51 ++---------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml index 0a75cd07b..a2b666e1d 100644 --- a/.github/workflows/test-dev-e2e.yml +++ b/.github/workflows/test-dev-e2e.yml @@ -3,57 +3,12 @@ name: Test Dev (e2e) on: workflow_dispatch: push: - # branches: - # - main + branches: + - main pull_request: jobs: - # test: - # strategy: - # matrix: - # target: ["laurentsenta/bifrost-gateway"] - # fail-fast: false - # uses: ${{ matrix.target }}/.github/workflows/gateway-conformance.yml@main - # with: - # version_gway: "latest" - # artifact_json_name: ${{ matrix.target }}-output.json bifrost-gateway: - uses: singulargarden/bifrost-gateway/.github/workflows/gateway-conformance.yml@main + uses: singulargarden/bifrost-gateway2/.github/workflows/gateway-conformance.yml@main with: - version_gway: "latest" artifact_json_name: conformance-bifrost-gateway.json - aggregate: - runs-on: "ubuntu-latest" - needs: [bifrost-gateway] - # the tests might have failed - if: always() - defaults: - run: - shell: bash - steps: - - uses: actions/checkout@v3 - with: - path: "gateway-conformance" - - name: Download Artifacts - uses: actions/download-artifact@v3 - with: - path: artifacts - - name: Aggregate results - working-directory: ./artifacts - run: | - set -e - set -o pipefail - mkdir ./aggregates - - # download-artifact downloads artifacts in a directory named after the artifact - # details: https://github.com/actions/download-artifact#download-all-artifacts - for folder in ./conformance-*.json; do - file="${folder}/output.json" - new_file="aggregates/${folder#conformance-}" - jq -ns 'inputs' "$file" | node ../gateway-conformance/aggregate.js 1 > "${new_file}" - done - - node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > ./table.md - - name: Set summary - if: (failure() || success()) - run: cat ./artifacts/table.md >> $GITHUB_STEP_SUMMARY \ No newline at end of file From 3b5297f906d0019257f2ffbead087eed99708a9e Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 27 Jul 2023 08:58:19 +0200 Subject: [PATCH 4/9] add aggregates --- .github/workflows/test-dev-e2e.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml index a2b666e1d..e6ff6abd6 100644 --- a/.github/workflows/test-dev-e2e.yml +++ b/.github/workflows/test-dev-e2e.yml @@ -12,3 +12,38 @@ jobs: uses: singulargarden/bifrost-gateway2/.github/workflows/gateway-conformance.yml@main with: artifact_json_name: conformance-bifrost-gateway.json + aggregate: + runs-on: "ubuntu-latest" + needs: [bifrost-gateway] + # the tests might have failed + if: always() + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v3 + with: + path: "gateway-conformance" + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + - name: Aggregate results + working-directory: ./artifacts + run: | + set -e + set -o pipefail + mkdir ./aggregates + + # download-artifact downloads artifacts in a directory named after the artifact + # details: https://github.com/actions/download-artifact#download-all-artifacts + for folder in ./conformance-*.json; do + file="${folder}/output.json" + new_file="aggregates/${folder#conformance-}" + jq -ns 'inputs' "$file" | node ../gateway-conformance/aggregate.js 1 > "${new_file}" + done + + node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > ./table.md + - name: Set summary + if: (failure() || success()) + run: cat ./artifacts/table.md >> $GITHUB_STEP_SUMMARY \ No newline at end of file From 33cd7378f23b22c59cc07e79e5a768db439d5295 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 27 Jul 2023 09:10:47 +0200 Subject: [PATCH 5/9] feat: add kubo --- .github/workflows/test-dev-e2e.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml index e6ff6abd6..38a297cc7 100644 --- a/.github/workflows/test-dev-e2e.yml +++ b/.github/workflows/test-dev-e2e.yml @@ -12,9 +12,13 @@ jobs: uses: singulargarden/bifrost-gateway2/.github/workflows/gateway-conformance.yml@main with: artifact_json_name: conformance-bifrost-gateway.json + kubo-gateway: + uses: singulargarden/kubo/.github/workflows/gateway-conformance.yml@master + with: + artifact_json_name: conformance-kubo-gateway.json aggregate: runs-on: "ubuntu-latest" - needs: [bifrost-gateway] + needs: [bifrost-gateway, kubo-gateway] # the tests might have failed if: always() defaults: From dcddf02018a9b086e4412636e9733e3b4d515e88 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 27 Jul 2023 09:33:49 +0200 Subject: [PATCH 6/9] update-badge generic --- .github/workflows/update-badge.yml | 75 ++++++++++++++++++++---------- README.md | 4 +- 2 files changed, 54 insertions(+), 25 deletions(-) diff --git a/.github/workflows/update-badge.yml b/.github/workflows/update-badge.yml index 4c647c439..d67720858 100644 --- a/.github/workflows/update-badge.yml +++ b/.github/workflows/update-badge.yml @@ -9,6 +9,7 @@ on: workflow_run: workflows: - Test Production (e2e) + - Test Dev (e2e) types: - completed branches: @@ -23,41 +24,67 @@ concurrency: cancel-in-progress: true jobs: - update-badge: + update-badge-prod: runs-on: ubuntu-latest steps: - uses: pl-strflt/job-summary-url-action@v1 id: metadata with: - workflow: test-prod-e2e.yml # ${{ github.event.workflow.path }} + workflow: ${{ github.event.workflow.path }} run_id: ${{ github.event.workflow_run.id }} run_attempt: ${{ github.event.workflow_run.run_attempt }} job: aggregate - uses: actions/checkout@v3 + - id: update + uses: actions/github-script@v6 + env: + WORKFLOW_PATH: ${{ github.event.workflow.path }} + BADGE_URL: ${{ github.event.workflow.badge_url }} + SUMMARY_URL: ${{ steps.metadata.outputs.job_summary_url }} + with: + script: | + const fs = require('fs') + + const workflowPath = process.env.WORKFLOW_PATH + const badgeURL = process.env.BADGE_URL + const refName = process.env.GITHUB_REF_NAME + const summaryURL = process.env.SUMMARY_URL + + console.log(` + workflowPath: ${workflowPath} + badgeURL: ${badgeURL} + refName: ${refName} + summaryURL: ${summaryURL} + `) + + function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + } + + const searchValue = new RegExp(`\\[!\\[([^\\]]+)\\]\\(.*${escapeRegExp(badgeURL)}.*\\)\\]\\(.*\\)`, 'g') + const replaceValue = `[![$1](${badgeURL}?branch=${refName})](${summaryURL})` + + console.log(`Searching for: ${searchValue}`) + console.log(`To replace it with: ${replaceValue}`) + + const readme = fs.readFileSync('README.md').toString() + const updatedReadme = readme.replace(searchValue, replaceValue) + + if (readme !== updatedReadme) { + console.log('Updating README') + fs.writeFileSync('README.md', updatedReadme) + return true + } else { + console.log('README does not need to be updated') + return false + } # https://github.com/orgs/community/discussions/26560 - - run: | + - if: steps.update.outputs.result == 'true' + run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" - - run: | - echo GITHUB_JOB_SUMMARY_URL=${GITHUB_JOB_SUMMARY_URL} - IN='[![Conformance Production Dashboard](https://github.com/ipfs/gateway-conformance/actions/workflows/test-prod-e2e.yml/badge.svg?branch=master)](.*)' - ESCAPED_IN=$(printf '%s\n' "$IN" | sed -e 's/[][\/!&]/\\&/g') - - OUT="[![Conformance Production Dashboard](https://github.com/ipfs/gateway-conformance/actions/workflows/test-prod-e2e.yml/badge.svg?branch=master)](${GITHUB_JOB_SUMMARY_URL})" - - sed -i "s;${ESCAPED_IN};${OUT};" README.md - env: - GITHUB_JOB_SUMMARY_URL: ${{ steps.metadata.outputs.job_summary_url }} - REPOSITORY: ${{ github.repository }} - - id: git - run: | - if [[ -n $(git diff --shortstat 2> /dev/null | tail -n1) ]]; then - echo "dirty=1" >> $GITHUB_OUTPUT - else - echo "dirty=0" >> $GITHUB_OUTPUT - fi - - if: steps.git.outputs.dirty == '1' + - if: steps.update.outputs.result == 'true' run: | git add README.md - git commit -m 'chore: update the link to the dashboard [skip ci]' - git push + git commit -m 'chore: update the link to the interop dashboard [skip ci]' + git push \ No newline at end of file diff --git a/README.md b/README.md index c0db0ba61..0f7623626 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ `gateway-conformance` is a tool designed to test if an IPFS Gateway implementation complies with the IPFS Gateway Specification correctly. The tool is distributed as a Docker image, as well as a GitHub Action(s). -[![Conformance Production Dashboard](https://github.com/ipfs/gateway-conformance/actions/workflows/test-prod-e2e.yml/badge.svg?branch=master)]() +[![Conformance Production Dashboard](https://github.com/singulargarden/gateway-conformance/workflows/Test%20Dev%20(e2e)/badge.svg?branch=main)]() + +[![Conformance Dev Dashboard](https://github.com/singulargarden/gateway-conformance/workflows/Test%20Production%20(e2e)/badge.svg?branch=main)]() ## Table of Contents From 85948b923d291f948e905231219b0bafd0f90f0c Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 27 Jul 2023 10:54:53 +0200 Subject: [PATCH 7/9] table: generate nicer table --- .github/workflows/test-dev-e2e.yml | 3 +- .github/workflows/test-prod-e2e.yml | 1 + aggregate-update-names.js | 27 ++++++ names.json | 122 ++++++++++++++++++++++++++++ 4 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 aggregate-update-names.js create mode 100644 names.json diff --git a/.github/workflows/test-dev-e2e.yml b/.github/workflows/test-dev-e2e.yml index 38a297cc7..13614bfce 100644 --- a/.github/workflows/test-dev-e2e.yml +++ b/.github/workflows/test-dev-e2e.yml @@ -47,7 +47,8 @@ jobs: jq -ns 'inputs' "$file" | node ../gateway-conformance/aggregate.js 1 > "${new_file}" done - node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > ./table.md + node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > /tmp/table.md + node ../gateway-conformance/aggregate-update-names.js ../gateway-conformance/names.json /tmp/table.md > ./table.md - name: Set summary if: (failure() || success()) run: cat ./artifacts/table.md >> $GITHUB_STEP_SUMMARY \ No newline at end of file diff --git a/.github/workflows/test-prod-e2e.yml b/.github/workflows/test-prod-e2e.yml index 8819deec2..fd5e48e1e 100644 --- a/.github/workflows/test-prod-e2e.yml +++ b/.github/workflows/test-prod-e2e.yml @@ -110,6 +110,7 @@ jobs: done node ../gateway-conformance/aggregate-into-table.js ./aggregates/*.json > ./table.md + node ../gateway-conformance/aggregate-update-names.js ../gateway-conformance/names.json ./table.md > ./table.md - name: Set summary if: (failure() || success()) run: cat ./artifacts/table.md >> $GITHUB_STEP_SUMMARY \ No newline at end of file diff --git a/aggregate-update-names.js b/aggregate-update-names.js new file mode 100644 index 000000000..67d0b6a46 --- /dev/null +++ b/aggregate-update-names.js @@ -0,0 +1,27 @@ +const fs = require('fs'); + +const jsonFilePath = process.argv[2]; +const markdownFilePath = process.argv[3]; + +// Check if file paths are provided +if (!jsonFilePath || !markdownFilePath) { + console.error('Both a JSON file path and a Markdown file path must be provided.'); + process.exit(1); +} + +const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8')); +const sortedKeys = Object.keys(jsonData).sort((a, b) => b.length - a.length); + +let markdown = fs.readFileSync(markdownFilePath, 'utf8'); + +for (const key of sortedKeys) { + const newName = jsonData[key][1] + ? `[${jsonData[key][0]}](${jsonData[key][1]})` + : jsonData[key][0]; + + const regex = new RegExp(key, 'g'); + markdown = markdown.replace(regex, newName); +} + +// output the new markdown to stdout +fs.writeFileSync(1, markdown); \ No newline at end of file diff --git a/names.json b/names.json new file mode 100644 index 000000000..5fea2b6fe --- /dev/null +++ b/names.json @@ -0,0 +1,122 @@ +{ + "Cors": [ + "Cross-Origin Resource Sharing", + null + ], + "DAgPbConversion": [ + "DAG Protobuf Conversion", + null + ], + "DNSLinkGateway": [ + "DNS Link Gateway", + "https://specs.ipfs.tech/http-gateways/dnslink-gateway/" + ], + "DNSLinkGatewayUnixFSDirectoryListing": [ + "DNS Link Gateway Unix FS Directory Listing", + "https://specs.ipfs.tech/http-gateways/dnslink-gateway/" + ], + "GatewayBlock": [ + "Gateway Block", + null + ], + "GatewayCache": [ + "Gateway Cache", + null + ], + "GatewayCacheWithIPNS": [ + "Gateway Cache with IPNS", + null + ], + "GatewayIPNSRecord": [ + "Gateway IPNS Record", + null + ], + "GatewayJSONCborAndIPNS": [ + "Gateway JSON CBOR and IPNS", + null + ], + "GatewayJsonCbor": [ + "Gateway JSON CBOR", + null + ], + "GatewaySubdomainAndIPNS": [ + "Gateway Subdomain and IPNS", + null + ], + "GatewaySubdomains": [ + "Gateway Subdomains", + null + ], + "GatewaySymlink": [ + "Gateway Symbolic Link", + null + ], + "NativeDag": [ + "Native DAG", + null + ], + "Pathing": [ + "Pathing", + null + ], + "PlainCodec": [ + "Plain Codec", + null + ], + "RedirectsFileSupport": [ + "Redirects File Support", + "https://specs.ipfs.tech/http-gateways/web-redirects-file/" + ], + "RedirectsFileSupportWithDNSLink": [ + "Redirects File Support with DNS Link", + "https://specs.ipfs.tech/http-gateways/web-redirects-file/" + ], + "SubdomainGatewayDNSLinkInlining": [ + "Subdomain Gateway DNS Link Inlining", + null + ], + "Tar": [ + "Tar", + null + ], + "TrustlessCarDagScopeAll": [ + "Trustless Car DAG Scope All", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "TrustlessCarDagScopeBlock": [ + "Trustless Car DAG Scope Block", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "TrustlessCarDagScopeEntity": [ + "Trustless Car DAG Scope Entity", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "TrustlessCarEntityBytes": [ + "Trustless Car Entity Bytes", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "TrustlessCarPathing": [ + "Trustless Car Pathing", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "TrustlessRaw": [ + "Trustless Raw", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + ], + "UnixFSDirectoryListing": [ + "Unix FS Directory Listing", + null + ], + "UnixFSDirectoryListingOnSubdomainGateway": [ + "Unix FS Directory Listing on Subdomain Gateway", + null + ], + "conformance-bifrost-gateway": [ + "Bifrost Gateway", + "https://github.com/ipfs/bifrost-gateway" + ], + "conformance-kubo-gateway": [ + "Kubo Gateway", + "https://github.com/ipfs/kubo" + ] +} \ No newline at end of file From f6c2a7b9a4bbc030460c74abe937c9314a515fdc Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Mon, 31 Jul 2023 09:10:17 +0200 Subject: [PATCH 8/9] fix: apply Lidel's notes on wording Co-authored-by: Marcin Rataj --- names.json | 78 +++++++++++++++++++++++++++--------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/names.json b/names.json index 5fea2b6fe..bc9a948f8 100644 --- a/names.json +++ b/names.json @@ -3,16 +3,16 @@ "Cross-Origin Resource Sharing", null ], - "DAgPbConversion": [ - "DAG Protobuf Conversion", - null + "DagPbConversion": [ + "DAG-PB Conversion to DAG-CBOR/JSON", + "https://ipld.io/specs/codecs/dag-pb/spec/#logical-format" ], "DNSLinkGateway": [ - "DNS Link Gateway", + "DNSLink Gateway", "https://specs.ipfs.tech/http-gateways/dnslink-gateway/" ], "DNSLinkGatewayUnixFSDirectoryListing": [ - "DNS Link Gateway Unix FS Directory Listing", + "Generated UnixFS Directory Listing for DNSLink", "https://specs.ipfs.tech/http-gateways/dnslink-gateway/" ], "GatewayBlock": [ @@ -20,103 +20,103 @@ null ], "GatewayCache": [ - "Gateway Cache", + "HTTP Caching", null ], "GatewayCacheWithIPNS": [ - "Gateway Cache with IPNS", + "HTTP Caching with IPNS", null ], "GatewayIPNSRecord": [ - "Gateway IPNS Record", + "Signed IPNS Record", null ], "GatewayJSONCborAndIPNS": [ - "Gateway JSON CBOR and IPNS", + "[DAG-]CBOR/JSON on IPNS", null ], "GatewayJsonCbor": [ - "Gateway JSON CBOR", - null + "[DAG-]CBOR/JSON", + "https://specs.ipfs.tech/http-gateways/path-gateway/#traversing-through-dag-json-and-dag-cbor" ], "GatewaySubdomainAndIPNS": [ - "Gateway Subdomain and IPNS", - null + "Subdomain Gateway with IPNS", + "https://specs.ipfs.tech/http-gateways/subdomain-gateway/" ], "GatewaySubdomains": [ - "Gateway Subdomains", - null + "Subdomain Gateway", + "https://specs.ipfs.tech/http-gateways/subdomain-gateway/" ], "GatewaySymlink": [ - "Gateway Symbolic Link", + "UnixFS Symlink", null ], "NativeDag": [ - "Native DAG", + "Native DAG-CBOR/JSON", null ], - "Pathing": [ + "Web Pathing": [ "Pathing", - null + "https://specs.ipfs.tech/http-gateways/path-gateway/#content-resolution" ], "PlainCodec": [ - "Plain Codec", + "Plain CBOR/JSON", null ], "RedirectsFileSupport": [ - "Redirects File Support", + "_redirects File Support", "https://specs.ipfs.tech/http-gateways/web-redirects-file/" ], "RedirectsFileSupportWithDNSLink": [ - "Redirects File Support with DNS Link", + "_redirects File Support with DNSLink", "https://specs.ipfs.tech/http-gateways/web-redirects-file/" ], "SubdomainGatewayDNSLinkInlining": [ - "Subdomain Gateway DNS Link Inlining", - null + "Subdomain Gateway DNSLink Inlining", + "https://specs.ipfs.tech/http-gateways/subdomain-gateway/#host-request-header" ], "Tar": [ - "Tar", + "TAR Responses", null ], "TrustlessCarDagScopeAll": [ - "Trustless Car DAG Scope All", - "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + "CAR with dag-scope=all", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/#dag-scope-request-query-parameter" ], "TrustlessCarDagScopeBlock": [ - "Trustless Car DAG Scope Block", - "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + "CAR with dag-scope=block", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/#dag-scope-request-query-parameter" ], "TrustlessCarDagScopeEntity": [ - "Trustless Car DAG Scope Entity", - "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + "CAR with dag-scope=entity", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/#dag-scope-request-query-parameter" ], "TrustlessCarEntityBytes": [ - "Trustless Car Entity Bytes", - "https://specs.ipfs.tech/http-gateways/trustless-gateway/" + "CAR with entity-bytes", + "https://specs.ipfs.tech/http-gateways/trustless-gateway/#entity-bytes-request-query-parameter" ], "TrustlessCarPathing": [ - "Trustless Car Pathing", + "Trustless CAR with Web Pathing", "https://specs.ipfs.tech/http-gateways/trustless-gateway/" ], "TrustlessRaw": [ - "Trustless Raw", + "Trustless Raw Block (application/vnd.ipld.raw)", "https://specs.ipfs.tech/http-gateways/trustless-gateway/" ], "UnixFSDirectoryListing": [ - "Unix FS Directory Listing", + "UnixFS Directory Listing", null ], "UnixFSDirectoryListingOnSubdomainGateway": [ - "Unix FS Directory Listing on Subdomain Gateway", + "UnixFS Directory Listing on Subdomain Gateway", null ], "conformance-bifrost-gateway": [ - "Bifrost Gateway", + "ipfs/bifrost-gateway", "https://github.com/ipfs/bifrost-gateway" ], "conformance-kubo-gateway": [ - "Kubo Gateway", + "ipfs/kubo", "https://github.com/ipfs/kubo" ] } \ No newline at end of file From bda8985fd03a577a07384b59653ece9eab6fd480 Mon Sep 17 00:00:00 2001 From: galargh Date: Fri, 4 Aug 2023 11:30:43 +0100 Subject: [PATCH 9/9] fix: the tags used in shared github actions --- .github/actions/extract-fixtures/action.yml | 2 +- .github/actions/test/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/extract-fixtures/action.yml b/.github/actions/extract-fixtures/action.yml index c96a54ddb..1d349b991 100644 --- a/.github/actions/extract-fixtures/action.yml +++ b/.github/actions/extract-fixtures/action.yml @@ -22,6 +22,6 @@ runs: MERGED: ${{ inputs.merged }} with: repository: ${{ steps.github.outputs.action_repository }} - ref: ${{ steps.github.outputs.action_ref }} + ref: ${{ steps.github.outputs.action_sha || steps.github.outputs.action_ref }} dockerfile: Dockerfile args: extract-fixtures --directory="$OUTPUT" --merged="$MERGED" diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 2d5d088ab..89664cc25 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -42,7 +42,7 @@ runs: SPECS: ${{ inputs.specs }} with: repository: ${{ steps.github.outputs.action_repository }} - ref: ${{ steps.github.outputs.action_ref }} + ref: ${{ steps.github.outputs.action_sha || steps.github.outputs.action_ref }} dockerfile: Dockerfile opts: --network=host args: test --url="$URL" --json="$JSON" --specs="$SPECS" --subdomain-url="$SUBDOMAIN" -- ${{ inputs.args }}