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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kamaub
Copy link
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
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
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
Contributor

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
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
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
Contributor

@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
Contributor

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.

None yet

4 participants