Skip to content

Commit

Permalink
Update automated test tasks to run on EST timezone (#1588)
Browse files Browse the repository at this point in the history
* Updated automated test tasks to run on PST timezone

* Cleanup

* Updated to use Central Standard Time

* Changed time zone to EST

* Added a note in the readme calling out the timezone possible issue
  • Loading branch information
basiliskus authored Nov 19, 2024
1 parent 56318a0 commit 5ae6a27
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
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

0 comments on commit 5ae6a27

Please sign in to comment.