-
Notifications
You must be signed in to change notification settings - Fork 4
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
Generate AWS Makefile via this tool #551
Conversation
…t to run the AWS upstream tools Add logic to template to allow for AWS specific Makefile needs
#{{- if eq .Config.team "ecosystem" }}# | ||
|
||
#{{- if .Config.XrunUpstreamTools }}# | ||
|
||
upstream:: | ||
# Use upstream.sh script to apply patches | ||
ifneq ("$(wildcard upstream)","") | ||
@$(SHELL) ./scripts/upstream.sh "$@" apply | ||
endif | ||
|
||
upstream:: | ||
|
||
# Ensure tool is installed | ||
cd upstream-tools && yarn install --frozen-lockfile | ||
# Apply all automated changes | ||
cd upstream-tools && yarn --silent run apply | ||
# Check for any pending replacements | ||
cd upstream-tools && yarn --silent run check | ||
|
||
#{{- else }}# | ||
|
||
upstream: | ||
ifneq ("$(wildcard upstream)","") | ||
@$(SHELL) ./scripts/upstream.sh "$@" apply | ||
endif | ||
|
||
#{{- end }}# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to bake the upstream-tools calls directly into the main template, we may as well just attach them to the upstream:
target. Multiple targets ::
are only needed for more generic solutions, like pulumi/pulumi-aws#2784 (comment).
#{{- if eq .Config.team "ecosystem" }}# | |
#{{- if .Config.XrunUpstreamTools }}# | |
upstream:: | |
# Use upstream.sh script to apply patches | |
ifneq ("$(wildcard upstream)","") | |
@$(SHELL) ./scripts/upstream.sh "$@" apply | |
endif | |
upstream:: | |
# Ensure tool is installed | |
cd upstream-tools && yarn install --frozen-lockfile | |
# Apply all automated changes | |
cd upstream-tools && yarn --silent run apply | |
# Check for any pending replacements | |
cd upstream-tools && yarn --silent run check | |
#{{- else }}# | |
upstream: | |
ifneq ("$(wildcard upstream)","") | |
@$(SHELL) ./scripts/upstream.sh "$@" apply | |
endif | |
#{{- end }}# | |
#{{- if eq .Config.team "ecosystem" }}# | |
upstream: | |
# Use upstream.sh script to apply patches | |
ifneq ("$(wildcard upstream)","") | |
@$(SHELL) ./scripts/upstream.sh "$@" apply | |
endif | |
#{{- if .Config.XrunUpstreamTools }}# | |
# Ensure tool is installed | |
cd upstream-tools && yarn install --frozen-lockfile | |
# Apply all automated changes | |
cd upstream-tools && yarn --silent run apply | |
# Check for any pending replacements | |
cd upstream-tools && yarn --silent run check | |
#{{- end }}# | |
#{{- end }}# |
#{{- if .Config.extraTests }}# | ||
test: | ||
cd provider/shim && go test -v -coverprofile="coverage.txt" . | ||
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h | ||
test.upgrade:: | ||
cd examples && go test -v -tags=all -run TestProviderUpgrade -timeout 2h | ||
|
||
test.upgrade.quick:: | ||
cd examples && go test -v -tags=all -run TestProviderUpgrade/Quick | ||
|
||
test.upgrade.record:: | ||
cd examples && PULUMI_ACCEPT=true go test -v -tags all -run TestProviderUpgrade -timeout 2h | ||
#{{- else }}# | ||
|
||
test: | ||
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h | ||
#{{- end }}# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid repeating the test
target?
#{{- if .Config.extraTests }}# | |
test: | |
cd provider/shim && go test -v -coverprofile="coverage.txt" . | |
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h | |
test.upgrade:: | |
cd examples && go test -v -tags=all -run TestProviderUpgrade -timeout 2h | |
test.upgrade.quick:: | |
cd examples && go test -v -tags=all -run TestProviderUpgrade/Quick | |
test.upgrade.record:: | |
cd examples && PULUMI_ACCEPT=true go test -v -tags all -run TestProviderUpgrade -timeout 2h | |
#{{- else }}# | |
test: | |
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h | |
#{{- end }}# | |
test: | |
#{{- if .Config.extraTests }}# | |
# Run the shim test before the examples test, since we assume it is faster. | |
cd provider/shim && go test -v -coverprofile="coverage.txt" . | |
#{{- end }}# | |
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h | |
#{{- if .Config.extraTests }}# | |
test.upgrade:: | |
cd examples && go test -v -tags=all -run TestProviderUpgrade -timeout 2h | |
test.upgrade.quick:: | |
cd examples && go test -v -tags=all -run TestProviderUpgrade/Quick | |
test.upgrade.record:: | |
cd examples && PULUMI_ACCEPT=true go test -v -tags all -run TestProviderUpgrade -timeout 2h | |
#{{- end }}# |
TO BE MERGED AFTER pulumi/pulumi-aws#2784.
Part of pulumi/pulumi-aws#2756
See corresponding PR: pulumi/pulumi-aws#2784