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

feat: closure mode support, architecture reference structure enhancements, user custom function resource support #129

Merged
merged 19 commits into from
Feb 2, 2024

Conversation

jianzs
Copy link
Contributor

@jianzs jianzs commented Feb 1, 2024

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

fix #103
re #82, #44, #55

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

Closure Mode Support: Comprehensive modifications have been made to add support for closure mode. These include updates to the SDK for various cloud platforms, enhancing the deducer's closure analysis capabilities, incorporating closure import statements in the generated IaC code, and more.

Architectural Reference Structure Enhancements: The architectural reference structure now includes closure items. The CLI, generator, and deducer have been adjusted to align with the updated architectural reference structure.

User Custom Function Resource: Support has been added for user custom function resources on Alicloud, AWS, and Kubernetes.

Documentation Updates: The documentation has been revised to reflect these changes.

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

jianzs added 18 commits January 15, 2024 18:07
- add KnativeService client for Kubernetes
- capture the error thrown by the user's function
- rename the 'statusCode' of response to 'code'
- the resource triggers the handler by calling a closure, rather than invoking an instance of a function within a sandbox
- add the statements that return outputs in infra code
- extract the error message from pulumi's error ouput
- add resource type name to error when there is no implementation class for target resource type
- add design doc 'Execution Mode Based on Compute Closures'
- add concept doc 'Architecture Reference'
- correct document errors in 'sdk' and 'simulator'
@jianzs jianzs added documentation Improvements or additions to documentation enhancement New feature or request deducer Deducer generator Generator adapter Adapter sdk Client SDK and Infra SDK cli command-line interface labels Feb 1, 2024
Copy link

changeset-bot bot commented Feb 1, 2024

🦋 Changeset detected

Latest commit: cc4fd80

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@plutolang/graphviz-generator Minor
@plutolang/simulator-adapter Minor
@plutolang/static-generator Minor
@plutolang/pulumi-adapter Minor
@plutolang/static-deducer Minor
@plutolang/pluto-infra Minor
@plutolang/pluto Minor
@plutolang/base Minor
@plutolang/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jianzs jianzs requested a review from Peefy February 1, 2024 14:38
@Peefy Peefy merged commit 5c4e547 into pluto-lang:main Feb 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter Adapter cli command-line interface deducer Deducer documentation Improvements or additions to documentation enhancement New feature or request generator Generator sdk Client SDK and Infra SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move the timing of FaaS object creation to the Infra API
2 participants