Implemented isolated code-generation strategy for simple_codegen_task.

Review Request #2322 - Created June 4, 2015 and submitted

Information
Garrett Malmquist
pants
gmalmquist/isolated-codegen-strategy
1609
ca61360...
Reviewers
pants-reviews
jsirois, patricklaw, zundel

Added a --strategy flag to simple codegen wich allows for code generation with either 'isolated' or 'global' strategy.

The 'isolated' strategy generates code per-target, in a (stable) unique directory for that target. The 'global' strategy does it the same way codegen has worked in the past.

The 'isolated' strategy additionally takes advantage of the isolation to find what sources a target generates via file system inspection, which is much more reliable than trying to predict what sources will be generated in advance.

Test-cases were added to test simple_code_gen (test_simple_codegen_task.py), and integration tests for
protobuf and wire gen were updated to accomodate the modified file paths
due to the isolation strategy.

Travis CI is green.

Issues

  • 0
  • 3
  • 0
  • 3
Description From Last Updated
Garrett Malmquist
John Sirois
Eric Ayers
Garrett Malmquist
Eric Ayers
John Sirois
John Sirois
Garrett Malmquist
Garrett Malmquist
Eric Ayers
Eric Ayers
John Sirois
John Sirois
Eric Ayers
Garrett Malmquist
Review request changed

Status: Closed (submitted)

Loading...