Skip to content

chore: added more documentation to the transform.sh script#16198

Merged
mergify[bot] merged 4 commits intoaws:v2-mainfrom
otaviomacedo:transform-documentation
Aug 25, 2021
Merged

chore: added more documentation to the transform.sh script#16198
mergify[bot] merged 4 commits intoaws:v2-mainfrom
otaviomacedo:transform-documentation

Conversation

@otaviomacedo
Copy link
Copy Markdown
Contributor

I'm not sure whether this is the best place to document these things. I'm happy to move it somewhere else, if someone has a better idea.


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

@otaviomacedo otaviomacedo requested review from a team, rix0rrr and skinny85 August 24, 2021 09:23
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Aug 24, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 24, 2021
@otaviomacedo otaviomacedo requested a review from njlynch August 24, 2021 11:58
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Love additional docs! A few small comments.

# it needs (e.g., jsii-rosetta) for the build.
#
# The reason yarn doesn't find the executables in the first place is that they are
# not dependencies of each individual package -- nor should they be. They can't be
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 Aug 24, 2021

Choose a reason for hiding this comment

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

This doesn't tell the whole story (for example, Yarn does find the outer monorepo private executables like cdk-build).

Do you know why jsii-rosetta is different than the private packages in tools/?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Most likely because the script build is just cdk-build, but the script rosetta:extract is yarn --silent jsii-rosetta extract. I tried to remove the yarn part, but that's apparently another can of worms. So it will go to the "ideas to try in the future" section.

# cloud-assembly-schema and others, which are dependencies of one or more of the
# tools packages.
#
# In addition, we need to copy aws-cdk-lib inside individual-packages/ and remove
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The tenses here are a little weird.

Are you saying "A possible solution that doesn't involve using this workaround function is to [...]", and then "In addition, we would need to copy aws-cdk-lib [...]", and then "Finally, we would need to restrict [...]"?

In that case, I would change the tenses, and remove the two extra paragraphs (the new paragraphs to me seems to indicate you're tackling a new topic here, which I don't think is the case...?).

If that's not what you mean here, then I don't understand what these two last paragraphs are saying, which maybe means re-wording them a little bit is a good idea 😜.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, I can move them to a specific section, but they are all parts of the same thing; instead of implementing this stop-gap function, we need to try out a solution composed of three parts: 1) add more packages to the workspace, 2) copy aws-cdk-lib inside individual packages and 3) restrict the build only to the individual packages.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I created a new GitHub issue, as we discussed yesterday and linked it from here.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 25, 2021

Sorry but I didn't understand the command. Please consult the commands documentation 📚.

Hey, I reacted but my real name is @Mergifyio

1 similar comment
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 25, 2021

Sorry but I didn't understand the command. Please consult the commands documentation 📚.

Hey, I reacted but my real name is @Mergifyio

Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

👍

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 25, 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).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit 96bcc9b into aws:v2-main Aug 25, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 25, 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).

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.

3 participants