Marcin Rataj
c12d24949c
feat: optimize docker builds ( #10925 )
...
* feat(docker): optimize Dockerfile for faster builds
- add BuildKit syntax directive for advanced caching features
- implement cache mounts for Go modules and build cache
- reduce layers by combining RUN commands (5→2 in final stage)
- optimize apt-get with --no-install-recommends flag
- use COPY --chmod to avoid separate permission fixing
Performance improvements:
- incremental builds after code changes: ~8.6x faster (1m51s → 13s)
- go module/build cache persists between builds
- reduced layer count improves cache efficiency
* ci: optimize Docker builds with BuildKit caching
- enable BuildKit with GitHub Actions cache backend
- add Docker Hub registry cache for cross-workflow sharing
- move Docker login earlier to enable registry cache writes
- use dual cache strategy (gha + registry) for faster builds
expected improvements:
- PR builds can reuse main branch cache from Docker Hub
- rebuild after code changes ~5-10x faster with persistent cache
- cross-PR cache sharing reduces redundant builds
2025-08-21 14:44:19 +02:00
Marcin Rataj
64c47c374a
feat(config): Gateway.RetrievalTimeout|MaxConcurrentRequests ( #10905 )
...
* feat(gateway): concurrency and timeout limits
Depends on https://github.com/ipfs/boxo/pull/994
* chore: boxo master with final boxo#994
this includes race-condition fixes from ipfs/boxo#994
and increased `DefaultMaxConcurrentRequests = 4096`
* docs: concise config.md and changelog
2025-08-15 02:36:33 +02:00
dependabot[bot]
5cb0943936
chore(deps): bump actions/checkout from 4 to 5 ( #10907 )
...
Dependabot couldn't find the original pull request head commit, 0292612bd5e16ed34f2974225fe170b15d4eb821.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-15 00:32:05 +02:00
Andrew Gillis
501b1f8bc3
feat: require go1.25 for building kubo ( #10913 )
...
CodeQL / codeql (push) Waiting to run
Docker Build / docker-build (push) Waiting to run
Gateway Conformance / gateway-conformance (push) Waiting to run
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Waiting to run
Go Build / go-build (push) Waiting to run
Go Check / go-check (push) Waiting to run
Go Lint / go-lint (push) Waiting to run
Go Test / go-test (push) Waiting to run
Interop / interop-prep (push) Waiting to run
Interop / helia-interop (push) Blocked by required conditions
Interop / ipfs-webui (push) Blocked by required conditions
Sharness / sharness-test (push) Waiting to run
Spell Check / spellcheck (push) Waiting to run
* Require go1.25 for building kubo
* update Dockerfile to fix warnings
2025-08-13 18:01:50 -07:00
Andrew Gillis
8f07460ab3
Upgrade to go1.24 ( #10726 )
...
* Upgrade to go1.24
* fix test to look for new version info string
2025-02-24 14:46:20 -08:00
Marcin Rataj
091bc083c3
fix: go 1.23(.2) ( #10540 )
...
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
go1.23.2 includes potential fix for issue described in
https://github.com/ipfs/kubo/issues/10501
2024-10-08 17:16:02 +02:00
Marcin Rataj
23ca1ddab1
fix: switch back to go 1.22 ( #10502 )
...
Switching back until https://github.com/ipfs/kubo/issues/10501 is resolved.
2024-09-02 23:39:16 +02:00
Marcin Rataj
2260e35df2
chore: upgrade to go 1.23 ( #10486 )
...
* chore: upgrade to go 1.23
https://tip.golang.org/doc/go1.23
* refactor: golangci-lint v1.60.2
2024-08-28 18:56:45 +02:00
Henrique Dias
d60b7cd1b1
ci: upgrade to go 1.22 ( #10355 )
2024-03-05 08:37:34 +01:00
dependabot[bot]
765147faf0
chore(deps): bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 08:03:32 +01:00
Adin Schmahmann
a9737e4d6a
chore: update to build with Go 1.21
2023-09-18 17:05:32 +02:00
dependabot[bot]
ac4d10faae
chore(deps): bump actions/setup-go from 2 to 4 ( #9976 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piotr Galar <piotr.galar@gmail.com>
2023-09-05 08:45:59 +02:00
dependabot[bot]
2690e083b4
chore(deps): bump actions/checkout from 3 to 4 ( #10112 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:33:32 +02:00
Henrique Dias
2aa721b121
chore: bump to go 1.20
...
- Bumps golangci-lint to work for the new Go version
- Removes rand.Seed, which has been deprecated. It is seeded by default
with a random value since Go 1.20.
- Replaces deprecated Fuse errors with syscall.Errno
2023-08-22 15:43:01 +02:00
Piotr Galar
c5868a86be
refactor(ci): simplify Dockerfile and add docker image testing ( #10021 )
2023-07-27 19:53:24 +02:00
Jorropo
23f01232c9
ci: bump go version to 1.19.x across the whole board
...
We were quite inconsistent about this previously, some files used 1.19.1 some 1.19.x, this makes it more consistent.
2023-06-08 10:05:30 +02:00
Piotr Galar
a4f54574d0
ci: skip build on PRs modifying MDs only ( #9879 )
2023-05-15 15:39:00 +02:00
Gus Eggert
ebdca5cf02
test: cancel workflows on same branch when new commit is added ( #9771 )
...
This is pretty common when working through PRs and ends up causing
tons of in-flight GitHub Actions workflows running because they aren't
currently canceled when a new commit is added. This will cancel
previous runs if a new commit is added on a branch (which is the
behavior we had on CircleCI).
2023-03-30 07:58:12 -04:00
galargh
fb80af5180
fix: ensure unique job names across all GHA workflows
2023-03-21 15:50:43 +01:00
galargh
2d65120fd5
ci: standarise gha names
2023-03-21 14:57:36 +01:00
galargh
337ddb1227
ci: remove ci/gh prefix from GHA workflows
2023-03-21 14:57:14 +01:00
galargh
be3bde6df9
ci: remove experimental tags from GHA workflows
2023-03-21 14:57:14 +01:00
Piotr Galar
e1f38d7567
ci: set sensible timeouts on all gha jobs ( #9683 )
2023-03-02 10:51:57 +01:00
Piotr Galar
d4cd414b5e
test: port CircleCI to GH Actions and improve sharness reporting ( #9355 )
...
Closes https://github.com/ipfs/kubo/issues/8991
Part of https://github.com/ipfs/kubo/issues/8804
2023-01-14 00:49:52 +01:00