Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: keep previous workspace build parameters for dynamic params#18059

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 8 commits intomainfromstevenmasley/previous_params
May 28, 2025

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedMay 27, 2025
edited
Loading

The existing code persists all static parameters and their values. Using the previous build as the source if no new inputs are found.

Dynamic params do not have a state of the parameters saved to disk. So instead, all previous values are persisted always, and new inputs override.

Things like ephemeral params are not yet implemented in dynamic params, and will just always persist. Whereas in the past, they were repromtped. This needs to be resolved before GA. (tracked here:#17942)

@EmyrkEmyrk marked this pull request as ready for reviewMay 27, 2025 15:43
Comment on lines 640 to 657
latestValues := make(map[string]string)
for _, latest := range b.richParameterValues {
latestValues[latest.Name] = latest.Value
}

// Merge the inputs with values from the previous build.
for _, last := range lastBuildParameterValues {
// TODO: Ideally we use the resolver here and look at parameter
// fields such as 'ephemeral'. This requires loading the terraform
// files. For now, just send the previous inputs as is.
if _, exists := latestValues[last.Name]; exists {
continue
}
names = append(names, last.Name)
values = append(values, last.Value)
}

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I am skipping validation right now for dynamic params experimental. I have an issue to address this again later.

#17942

@EmyrkEmyrkforce-pushed thestevenmasley/previous_params branch from715169b toea7c20fCompareMay 27, 2025 18:12
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

Some comments, but nothing blocking.

@EmyrkEmyrk merged commitca8660c intomainMay 28, 2025
34 checks passed
@EmyrkEmyrk deleted the stevenmasley/previous_params branchMay 28, 2025 15:00
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Emyrk@johnstcn@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp