Skip to content

Commit

Permalink
Remove test env
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Oct 10, 2024
1 parent 1983a4e commit 3465189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/dtypes_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
workflow_dispatch: # Enables manual triggering

jobs:
run_dtypes_benchmark:
Expand Down Expand Up @@ -80,7 +79,5 @@ jobs:
env:
PYDRIVE_CREDENTIALS: ${{ secrets.PYDRIVE_CREDENTIALS }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
# Conditionally set TEST_OUTPUT_FOLDER if workflow_dispatch triggered the run
TEST_OUTPUT_FOLDER: ${{ github.event_name == 'workflow_dispatch' && '1tjre6vNnbAv6jyfsF8N8EZfDX7Rx2HCT' || '' }}

run: python -m tests.benchmark.utils
4 changes: 2 additions & 2 deletions tests/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ def compare_and_store_results_in_gdrive():
for key, value in results.items():
sorted_results[key] = value

output_folder = os.getenv('TEST_OUTPUT_FOLDER', GDRIVE_OUTPUT_FOLDER)
output_folder = GDRIVE_OUTPUT_FOLDER
file_id = save_to_gdrive(output_folder, sorted_results, mark_results=mark_results)
slack_messages.append(
f'See <https://docs.google.com/spreadsheets/d/{file_id}|dtypes summary and details>'
)
slack_message = '\n'.join(slack_messages)
slack_channel = 'sdv-alerts' if output_folder == GDRIVE_OUTPUT_FOLDER else 'sdv-alerts-debug'
slack_channel = 'sdv-alerts'
post_slack_message(slack_channel, slack_message)
sys.exit(exit_code)

Expand Down

0 comments on commit 3465189

Please sign in to comment.