-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ISSUE-9555 fix GcsPinotFS #9556
Conversation
cc @zhtaoxiang |
cc: @elonazoulay |
Codecov Report
@@ Coverage Diff @@
## master #9556 +/- ##
=============================================
+ Coverage 28.28% 69.99% +41.70%
- Complexity 53 4905 +4852
=============================================
Files 1917 1939 +22
Lines 102594 103675 +1081
Branches 15586 15728 +142
=============================================
+ Hits 29022 72563 +43541
+ Misses 70735 26009 -44726
- Partials 2837 5103 +2266
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
513b40e
to
f524151
Compare
@@ -92,7 +92,7 @@ public void setup() { | |||
} | |||
} | |||
|
|||
@AfterClass | |||
@AfterMethod |
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.
could you elaborate more on why this change is needed? thx
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.
hey, gladly, when done with @afterclass this particular test was failing, it's important to note that this test only runs if this is provided
Line 84 in 9f92392
String keyFile = System.getenv("GOOGLE_APPLICATION_CREDENTIALS"); |
Line 287 in 9f92392
Assert.assertEquals(files.length, count + 2); |
Line 156 in 9f92392
public void testGcs() |
So I decided to run the clean up after each test method is invoked.
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.
in this case I think we should split this into before/after class and before/after method. it is super weird to have beforeclass then aftermethod.
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.
I don't think a fully follow, what do we need to split in particular? the only thing giving issue is that it was AfterClass so some files that were not cleaned up in the middle were tainting the results of another test, so it's just doing the clean up per method.
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.
hmm. github doesn't allow me to comment outside of range. can I directly push to your branch?
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.
just did
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.
seems like everything came out okay! :)
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.
yeah, the test is skipped b/c there's no credential on GHA. let me verify locally
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.
i did run locally and it works
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.
do we need anyone else review?
0.11.0 version with this fix has been deployed in our clusters, things seem okay. |
3d0f77f
to
f524151
Compare
trying to fix the issue arisen by #9555 changes discussed in slack thread https://apache-pinot.slack.com/archives/C011C9JHN7R/p1664826035484389