-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9023 from ipfs/release-v0.13.0
Release v0.13.0
- Loading branch information
Showing
298 changed files
with
14,368 additions
and
2,984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,12 @@ default_environment: &default_environment | |
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
GIT_PAGER: cat | ||
IPFS_CHECK_RCMGR_DEFAULTS: 1 | ||
|
||
executors: | ||
golang: | ||
docker: | ||
- image: cimg/go:1.16.15 | ||
- image: cimg/go:1.18.3 | ||
working_directory: ~/ipfs/go-ipfs | ||
environment: | ||
<<: *default_environment | ||
|
@@ -61,14 +62,15 @@ executors: | |
E2E_IPFSD_TYPE: go | ||
dockerizer: | ||
docker: | ||
- image: cimg/go:1.16.15 | ||
- image: cimg/go:1.18.3 | ||
environment: | ||
IMAGE_NAME: ipfs/go-ipfs | ||
WIP_IMAGE_TAG: wip | ||
|
||
jobs: | ||
gobuild: | ||
executor: golang | ||
resource_class: 2xlarge+ | ||
steps: | ||
- checkout | ||
- *make_out_dirs | ||
|
@@ -106,7 +108,10 @@ jobs: | |
command: bash <(curl -s https://codecov.io/bash) -cF unittests -X search -f coverage/unit_tests.coverprofile | ||
- run: | ||
command: | | ||
# we want to test the examples against the current version of go-ipfs | ||
# we want to first test with the go-ipfs in the go.mod file | ||
go test -v ./... | ||
# we also want to test the examples against the current version of go-ipfs | ||
# however, that version might be in a fork so we need to replace the dependency | ||
# backup the go.mod and go.sum files to restore them after we run the tests | ||
|
@@ -116,11 +121,18 @@ jobs: | |
# make sure the examples run against the current version of go-ipfs | ||
go mod edit -replace github.com/ipfs/go-ipfs=./../../.. | ||
go mod tidy | ||
# use the internal config package when we test the current version of go-ipfs | ||
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go | ||
go test -v ./... | ||
# restore the go.mod and go.sum files to their original state | ||
mv go.mod.bak go.mod | ||
mv go.sum.bak go.sum | ||
# restore the main.go to its original state | ||
mv main.go.bak main.go | ||
working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library | ||
|
||
- run: | ||
|
@@ -143,15 +155,15 @@ jobs: | |
working_directory: ~/ipfs/go-ipfs | ||
environment: | ||
<<: *default_environment | ||
TEST_NO_DOCKER: 1 | ||
TEST_NO_DOCKER: 0 | ||
TEST_NO_FUSE: 1 | ||
TEST_VERBOSE: 1 | ||
steps: | ||
- run: sudo apt update | ||
- run: | | ||
mkdir ~/localgo && cd ~/localgo | ||
wget https://golang.org/dl/go1.16.15.linux-amd64.tar.gz | ||
tar xfz go1.16.15.linux-amd64.tar.gz | ||
wget https://golang.org/dl/go1.18.3.linux-amd64.tar.gz | ||
tar xfz go1.18.3.linux-amd64.tar.gz | ||
echo "export PATH=$(pwd)/go/bin:\$PATH" >> ~/.bashrc | ||
- run: go version | ||
- run: sudo apt install socat net-tools | ||
|
@@ -166,7 +178,7 @@ jobs: | |
git checkout FETCH_HEAD | ||
- run: | ||
cd rb-pinning-service-api && | ||
docker-compose pull && | ||
(for i in {1..3}; do docker-compose pull && break || sleep 5; done) && | ||
docker-compose up -d | ||
|
||
- *make_out_dirs | ||
|
@@ -217,33 +229,43 @@ jobs: | |
- *store_gomod | ||
interop: | ||
docker: | ||
- image: cimg/go:1.16-node | ||
- image: cimg/go:1.18.3-node | ||
parallelism: 4 | ||
resource_class: large | ||
steps: | ||
- *make_out_dirs | ||
- attach_workspace: | ||
at: /tmp/circleci-workspace | ||
- restore_cache: | ||
keys: | ||
- v1-interop-{{ .Branch }}-{{ .Revision }} | ||
- v1-interop-{{ .Branch }}- | ||
- v1-interop- | ||
- run: | ||
name: Installing dependencies | ||
command: | | ||
npm init -y | ||
npm install ipfs@^0.61.0 | ||
npm install ipfs-interop@^8.0.0 | ||
npm install ipfs-interop@^8.0.10 | ||
npm install [email protected] | ||
working_directory: ~/ipfs/go-ipfs/interop | ||
- run: | ||
name: Running tests | ||
command: | | ||
mkdir -p /tmp/test-results/interop/ | ||
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)" | ||
npx ipfs-interop -- -t node -f $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" node_modules/ipfs-interop/test/node.js | circleci tests split) -- --reporter mocha-circleci-reporter | ||
npx ipfs-interop -- -t node -f $(sed -n -e "s|^import '\(.*\)'$|test/\1|p" node_modules/ipfs-interop/test/node.js | circleci tests split --split-by=timings) -- --reporter mocha-circleci-reporter | ||
working_directory: ~/ipfs/go-ipfs/interop | ||
environment: | ||
LIBP2P_TCP_REUSEPORT: false | ||
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1 | ||
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs | ||
- store_test_results: | ||
path: /tmp/test-results | ||
- save_cache: | ||
key: v1-interop-{{ .Branch }}-{{ .Revision }} | ||
paths: | ||
- ~/ipfs/go-ipfs/interop/node_modules | ||
go-ipfs-api: | ||
executor: golang | ||
steps: | ||
|
@@ -271,7 +293,7 @@ jobs: | |
- v1-go-api-{{ checksum "~/ipfs/go-ipfs/go-ipfs-api/go.sum" }} | ||
- v1-go-api- | ||
- run: | ||
command: go test -v ./... | ||
command: go test -count=1 -v ./... | ||
working_directory: ~/ipfs/go-ipfs/go-ipfs-api | ||
- save_cache: | ||
key: v1-go-api-{{ checksum "~/ipfs/go-ipfs/go-ipfs-api/go.sum" }} | ||
|
@@ -292,18 +314,15 @@ jobs: | |
command: | | ||
git clone https://github.com/ipfs/go-ipfs-http-client.git | ||
git -C go-ipfs-http-client log -1 | ||
cd go-ipfs-http-client | ||
git checkout v0.2.0 | ||
cd .. | ||
- restore_cache: | ||
keys: | ||
- v1-http-client-{{ checksum "~/ipfs/go-ipfs/go-ipfs-http-client/go.sum" }} | ||
- v1-http-client- | ||
- run: | ||
name: go test -v ./... | ||
name: go test -count=1 -v ./... | ||
command: | | ||
export PATH=/tmp/circleci-workspace/bin:$PATH | ||
go test -v ./... | ||
go test -count=1 -v ./... | ||
working_directory: ~/ipfs/go-ipfs/go-ipfs-http-client | ||
- save_cache: | ||
key: v1-http-client-{{ checksum "~/ipfs/go-ipfs/go-ipfs-http-client/go.sum" }} | ||
|
@@ -329,6 +348,7 @@ jobs: | |
name: Installing dependencies | ||
command: | | ||
npm install | ||
npx playwright install | ||
working_directory: ~/ipfs/go-ipfs/ipfs-webui | ||
- run: | ||
name: Running upstream tests (finish early if they fail) | ||
|
@@ -344,6 +364,7 @@ jobs: | |
- save_cache: | ||
key: v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }} | ||
paths: | ||
- ~/.cache/ms-playwright | ||
- ~/ipfs/go-ipfs/ipfs-webui/node_modules | ||
# We only run build as a test here. DockerHub images are built and published | ||
# by Github Action now: https://github.com/ipfs/go-ipfs/pull/8467 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Code owners are automatically requested for review when someone opens a pull | ||
# request that modifies code that they own. Code owners are not automatically | ||
# requested to review draft pull requests. | ||
|
||
# HTTP Gateway | ||
core/corehttp/ @lidel | ||
test/sharness/*gateway*.sh @lidel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: [push, pull_request] | ||
name: Go Checks | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
name: All | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.18.x" | ||
- name: Check that go.mod is tidy | ||
uses: protocol/[email protected] | ||
with: | ||
run: | | ||
go mod tidy | ||
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then | ||
echo "go.sum was added by go mod tidy" | ||
exit 1 | ||
fi | ||
git diff --exit-code -- go.sum go.mod | ||
- name: gofmt | ||
if: always() # run this step even if the previous one failed | ||
run: | | ||
out=$(gofmt -s -l .) | ||
if [[ -n "$out" ]]; then | ||
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}' | ||
exit 1 | ||
fi | ||
- name: go vet | ||
if: always() # run this step even if the previous one failed | ||
uses: protocol/[email protected] | ||
with: | ||
run: go vet ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
--- | ||
name: Testground PR Checker | ||
|
||
on: [push] | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
|
||
jobs: | ||
testground: | ||
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.composition_file }} | ||
strategy: | ||
|
@@ -25,7 +29,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- name: testground run | ||
uses: coryschwartz/[email protected] | ||
uses: testground/testground-github-action@v1 | ||
timeout-minutes: 5 | ||
with: | ||
backend_addr: ${{ matrix.backend_addr }} | ||
backend_proto: ${{ matrix.backend_proto }} | ||
|
Oops, something went wrong.