Skip to content

Conversation

@efd6
Copy link
Contributor

@efd6 efd6 commented Nov 1, 2021

Changes to remove magic constants, handle errors and clean up.

Some changes requested by opinionated editor/linter.

Makefile fixed to ensure that build directory exists before starting work.

Please take a look.

Changes to remove magic constants, handle errors and clean up. Some changes
requested by opinionated editor/linter.

Makefile fixed to ensure that build directory exists before starting work.
@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 1, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-03T04:42:43.714+0000

  • Duration: 35 min 18 sec

  • Commit: 57556c2

Test stats 🧪

Test Results
Failed 0
Passed 438
Skipped 4
Total 442

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@mtojek mtojek self-requested a review November 1, 2021 21:08
os.MkdirAll(workDir, 0755)
err = os.MkdirAll(workDir, 0755)
if err != nil {
return errors.Wrap(err, "can't prepare work directory")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: errors.Wrapf( ..., workDir)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That will be in the underlying os.PathError, but done. pkg/errors makes me sad.

Makefile Outdated

test-go:
test-build-dir:
mkdir -p $(PWD)/build/test-results
Copy link
Contributor

Choose a reason for hiding this comment

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

That's funny as @stuartnelson3 found it in the same time here :)

I would ask you or @stuartnelson3 to extract changes in Makefile to a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, @stuartnelson3 did this already (thanks!). Would you mind adjusting your PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mtojek mtojek changed the title all: gardening clean up Improve code quality based on linter hints Nov 3, 2021
@mtojek mtojek self-requested a review November 3, 2021 07:02
Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Thanks! Let merge this on

@mtojek mtojek merged commit d27d3b4 into elastic:master Nov 3, 2021
@efd6 efd6 deleted the gardening branch November 3, 2021 07:10
@efd6 efd6 restored the gardening branch November 3, 2021 07:11
@efd6 efd6 deleted the gardening branch November 3, 2021 07:11
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.

3 participants