-
Notifications
You must be signed in to change notification settings - Fork 860
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
Run Flaky Tests Nightly #6654
Run Flaky Tests Nightly #6654
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: All Tests Including Flaky | ||
|
||
on: | ||
push: # todo: remove this trigger later | ||
branches: | ||
- "cdf/run-flaky-tests-nightly" | ||
|
||
schedule: | ||
# Run once a day at midnight | ||
- cron: '0 0 * * *' | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
COMMIT: ${{ github.sha }} | ||
PR_BASE_COMMIT: ${{ github.event.push.base.sha }} | ||
DOCKER_COMPOSE_FILE: ./develop/github/docker-compose.yml | ||
TEMPORAL_VERSION_CHECK_DISABLED: 1 | ||
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }} | ||
|
||
jobs: | ||
call-run-tests-workflow-with-flaky: | ||
uses: temporalio/temporal/.github/workflows/run-tests.yml@cdf/run-flaky-tests-nightly | ||
with: | ||
include_flaky_tests: true | ||
secrets: inherit |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -25,6 +25,7 @@ package tests | |||||||||
import ( | ||||||||||
"context" | ||||||||||
"flag" | ||||||||||
"os" | ||||||||||
"testing" | ||||||||||
"time" | ||||||||||
|
||||||||||
|
@@ -80,7 +81,9 @@ func (s *DescribeTaskQueueSuite) TestAddNoTasks_ValidateStats() { | |||||||||
} | ||||||||||
|
||||||||||
func (s *DescribeTaskQueueSuite) TestAddSingleTask_ValidateStats() { | ||||||||||
s.T().Skip("flaky test") | ||||||||||
if os.Getenv("INCLUDE_FLAKY_TESTS") != "true" { | ||||||||||
s.T().Skip("flaky test") | ||||||||||
} | ||||||||||
Comment on lines
+84
to
+86
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we put this logic in one place so these calls are just:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree. As discussed offline, I'll take over this PR from @carlydf and implement the changes. |
||||||||||
|
||||||||||
s.OverrideDynamicConfig(dynamicconfig.MatchingUpdateAckInterval, 5*time.Second) | ||||||||||
s.RunTestWithMatchingBehavior(func() { s.publishConsumeWorkflowTasksValidateStats(1, true) }) | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
midnight in what time zone?