Skip to content

Commit 70f9781

Browse files
authored
chore(ci): remove generation steps and rename generated_files_sync.yaml (#13444)
Remove check steps that runs generation and rename `generated_file_sync.yaml` to `repository_sanity.yaml`. Will rely on postsubmit check [librarian_generation_check.yaml ](https://github.com/googleapis/google-cloud-java/blob/main/.github/workflows/librarian_generation_check.yaml) for generation diffs. For googleapis/librarian#6220
1 parent dfe50c4 commit 70f9781

1 file changed

Lines changed: 1 addition & 66 deletions

File tree

.github/workflows/generated_files_sync.yaml renamed to .github/workflows/repository_sanity.yaml

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -15,73 +15,8 @@
1515
# downstream client libraries before they are released.
1616
on:
1717
pull_request:
18-
name: generation diff
19-
env:
20-
library_generation_image_tag: 2.73.0 # {x-version-update:gapic-generator-java:current}
18+
name: Repository Config & Code Sanity
2119
jobs:
22-
root-pom:
23-
# root pom.xml does not have diff from generated one
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v4
27-
- name: Generate root pom.xml file
28-
shell: bash
29-
run: |
30-
bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \
31-
--quiet \
32-
-u "$(id -u):$(id -g)" \
33-
-v "$(pwd):/workspace" \
34-
--entrypoint python \
35-
-- \
36-
/src/library_generation/cli/generate_monorepo_root_pom.py \
37-
generate \
38-
--repository-path=/workspace
39-
- name: Fail if there's any difference
40-
run: git --no-pager diff --exit-code
41-
42-
gapic-bom:
43-
# gapic-libraries-bom does not have diff from generated one
44-
runs-on: ubuntu-latest
45-
steps:
46-
- uses: actions/checkout@v4
47-
- name: Generate gapic-libraries-bom/pom.xml
48-
shell: bash
49-
run: |
50-
bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \
51-
--quiet \
52-
-u "$(id -u):$(id -g)" \
53-
-v "$(pwd):/workspace" \
54-
--entrypoint python \
55-
-- \
56-
/src/library_generation/cli/generate_monorepo_gapic_bom.py \
57-
generate \
58-
--repository-path=/workspace \
59-
--versions-file=/workspace/versions.txt
60-
- name: Fail if there's any difference
61-
run: git --no-pager diff --exit-code
62-
63-
owlbot-py:
64-
# applying templated owlbot.py config doesn't create a diff
65-
runs-on: ubuntu-latest
66-
steps:
67-
- uses: actions/checkout@v4
68-
- name: Generate owlbot.py files
69-
run: |
70-
bash generation/update_owlbot_postprocessor_config.sh
71-
- name: Fail if there's any difference (To fix, run generation/update_owlbot_postprocessor_config.sh)
72-
run: git --no-pager diff --exit-code
73-
74-
owlbot-yaml:
75-
# Each module's .Owlbot-hermetic.yaml config is configured according to set_owlbot_config.sh
76-
runs-on: ubuntu-latest
77-
steps:
78-
- uses: actions/checkout@v4
79-
- name: Check if .Owlbot-hermetic.yaml files are correctly configured
80-
run: |
81-
bash generation/set_owlbot_config.sh
82-
- name: Fail if there's any difference (To fix, run generation/set_owlbot_config.sh)
83-
run: git --no-pager diff --exit-code
84-
8520
gitignore_correctness:
8621
# Generated files should not match .gitignore
8722
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)