Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

[3/5] New CodegenJob model #1275

Merged
merged 8 commits into from
Feb 17, 2020
Merged

[3/5] New CodegenJob model #1275

merged 8 commits into from
Feb 17, 2020

Conversation

paulbalaji
Copy link
Contributor

@paulbalaji paulbalaji commented Feb 12, 2020

Description

  • added CodeWriter constructor with just raw text
    • to be used by both test project + build system module generators
  • JobTarget class to replace the GenerationTarget system
  • codegenjobs
  • add JobTarget system side-by-side with current system

Tests

  • no change in generated code

Documentation

  • changelog

Primary reviewers

If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.

@improbable-prow-robot improbable-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files. A: tooling Area: Tooling labels Feb 12, 2020
Comment on lines +18 to +21
public IEnumerable<string> ExpectedOutputFiles
=> expectedOutputFiles
.Select(filePath => Path.Combine(OutputDirectory, filePath))
.Union(jobTargets.Select(target => target.FilePath));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is expectedOutputFiles not already all the expected output files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because this information is all inside the jobtargets in the new system

though one could argue we can just add to it each time a job comes in --> consider in cleanup PR

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it in the cleanup 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.

image

@paulbalaji paulbalaji changed the title [3/4] New CodegenJob model [3/5] New CodegenJob model Feb 13, 2020
@paulbalaji paulbalaji force-pushed the feature/prep-codegen-generators branch from c45e2cd to 4dc5c8f Compare February 17, 2020 15:50
@paulbalaji paulbalaji force-pushed the feature/codegen-update branch from dc25cb7 to 5e53f4e Compare February 17, 2020 16:09
@paulbalaji paulbalaji changed the base branch from feature/prep-codegen-generators to develop February 17, 2020 16:09
Signed-off-by: Paul Balaji <[email protected]>
@paulbalaji paulbalaji marked this pull request as ready for review February 17, 2020 16:18
@improbable-prow-robot improbable-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 17, 2020
@paulbalaji paulbalaji merged commit 86c0ffb into develop Feb 17, 2020
@zeroZshadow zeroZshadow deleted the feature/codegen-update branch February 29, 2020 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: tooling Area: Tooling jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants