Commit 64e4f55
committed
chore: migrate from Yarn Classic to Yarn Berry
* Migrate Yarn to v4 release and cleanup plugins
Replace Yarn Classic with the Yarn v4 release and update project config. Removed individual .yarn/plugins/*.cjs plugin files and added .yarn/releases/yarn-4.16.0.cjs; updated .yarnrc.yml and package.json to use the release, reordered .gitignore entries to ensure .yarn/releases is not ignored, and regenerated yarn.lock.
* chore: use workspace:* for internal packages
- Switch services to use the workspace:* protocol for internal packages (@guardian/common and @guardian/interfaces) to enable local monorepo resolution. Also normalize and tidy package.json entries across services.
- Remove the pinned packageManager: yarn@1.22.21 entries from package.json files in analytics-service, api-gateway, auth-service, indexer-api-gateway, logger-service, and notification-service. This unpins Yarn v1 at the package level and defers package manager choice to workspace/CI configuration.
* chore: Migrate Dockerfiles to Yarn Berry
Replace the old pack/install multi-stage flow with a Yarn Berry workspaces-based build. Enable corepack, add deps-dev/build/deps-prod stages, use yarn workspaces run build for interfaces/common/services and yarn workspaces focus --production to install target-native production deps. Copy workspace package.json/dist outputs into the final image and use a shared yarn cache mount (/root/.yarn/berry/cache). Changes applied to simplify and speed up workspace builds.
* chore: Use Corepack and yarn immutable in workflows
- Replace the old Yarn setup steps with Corepack (corepack enable)
- Update cache path to .yarn/cache, and switch yarn install to --immutable across CI workflow files.
- Remove the ipfs-version matrix entries and hardcode ipfs_version: 0.41.0 in the IPFS setup steps.
- Set YARN_ENABLE_GLOBAL_CACHE: 'false' in GitHub Actions jobs to disable Yarn's global cache during CI
* chore: use local BuildKit cache in workflows
Replace GH Actions registry cache with a local BuildKit cache at /tmp/buildkit-cache across API workflows. Updates cache-from to type=local,src=/tmp/buildkit-cache and cache-to to type=local,dest=/tmp/buildkit-cache,mode=min to use a local Docker buildx cache for the Cypress/Docker jobs.
* docs: Update Node.js version and Yarn links
Bump Node.js recommendation in README.md from v20.19 to v20.20 and replace legacy Yarn install URLs (classic.yarnpkg.com) with the current yarnpkg.com/getting-started/install links across README.md, contracts/README.md, and docs/guardian README. Documentation update to keep prerequisites and install links current; no code changes.
* fix: Scope volume mounts under service subdirs
Change docker-compose volume mount targets to include service-specific subdirectories under /usr/local/app (e.g. ./auth-service/configs -> /usr/local/app/auth-service/configs). Applied across all docker-compose variants
* chore: bump actions/checkout to 6.0.3 in workflows
Update actions/checkout references to the v6.0.3 commit (df4cb1c...) across GitHub Actions workflow files to pick up the latest fixes.
---------
Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>1 parent cd44aaf commit 64e4f55
74 files changed
Lines changed: 20809 additions & 15152 deletions
File tree
- .github/workflows
- .yarn
- plugins/@yarnpkg
- releases
- ai-service
- analytics-service
- api-gateway
- application-events
- auth-service
- common
- contracts
- docs/guardian/readme/getting-started/installation
- guardian-service
- indexer-api-gateway
- indexer-common
- indexer-interfaces
- indexer-service
- indexer-web-proxy
- indexer-worker-service
- logger-service
- mrv-sender
- notification-service
- policy-service
- queue-service
- topic-listener-service
- topic-viewer
- tree-viewer
- web-proxy
- worker-service
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 33 | + | |
| 34 | + | |
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
43 | | - | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | | - | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 36 | + | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | | - | |
| 42 | + | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | | - | |
| 47 | + | |
53 | 48 | | |
54 | 49 | | |
55 | 50 | | |
| |||
92 | 87 | | |
93 | 88 | | |
94 | 89 | | |
95 | | - | |
| 90 | + | |
96 | 91 | | |
97 | 92 | | |
98 | | - | |
| 93 | + | |
99 | 94 | | |
100 | 95 | | |
101 | 96 | | |
| |||
151 | 146 | | |
152 | 147 | | |
153 | 148 | | |
154 | | - | |
155 | | - | |
| 149 | + | |
| 150 | + | |
156 | 151 | | |
157 | 152 | | |
158 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
| 45 | + | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
55 | | - | |
| 50 | + | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
60 | | - | |
| 55 | + | |
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
| |||
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
103 | | - | |
| 98 | + | |
104 | 99 | | |
105 | 100 | | |
106 | | - | |
| 101 | + | |
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
| |||
159 | 154 | | |
160 | 155 | | |
161 | 156 | | |
162 | | - | |
163 | | - | |
| 157 | + | |
| 158 | + | |
164 | 159 | | |
165 | 160 | | |
166 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
| 38 | + | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
| 43 | + | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | 47 | | |
53 | | - | |
| 48 | + | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
| |||
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
96 | | - | |
| 91 | + | |
97 | 92 | | |
98 | 93 | | |
99 | | - | |
| 94 | + | |
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
| |||
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
155 | | - | |
156 | | - | |
| 150 | + | |
| 151 | + | |
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
| 38 | + | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
| 43 | + | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | 47 | | |
53 | | - | |
| 48 | + | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
| |||
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
96 | | - | |
| 91 | + | |
97 | 92 | | |
98 | 93 | | |
99 | | - | |
| 94 | + | |
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
| |||
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
155 | | - | |
156 | | - | |
| 150 | + | |
| 151 | + | |
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
| |||
0 commit comments