Skip to content

Run chrome_proxy_service_test.dart everyday at 8 AM PST #2098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/daily_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# A CI workflow to run tests on a daily cron job.

name: Daily Testing

on:
schedule:
- cron: '00 14 * * *' # Everyday at 3:00 PM UTC (8:00 AM PST)

jobs:
daily_testing:
name: Daily Testing
runs-on: ubuntu-latest
steps:
- name: Setup Dart SDK
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this revision? Might be worth leaving a comment if they're pinned for a specific reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied this over from our other workflows. I'm pretty sure it will get updated with dependabot (happens monthly)

with:
sdk: main
- id: checkout
name: Checkout repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- id: dwds_pub_upgrade
name: dwds; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dwds
- id: dwds_daily_tests
name: "dwds; dart test --tags=daily"
run: "dart test --tags=daily"
if: "always() && steps.dwds_pub_upgrade.conclusion == 'success'"
working-directory: dwds
- name: "Notify failure"
if: "always() && steps.dwds_daily_tests.conclusion == 'failure'"
run: |
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Daily Webdev tests failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${{ secrets.WEBDEV_NOTIFICATION_CHAT_WEBHOOK }}"
1 change: 1 addition & 0 deletions dwds/dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ retry: 3

tags:
extension: # Extension tests require configuration, so we may exclude.
daily: # Daily tests also run on a scheduled daily cron job.
1 change: 1 addition & 0 deletions dwds/test/chrome_proxy_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@TestOn('vm')
@Tags(['daily'])
@Timeout(Duration(minutes: 2))
import 'dart:async';
import 'dart:convert';
Expand Down