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

Release v0.10.0 #8474

Merged
merged 188 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
573804a
fix(mkreleaselog): handle commit 0
Stebalien May 10, 2021
80c71a4
build(deps): bump github.com/coreos/go-systemd/v22 from 22.3.1 to 22.3.2
dependabot[bot] May 11, 2021
40419ac
update version to 0.10.0-dev
aschmahmann May 14, 2021
e2e115c
Merge pull request #8136 from ipfs/chore/update-version
aschmahmann May 14, 2021
502b68c
build: ignore generated files in changelog
aschmahmann May 14, 2021
3638520
Merge pull request #7712 from ipfs/fix/ignore-generated-files
Stebalien May 14, 2021
b3a6de8
fix: the test of peering.PeeringService
TakashiMatsuda May 15, 2021
339fb46
update Go to 1.16.4 on CircleCI
marten-seemann May 14, 2021
bf4cf14
install specific Go version for sharness tests
marten-seemann May 14, 2021
a9dfe38
stop using deprecated Go flag -i
marten-seemann May 15, 2021
7f2630b
debug
marten-seemann May 15, 2021
6b9bd6a
Merge pull request #8140 from TakashiMatsuda/fix/peering_test
Stebalien May 16, 2021
b1eac43
Build a go-ipfs-extras docker image, includes peerlog
mburns May 17, 2021
17ed9fb
remove dht-stabalize specialcase for bifrost
mburns May 17, 2021
253f99f
config.md: fix typos/improve wording
RubenKelevra Mar 27, 2021
6258374
doc(config): address nits
Stebalien May 17, 2021
b0fda5c
Merge pull request #8031 from RubenKelevra/patch-4
Stebalien May 17, 2021
075cc8f
refactor(pinmfs): log error if pre-existing pin failed (#8056)
BogdanStirbat May 17, 2021
6a029a4
build(deps): bump github.com/ipfs/go-bitswap from 0.3.3 to 0.3.4
dependabot[bot] May 18, 2021
482d7ed
build(deps): bump github.com/libp2p/go-doh-resolver from 0.3.0 to 0.3.1
dependabot[bot] May 20, 2021
2c431eb
fix: webui-2.12.3
lidel May 21, 2021
3746c2d
chore: update deps
aschmahmann May 25, 2021
37de3d0
feat: add a text output encoding for the stats provide command
aschmahmann May 25, 2021
c082c73
feat: humanized numbers in stat provide
lidel May 27, 2021
e5ac704
feat: humanized durations in stat provide
lidel May 27, 2021
f40dc73
refactor: improved humanNumber and humanSI
lidel May 27, 2021
9c8b101
chore: update go-libp2p-yamux
aschmahmann May 27, 2021
039e12a
feat: print error on bootstrap failure
lidel May 31, 2021
041de2a
fix: typo in migration error
lidel May 31, 2021
904cc73
refactor: warning when bootstrap disabled by user
lidel Jun 7, 2021
f05f84a
Merge pull request #8166 from ipfs/feat/bootstrap-error
aschmahmann Jun 14, 2021
58aa218
update QUIC
marten-seemann Jun 16, 2021
1ab632a
build(deps): bump github.com/libp2p/go-libp2p-discovery
dependabot[bot] Jun 15, 2021
8d3c9c3
build(deps): bump github.com/libp2p/go-libp2p from 0.14.0 to 0.14.2
dependabot[bot] Jun 8, 2021
95eebe4
chore: update deps
aschmahmann Jun 21, 2021
f6641d1
chore: switch tar-utils dep to ipfs org
aschmahmann Jun 18, 2021
dc4505b
chore: update CHANGELOG
aschmahmann Jun 22, 2021
222d005
Merge branch 'release'
aschmahmann Jun 22, 2021
d9f28a2
bump snap to build with Go 1.16
aschmahmann Jun 23, 2021
4be04bc
fix(mkreleaselog): support multiple commit authors
Stebalien Jun 23, 2021
df70cff
update go-libp2p to v0.14.3
marten-seemann Jun 24, 2021
b4b10f5
Merge pull request #8121 from ipfs/fix/mkreleaselog-first-commit
Stebalien Jun 25, 2021
0653862
Merge pull request #8214 from ipfs/fix/mkreleaselog
Stebalien Jun 25, 2021
d48d035
Merge pull request #8124 from ipfs/dependabot/go_modules/github.com/c…
Stebalien Jun 25, 2021
5ad0417
Improve peer hints for pin remote add (#8143)
brianstrauch Jun 25, 2021
9cc349a
remove unneeded GOPATH and GO111MODULE from CircleCI config
marten-seemann May 15, 2021
bdead90
link to the actual doc (#8126)
mburns Jun 25, 2021
1ea1493
README.md: Add MacPorts to install section
ShadSterling Jun 27, 2021
885325d
doc(README): update chat links (and misc fixes)
Stebalien Jun 28, 2021
84c5984
Merge pull request #8222 from ipfs/fix/readme-chat
Stebalien Jun 28, 2021
ffe7578
fix: downgrade mimetype dependency
aschmahmann Jun 30, 2021
fcfe793
test: gateway response for bafkqaaa
lidel Jun 30, 2021
0060d5f
feat: programmatic shell completions
Stebalien Apr 1, 2021
7940371
doc(completion): suggest eval instead of writing a file
Stebalien Jul 1, 2021
ae30699
Merge pull request #8043 from ipfs/feat/completions
Stebalien Jul 2, 2021
0a6d78c
perf: set an appropriate capacity
lasiar Jul 5, 2021
61f58c2
fix(sharness): t0250: disambiguate online/offline
schomatis Jul 8, 2021
9561068
propagate test_launch_ipfs_daemon_without_network name
schomatis Jul 8, 2021
2fee45a
set docker tag
mburns Jul 11, 2021
f439629
indent
mburns Jul 11, 2021
c6a7d28
remove blocking (now resolved) fixme
schomatis Jul 12, 2021
c7444fb
feat: webui v2.12.4
lidel Jul 5, 2021
9599ad5
chore: update deps
aschmahmann Jul 16, 2021
d2ec458
update go-libp2p to v0.14.4
marten-seemann Jul 17, 2021
8c33716
fix document error
godcong Jul 17, 2021
d2db8b4
Merge pull request #8271 from godcongdev/master
Stebalien Jul 19, 2021
a757234
chore(github): use issue forms
Stebalien Jul 20, 2021
0eb5045
Merge pull request #8270 from ipfs/update-libp2p
Stebalien Jul 20, 2021
1aa9c1a
Add test with expected failure for #3503
masih Jul 20, 2021
dae28b0
chore(github): fix feature example in issue form
Stebalien Jul 20, 2021
f0c9065
chore(github): add issue search checklist item to all templates
Stebalien Jul 20, 2021
cc70dcd
chore(github): add a config section to the bug report template
Stebalien Jul 20, 2021
e2bb857
Merge pull request #8279 from ipfs/feat/issue-forms
Stebalien Jul 20, 2021
74bd44f
Create PATCH_RELEASE_TEMPLATE.md
aschmahmann Jul 20, 2021
050a281
Merge pull request #8280 from ipfs/masih/test-issue-3503
Stebalien Jul 21, 2021
8a7d5e9
Rename DOCKER_HOST to TEST_DOCKER_HOST to avoid conflicts
rvagg Jul 21, 2021
d26d9b6
build(deps): bump github.com/libp2p/go-libp2p-peerstore
dependabot[bot] Jul 21, 2021
d3604bb
feat: improve mkreleaslog
Stebalien Jul 21, 2021
8fca584
fix(mkreleaselog): remove outdated comment
Stebalien Jul 21, 2021
99ccde2
fix(mkreleaselog): match files anywhere in the path
Stebalien Jul 21, 2021
d52d183
feat: add an "ipfs diag profile" command
Stebalien Jul 21, 2021
0fa987e
Merge pull request #8290 from ipfs/feat/improve-mkrelease
aschmahmann Jul 21, 2021
722fc4f
feat(ipfs diag profile): output version info only
Stebalien Jul 21, 2021
77f3fed
feat(ipfs diag profile): help text
Stebalien Jul 21, 2021
e1cf99c
fix(ipfs diag profile): fix wording
Stebalien Jul 21, 2021
748062a
Merge branch 'release'
aschmahmann Jul 22, 2021
0bea7ce
test(sharness): test profile dump
Stebalien Jul 22, 2021
3745047
doc(profile): improve profiling docs
Stebalien Jul 22, 2021
9c1bb99
fix: spelling
Stebalien Jul 22, 2021
5bf5a58
Merge pull request #8291 from ipfs/feat/diag-profile
Stebalien Jul 22, 2021
f3ea1f0
Merge pull request #8288 from ipfs/dependabot/go_modules/github.com/l…
Stebalien Jul 22, 2021
1ddb1c5
Merge pull request #8283 from ipfs/rvagg/rename-docker-host
Stebalien Jul 22, 2021
848cf69
build(deps): bump github.com/ipfs/go-fs-lock from 0.0.6 to 0.0.7
dependabot[bot] Jul 22, 2021
461f691
Merge pull request #8295 from ipfs/dependabot/go_modules/github.com/i…
Stebalien Jul 22, 2021
6de589c
Merge pull request #8254 from ipfs/schomatis/chore/sharness/t0250/cha…
aschmahmann Jul 23, 2021
eda8b43
docs: chocolatey package name
lidel Jul 23, 2021
cab67f6
point ipfs to pinner that syncs on every pin (#8231)
petar Jul 29, 2021
3b6f577
Expose additional migration APIs (#8153)
gammazero Jul 30, 2021
0858dc6
fix: avoid panic on short hash
Stebalien Jul 30, 2021
66a76d2
fix: abort when we fail to resolve CIDs
Stebalien Jul 30, 2021
9d6cbdf
Use Go 1.16.6
guseggert Jul 30, 2021
b5f5419
Fix tar cmd
guseggert Jul 30, 2021
f0ae6e3
Disable MAKE_SKIP_PATH
guseggert Aug 2, 2021
98d2739
Remove MAKE_SKIP_PATH test
guseggert Aug 2, 2021
db2684f
Merge branch 'master' into update-go-on-ci-guseggert
guseggert Aug 2, 2021
c5b0f15
fix(as-a-library): go mod tidy
lasiar Jul 16, 2021
d6f442b
refactor(as-a-library): replace deprecated functions and structures
lasiar Jul 16, 2021
4a9dace
refactor(as-a-library): wrap error
lasiar Jul 16, 2021
67fdd6e
refactor(as-a-library): remove redundant alias
lasiar Jul 16, 2021
da0afea
refactor(as-a-library): remove unused context
lasiar Jul 16, 2021
d00e965
refactor(as-a-library): change comment with default path repo
lasiar Jul 16, 2021
e9b1e2d
Merge pull request #8266 from Lasiar/fix/go-ipfs-as-a-library
Stebalien Aug 3, 2021
d346840
Remove MAKE_SKIP_PATH, update Dockerfile base image
guseggert Aug 3, 2021
499b596
Merge branch 'master' into ci-build-docker-with-plugins
guseggert Aug 5, 2021
64df3ea
Merge pull request #8142 from ipfs/ci-build-docker-with-plugins
guseggert Aug 5, 2021
44f5b8b
use a pointer type on node.Peering for mutex
TakashiMatsuda Aug 7, 2021
0282393
feat: register first block metric by default
lanzafame Jul 30, 2019
0e73e23
Merge pull request #8332 from ipfs/feat/first-block-metric
guseggert Aug 9, 2021
9398d80
Merge pull request #8220 from ShadSterling/patch-1
Stebalien Aug 10, 2021
88367e3
build(deps): bump go.uber.org/zap from 1.16.0 to 1.19.0
dependabot[bot] Aug 12, 2021
155435c
Add flag to create parent directories in files cp command
Aug 12, 2021
c2e6a22
Restore dropped error condition check
Aug 12, 2021
6e61006
fix: macos notarized fs-repo-migrations (#8333)
lidel Aug 12, 2021
5c0061e
Fix space constant
guseggert Aug 12, 2021
c1339c8
save PATH to .bashrc instead of $BASH_ENV
guseggert Aug 13, 2021
4ebec49
use 2xlarge resource class
guseggert Aug 13, 2021
3a7eaaf
Revert "Remove MAKE_SKIP_PATH, update Dockerfile base image"
guseggert Aug 13, 2021
c40f8d1
Update Docker Go version to 1.16.6
guseggert Aug 13, 2021
e162f1a
Revert "Remove MAKE_SKIP_PATH test"
guseggert Aug 13, 2021
b3f1d65
Revert "Disable MAKE_SKIP_PATH"
guseggert Aug 13, 2021
2138798
fix: remove some deprecated calls
Stebalien Jul 22, 2021
6e0f084
Merge pull request #8331 from TakashiMatsuda/fix/node-peering
Stebalien Aug 13, 2021
1156e22
Merge pull request #8338 from ipfs/dependabot/go_modules/go.uber.org/…
Stebalien Aug 13, 2021
a945a9d
Merge pull request #8244 from Lasiar/perf/swarm/set-capacity
Stebalien Aug 13, 2021
34be171
Merge pull request #8296 from ipfs/fix/deprecated
Stebalien Aug 13, 2021
7c76118
Merge pull request #8318 from ipfs/fix/path-panic
Stebalien Aug 13, 2021
0d87b47
Add test for ipfs files cp -p
Aug 14, 2021
ef1703c
Increase Make job parallelism to 10
guseggert Aug 14, 2021
148fe42
Merge branch 'ipfs:master' into files-cp-parent
Aug 14, 2021
ff3fff1
Clean up after cp -p test
Aug 14, 2021
0af19ab
Verify creation of file created by cp -p
Aug 14, 2021
299fc0b
Merge pull request #8340 from jbouwman/files-cp-parent
Stebalien Aug 14, 2021
679c004
Merge branch 'master' into update-go-on-ci-guseggert
guseggert Aug 16, 2021
70b3882
Use Go 1.16.7
guseggert Aug 17, 2021
360aff4
Merge pull request #8324 from ipfs/update-go-on-ci-guseggert
guseggert Aug 17, 2021
f63a997
IPLD Prime In IPFS: Target Merge Branch (#7976)
hannahhoward Aug 17, 2021
a7e2c23
ci: use Go 1.16.7 in .circleci/config.yml
Aug 18, 2021
7448340
support bitswap configurability (#8268)
aschmahmann Aug 18, 2021
7db27bf
feat: add 'ipfs multibase' commands (#8180)
Aug 18, 2021
b2b8f38
use a ConnectionManager for filtering addresses
marten-seemann Jul 24, 2021
c95d6ca
update go-libp2p to v0.15.0-rc.1
marten-seemann Aug 18, 2021
956c248
Merge pull request #8354 from ipfs/udpate-libp2p
aschmahmann Aug 19, 2021
0bd3d06
chore: update deps
aschmahmann Aug 19, 2021
2d39130
Release v0.10.0-rc1
aschmahmann Aug 20, 2021
0884f2d
fix(mkreleaselog): specify the parent commit when diffing
Stebalien Aug 23, 2021
63dd43b
ci: preload peerlog plugin, disable by default
guseggert Aug 24, 2021
8f62313
test: add unit tests for peerlog config parsing
guseggert Aug 24, 2021
810a174
chore: add comments to peerlog plugin about being unsupported
guseggert Aug 25, 2021
630e5e5
ci: publish Docker images for bifrost-* branches
guseggert Aug 26, 2021
8516395
fix: fix bifrost typo in comment
guseggert Aug 26, 2021
60fdf22
perf: use performance-enhancing FUSE mount options
max-privatevoid Aug 26, 2021
f00f7d2
Cosmetic fixups in examples (#8325)
petar Aug 27, 2021
3906e6f
`go mod tidy` ipfs library example
jbouwman Aug 30, 2021
63213c3
add more buttons; remove some sections covered in the docs; general c…
RubenKelevra Jul 18, 2021
7f3600c
chore: update IPFS Desktop testing steps (#8393)
guseggert Sep 3, 2021
a49ff32
ci: use dynamic config for CircleCI
guseggert Sep 10, 2021
ce64237
ci: drop unit tests make jobs back to 1
guseggert Sep 10, 2021
bb49492
fix(sharness): add extra check in flush=false in files write
schomatis Sep 13, 2021
6288f0b
feature: 'ipfs swarm peering' command (#8147)
TakashiMatsuda Sep 15, 2021
e3dfc93
fix: take the lock while listing peers
Stebalien Sep 15, 2021
ef5dd4a
feat: multibase transcode command (#8403)
andey-robins Sep 21, 2021
94bd298
feat(cli): add daemon option --agent-version-suffix (#8419)
schomatis Sep 21, 2021
f7fd3e5
feat: ipfs-webui v2.13.0 (#8430)
lidel Sep 21, 2021
b3c3b2b
feat: dag import --stats (#8237)
rvagg Sep 23, 2021
c1419b5
make json, cbor, and git codecs error on empty input
mvdan Sep 8, 2021
534bd84
chore: update go-libp2p to v0.15.0
marten-seemann Sep 9, 2021
2e8b0bf
change names of ipfs dag put flags to make changes clearer
aschmahmann Sep 15, 2021
9685afc
remove dag put option shortcuts
aschmahmann Sep 27, 2021
9fe1ea6
test: check behavior of loading UnixFS sharded directories with missi…
aschmahmann Sep 23, 2021
0b85d4f
chore: update go-path
aschmahmann Sep 15, 2021
cc58307
change ipfs dag get flag name from format to output-codec
aschmahmann Sep 15, 2021
0de095b
test: add dag get --ouput-codec test
aschmahmann Sep 27, 2021
dba3047
enable the legacy mDNS implementation
marten-seemann Sep 18, 2021
680c80a
fuse: load unixfs adls as their dagpb substrates
aschmahmann Sep 27, 2021
2f94dd0
Release v0.10.0-rc2
aschmahmann Sep 27, 2021
4822023
ci: move Docker image build to Actions (#8467)
lidel Sep 28, 2021
163975b
chore: update changelog for v0.10.0
aschmahmann Sep 30, 2021
72982d4
Release v0.10.0
aschmahmann Sep 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
433 changes: 30 additions & 403 deletions .circleci/config.yml

Large diffs are not rendered by default.

366 changes: 366 additions & 0 deletions .circleci/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,366 @@
version: 2.1

parameters:
resource_class:
type: string
default: medium
make_jobs:
type: string
default: 3

aliases:
make_out_dirs: &make_out_dirs
run: mkdir -p /tmp/circleci-artifacts /tmp/circleci-workspace /tmp/circleci-test-results/{unit,sharness}
restore_gomod: &restore_gomod
restore_cache:
keys:
- v5-dep-{{ .Branch }}-{{ checksum "~/ipfs/go-ipfs/go.sum" }}-{{ .Environment.CIRCLE_JOB }}
- v5-dep-{{ .Branch }}-{{ checksum "~/ipfs/go-ipfs/go.sum" }}-
- v5-dep-{{ .Branch }}-
- v5-dep-master-
store_gomod: &store_gomod
save_cache:
key: v5-dep-{{ .Branch }}-{{ checksum "~/ipfs/go-ipfs/go.sum" }}-{{ .Environment.CIRCLE_JOB }}
paths:
- ~/go/pkg/mod
- ~/.cache/go-build/

default_environment: &default_environment
SERVICE: circle-ci
TRAVIS: 1
CIRCLE: 1
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
GIT_PAGER: cat

executors:
golang:
docker:
- image: cimg/go:1.16.7
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1
TEST_VERBOSE: 1
node:
docker:
- image: circleci/node:14
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
node-browsers:
docker:
- image: circleci/node:14-browsers
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
NO_SANDBOX: true
IPFS_REUSEPORT: false
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
E2E_IPFSD_TYPE: go
dockerizer:
docker:
- image: cimg/go:1.16.7
environment:
IMAGE_NAME: ipfs/go-ipfs
WIP_IMAGE_TAG: wip

jobs:
gobuild:
executor: golang
steps:
- checkout
- *make_out_dirs
- *restore_gomod
- run:
command: make cmd/ipfs-try-build
environment:
TEST_NO_FUSE: 0
- run:
command: make cmd/ipfs-try-build
environment:
TEST_NO_FUSE: 1
- *store_gomod
golint:
executor: golang
steps:
- checkout
- *make_out_dirs
- *restore_gomod
- run: |
make -O test_go_lint
- *store_gomod
gotest:
executor: golang
steps:
- checkout
- *make_out_dirs
- *restore_gomod

- run: |
make -j 1 test/unit/gotest.junit.xml \
&& [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
- run:
when: always
command: bash <(curl -s https://codecov.io/bash) -cF unittests -X search -f coverage/unit_tests.coverprofile
- run:
command: go test -v ./...
working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library

- run:
when: always
command: mv "test/unit/gotest.junit.xml" /tmp/circleci-test-results/unit

- *store_gomod

- store_test_results:
path: /tmp/circleci-test-results
# Save artifacts
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
sharness:
machine:
image: ubuntu-2004:202010-01
resource_class: << pipeline.parameters.resource_class >>
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
TEST_NO_DOCKER: 1
TEST_NO_FUSE: 1
TEST_VERBOSE: 1
steps:
- run: sudo apt update
- run: |
mkdir ~/localgo && cd ~/localgo
wget https://golang.org/dl/go1.16.7.linux-amd64.tar.gz
tar xfz go1.16.7.linux-amd64.tar.gz
echo "export PATH=$(pwd)/go/bin:\$PATH" >> ~/.bashrc
- run: go version
- run: sudo apt install socat net-tools
- checkout

- run:
mkdir rb-pinning-service-api &&
cd rb-pinning-service-api &&
git init &&
git remote add origin https://github.com/ipfs-shipyard/rb-pinning-service-api.git &&
git fetch --depth 1 origin 773c3adbb421c551d2d89288abac3e01e1f7c3a8 &&
git checkout FETCH_HEAD
- run:
cd rb-pinning-service-api &&
docker-compose pull &&
docker-compose up -d

- *make_out_dirs
- *restore_gomod

- run:
name: Setup Environment Variables
# we need the docker host IP; all ports exported by child containers can be accessed there.
command: echo "export TEST_DOCKER_HOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')" >> $BASH_ENV
- run:
echo TEST_DOCKER_HOST=$TEST_DOCKER_HOST &&
make -O -j << pipeline.parameters.make_jobs >> coverage/sharness_tests.coverprofile test/sharness/test-results/sharness.xml TEST_GENERATE_JUNIT=1 CONTINUE_ON_S_FAILURE=1 TEST_DOCKER_HOST=$TEST_DOCKER_HOST
- run:
when: always
command: bash <(curl -s https://codecov.io/bash) -cF sharness -X search -f coverage/sharness_tests.coverprofile

- run: mv "test/sharness/test-results/sharness.xml" /tmp/circleci-test-results/sharness
# make sure we fail if there are test failures
- run: find test/sharness/test-results -name 't*-*.sh.*.counts' | test/sharness/lib/sharness/aggregate-results.sh | grep 'failed\s*0'

- *store_gomod

- store_test_results:
path: /tmp/circleci-test-results
# Save artifacts
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
build:
executor: golang
steps:
- checkout
- *make_out_dirs
- *restore_gomod
- run:
name: Building
command: make build
- run:
name: Storing
command: |
mkdir -p /tmp/circleci-workspace/bin
cp cmd/ipfs/ipfs /tmp/circleci-workspace/bin
- persist_to_workspace:
root: /tmp/circleci-workspace
paths:
- bin/ipfs
- *store_gomod
interop:
executor: node
parallelism: 4
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run:
name: Installing dependencies
command: |
npm init -y
npm install ipfs@^0.52.2
npm install ipfs-interop@^4.0.0
npm install mocha-circleci-reporter@0.0.3
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
working_directory: ~/ipfs/go-ipfs/interop
environment:
IPFS_REUSEPORT: false
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
- store_test_results:
path: /tmp/test-results
go-ipfs-api:
executor: golang
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run:
name: Cloning
command: |
git clone https://github.com/ipfs/go-ipfs-api.git
git -C go-ipfs-api log -1
- run:
name: Starting the daemon
command: /tmp/circleci-workspace/bin/ipfs daemon --init --enable-namesys-pubsub
background: true
- run:
name: Waiting for the daemon
no_output_timeout: 30s
command: |
while ! /tmp/circleci-workspace/bin/ipfs id --api=/ip4/127.0.0.1/tcp/5001 2>/dev/null; do
sleep 1
done
- restore_cache:
keys:
- v1-go-api-{{ checksum "~/ipfs/go-ipfs/go-ipfs-api/go.sum" }}
- v1-go-api-
- run:
command: go test -v ./...
working_directory: ~/ipfs/go-ipfs/go-ipfs-api
- save_cache:
key: v1-go-api-{{ checksum "~/ipfs/go-ipfs/go-ipfs-api/go.sum" }}
paths:
- ~/go/pkg/mod
- ~/.cache/go-build/
- run:
name: Stopping the daemon
command: /tmp/circleci-workspace/bin/ipfs shutdown
go-ipfs-http-client:
executor: golang
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run:
name: Cloning
command: |
git clone https://github.com/ipfs/go-ipfs-http-client.git
git -C go-ipfs-http-client log -1
- restore_cache:
keys:
- v1-http-client-{{ checksum "~/ipfs/go-ipfs/go-ipfs-http-client/go.sum" }}
- v1-http-client-
- run:
name: go test -v ./...
command: |
export PATH=/tmp/circleci-workspace/bin:$PATH
go test -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" }}
paths:
- ~/go/pkg/mod
- ~/.cache/go-build/
ipfs-webui:
executor: node-browsers
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run:
name: Cloning
command: |
git clone https://github.com/ipfs-shipyard/ipfs-webui.git
git -C ipfs-webui log -1
- restore_cache:
keys:
- v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
- v1-ipfs-webui-
- run:
name: Installing dependencies
command: |
npm install
working_directory: ~/ipfs/go-ipfs/ipfs-webui
- run:
name: Running upstream tests (finish early if they fail)
command: |
npm test || circleci-agent step halt
working_directory: ~/ipfs/go-ipfs/ipfs-webui
- run:
name: Running tests with go-ipfs built from current commit
command: npm test
working_directory: ~/ipfs/go-ipfs/ipfs-webui
environment:
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
- save_cache:
key: v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
paths:
- ~/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
docker-build:
executor: dockerizer
steps:
- checkout
- setup_remote_docker:
version: "19.03.13"
- run:
name: Build Docker image
command: |
docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .

workflows:
version: 2

# Runs for all branches, but not on tags
# see: https://circleci.com/docs/2.0/workflows/#executing-workflows-for-a-git-tag
test:
jobs:
- gobuild
- golint
- gotest
- sharness
- build
- interop:
requires:
- build
- go-ipfs-api:
requires:
- build
- go-ipfs-http-client:
requires:
- build
- ipfs-webui:
requires:
- build
- docker-build
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

Loading