Skip to content

Commit de735fd

Browse files
committed
Retire gh_ci/yaml_snippets submodule; sparse-fetch from mirrors_service
Drop the gh_ci/yaml_snippets submodule in favor of a second checkout step that sparse-fetches src/backend/yaml_snippets from the mirrors_service branch and moves it into gh_ci/yaml_snippets. Schema paths and imports in gh_ci/config_checker.py keep working unchanged. Side benefits: - master CI now validates mirror configs against the exact parser the service runs at runtime, so schema drift between branches is no longer possible. - actions/checkout and actions/setup-python bumped from v2 (EOL) to v4 while the workflow was being edited. Depends on the corresponding change on the mirrors_service branch which moves yaml_snippets from a submodule to regular files at the same path.
1 parent c5791e6 commit de735fd

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,20 @@ jobs:
2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
27+
28+
- name: Fetch yaml_snippets from mirrors_service branch
29+
uses: actions/checkout@v4
2730
with:
28-
submodules: recursive
31+
ref: mirrors_service
32+
path: _mirrors_service
33+
sparse-checkout: src/backend/yaml_snippets
34+
sparse-checkout-cone-mode: false
35+
36+
- name: Stage yaml_snippets for config_checker
37+
run: mv _mirrors_service/src/backend/yaml_snippets gh_ci/yaml_snippets
2938

30-
- uses: actions/setup-python@v2
39+
- uses: actions/setup-python@v4
3140
with:
3241
python-version: 3.9
3342

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

gh_ci/yaml_snippets

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)