From 39d9ff5d57da7d7035e5e749d2a6831fe0d2b8dc Mon Sep 17 00:00:00 2001 From: Saga4 Date: Sun, 13 Apr 2025 13:20:14 +0530 Subject: [PATCH] WF changes to remove condition --- .github/workflows/codeflash-optimize.yaml | 9 +-------- .../end-to-end-test-bubblesort-pytest-no-git.yaml | 10 ++-------- .../workflows/end-to-end-test-bubblesort-unittest.yaml | 10 ++-------- .github/workflows/end-to-end-test-coverage.yaml | 10 ++-------- .github/workflows/end-to-end-test-futurehouse.yaml | 10 ++-------- .github/workflows/end-to-end-test-init-optim.yaml | 10 ++-------- .github/workflows/end-to-end-test-tracer-replay.yaml | 10 ++-------- .../workflows/end-to-end-topological-sort-test.yaml | 9 +-------- 8 files changed, 14 insertions(+), 64 deletions(-) diff --git a/.github/workflows/codeflash-optimize.yaml b/.github/workflows/codeflash-optimize.yaml index 582707a82..0f8d829ad 100644 --- a/.github/workflows/codeflash-optimize.yaml +++ b/.github/workflows/codeflash-optimize.yaml @@ -15,14 +15,7 @@ jobs: optimize: name: Optimize new Python code # 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': '' - }} + 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.actor != 'codeflash-ai[bot]' }} runs-on: ubuntu-latest env: diff --git a/.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml b/.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml index 0b504de68..ebc577cd9 100644 --- a/.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml +++ b/.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml @@ -11,14 +11,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-test-bubblesort-unittest.yaml b/.github/workflows/end-to-end-test-bubblesort-unittest.yaml index 16ed73718..3bd5dc440 100644 --- a/.github/workflows/end-to-end-test-bubblesort-unittest.yaml +++ b/.github/workflows/end-to-end-test-bubblesort-unittest.yaml @@ -11,14 +11,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-test-coverage.yaml b/.github/workflows/end-to-end-test-coverage.yaml index d8855c0e6..a65976395 100644 --- a/.github/workflows/end-to-end-test-coverage.yaml +++ b/.github/workflows/end-to-end-test-coverage.yaml @@ -11,14 +11,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-test-futurehouse.yaml b/.github/workflows/end-to-end-test-futurehouse.yaml index 6d4148c94..f32d577ac 100644 --- a/.github/workflows/end-to-end-test-futurehouse.yaml +++ b/.github/workflows/end-to-end-test-futurehouse.yaml @@ -11,14 +11,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-test-init-optim.yaml b/.github/workflows/end-to-end-test-init-optim.yaml index 9e28e4391..a6712e6f3 100644 --- a/.github/workflows/end-to-end-test-init-optim.yaml +++ b/.github/workflows/end-to-end-test-init-optim.yaml @@ -10,14 +10,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-test-tracer-replay.yaml b/.github/workflows/end-to-end-test-tracer-replay.yaml index 8062ad8e2..35dc1f41b 100644 --- a/.github/workflows/end-to-end-test-tracer-replay.yaml +++ b/.github/workflows/end-to-end-test-tracer-replay.yaml @@ -10,14 +10,8 @@ on: 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': '' - }} + 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' || '' }} + runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod diff --git a/.github/workflows/end-to-end-topological-sort-test.yaml b/.github/workflows/end-to-end-topological-sort-test.yaml index e2457c336..bfe8dd1f6 100644 --- a/.github/workflows/end-to-end-topological-sort-test.yaml +++ b/.github/workflows/end-to-end-topological-sort-test.yaml @@ -11,14 +11,7 @@ on: 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': '' - }} + 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' || '' }} runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod