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

Test de-flaking & bug fixes #7377

Merged
merged 34 commits into from
Jan 15, 2024
Merged

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Jan 14, 2024

This PR removes the majority of flakes in our integration and unit tests. The changes include:

Eventuallys

Signed-off-by: joshvanl <me@joshvanl.dev>
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ded0ace) 0.00% compared to head (29e6dc6) 62.17%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7377       +/-   ##
===========================================
+ Coverage        0   62.17%   +62.17%     
===========================================
  Files           0      239      +239     
  Lines           0    21942    +21942     
===========================================
+ Hits            0    13643    +13643     
- Misses          0     7166     +7166     
- Partials        0     1133     +1133     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL changed the title Integration: de-flake Test de-flaking Jan 15, 2024
@JoshVanL JoshVanL changed the title Test de-flaking Test de-flaking & bug fixes Jan 15, 2024
@JoshVanL JoshVanL added do-not-merge autoupdate DaprBot will keep the Pull Request up to date with master branch labels Jan 15, 2024
@JoshVanL JoshVanL marked this pull request as ready for review January 15, 2024 17:03
@JoshVanL JoshVanL requested review from a team as code owners January 15, 2024 17:03
artursouza
artursouza previously approved these changes Jan 15, 2024
go.mod Outdated Show resolved Hide resolved
Signed-off-by: joshvanl <me@joshvanl.dev>
artursouza
artursouza previously approved these changes Jan 15, 2024
mukundansundar
mukundansundar previously approved these changes Jan 15, 2024
@mukundansundar
Copy link
Contributor

/ok-to-test

@mukundansundar
Copy link
Contributor

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 15, 2024

Dapr E2E test

🔗 Link to Action run

Commit ref: fc56151

✅ Build succeeded for linux/amd64

  • Image tag: dapre2e5d6e4d80eal
  • Test image tag: dapre2e5d6e4d80eal

✅ Infrastructure deployed

Cluster Resource group name Azure region
Linux Dapr-E2E-dapre2e5d6e4d80eal westus3
Windows Dapr-E2E-dapre2e5d6e4d80eaw westus3
Linux/arm64 Dapr-E2E-dapre2e5d6e4d80eala eastus

✅ Build succeeded for windows/amd64

  • Image tag: dapre2e5d6e4d80eaw
  • Test image tag: dapre2e5d6e4d80eaw

✅ Tests succeeded on windows/amd64

  • Image tag: dapre2e5d6e4d80eaw
  • Test image tag: dapre2e5d6e4d80eaw

❌ Tests failed on linux/amd64

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 15, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.12.3)

🔗 Link to Action run

Commit ref: fc56151

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 15, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.3)

🔗 Link to Action run

Commit ref: fc56151

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 15, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.12.3)

🔗 Link to Action run

Commit ref: fc56151

❌ Version Skew tests failed

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 15, 2024

Dapr Version Skew e2e test (control-plane-master - 1.12.3)

🔗 Link to Action run

Commit ref: fc56151

✅ Version Skew tests passed

Signed-off-by: joshvanl <me@joshvanl.dev>
Copy link
Member

@yaron2 yaron2 left a comment

Choose a reason for hiding this comment

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

Great PR

@yaron2 yaron2 merged commit 8d01d77 into dapr:master Jan 15, 2024
31 of 32 checks passed
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
cicoyle pushed a commit to cicoyle/dapr that referenced this pull request May 24, 2024
* Adds test execution time to integration suite, don't panic on some
Eventuallys

Signed-off-by: joshvanl <me@joshvanl.dev>

* Prevent GetMetaComponent from panicing tests if it fails

Signed-off-by: joshvanl <me@joshvanl.dev>

* Assert client.GetMetadata gRPC response in crypto hot reload tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Assert error inside eventually when calling reminders invoke actor

Signed-off-by: joshvanl <me@joshvanl.dev>

* Increase timeout invoking actor in reminder int tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use events batcher update with events/queue backend

Signed-off-by: joshvanl <me@joshvanl.dev>

* go mod tidy

Signed-off-by: joshvanl <me@joshvanl.dev>

* Import efficiency of some tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Disable API level tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Return placement apilevel tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Disable actors tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update queue and batcher for generic key

Signed-off-by: joshvanl <me@joshvanl.dev>

* Reenable actors int tests and disable hotreload int test

Signed-off-by: joshvanl <me@joshvanl.dev>

* pkg/placement/placement_test.go: ignore gRPC server shutdown error

Signed-off-by: joshvanl <me@joshvanl.dev>

* int: enable hotreload tests. Disable hotreload operator tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Increase timeout on sentry healthz setup

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix race condition in sentry jwks validator

Signed-off-by: joshvanl <me@joshvanl.dev>

* Reenable subset of hotreload operator tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix binding send unit test

Signed-off-by: joshvanl <me@joshvanl.dev>

* Add ping to ensure pluggable state store is available in Run

Signed-off-by: joshvanl <me@joshvanl.dev>

* Re enable all hotreload operator tests except informer

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove secret and state operator hot reload tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Skip errors.go tests on windows which rely on unix sockets

Signed-off-by: joshvanl <me@joshvanl.dev>

* JSON string directory values

Signed-off-by: joshvanl <me@joshvanl.dev>

* Restore lost hotreload/operator tests with fixed file name escaping

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting

Signed-off-by: joshvanl <me@joshvanl.dev>

* Make httpendpoints windows string check more generic

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix metadata related tests because we now have a permanent dapr workflow
component

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds wait for state and secret component to be loaded in fuzz tests

Signed-off-by: joshvanl <me@joshvanl.dev>

* Updates go modules with kit main

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds connection retry for windows mtls kubernetes disable

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoupdate DaprBot will keep the Pull Request up to date with master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants