Skip to content

Commit

Permalink
remove ci debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Jul 11, 2024
1 parent 7df5bb3 commit d10548b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 62 deletions.
19 changes: 1 addition & 18 deletions .github/actions/action_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
required: false
default: actions/ --
trunk-token:
description: CI debugger api token
description: Test analytics api token
required: true

runs:
Expand Down Expand Up @@ -49,7 +49,6 @@ runs:
working-directory: ${{ inputs.path }}

- name: Run action tests
if: runner.os == 'Windows'
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --passWithNoTests --ci
shell: bash
working-directory: ${{ inputs.path }}
Expand All @@ -58,22 +57,6 @@ runs:
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }}

- name: Run action tests
if: runner.os != 'Windows'
uses: trunk-io/[email protected]
with:
breakpoint-id: trunk-plugins-action-tests
shell: bash
working-directory: ${{ inputs.path }}
trunk-token: ${{ inputs.trunk-token }}
org: trunk-staging-org
run:
npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --passWithNoTests --ci
env:
JEST_SUITE_NAME: Action Tests
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }}

- name: Upload results
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it.
if: "!cancelled() && runner.os == 'Linux'"
Expand Down
24 changes: 1 addition & 23 deletions .github/actions/linter_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
description: Token to login for sourcery test
required: true
trunk-token:
description: CI debugger api token (org token)
description: Test analytics api token (org token)
required: true
ref-type:
description: release or main
Expand Down Expand Up @@ -92,7 +92,6 @@ runs:
working-directory: ${{ inputs.path }}

- name: Run plugin tests
if: runner.os == 'Windows'
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci
shell: bash
working-directory: ${{ inputs.path }}
Expand All @@ -107,27 +106,6 @@ runs:
JEST_JUNIT_SUITE_NAME:
"{title} ${{ runner.os }} ${{ inputs.ref-type }} ${{ inputs.linter-version }}"

- name: Run plugin tests
if: runner.os != 'Windows'
# trunk-ignore(semgrep/yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha)
uses: trunk-io/[email protected]
with:
breakpoint-id: trunk-plugins-linter-tests
shell: bash
working-directory: ${{ inputs.path }}
trunk-token: ${{ inputs.trunk-token }}
org: trunk-staging-org
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci --runInBand
env:
PLUGINS_TEST_LINTER_VERSION: ${{ inputs.linter-version }}
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }}
SOURCERY_TOKEN: ${{ inputs.sourcery-token }}
DEBUG: Driver:nixpkgs-fmt:*, Driver:eslint:*
JEST_SUITE_NAME: Linter Tests
JEST_JUNIT_SUITE_NAME:
"{title} ${{ runner.os }} ${{ inputs.ref-type }} ${{ env.JEST_LINTER_VERSION }}"

- name: Upload results
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it.
if: "!cancelled() && runner.os == 'Linux'"
Expand Down
20 changes: 1 addition & 19 deletions .github/actions/tool_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
required: false
default: tools --
trunk-token:
description: CI debugger api token (org token)
description: Test analytics api token (org token)
required: true
ref-type:
description: release or main
Expand Down Expand Up @@ -65,7 +65,6 @@ runs:
working-directory: ${{ inputs.path }}

- name: Run plugin tests
if: runner.os == 'Windows'
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci
shell: bash
working-directory: ${{ inputs.path }}
Expand All @@ -75,23 +74,6 @@ runs:
JEST_SUITE_NAME: Tool Tests
JEST_JUNIT_SUITE_NAME: "{title} ${{ runner.os }} ${{ inputs.ref-type }}"

- name: Run plugin tests
if: runner.os != 'Windows'
# trunk-ignore(semgrep/yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha)
uses: trunk-io/[email protected]
with:
breakpoint-id: trunk-plugins-tool-tests
shell: bash
working-directory: ${{ inputs.path }}
trunk-token: ${{ inputs.trunk-token }}
org: trunk-staging-org
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci
env:
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }}
JEST_SUITE_NAME: Tool Tests
JEST_JUNIT_SUITE_NAME: "{title} ${{ runner.os }} ${{ inputs.ref-type }}"

- name: Upload results
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it.
if: "!cancelled() && runner.os == 'Linux'"
Expand Down
4 changes: 2 additions & 2 deletions tests/driver/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const UNINITIALIZED_ERROR = `You have attempted to modify the sandbox before it
Please call this method after setup has been called.`;

export const executionEnv = (sandbox: string) => {
// trunk-ignore(eslint/@typescript-eslint/no-unused-vars): Strip TRUNK_CLI_VERSION from CI-Debugger
const { PWD, INIT_CWD, TRUNK_CLI_VERSION, ...strippedEnv } = process.env;
// trunk-ignore(eslint/@typescript-eslint/no-unused-vars): Remove vars.
const { PWD, INIT_CWD, ...strippedEnv } = process.env;
return {
...strippedEnv,
// This keeps test downloads separate from manual trunk invocations
Expand Down

0 comments on commit d10548b

Please sign in to comment.