Skip to content

Commit 26c410e

Browse files
authored
fix: update compose file and upgrade deps in mono & scorpio (#1899)
1 parent f3b9fb2 commit 26c410e

10 files changed

Lines changed: 56 additions & 53 deletions

File tree

.github/workflows/base.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118
119119
fuse:
120120
name: Fuse Clippy Check
121-
if: ${{ github.repository == 'web3infra-foundation/mega' }}
122121
runs-on: [self-hosted, Linux, X64]
123122
env:
124123
CARGO_TERM_COLOR: always

.github/workflows/orion-client-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
build-and-deploy:
16+
build:
1717
if: ${{ github.repository == 'web3infra-foundation/mega' }}
1818
runs-on: ubuntu-latest
1919
timeout-minutes: 20
@@ -44,6 +44,11 @@ jobs:
4444
file target/release/orion || true
4545
file target/release/scorpio || true
4646
47+
deploy:
48+
if: ${{ github.repository == 'web3infra-foundation/mega' }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
4752
- name: Upload binaries via rsync
4853
uses: burnett01/rsync-deployments@master
4954
with:

.github/workflows/orion-client-image-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ env:
3131

3232
jobs:
3333
build-push-single-arch:
34-
if: ${{ github.repository == 'web3infra-foundation/mega' }}
3534
runs-on: ubuntu-latest
3635
strategy:
3736
matrix:

.github/workflows/orion-server-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
manifest:
7171
needs: build-push-single-arch
7272
runs-on: ubuntu-latest
73-
if: ${{ github.repository == 'web3infra-foundation/mega' }}
7473
permissions:
7574
contents: read
7675
steps:

.github/workflows/web-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
125125
deploy:
126126
needs: manifest
127+
if: ${{ github.repository == 'web3infra-foundation/mega' }}
127128
runs-on: ubuntu-latest
128129
permissions:
129130
contents: read

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tracing = "0.1.44"
5151
tracing-subscriber = "0.3.22"
5252
tracing-appender = "0.2.4"
5353
thiserror = "2.0.18"
54-
clap = "4.5.54"
54+
clap = "4.5.57"
5555

5656
#====
5757
tokio = "1.49.0"
@@ -67,18 +67,18 @@ axum-extra = "0.12.5"
6767
russh = "0.55.0"
6868
tower-http = "0.6.8"
6969
tower = "0.5.3"
70-
tower-sessions = { version = "0.14", features = ["memory-store"] }
71-
time = { version = "0.3.45", features = ["serde"] }
70+
tower-sessions = { version = "0.15", features = ["memory-store"] }
71+
time = { version = "0.3.46", features = ["serde"] }
7272

7373
#====
7474
sea-orm = "1.1.19"
7575
sea-orm-migration = "1.1.19"
7676

7777
#====
7878
rand = "0.9.2"
79-
flate2 = "1.1.8"
79+
flate2 = "1.1.9"
8080
smallvec = "1.15.1"
81-
bytes = "1.11"
81+
bytes = "1.11.1"
8282
chrono = { version = "0.4.43", features = ["serde"] }
8383
hex = "0.4.3"
8484
sha2 = "0.10.9"
@@ -87,8 +87,8 @@ idgenerator = "2.0.0"
8787
config = "0.15.19"
8888
reqwest = "0.13.1"
8989
lazy_static = "1.5.0"
90-
uuid = "1.19.0"
91-
regex = "1.12.2"
90+
uuid = "1.20.0"
91+
regex = "1.12.3"
9292
ed25519-dalek = "2.2.0"
9393
ctrlc = "3.5.1"
9494
cedar-policy = "4.8.2"
@@ -101,13 +101,13 @@ utoipa = { version = "5.4.0", features = ["chrono"] }
101101
utoipa-axum = "0.2.0"
102102
utoipa-swagger-ui = "9.0.2"
103103
tempfile = "3.24.0"
104-
rdkafka = "0.38.0"
104+
rdkafka = "0.39.0"
105105
dashmap = "6.1.0"
106106
once_cell = "1.21.3"
107-
testcontainers = "0.26"
107+
testcontainers = "0.26.3"
108108
scopeguard = "1.2.0"
109109
serial_test = "3.3.1"
110-
sysinfo = "0.37"
110+
sysinfo = "0.38"
111111
http = "1.4.0"
112112
http-body = "1.0.1"
113113
http-body-util = "0.1.3"
@@ -129,20 +129,20 @@ log = "0.4.29"
129129
env_logger = "0.11.8"
130130
qdrant-client = "1.16"
131131
walkdir = "2.5"
132-
dagrs = "0.5.2"
132+
dagrs = "0.6.0"
133133
tar = "0.4"
134134
indexmap = "2.13"
135135
envsubst = "0.2.1"
136136
diffs = "0.5.1"
137137
directories = "6.0.0"
138138
dotenv = "0.15"
139-
redis = "1.0.2"
139+
redis = "1.0.3"
140140
redis-test = "1.0.1"
141141
bincode = "2.0.1"
142142
rustls = "0.23.36"
143143
object_store = "0.13.1"
144144
qlean = "0.2.2"
145-
toml = "0.9"
145+
toml = "0.9.8"
146146

147147
[profile.release]
148148
debug = true

docker/demo/.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ MEGA_AUTHENTICATION__TEST_USER_TOKEN=mega
8282
MEGA_BUILD__ENABLE_BUILD=true
8383
MEGA_BUILD__ORION_SERVER=http://orion_server:8004
8484

85-
MEGA_OAUTH__CAMPSITE_API_DOMAIN=http://campsite_api:8080
86-
MEGA_OAUTH__UI_DOMAIN=http://app.gitmono.local:3000
85+
MEGA_OAUTH__CAMPSITE_API_DOMAIN=http://api.gitmono.local:8080
86+
MEGA_OAUTH__UI_DOMAIN=http://app.gitmono.local
8787
MEGA_OAUTH__COOKIE_DOMAIN=gitmono.local
88-
MEGA_OAUTH__ALLOWED_CORS_ORIGINS="http://app.gitmono.local:3000, http://localhost:3000"
88+
MEGA_OAUTH__ALLOWED_CORS_ORIGINS="http://app.gitmono.local"
8989

9090
MEGA_BASE_DIR=/opt/mega
9191
MEGA_CACHE_DIR=/opt/mega/cache
@@ -98,7 +98,7 @@ MEGA_CACHE_DIR=/opt/mega/cache
9898

9999
ORION_DATABASE_URL=postgres://postgres:postgres@postgres:5432/mono
100100
ORION_BUILD_LOG_DIR=/tmp/buck2ctl
101-
ORION_ALLOWED_CORS_ORIGINS=http://app.gitmono.local:3000
101+
ORION_ALLOWED_CORS_ORIGINS=http://app.gitmono.local
102102
ORION_LOGGER_STORAGE_TYPE=local
103103
ORION_BUCKET_NAME=orion-logs
104104

@@ -123,7 +123,7 @@ RUST_LOG=info
123123
CAMPSITE_REDIS_URL=redis://redis:6379
124124
CAMPSITE_RAILS_ENV=demo
125125
CAMPSITE_SERVER_COMMAND=bundle exec puma
126-
CAMPSITE_DEV_APP_URL=http://app.gitmono.local:3000
126+
CAMPSITE_DEV_APP_URL=http://app.gitmono.local
127127
CAMPSITE_RAILS_MASTER_KEY=51d8cdb046869075795ba82cdd95807a
128128

129129
# Run migrations only on first startup; set to 0 afterwards for faster launches.

docker/demo/docker-compose.demo.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ services:
154154

155155
# Campsite integration (OAuth / SSO etc.)
156156
MEGA_OAUTH__CAMPSITE_API_DOMAIN: ${MEGA_OAUTH__CAMPSITE_API_DOMAIN:-http://campsite_api:8080}
157-
MEGA_OAUTH__UI_DOMAIN: ${MEGA_OAUTH__UI_DOMAIN:-http://localhost:3000}
157+
MEGA_OAUTH__UI_DOMAIN: ${MEGA_OAUTH__UI_DOMAIN:-http://app.gitmono.local}
158158
MEGA_OAUTH__COOKIE_DOMAIN: ${MEGA_OAUTH__COOKIE_DOMAIN:-localhost}
159159
# Note: allowed_cors_origins expects an array format in TOML
160-
MEGA_OAUTH__ALLOWED_CORS_ORIGINS: ${MEGA_OAUTH__ALLOWED_CORS_ORIGINS:-"http://app.gitmono.local:3000,http://localhost:3000"}
160+
MEGA_OAUTH__ALLOWED_CORS_ORIGINS: ${MEGA_OAUTH__ALLOWED_CORS_ORIGINS:-"http://app.gitmono.local"}
161161

162162
# Directory paths (can be overridden)
163163
MEGA_BASE_DIR: ${MEGA_BASE_DIR:-/opt/mega}
@@ -220,8 +220,8 @@ services:
220220
orion_server:
221221
condition: service_healthy
222222
ports:
223-
# Container listens on 3000, host port is 3000
224-
- "3000:3000"
223+
# Container listens on 3000, host port is 80
224+
- "80:3000"
225225
healthcheck:
226226
# NOTE: mega-ui image may not include curl/wget/busybox. Use bash built-in /dev/tcp.
227227
# With HOSTNAME=0.0.0.0, Next.js will listen on all interfaces, so 127.0.0.1 should work
@@ -257,7 +257,7 @@ services:
257257
MEGA_ORION_SERVER__LOGGER_STORAGE_MODE: ${ORION_LOGGER_STORAGE_MODE:-local}
258258
MEGA_ORION_SERVER__STORAGE_TYPE: ${ORION_STORAGE_TYPE:-local}
259259
MEGA_ORION_SERVER__MONOBASE_URL: ${ORION_MONOBASE_URL:-http://mega:8000}
260-
MEGA_OAUTH__ALLOWED_CORS_ORIGINS: ${ORION_ALLOWED_CORS_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000,http://localhost:8000}
260+
MEGA_OAUTH__ALLOWED_CORS_ORIGINS: ${ORION_ALLOWED_CORS_ORIGINS:-http://app.gitmono.local}
261261
volumes:
262262
- orion-logs:/tmp/buck2ctl
263263
ports:
@@ -327,7 +327,7 @@ services:
327327
RAILS_ENV: ${CAMPSITE_RAILS_ENV:-demo}
328328
RAILS_MASTER_KEY: ${CAMPSITE_RAILS_MASTER_KEY:-51d8cdb046869075795ba82cdd95807a}
329329
SERVER_COMMAND: ${CAMPSITE_SERVER_COMMAND:-bundle exec puma}
330-
DEV_APP_URL: ${CAMPSITE_DEV_APP_URL:-http://localhost:3000}
330+
DEV_APP_URL: ${CAMPSITE_DEV_APP_URL:-http://app.gitmono.local}
331331
networks:
332332
default:
333333
aliases:

moon/apps/web/.env.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NEXT_PUBLIC_API_URL=http://api.gitmono.local:8080
22
NEXT_PUBLIC_MONO_API_URL=http://git.gitmono.local:8000
3-
NEXT_PUBLIC_WEB_URL=http://app.gitmono.local:3000
3+
NEXT_PUBLIC_WEB_URL=http://app.gitmono.local
44
NEXT_PUBLIC_SYNC_URL=ws://sync.gitmono.local
55
NEXT_PUBLIC_AUTH_URL=http://auth.gitmono.local:8080
66
NEXT_PUBLIC_CRATES_PRO_URL=http://cratespro.gitmega.nju:8080

scorpio/Cargo.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,46 @@ path = "src/lib.rs"
1212
[dependencies]
1313
api-model = { path = "../api-model" }
1414
git-internal = { workspace = true }
15-
reqwest = { version = "0.12.7", features = ["json", "blocking"] }
16-
serde = { version = "1.0.210", features = ["derive"] }
17-
tokio = { version = "1.40.0", features = ["full"] }
18-
axum = { version = "0.8.4", features = ["macros"] }
15+
reqwest = { workspace = true, features = ["json", "blocking"] }
16+
serde = { workspace = true, features = ["derive"] }
17+
tokio = { workspace = true, features = ["full"] }
18+
axum = { workspace = true, features = ["macros"] }
1919
# rfuse3 version 0.0.5 provides bugfixes and API improvements,
2020
# including better async mount handling and error reporting.
2121
# This is required for Antares to improve FUSE readiness/polling and avoid
2222
# mount/unmount race issues observed with 0.0.4.
2323
# NOTE: Verify version exists at https://github.com/cberner/rfuse3/releases
2424
# If 0.0.5 doesn't exist, use the latest available version and update this comment.
2525
rfuse3 = { version = "0.0.5", features = ["tokio-runtime", "unprivileged"] }
26-
clap = { version = "4.0", features = ["derive"] }
26+
clap = { workspace = true, features = ["derive"] }
2727

28-
toml = "0.9.0"
29-
libc = "0.2.158"
30-
log = "0.4.22"
31-
radix_trie = "0.2.1"
32-
tracing = "0.1.40"
33-
serde_json = "1.0.128"
34-
once_cell = "1.19.0"
35-
env_logger = "0.11.5"
28+
toml = { workspace = true }
29+
libc = "0.2.180"
30+
log = { workspace = true }
31+
radix_trie = "0.3.0"
32+
tracing = { workspace = true }
33+
serde_json = { workspace = true }
34+
once_cell = { workspace = true }
35+
env_logger = { workspace = true }
3636
sled = "0.34.7"
37-
bincode = "2.0.1"
38-
async-recursion = "1.1.1"
39-
bytes = "1.7.2"
40-
futures = "0.3.31"
41-
uuid = { version = "1.14.0", features = ["v4"] }
37+
bincode = { workspace = true }
38+
async-recursion = { workspace = true }
39+
bytes = { workspace = true }
40+
futures = { workspace = true }
41+
uuid = { workspace = true, features = ["v4"] }
4242
# libfuse-fs upgraded from 0.1.6 to 0.1.9 to address breaking API changes:
4343
# - Fixed FUSE mount/unmount race conditions and improved error propagation.
4444
# - Changed trait bounds for async operations, required for Scorpio's async FUSE integration.
4545
# - Updated method signatures for file/directory operations to match rfuse3 and kernel expectations.
4646
# - 0.1.6 had issues with incomplete async support and incorrect error handling, causing panics in Scorpio.
4747
# NOTE: Verify release notes at the libfuse-fs repository before upgrading versions.
48-
libfuse-fs = "0.1.9"
48+
libfuse-fs = "0.1.10"
4949
whoami = "1.6.0"
50-
thiserror = "2.0.12"
50+
thiserror = { workspace = true }
5151
crossbeam = "0.8.4"
52-
dashmap = "6.1.0"
53-
ring = "0.17.8"
54-
hex = "0.4.3"
52+
dashmap = { workspace = true }
53+
ring = "0.17.14"
54+
hex = { workspace = true }
5555

5656
async-trait.workspace = true
5757
tracing-subscriber.workspace = true
@@ -70,7 +70,7 @@ testcontainers = { workspace = true, features = [
7070
"http_wait",
7171
"reusable-containers",
7272
] }
73-
reqwest = { version = "0.12.12", features = ["blocking"] }
73+
reqwest = { workspace = true, features = ["blocking"] }
7474
http = { workspace = true }
7575
tower = "0.5"
7676

0 commit comments

Comments
 (0)