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

docs(codepipeline): add note about repoString param resolvability at runtime #27109

Merged
merged 3 commits into from
Sep 13, 2023
Merged

docs(codepipeline): add note about repoString param resolvability at runtime #27109

merged 3 commits into from
Sep 13, 2023

Conversation

Nikola-Milovic
Copy link
Contributor

This PR addresses an issue encountered when setting up an AWS CDK pipeline where unresolved token values for the repoString parameter led to a runtime error. The updated docstring now explicitly mentions that the repoString must be resolvable at runtime and that unresolved tokens are intended to be a runtime error

Closes #27100.

Thanks to @peterwoodworth for the quick assessment and the proposed solution to the problem.


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

@aws-cdk-automation aws-cdk-automation requested a review from a team September 12, 2023 05:41
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2 labels Sep 12, 2023
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Sep 12, 2023
@@ -102,6 +102,7 @@ export abstract class CodePipelineSource extends Step implements ICodePipelineAc
* `codeBuildCloneOutput`.
*
* @param repoString A string that encodes owner and repository separated by a slash (e.g. 'owner/repo').
* Note: The provided string must be resolvable at runtime. Unresolved tokens will lead to runtime errors.
Copy link
Contributor

Choose a reason for hiding this comment

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

@Nikola-Milovic I don't like adding this between @params. We do some weird parsing in jsii and this could ruin the [brittle] parser. Let's keep it on the same line, or show me a screenshot of what the rendered docstring looks like to prove to me that it's rendered properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I agree that it could cause a problem. In VSCode and Neovim it looks fine, but even in those two, there is a discrepancy as to how the output from the LSP is shown. VSCode puts it all in the same line, while Neovim retains the new line.

What do you think of the new version? Removed the extra fluff sentence and made it continuous.

A side question, how do you avoid having really long lines for these @params if a newline can mess up the jsii parser?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it does mess it up. If it looks fine in VSCode when you hover over the prop then I think its fine. I was asking for a screenshot of that if you wanted to keep them on separate lines, since I am lazy and do not want to check out your branch just to check :)

Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

Thanks!

@mergify
Copy link
Contributor

mergify bot commented Sep 13, 2023

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

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Sep 13, 2023
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: f7cdbdd
  • 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 864e76a into aws:main Sep 13, 2023
12 checks passed
@mergify
Copy link
Contributor

mergify bot commented Sep 13, 2023

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

mikewrighton pushed a commit that referenced this pull request Sep 14, 2023
…runtime (#27109)

This PR addresses an issue encountered when setting up an AWS CDK pipeline where unresolved token values for the `repoString` parameter led to a runtime error. The updated docstring now explicitly mentions that the `repoString` must be resolvable at runtime and that unresolved tokens are intended to be a runtime error

Closes #27100.

Thanks to @peterwoodworth for the quick assessment and the proposed solution to the problem.

----

*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
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

codepipeline-actions: Github connection, allow Token values
3 participants