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

(TF-18292) Load Stack component sources from metadata #1768

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Jul 16, 2024

This change adds a new job to load the component sources of a stack after parsing the stack metadata. For a component with a module source, the job will trigger a did_open event for the Modules feature to handle. This will allow the Modules feature to load the module and its dependencies, leading to eventually being able to complete Module references.

This only handles local modules at the moment. Remote modules are not supported yet.

Needs hashicorp/terraform-schema#374 to parse module source addresses.

@jpogran jpogran self-assigned this Jul 16, 2024
@jpogran jpogran changed the title Load Stack component sources from metadata (TF-18292) Load Stack component sources from metadata Jul 16, 2024
@jpogran jpogran force-pushed the load_stack_component_sources branch from a358aea to cad3dd9 Compare July 17, 2024 15:39
@jpogran jpogran marked this pull request as ready for review July 17, 2024 16:32
@jpogran jpogran requested a review from a team as a code owner July 17, 2024 16:32
@ansgarm ansgarm force-pushed the load_stack_component_sources branch from 619becd to f2c9255 Compare July 22, 2024 13:37
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

Nice work! 👍

jpogran and others added 3 commits July 22, 2024 12:04
This change adds a new job to load the component sources of a stack after parsing the stack metadata. For a component with a module source, the job will trigger a `did_open` event for the Modules feature to handle. This will allow the Modules feature to load the module and its dependencies, leading to eventually being able to complete Module references.

This only handles local modules at the moment. Remote modules are not supported yet.
…allow jobs to wait for kicked-off events to settle

Use this new functionality in LoadStackComponentSources to allow waiting for parsing local modules used in stacks
components before other jobs run that need the parsing results
@jpogran jpogran force-pushed the load_stack_component_sources branch from a85d247 to a74d55a Compare July 22, 2024 16:05
@jpogran jpogran merged commit d9eef93 into pre-release Jul 22, 2024
6 checks passed
@jpogran jpogran deleted the load_stack_component_sources branch July 22, 2024 16:09
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants