Skip to content
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

Update automated test tasks to run on EST timezone #1588

Merged
merged 5 commits into from
Nov 19, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/automated-staging-test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Automated Staging Test - Run integration tests

on:
schedule:
- cron: "0 2 * * 2-6" # Tuesday to Saturday at 2am UTC - two hours after `automated-staging-test-submit` runs
- cron: "0 7 * * 2-6" # Tuesday to Saturday at 2am EST (7am UTC) - two hours after `automated-staging-test-submit` runs
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/automated-staging-test-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Automated Staging Test - Submit Messages

on:
schedule:
- cron: "0 0 * * 2-6" # Tuesday to Saturday at Midnight UTC
- cron: "0 5 * * 2-6" # Tuesday to Saturday at Midnight EST (5am UTC)
workflow_dispatch:

jobs:
Expand Down
5 changes: 4 additions & 1 deletion rs-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ Intermediary and ReportStream. It's scheduled to run daily using the

Information on how to set up the sample files evaluated by the tests can be found [here](/examples/Test/Automated/README.md)

**Note**: the output files generated by the framework are stored in an Azure blob storage container. Every time the tests are run, the files are moved to a folder with the year/month/day format for better organization. The files are retained in the container for 90 days before being deleted
## Important Notes

- The output files generated by the framework are stored in an Azure blob storage container. Every time the tests are run, a cleanup task moves the files to a folder with the year/month/day format for better organization. The files are retained in the container for 90 days before being deleted
- The code that organizes the files is using EST time zone. This means that if you are in PST, you may run into an issue if you submit a run before 9 PM PST and then run the tests after 9pm. You'd need to make sure to run both tasks before or after 9pm so the files are where they are expected to be

## Running the tests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
*/
public class AzureBlobFileFetcher implements FileFetcher {

private static final ZoneId TIME_ZONE = ZoneOffset.UTC;
// Using Eastern Standard Time as all or most contributors are in the US
private static final ZoneId TIME_ZONE = ZoneOffset.of("-05:00");
private static final int RETENTION_DAYS = 90;
private static final String CONTAINER_NAME = "automated";

Expand Down