From 2a961f8fa5069331cdbf12ad07d39aceb89f230d Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 14 Oct 2024 16:37:48 -0700 Subject: [PATCH] fix owlbot and system test --- owlbot.py | 10 ++++++++-- system-test/test.kitchen.ts | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/owlbot.py b/owlbot.py index 38f5c34..5092014 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1,6 +1,12 @@ # See the License for the specific language governing permissions and # limitations under the License. - +import synthtool as s +import synthtool.gcp as gcp import synthtool.languages.node as node +import logging + +logging.basicConfig(level=logging.DEBUG) -node.owlbot_main(templates_excludes=["LICENSE", "README.md", ".github/ISSUE_TEMPLATE", ".github/scripts", ".kokoro", ".github/workflows/issues-no-repro.yaml", ".jsdoc.js"]) +common_templates = gcp.CommonTemplates() +templates = common_templates.node_library() +s.copy(excludes=["LICENSE", "README.md", ".github/ISSUE_TEMPLATE", ".github/scripts", ".kokoro", ".github/workflows/issues-no-repro.yaml", ".jsdoc.js"]) diff --git a/system-test/test.kitchen.ts b/system-test/test.kitchen.ts index a1f23b4..7e4bb02 100644 --- a/system-test/test.kitchen.ts +++ b/system-test/test.kitchen.ts @@ -51,7 +51,7 @@ describe('pack and install', () => { await execa('npx', ['webpack'], {cwd: `${stagingPath}/`, stdio: 'inherit'}); const bundle = path.join(stagingPath, 'dist', 'bundle.min.js'); const stat = fs.statSync(bundle); - assert(stat.size < 300 * 1024); + assert(stat.size < 400 * 1024); }); /**