Skip to content

Commit 61c83f0

Browse files
committed
Merge remote-tracking branch 'origin/master' into libp2p-rcmgr-metrics
2 parents cd25750 + fa769f7 commit 61c83f0

File tree

497 files changed

+20493
-13125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

497 files changed

+20493
-13125
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: [ipshipyard.gitwallet.co]

.github/ISSUE_TEMPLATE/bug-report.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:
1818
label: Checklist
1919
description: Please verify that you've followed these steps
2020
options:
21-
- label: This is a bug report, not a question. Ask questions on [discuss.ipfs.io](https://discuss.ipfs.io).
21+
- label: This is a bug report, not a question. Ask questions on [discuss.ipfs.tech](https://discuss.ipfs.tech/c/help/13).
2222
required: true
2323
- label: I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my bug.
2424
required: true
@@ -32,8 +32,9 @@ body:
3232
label: Installation method
3333
description: Please select your installation method
3434
options:
35+
- dist.ipfs.tech or ipfs-update
36+
- docker image
3537
- ipfs-desktop
36-
- ipfs-update or dist.ipfs.tech
3738
- third-party binary
3839
- built from source
3940
- type: textarea

.github/ISSUE_TEMPLATE/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Getting Help on IPFS
4-
url: https://ipfs.io/help
4+
url: https://ipfs.tech/help
55
about: All information about how and where to get help on IPFS.
66
- name: Kubo configuration reference
77
url: https://github.com/ipfs/kubo/blob/master/docs/config.md#readme
88
about: Documentation on the different configuration settings
99
- name: Kubo experimental features docs
1010
url: https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#readme
1111
about: Documentation on Private Networks, Filestore and other experimental features.
12-
- name: RPC API Reference
12+
- name: Kubo RPC API Reference
1313
url: https://docs.ipfs.tech/reference/kubo/rpc/
1414
about: Documentation of all Kubo RPC API endpoints.
15-
- name: IPFS Official Forum
16-
url: https://discuss.ipfs.io
15+
- name: IPFS Official Discussion Forum
16+
url: https://discuss.ipfs.tech
1717
about: Please post general questions, support requests, and discussions here.

.github/ISSUE_TEMPLATE/enhancement.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
Suggest an enhancement to Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.io).
9+
Suggest an enhancement to Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.tech).
1010
1111
Issues in this repo must be specific, actionable, and well motivated. They should be starting points for _building_ new features, not brainstorming ideas.
1212
13-
If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.io).
13+
If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.tech).
1414
1515
**Example:**
1616

.github/ISSUE_TEMPLATE/feature.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
Suggest a new feature in Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.io).
9+
Suggest a new feature in Kubo (the program). If you'd like to suggest an improvement to the IPFS protocol, please discuss it on [the forum](https://discuss.ipfs.tech).
1010
1111
Issues in this repo must be specific, actionable, and well motivated. They should be starting points for _building_ new features, not brainstorming ideas.
1212
13-
If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.io).
13+
If you have an idea you'd like to discuss, please open a new thread on [the forum](https://discuss.ipfs.tech).
1414
1515
**Example:**
1616

.github/dependabot.yml

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
version: 2
22
updates:
3-
- package-ecosystem: gomod
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: "11:00"
8-
open-pull-requests-limit: 10
9-
labels:
10-
- "topic/dependencies"
113
- package-ecosystem: "github-actions"
124
directory: "/"
135
schedule:

.github/workflows/codeql-analysis.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,21 @@ jobs:
2929

3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version: 1.23.x
3338

3439
# Initializes the CodeQL tools for scanning.
3540
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v2
41+
uses: github/codeql-action/init@v3
3742
with:
3843
languages: go
3944

4045
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v2
46+
uses: github/codeql-action/autobuild@v3
4247

4348
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v2
49+
uses: github/codeql-action/analyze@v3

.github/workflows/docker-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
run:
2727
shell: bash
2828
steps:
29-
- uses: actions/setup-go@v3
29+
- uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.19.x
32-
- uses: actions/checkout@v3
31+
go-version: 1.23.x
32+
- uses: actions/checkout@v4
3333
- run: docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .
3434
- run: docker run --rm $IMAGE_NAME:$WIP_IMAGE_TAG --version

.github/workflows/docker-image.yml

+28-14
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Push to Docker Hub'
88
required: true
99
default: 'false'
10+
tags:
11+
description: 'Custom tags to use for the push'
12+
required: false
13+
default: ''
1014
# # If we decide to build all images on every PR, we should make sure that
1115
# # they are NOT pushed to Docker Hub.
1216
# pull_request:
@@ -15,6 +19,7 @@ on:
1519
push:
1620
branches:
1721
- 'master'
22+
- 'staging'
1823
- 'bifrost-*'
1924
tags:
2025
- 'v*'
@@ -27,22 +32,22 @@ jobs:
2732
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
2833
name: Push Docker image to Docker Hub
2934
runs-on: ubuntu-latest
30-
timeout-minutes: 90
35+
timeout-minutes: 15
3136
env:
3237
IMAGE_NAME: ipfs/kubo
3338
LEGACY_IMAGE_NAME: ipfs/go-ipfs
3439
steps:
3540
- name: Check out the repo
36-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
3742

3843
- name: Set up QEMU
39-
uses: docker/setup-qemu-action@v2
44+
uses: docker/setup-qemu-action@v3
4045

4146
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
4348

4449
- name: Cache Docker layers
45-
uses: actions/cache@v3
50+
uses: actions/cache@v4
4651
with:
4752
path: /tmp/.buildx-cache
4853
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -51,14 +56,15 @@ jobs:
5156
5257
- name: Get tags
5358
id: tags
59+
if: github.event.inputs.tags == ''
5460
run: |
5561
echo "value<<EOF" >> $GITHUB_OUTPUT
5662
./bin/get-docker-tags.sh "$(date -u +%F)" >> $GITHUB_OUTPUT
5763
echo "EOF" >> $GITHUB_OUTPUT
5864
shell: bash
5965

6066
- name: Log in to Docker Hub
61-
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
67+
uses: docker/login-action@v3
6268
with:
6369
username: ${{ vars.DOCKER_USERNAME }}
6470
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -67,7 +73,7 @@ jobs:
6773
# builds, only one platform is being loaded into the cache. This would
6874
# prevent us from testing the other platforms.
6975
- name: Build Docker image (linux/amd64)
70-
uses: docker/build-push-action@v4
76+
uses: docker/build-push-action@v6
7177
with:
7278
platforms: linux/amd64
7379
context: .
@@ -79,7 +85,7 @@ jobs:
7985
cache-to: type=local,dest=/tmp/.buildx-cache-new
8086

8187
- name: Build Docker image (linux/arm/v7)
82-
uses: docker/build-push-action@v4
88+
uses: docker/build-push-action@v6
8389
with:
8490
platforms: linux/arm/v7
8591
context: .
@@ -91,7 +97,7 @@ jobs:
9197
cache-to: type=local,dest=/tmp/.buildx-cache-new
9298

9399
- name: Build Docker image (linux/arm64/v8)
94-
uses: docker/build-push-action@v4
100+
uses: docker/build-push-action@v6
95101
with:
96102
platforms: linux/arm64/v8
97103
context: .
@@ -104,20 +110,28 @@ jobs:
104110

105111
# We test all the images on amd64 host here. This uses QEMU to emulate
106112
# the other platforms.
107-
- run: docker run --rm $IMAGE_NAME:linux-amd64 --version
108-
- run: docker run --rm $IMAGE_NAME:linux-arm-v7 --version
109-
- run: docker run --rm $IMAGE_NAME:linux-arm64-v8 --version
113+
# NOTE: --version should finish instantly, but sometimes
114+
# it hangs on github CI (could be qemu issue), so we retry to remove false negatives
115+
- name: Smoke-test linux-amd64
116+
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-amd64 version --all && break || [ $i = 3 ] && exit 1; done
117+
timeout-minutes: 1
118+
- name: Smoke-test linux-arm-v7
119+
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-arm-v7 version --all && break || [ $i = 3 ] && exit 1; done
120+
timeout-minutes: 1
121+
- name: Smoke-test linux-arm64-v8
122+
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-arm64-v8 version --all && break || [ $i = 3 ] && exit 1; done
123+
timeout-minutes: 1
110124

111125
# This will only push the previously built images.
112126
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.push == 'true'
113127
name: Publish to Docker Hub
114-
uses: docker/build-push-action@v4
128+
uses: docker/build-push-action@v6
115129
with:
116130
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
117131
context: .
118132
push: true
119133
file: ./Dockerfile
120-
tags: "${{ steps.tags.outputs.value }}"
134+
tags: "${{ github.event.inputs.tags || steps.tags.outputs.value }}"
121135
cache-from: type=local,src=/tmp/.buildx-cache-new
122136
cache-to: type=local,dest=/tmp/.buildx-cache-new
123137

0 commit comments

Comments
 (0)