Skip to content

Conversation

@AngersZhuuuu
Copy link
Contributor

@AngersZhuuuu AngersZhuuuu commented Jan 5, 2021

What changes were proposed in this pull request?

Follow comment and fix. flaky test #30973 (comment).
This flaky test is similar as #30896

Some task's failed with root cause but in driver may return error without root cause , change. UT to check with status exit code since different root cause's exit code is not same.

Why are the changes needed?

Fix flaky test

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existed UT

@AngersZhuuuu
Copy link
Contributor Author

FYI @dongjoon-hyun

@github-actions github-actions bot added the SQL label Jan 5, 2021
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Thank you for the quick follow-up, @AngersZhuuuu .

@dongjoon-hyun
Copy link
Member

@AngersZhuuuu . Since you are one of the active contributors, I want to give some advice.
Could you revise the PR title? In the Apache project, we had better avoid repeating the original PR title in the follow-up PR because it doesn't make any sense. The commit title is a precious resource and you can utilize it more meaningly by describing the corresponding commit content.

@maropu
Copy link
Member

maropu commented Jan 5, 2021

The fix itself seems fine. As Dongjoon suggested above, I think the title and PR description need to be modified a bit though.

@AngersZhuuuu
Copy link
Contributor Author

@AngersZhuuuu . Since you are one of the active contributors, I want to give some advice.
Could you revise the PR title? In the Apache project, we had better avoid repeating the original PR title in the follow-up PR because it doesn't make any sense. The commit title is a precious resource and you can utilize it more meaningly by describing the corresponding commit content.

Done

@maropu
Copy link
Member

maropu commented Jan 6, 2021

Done

Really? It seems you forgot to update the PR title...

package org.apache.spark.sql.execution

import java.io._
import java.io.{BufferedReader, File, InputStream, InputStreamReader, OutputStream}
Copy link
Member

Choose a reason for hiding this comment

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

Oh, I don't know why I thought it's more than 5+. It's more than 6+ (https://github.com/databricks/scala-style-guide#imports).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I don't know why I thought it's more than 5+. It's more than 6+ (https://github.com/databricks/scala-style-guide#imports).

Seems my local ideal's rule is 5, emmm I need to check this.

@dongjoon-hyun
Copy link
Member

@AngersZhuuuu . You didn't change the PR title yet.

@AngersZhuuuu AngersZhuuuu changed the title [SPARK-33934][SQL][FOLLOW-UP] Add SparkFile's root dir to env property rot [SPARK-33934][SQL][FOLLOW-UP] Use SubProcessor's exit code as assert condition to fix flaky test Jan 6, 2021
@AngersZhuuuu
Copy link
Contributor Author

@AngersZhuuuu . You didn't change the PR title yet.

Sorry for my bad network when at home...re-edit the title but seems failed to change. Updated now, cc. @maropu

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133694 has finished for PR 31046 at commit 03627c2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

@AngersZhuuuu . Could you add three empty commits because this is a fix for flaky tests?

@AngersZhuuuu
Copy link
Contributor Author

@AngersZhuuuu . Could you add three empty commits because this is a fix for flaky tests?

Done, but I am confused why we do this ==

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jan 6, 2021

Ur, you should push one by one. It will trigger 3 GitHub Action jobs.
Currently, the three commits seems to be pushed as a single push. So, only one GitHub Action is trigger. (The yellow circle)
Screen Shot 2021-01-05 at 7 20 59 PM

@AngersZhuuuu
Copy link
Contributor Author

Ur, you should push one by one. It will trigger 3 GitHub Action job.
Currently, the three commits seems to be pushed as a single push.

Emmmm, got your point, push some empty commit to trigger GA to test the UT's stability.
I will do this.

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38295/

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38295/

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133697 has finished for PR 31046 at commit 1fbc91c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Although the last GitHub Action job is in the queue, the last commit (and its empty commits) passed three times already.
Merged to master. Thank you, all!

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38308/

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38308/

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133707 has finished for PR 31046 at commit e5cf288.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133716 has finished for PR 31046 at commit 404fb63.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133718 has finished for PR 31046 at commit db12e28.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants