-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-31848][CORE][TEST] DAGSchedulerSuite: Break down the very huge test file #29747
[SPARK-31848][CORE][TEST] DAGSchedulerSuite: Break down the very huge test file #29747
Conversation
Test build #128625 has finished for PR 29747 at commit
|
Test build #128627 has finished for PR 29747 at commit
|
cc @Ngone51 |
def checkAndCompleteRetryStage( | ||
taskSetIndex: Int, | ||
stageId: Int, | ||
shuffleId: Int): Unit = { |
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.
nit: 4 indents.
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.
OK
|
||
class DAGSchedulerSuiteDummyException extends Exception | ||
|
||
class DAGSchedulerTestHelper extends SparkFunSuite with TempLocalSparkContext with TimeLimits { |
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.
DAGSchedulerBaseSuite
?
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.
Offline discussion between @Ngone51 and me, decided to use DAGSchedulerTestBase
} | ||
|
||
/** A simple helper class for creating custom JobListeners */ | ||
class SimpleListener extends JobListener { |
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.
This is only used by DAGSchedulerSuite
. Shall we keep it at DAGSchedulerSuite
?
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.
OK
} | ||
|
||
// Helper functions to extract commonly used code in Fetch Failure test cases | ||
protected def setupStageAbortTest(sc: SparkContext): Unit = { |
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.
This is only used by DAGSchedulerSuite
too. Shall we keep it at DAGSchedulerSuite
?
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.
OK
* @param numShufflePartitions - The number of partitions in the next stage | ||
* @param hostNames - Host on which each task in the task set is executed | ||
*/ | ||
protected def completeShuffleMapStageSuccessfully( |
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.
This is only used by DAGSchedulerSuite
too. Shall we keep it at DAGSchedulerSuite
? Could you check others?
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.
completeShuffleMapStageSuccessfully
is used by DAGSchedulerSuite
, BarrierExecutionSuite
and IndeterminateStageSuite
.
Test build #128706 has finished for PR 29747 at commit
|
Test build #128758 has started for PR 29747 at commit |
retest this please |
Test build #128786 has finished for PR 29747 at commit
|
cc @jiangxb1987 |
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
The current
DAGSchedulerSuite
is a very huge test file, we should split this suite into multiple suites which should focus on one or several major features, but not all the related behaviors.This PR will extract the following features related tests as new suite from the
DAGSchedulerSuite
:Barrier execution
Indeterminate stage
Resource profile
Why are the changes needed?
Break down the very huge test files, each test suite should focus on one or several major features, but not all the related behaviors.
Does this PR introduce any user-facing change?
'No'.
How was this patch tested?
Jenkins test.