From 2af69755e498970ff2f3a3e0b1fc6ed1910dc89c Mon Sep 17 00:00:00 2001 From: bagel897 Date: Wed, 19 Mar 2025 10:36:07 -0700 Subject: [PATCH 1/5] remove ats --- .github/workflows/test.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b923bf53..1c8e86d5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,15 +32,19 @@ jobs: - name: Setup environment uses: ./.github/actions/setup-environment - - name: Run ATS and Tests - uses: ./.github/actions/run-ats - timeout-minutes: 15 + - name: Test with pytest + timeout-minutes: 5 + run: | + uv run pytest \ + -n auto \ + --cov src \ + -o junit_suite_name="${{github.job}}" \ + tests/unit + + - uses: ./.github/actions/report with: - default_tests: "tests/unit" - codecov_static_token: ${{ secrets.CODECOV_STATIC_TOKEN }} + flag: unit-tests codecov_token: ${{ secrets.CODECOV_TOKEN }} - collect_args: "--timeout 15" - codecov_flags: unit-tests codemod-tests: needs: access-check From 46f893f8f67fa6c594752ea0edde193455c0c5a3 Mon Sep 17 00:00:00 2001 From: bagel897 Date: Wed, 19 Mar 2025 10:36:57 -0700 Subject: [PATCH 2/5] add timeout --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c8e86d5e..4e500b424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,7 @@ jobs: uv run pytest \ -n auto \ --cov src \ + --timeout 15 \ -o junit_suite_name="${{github.job}}" \ tests/unit From 5d209a23ec14b96a23d3db150ab54e919023bef0 Mon Sep 17 00:00:00 2001 From: bagel897 Date: Wed, 19 Mar 2025 10:41:23 -0700 Subject: [PATCH 3/5] test: use pull_request --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e500b424..dbba248f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,10 +4,11 @@ on: push: branches: - "develop" - pull_request_target: - types: [ opened, synchronize, reopened, labeled ] - branches: - - "develop" + pull_request: + # pull_request_target: + # types: [ opened, synchronize, reopened, labeled ] + # branches: + # - "develop" workflow_dispatch: jobs: From cc076eb6891e7a50efb10fd0045b34ece6bc3a54 Mon Sep 17 00:00:00 2001 From: bagel897 Date: Wed, 19 Mar 2025 10:51:49 -0700 Subject: [PATCH 4/5] Revert "test: use pull_request" This reverts commit 5d209a23ec14b96a23d3db150ab54e919023bef0. --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbba248f1..4e500b424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,11 +4,10 @@ on: push: branches: - "develop" - pull_request: - # pull_request_target: - # types: [ opened, synchronize, reopened, labeled ] - # branches: - # - "develop" + pull_request_target: + types: [ opened, synchronize, reopened, labeled ] + branches: + - "develop" workflow_dispatch: jobs: From 22cce909aaf25607cb204224f3a3e3c93e2699bc Mon Sep 17 00:00:00 2001 From: Rushil Patel Date: Wed, 19 Mar 2025 10:58:18 -0700 Subject: [PATCH 5/5] fix: test --- src/codegen/extensions/tools/create_file.py | 2 ++ src/codegen/extensions/tools/view_file.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/codegen/extensions/tools/create_file.py b/src/codegen/extensions/tools/create_file.py index 3a54303ff..77d8dd20d 100644 --- a/src/codegen/extensions/tools/create_file.py +++ b/src/codegen/extensions/tools/create_file.py @@ -45,6 +45,7 @@ def create_file(codebase: Codebase, filepath: str, content: str) -> CreateFileOb filepath=filepath, content="", line_count=0, + raw_content="", ), ) @@ -72,5 +73,6 @@ def create_file(codebase: Codebase, filepath: str, content: str) -> CreateFileOb filepath=filepath, content="", line_count=0, + raw_content="", ), ) diff --git a/src/codegen/extensions/tools/view_file.py b/src/codegen/extensions/tools/view_file.py index 21fa347a6..fbfcd8b02 100644 --- a/src/codegen/extensions/tools/view_file.py +++ b/src/codegen/extensions/tools/view_file.py @@ -133,6 +133,7 @@ def view_file( Ensure that this is indeed the correct filepath, else keep searching to find the correct fullpath.""", filepath=filepath, content="", + raw_content="", line_count=0, start_line=start_line, end_line=end_line,