Skip to content

Conversation

@mndeveci
Copy link
Contributor

@mndeveci mndeveci commented May 30, 2023

Which issue(s) does this change fix?

#5034

Why is this change necessary?

When customers provide pre-built ZIP file for their functions, sam sync would fail since it always tries to build the function. Same happens when customers denote their functions with SkipBuild: true.

How does it address the issue?

When creating ZipFunctionSyncFlow, it checks whether function's CodeUri is pointing to a .zip file, or it has SkipBuild: True in function metadata. If so then it instantiates different sync flows.

What side effects does this change have?

N/A

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

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

@github-actions github-actions bot added pr/internal area/build sam build command labels May 30, 2023

resource_collector.add_layer(layer)

@staticmethod
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This functionality is moved to Function class and FunctionBuildInfo enum below.

@mndeveci mndeveci marked this pull request as ready for review May 31, 2023 04:02
@mndeveci mndeveci requested a review from a team as a code owner May 31, 2023 04:02
@mndeveci mndeveci requested review from jfuss and lucashuy May 31, 2023 04:02
Copy link
Contributor

@hnnasit hnnasit left a comment

Choose a reason for hiding this comment

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

Overall LGTM, left some small comments.

@mndeveci mndeveci requested a review from hnnasit May 31, 2023 19:30
@mndeveci mndeveci added this pull request to the merge queue Jun 1, 2023
Merged via the queue into aws:develop with commit 6ba11c6 Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build sam build command pr/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants