From e78cb702eff3d621f10ccb26289d2e539a799651 Mon Sep 17 00:00:00 2001 From: aseembits93 Date: Thu, 14 Aug 2025 17:28:56 -0700 Subject: [PATCH] done by claude code --- .github/workflows/codeflash-optimize.yaml | 2 +- .github/workflows/e2e-bubblesort-benchmark.yaml | 1 + .github/workflows/e2e-bubblesort-pytest-nogit.yaml | 1 + .github/workflows/e2e-bubblesort-unittest.yaml | 1 + .github/workflows/e2e-coverage-optimization.yaml | 1 + .github/workflows/e2e-futurehouse-structure.yaml | 1 + .github/workflows/e2e-init-optimization.yaml | 1 + .github/workflows/e2e-topological-sort.yaml | 1 + .github/workflows/e2e-tracer-replay.yaml | 1 + .github/workflows/label-workflow-changes.yml | 1 + .github/workflows/mypy.yml | 1 + .github/workflows/pr_agent.yml | 2 +- .github/workflows/pre-commit.yaml | 1 + .github/workflows/unit-tests.yaml | 1 + 14 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeflash-optimize.yaml b/.github/workflows/codeflash-optimize.yaml index 907f37788..d517f0c68 100644 --- a/.github/workflows/codeflash-optimize.yaml +++ b/.github/workflows/codeflash-optimize.yaml @@ -14,7 +14,7 @@ concurrency: jobs: optimize: name: Optimize new Python code - if: ${{ github.actor != 'codeflash-ai[bot]' }} + if: ${{ github.actor != 'codeflash-ai[bot]' && github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/e2e-bubblesort-benchmark.yaml b/.github/workflows/e2e-bubblesort-benchmark.yaml index 0be8e2a68..d497807b3 100644 --- a/.github/workflows/e2e-bubblesort-benchmark.yaml +++ b/.github/workflows/e2e-bubblesort-benchmark.yaml @@ -11,6 +11,7 @@ jobs: benchmark-bubble-sort-optimization: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-bubblesort-pytest-nogit.yaml b/.github/workflows/e2e-bubblesort-pytest-nogit.yaml index 9ab5e7687..a3985dc70 100644 --- a/.github/workflows/e2e-bubblesort-pytest-nogit.yaml +++ b/.github/workflows/e2e-bubblesort-pytest-nogit.yaml @@ -11,6 +11,7 @@ jobs: bubble-sort-optimization-pytest-no-git: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-bubblesort-unittest.yaml b/.github/workflows/e2e-bubblesort-unittest.yaml index 0401f9876..7463ce3ad 100644 --- a/.github/workflows/e2e-bubblesort-unittest.yaml +++ b/.github/workflows/e2e-bubblesort-unittest.yaml @@ -11,6 +11,7 @@ jobs: bubble-sort-optimization-unittest: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-coverage-optimization.yaml b/.github/workflows/e2e-coverage-optimization.yaml index 29a821a33..ed2068d1a 100644 --- a/.github/workflows/e2e-coverage-optimization.yaml +++ b/.github/workflows/e2e-coverage-optimization.yaml @@ -11,6 +11,7 @@ jobs: end-to-end-test-coverage: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-futurehouse-structure.yaml b/.github/workflows/e2e-futurehouse-structure.yaml index 71bf88046..77a471a0b 100644 --- a/.github/workflows/e2e-futurehouse-structure.yaml +++ b/.github/workflows/e2e-futurehouse-structure.yaml @@ -11,6 +11,7 @@ jobs: futurehouse-structure: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-init-optimization.yaml b/.github/workflows/e2e-init-optimization.yaml index ccaf5371a..9e3d841ca 100644 --- a/.github/workflows/e2e-init-optimization.yaml +++ b/.github/workflows/e2e-init-optimization.yaml @@ -10,6 +10,7 @@ jobs: init-optimization: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/e2e-topological-sort.yaml b/.github/workflows/e2e-topological-sort.yaml index 9cc7d5174..50364d1f8 100644 --- a/.github/workflows/e2e-topological-sort.yaml +++ b/.github/workflows/e2e-topological-sort.yaml @@ -11,6 +11,7 @@ jobs: topological-sort-optimization: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/e2e-tracer-replay.yaml b/.github/workflows/e2e-tracer-replay.yaml index c287538f4..68288ce65 100644 --- a/.github/workflows/e2e-tracer-replay.yaml +++ b/.github/workflows/e2e-tracer-replay.yaml @@ -10,6 +10,7 @@ jobs: tracer-replay: # Dynamically determine if environment is needed only when workflow files change and contributor is external environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }} + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/label-workflow-changes.yml b/.github/workflows/label-workflow-changes.yml index ec074af53..58a3f86de 100644 --- a/.github/workflows/label-workflow-changes.yml +++ b/.github/workflows/label-workflow-changes.yml @@ -8,6 +8,7 @@ on: jobs: label-workflow-changes: + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest permissions: pull-requests: write diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index ddfb91c8f..cc3d3e58f 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -8,6 +8,7 @@ on: jobs: type-check-cli: + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/pr_agent.yml b/.github/workflows/pr_agent.yml index 4f6d48de6..0f825cc60 100644 --- a/.github/workflows/pr_agent.yml +++ b/.github/workflows/pr_agent.yml @@ -4,7 +4,7 @@ on: issue_comment: jobs: pr_agent_job: - if: ${{ github.event.sender.type != 'Bot' }} + if: ${{ github.event.sender.type != 'Bot' && github.event.pull_request.draft == false }} runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index bc0a20ae8..ccd685f2e 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -12,6 +12,7 @@ concurrency: jobs: lint: name: Run pre-commit hooks + if: ${{ github.event.pull_request.draft == false }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index a8c8ffb39..ffcb2a27f 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -8,6 +8,7 @@ on: jobs: unit-tests: + if: ${{ github.event.pull_request.draft == false }} strategy: fail-fast: false matrix: