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

PMM-7 Fix for service accounts tests stability. #2976

Merged
merged 23 commits into from
Apr 30, 2024

Conversation

JiriCtvrtka
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka commented Apr 28, 2024

Fix for service accounts tests stability

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.59%. Comparing base (dc10c50) to head (3236497).

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #2976      +/-   ##
==========================================
- Coverage   44.36%   43.59%   -0.78%     
==========================================
  Files         368      367       -1     
  Lines       35327    36125     +798     
==========================================
+ Hits        15674    15748      +74     
- Misses      18042    18766     +724     
  Partials     1611     1611              
Flag Coverage Δ
managed 46.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@JiriCtvrtka
Copy link
Contributor Author

Tests should not be run in parallel.

grafana/grafana#77462

Issue should be fixed, but it is still persists for us in case of many concurrent service account permissions.

@JiriCtvrtka JiriCtvrtka changed the title PMM-7 Test. PMM-7 Fix for service accounts tests stability. Apr 30, 2024
@JiriCtvrtka JiriCtvrtka marked this pull request as ready for review April 30, 2024 13:22
@JiriCtvrtka JiriCtvrtka requested a review from a team as a code owner April 30, 2024 13:22
@JiriCtvrtka JiriCtvrtka requested review from idoqo and removed request for a team April 30, 2024 13:22
@JiriCtvrtka JiriCtvrtka enabled auto-merge (squash) April 30, 2024 13:26
@@ -292,6 +292,7 @@ func TestServerClientConnection(t *testing.T) {
assert.Nil(t, authError)
})

// Beware: Five or more wrong tries will lock user with error message: "Invalid user or password".
Copy link
Member

Choose a reason for hiding this comment

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

let's change username here to admin1, error message should be the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not happening when tests are triggered on github. It can happen when you run them locally multiple times (like -count=5 etc). I added this to not forget this could happen since it is not clear from the error message. Should I keep this comment or remove it?

@JiriCtvrtka JiriCtvrtka merged commit 3258363 into v3 Apr 30, 2024
13 checks passed
@JiriCtvrtka JiriCtvrtka deleted the PMM-7-service-accounts-tests-stability branch April 30, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants