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: add enough information to make package builds cacheable #14341

Merged
merged 7 commits into from
Apr 23, 2021

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Apr 23, 2021

Enhance our package.jsons with enough information to make hermetic, cacheable builds possible. Mostly consists of:

  • Adding missing @types/* packages to devDepencendies everywhere. Those dependencies were always required but undeclared.
  • Add nozem.ostools to various packages to indicate the non-hermetic binaries these scripts depend on.
  • Add /// !cdk-integ pragma:ignore-assets to all integ tests that use assets.
  • Fix some .gitignores that were ignoring files that were already committed inside git.
  • Update pkglint to not be reliant on its own location inside the monorepo, but instead search upwards for the monorepo root from the package it's checking.

To give this a shot yourself, run:

$ npx nozem

This is a revival of #10039, which is now obsolete.


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

@rix0rrr rix0rrr requested review from njlynch and a team April 23, 2021 11:06
@rix0rrr rix0rrr self-assigned this Apr 23, 2021
@gitpod-io
Copy link

gitpod-io bot commented Apr 23, 2021

@github-actions github-actions bot added the @aws-cdk/aws-config Related to AWS Config label Apr 23, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 23, 2021
@rix0rrr rix0rrr changed the title chore: hermetic build-specific package config chore: add enough information to make package builds cacheable Apr 23, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a8bd629
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Apr 23, 2021

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 96cb9e3 into master Apr 23, 2021
@mergify mergify bot deleted the huijbers/nozem-config branch April 23, 2021 11:34
john-tipper pushed a commit to john-tipper/aws-cdk that referenced this pull request May 10, 2021
…4341)

Enhance our `package.json`s with enough information to make hermetic, cacheable builds possible. Mostly consists of:

* Adding missing `@types/*` packages to `devDepencendies` everywhere. Those dependencies were always required but undeclared.
* Add `nozem.ostools` to various packages to indicate the non-hermetic binaries these scripts depend on.
* Add `/// !cdk-integ pragma:ignore-assets` to all integ tests that use assets.
* Fix some `.gitignores` that were ignoring files that were already committed inside git.
* Update `pkglint` to not be reliant on its *own* location inside the monorepo, but instead search upwards for the monorepo root from the package it's checking.

To give this a shot yourself, run:

```
$ npx nozem
```


This is a revival of aws#10039, which is now obsolete.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…4341)

Enhance our `package.json`s with enough information to make hermetic, cacheable builds possible. Mostly consists of:

* Adding missing `@types/*` packages to `devDepencendies` everywhere. Those dependencies were always required but undeclared.
* Add `nozem.ostools` to various packages to indicate the non-hermetic binaries these scripts depend on.
* Add `/// !cdk-integ pragma:ignore-assets` to all integ tests that use assets.
* Fix some `.gitignores` that were ignoring files that were already committed inside git.
* Update `pkglint` to not be reliant on its *own* location inside the monorepo, but instead search upwards for the monorepo root from the package it's checking.

To give this a shot yourself, run:

```
$ npx nozem
```


This is a revival of aws#10039, which is now obsolete.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-config Related to AWS Config 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