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

chore(ubergen): switch to ubergen.exclude as a filter instead of private #11375

Merged
merged 4 commits into from
Nov 10, 2020

Conversation

nija-at
Copy link
Contributor

@nija-at nija-at commented Nov 9, 2020

Currently, ubergen excludes packages that are marked as 'private'.
In v2, all packages under @aws-cdk/ will be marked as 'private'.
This will mean that 'monocdk' and 'aws-cdk-lib' modules will have no
packages included.

Introduce another field ubergen.exclude in package.json that will be
explicitly exclude packages from the monolithic modules.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Currently, ubergen excludes packages that are marked as 'private'.
In v2, all packages under `@aws-cdk/` will be marked as 'private'.
This will mean that 'monocdk' and 'aws-cdk-lib' modules will have no
packages included.

Introduce another field `ubergen.exclude` in `package.json` that will be
explicitly exclude packages from the monolithic modules.
@nija-at nija-at requested a review from a team November 9, 2020 16:51
@nija-at nija-at self-assigned this Nov 9, 2020
@gitpod-io
Copy link

gitpod-io bot commented Nov 9, 2020

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 9, 2020
Copy link
Contributor

@NetaNir NetaNir left a comment

Choose a reason for hiding this comment

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

Adding the exclude in every package makes it hard to track which package should be included in monocdk and which shouldn't. I would suggest adding an array of all excluded packages in ubergen so there will be one centralized location to track these.

@nija-at
Copy link
Contributor Author

nija-at commented Nov 10, 2020

Adding the exclude in every package makes it hard to track which package should be included in monocdk and which shouldn't. I would suggest adding an array of all excluded packages in ubergen so there will be one centralized location to track these.

I don't see the value of creating another location for this configuration. This is where we put package configuration.
To find the list of packages excluded, a simple grep or find + grep will get you what you need.
This is not different from what we have currently.

@nija-at nija-at requested a review from a team November 10, 2020 09:32
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Nov 10, 2020
Copy link
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

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

I don't necessarily mind, but isn't this exclude list better suited in the package.json of aws-cdk-lib itself?

@nija-at
Copy link
Contributor Author

nija-at commented Nov 10, 2020

I don't necessarily mind, but isn't this exclude list better suited in the package.json of aws-cdk-lib itself?

Maybe. It's not clear.
This will have to be 2 lists - one in aws-cdk-lib and one in monocdk, unless we special case monocdk on the v2 branch to not fail if it didn't match any packages.
It might be useful to know if a package is going to be included in ubergen (in the future), so we can enforce any linter or other rules that it must follow at build/test time.

@nija-at nija-at removed the pr/do-not-merge This PR should not be merged at this time. label Nov 10, 2020
@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 64ae541 into master Nov 10, 2020
@mergify mergify bot deleted the nija-at/ubergen-exclude branch November 10, 2020 14:17
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 46ac563
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants