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

perf: improve preprocess action perf by capturing context instead of partially resolving template strings #6745

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

stefreak
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

...config,
...resolvedBuiltin,
spec,
}
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: can we somehow keep early validation? Is it dangerous to remove?

const resolvedDeps = capture(
rawConfig.build.dependencies as unknown as ParsedTemplate,
configContext
) as unknown as BuildDependencyConfig

// The build.dependencies field may not resolve at all, in which case we can't extract any deps from there
if (isArray(resolvedDeps)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

todo: this branch needs adaptation, as we do not resolve dependencies anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

do dependencies need to be fully resolved? If partial is ok, is it then fine not to resolve them at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant