|
23 | 23 |
|
24 | 24 | logging.basicConfig(level=logging.DEBUG) |
25 | 25 |
|
26 | | -staging = Path("owl-bot-staging") |
| 26 | +staging = Path("owl-bot-staging/bigtable") |
27 | 27 |
|
28 | 28 | if staging.is_dir(): |
29 | 29 | versions = ['v2'] |
|
65 | 65 | '.kokoro/test.sh', |
66 | 66 | ] + list(admin_files) |
67 | 67 | logging.info(f"excluding files for non-admin: {excludes}") |
68 | | - s.copy([library], excludes = excludes) |
| 68 | + s.copy([library], destination="handwritten/bigtable", excludes = excludes) |
69 | 69 |
|
70 | 70 | # Copy the admin library pieces and knit them in. |
71 | 71 | # Don't override system-test for admin/v2, just keep the v2 version. |
72 | 72 | for version in versions: |
73 | 73 | admin_version = f"admin/{version}" |
74 | 74 | library = src_paths[admin_version] |
75 | | - inProtoPath = f"protos/google/bigtable/{admin_version}" |
| 75 | + inProtoPath = f"handwritten/bigtable/protos/google/bigtable/{admin_version}" |
76 | 76 | protos = library / inProtoPath |
77 | 77 | classes = library / 'src' / version |
78 | 78 | samples = library / 'samples' / 'generated' |
|
145 | 145 | os.system(f"mkdir -p {inProtoPath}") |
146 | 146 | s.copy([protos / '*'], destination=inProtoPath) |
147 | 147 | os.system(f"mkdir -p src/{admin_version}") |
148 | | - s.copy([classes / '*'], destination=f"src/{admin_version}") |
| 148 | + s.copy([classes / '*'], destination=f"handwritten/bigtable/src/{admin_version}") |
149 | 149 | os.system(f"mkdir -p samples/generated/{admin_version}") |
150 | | - s.copy([samples / 'v2' / '*admin*'], destination=f"samples/generated/{admin_version}") |
| 150 | + s.copy([samples / 'v2' / '*admin*'], destination=f"handwritten/bigtable/samples/generated/{admin_version}") |
151 | 151 | os.system(f"mkdir -p test/{admin_version}") |
152 | | - s.copy([tests / '*admin*.ts'], destination=f"test/{admin_version}") |
| 152 | + s.copy([tests / '*admin*.ts'], destination=f"handwritten/bigtable/test/{admin_version}") |
153 | 153 |
|
154 | 154 | # Replace the client name for generated system-test. |
155 | | - system_test_files=['system-test/fixtures/sample/src/index.ts','system-test/fixtures/sample/src/index.js'] |
| 155 | + system_test_files=['handwritten/bigtable/system-test/fixtures/sample/src/index.ts','handwritten/bigtable/system-test/fixtures/sample/src/index.js'] |
156 | 156 | for file in system_test_files: |
157 | 157 | s.replace(file, 'BigtableClient', 'Bigtable') |
158 | 158 | s.replace(file, 'client.close', '// client.close') # this does not work with the manual layer |
|
162 | 162 | shutil.rmtree(staging) |
163 | 163 |
|
164 | 164 | common_templates = gcp.CommonTemplates() |
165 | | -templates = common_templates.node_library( |
| 165 | +templates = common_templates.node_mono_repo_library( |
| 166 | + relative_dir="handwritten/bigtable", |
166 | 167 | source_location='build/src' |
167 | 168 | ) |
168 | | -s.copy(templates,excludes=[ |
| 169 | +s.copy(templates,destination="handwritten/bigtable", excludes=[ |
169 | 170 | '.github/auto-approve.yml', |
170 | 171 | '.github/sync-repo-settings.yaml', |
171 | 172 | '.github/workflows/ci.yaml', |
172 | 173 | '.kokoro/samples-test.sh', # get to green |
173 | 174 | '.kokoro/system-test.sh', |
174 | 175 | '.kokoro/test.sh', |
| 176 | + '.mocharc.js', |
| 177 | + 'README.md' |
175 | 178 | ]) |
176 | 179 |
|
177 | | -node.postprocess_gapic_library_hermetic() |
| 180 | +node.postprocess_gapic_library_hermetic(relative_dir="handwritten/bigtable") |
0 commit comments