Skip to content

[TestSuiteBuilder] Updating the test-suite clobber step#75

Open
kamaub wants to merge 1 commit intollvm:mainfrom
kamaub:kamaub/changeTestSuiteBuilderCleanStep
Open

[TestSuiteBuilder] Updating the test-suite clobber step#75
kamaub wants to merge 1 commit intollvm:mainfrom
kamaub:kamaub/changeTestSuiteBuilderCleanStep

Conversation

@kamaub
Copy link
Copy Markdown
Contributor

@kamaub kamaub commented Nov 28, 2023

This change modifies the step that clobbers the build directory of the llvm-test-suite to use the standardized
f.addStep(steps.RemoveDirectory()) that the base class, UnifiedTreeBuilder, uses instead of the more explicit f.addStep(ShellCommand(command=['rm', '-rf']))

This change modifies the step that clobbers the build directory
of the llvm-test-suite to use the standardized
`f.addStep(steps.RemoveDirectory())` that the base class,
UnifiedTreeBuilder, uses instead of the more explicit
`f.addStep(ShellCommand(command=['rm', '-rf']))`
@kamaub kamaub self-assigned this Nov 28, 2023
Copy link
Copy Markdown
Contributor

@lei137 lei137 left a comment

Choose a reason for hiding this comment

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

LGTM
Minor indentation nit.

Comment on lines +34 to +40
f.addStep(steps.RemoveDirectory(
name='Clean Test Suite Build dir' % test_suite_workdir,
dir=test_suite_workdir,
haltOnFailure=False,
flunkOnFailure=False,
doStepIf=cleanBuildRequested,
))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Should we keep to the same indentation here as other files? eg .

Suggested change
f.addStep(steps.RemoveDirectory(
name='Clean Test Suite Build dir' % test_suite_workdir,
dir=test_suite_workdir,
haltOnFailure=False,
flunkOnFailure=False,
doStepIf=cleanBuildRequested,
))
f.addStep(steps.RemoveDirectory(name='Clean Test Suite Build dir' % test_suite_workdir,
dir=test_suite_workdir,
haltOnFailure=False,
flunkOnFailure=False,
doStepIf=cleanBuildRequested,
))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the indenting would probably start under name=, like the other steps.

Copy link
Copy Markdown
Contributor

@gkistanova gkistanova left a comment

Choose a reason for hiding this comment

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

The patch looks fine with a small thing to fix.

# The default value of cleanBuildRequested is TRUE as we should always
# clobber the build directory to test each freshly built compiler.
f.addStep(steps.RemoveDirectory(
name='Clean Test Suite Build dir' % test_suite_workdir,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you use Python3 .format() here instead, please?

Copy link
Copy Markdown
Member

@amy-kwan amy-kwan left a comment

Choose a reason for hiding this comment

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

No further comments from me once previous comments and conflict has been addressed.

Comment on lines +34 to +40
f.addStep(steps.RemoveDirectory(
name='Clean Test Suite Build dir' % test_suite_workdir,
dir=test_suite_workdir,
haltOnFailure=False,
flunkOnFailure=False,
doStepIf=cleanBuildRequested,
))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the indenting would probably start under name=, like the other steps.

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.

4 participants