Skip to content

Commit cd726b2

Browse files
theelyxzyaoidependabot[bot]
authored
Major update to re-introduce latest fixes (#10)
* logging # connections * Handles node disconnect (#8) * save connection status * newly added nodes are connected by default * clean up unused reachableOnly option * fix critical bug in get peer * Bump next from 15.1.7 to 15.2.4 in /apps/web (#4) Bumps [next](https://github.com/vercel/next.js) from 15.1.7 to 15.2.4. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](vercel/next.js@v15.1.7...v15.2.4) --- updated-dependencies: - dependency-name: next dependency-version: 15.2.4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * reannounce periodically * Filter out disconnected peers * update ci & enable reannounce * enable ci * update logic for disconnection detection * update gossip mesh * completely disable resource manager * Added multiple serving instances * connmgr removal cleanup * add release workflow * fix release pipeline * fix release pipeline * build arm * build arm * fix concurrent table access * extended protection from concurrent table access --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Xiaozhe Yao <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent f911f0b commit cd726b2

40 files changed

+1316
-238
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
name: Go tests
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: src
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version-file: src/go.mod
27+
cache: true
28+
29+
- name: Run tests via Makefile
30+
run: make test VERBOSE=1
31+
32+
- name: Print coverage summary
33+
if: always()
34+
run: |
35+
if [ -f build/coverage.txt ]; then
36+
go tool cover -func=build/coverage.txt | tail -n 1
37+
else
38+
echo "No coverage file found"
39+
fi
40+
41+
lint:
42+
name: Lint
43+
runs-on: ubuntu-latest
44+
defaults:
45+
run:
46+
working-directory: src
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v4
50+
51+
- name: Set up Go
52+
uses: actions/setup-go@v5
53+
with:
54+
go-version-file: src/go.mod
55+
cache: true
56+
57+
- name: GolangCI-Lint
58+
uses: golangci/golangci-lint-action@v6
59+
with:
60+
version: v1.60.3
61+
working-directory: src
62+
args: --timeout=5m
63+

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and Release Go Binary
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Run when pushing a version tag like v1.0.0
7+
8+
jobs:
9+
build:
10+
name: Build Go Binary
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out source code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: src/go.mod
21+
cache: true
22+
23+
- name: Build production binary
24+
run: |
25+
cd src
26+
GOOS=linux GOARCH=amd64 go build -trimpath -tags "" -ldflags "-X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH} -X main.buildDate=${BUILD_DATE} -X main.authUrl=$(AUTH_URL) -X main.authClientId=$(AUTH_CLIENT_ID) -X main.authSecret=$(AUTH_CLIENT_SECRET) -X main.sentryDSN=$(SENTRY_DSN)" -o ./build/release/ ./entry...
27+
mv build/release/entry build/release/ocf-amd64
28+
GOOS=linux GOARCH=arm64 go build -trimpath -tags "" -ldflags "-X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH} -X main.buildDate=${BUILD_DATE} -X main.authUrl=$(AUTH_URL) -X main.authClientId=$(AUTH_CLIENT_ID) -X main.authSecret=$(AUTH_CLIENT_SECRET) -X main.sentryDSN=$(SENTRY_DSN)" -o ./build/release/ ./entry...
29+
mv build/release/entry build/release/ocf-arm64
30+
31+
32+
- name: Create GitHub Release
33+
id: create_release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
files: |
37+
src/build/release/ocf-amd64
38+
src/build/release/ocf-arm64
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

apps/web/package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"clsx": "^2.1.1",
2121
"embla-carousel-react": "^8.5.2",
2222
"lucide-react": "^0.475.0",
23-
"next": "15.1.7",
23+
"next": "15.2.4",
2424
"next-themes": "^0.4.4",
2525
"react": "^19.0.0",
2626
"react-dom": "^19.0.0",

0 commit comments

Comments
 (0)