Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

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 1 commit
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 10 * * 2-6" # Tuesday to Saturday at 2am PST (10am 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 8 * * 2-6" # Tuesday to Saturday at Midnight PST (8am UTC)
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.azure.storage.blob.models.ListBlobsOptions;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;

Expand All @@ -17,7 +16,8 @@
*/
public class AzureBlobFileFetcher implements FileFetcher {

private static final ZoneId TIME_ZONE = ZoneOffset.UTC;
// Using Pacific Standard Time Zone as all or most contributors are in the US
private static final ZoneId TIME_ZONE = ZoneId.of("America/Los_Angeles");
private static final int RETENTION_DAYS = 90;
private static final String CONTAINER_NAME = "automated";

Expand All @@ -28,6 +28,8 @@ public class AzureBlobFileFetcher implements FileFetcher {
private AzureBlobFileFetcher() {
String azureStorageConnectionString = System.getenv("AZURE_STORAGE_CONNECTION_STRING");

var timezone = ZoneId.of("America/Los_Angeles");
basiliskus marked this conversation as resolved.
Show resolved Hide resolved

if (azureStorageConnectionString == null || azureStorageConnectionString.isEmpty()) {
throw new IllegalArgumentException(
"Environment variable AZURE_STORAGE_CONNECTION_STRING is not set");
Expand Down