Skip to content

Conversation

geeknoid
Copy link
Contributor

@geeknoid geeknoid commented Jul 27, 2019

  • Make more human-readable

  • Properly track all dependencies

  • Simplify container usage

  • Combine rules to reduce # tool invocations

  • Fix missing python binding for rbac protos.

  • Include html link checking as part of linting.

  • Retire CircleCi job, since that's now taken care of by the above linting change.

As a result of these changes, a full rebuild takes considerably less time
(1/10th maybe)

@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Jul 27, 2019
@istio-testing istio-testing added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 27, 2019
@geeknoid geeknoid requested a review from sdake July 27, 2019 15:09
Copy link
Member

@sdake sdake left a comment

Choose a reason for hiding this comment

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

reviewing refresh.


clean-mcp:
rm -f $(config_mcp_pb_gos)
rm -f $(config_mcp_pb_doc)
@rm -fr $(mcp_pb_gos) $(mcp_pb_doc) $(mcp_pb_pythons)
Copy link
Member

Choose a reason for hiding this comment

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

imo displaying the cmd line in make is a better practice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I very much dislike the pattern. I'd rather have a quiet command for normal state, and then output for failure. If you want to see more, there's a command-line option for that...

Copy link
Member

Choose a reason for hiding this comment

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

cool - what cmd line option - didn't know that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-n or -d


clean-mixer:
rm -f $(mixer_v1_pb_gos) $(mixer_config_client_pb_gos) $(mixer_adapter_model_v1beta1_pb_gos) $(policy_v1beta1_pb_gos) policy/v1beta1/fixed_cfg.pb.go
rm -f $(mixer_v1_pb_doc) $(mixer_config_client_pb_doc) $(mixer_adapter_model_v1beta1_pb_doc) $(policy_v1beta1_pb_doc)
@rm -fr $(mixer_v1_pb_gos) $(mixer_v1_pb_doc) $(mixer_v1_pb_pythons)
Copy link
Member

Choose a reason for hiding this comment

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

definately remove the @ from all commands - makes debugging the gate easier.

Copy link
Member

Choose a reason for hiding this comment

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

if there is a cli optino to make to output @ commands, thats cool, we should be consistent across repos on the rm stage. I'd like to keep the actual commands free of '@' related to build though.

@sdake
Copy link
Member

sdake commented Jul 27, 2019

I assume the container PR was somewhere modified? I'd like to take a look at that PR.

@geeknoid
Copy link
Contributor Author

PTAL.

While I was in here, I incorporated the linting that was done by CircleCi into the "make lint" rule, which makes it happen via prow. So that's one more repo off of CircleCi.

- Make more human-readable

- Properly track all dependencies

- Simplify container usage

- Combine rules to reduce # tool invocations

- Fix missing python binding for rbac protos.

- Include html link checking as part of linting.

- Retire CircleCi job, since that's now taken care of by the above linting change.

As a result of these changes, a full rebuild takes considerably less time
(1/10th maybe)
Copy link
Member

@sdake sdake left a comment

Choose a reason for hiding this comment

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

nice work !

@geeknoid geeknoid merged commit 4285569 into istio:master Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants