Skip to content

Commit

Permalink
more cleanup for runner
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Apr 9, 2024
1 parent 95a5dc2 commit 3c24ebd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ jobs:

- name: Delete cache
# For now, avoid deleting cache on pull request changes to nightly. This improves PR experience.
if: env.TRIGGER != 'pull_request'
run: |
if [ -d "/tmp/plugins_testing_download_cache" ]
then
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

# TODO(Tyler): Remove this once the cache has stabilized
- name: Delete cache (mac only)
if: matrix.os == 'macOS'
# For now, avoid deleting cache on pull request changes to nightly. This improves PR experience.
run: |
if [ -d "/tmp/plugins_testing_download_cache" ]
then
tmp_dir=/tmp/${GITHUB_RUN_ID}-${GITHUB_RUN_NUMBER}-${GITHUB_RUN_ATTEMPT}
mv "/tmp/plugins_testing_download_cache" ${tmp_dir}
chmod -R u+w ${tmp_dir}
rm -rf ${tmp_dir}
fi
shell: bash

- name: Linter Tests
# Run tests using KnownGoodVersion with any modified linters and conditionally all linters
uses: ./.github/actions/linter_tests
Expand Down
1 change: 1 addition & 0 deletions tests/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface LintAction {
parser: string;
report: string;
cacheHit?: boolean;
cacheExpiration?: string;
upstream: boolean;
fileGroupName: string;
command: string;
Expand Down
1 change: 1 addition & 0 deletions tests/utils/landing_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const normalizePlatformPath = (originalPath: string | undefined) => {
const extractLintActionFields = ({
actionDurationMs: _actionDurationMs,
cacheHit: _cacheHit,
cacheExpiration: _cacheExpiration,
paths: _paths,
...rest
}: LintAction): LintAction => ({
Expand Down

0 comments on commit 3c24ebd

Please sign in to comment.