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

Add a "Show diff" step to show diffs in case the make check-diff step fails #61

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Nov 23, 2022

Description of your changes

This PR adds a Show diff step that's run if the check-diff step fails in the CI pipeline to show what content changes are failing the job.

Also, while working in the context of updating the Terraform provider plugin version, I realized we do not honor the declared Terraform provider version if the working directory for the Terraform provider repo already exists (under .work). Previously we were removing this work directory as we are doing a sparse checkout. So, applied the same approach here.

Relevant PR: crossplane-contrib/provider-upjet-aws#176

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Please see here:
https://github.com/upbound/provider-gcp/actions/runs/3533055974/jobs/5928190113

And in case check-diff does not fail, this step is skipped:
https://github.com/upbound/provider-gcp/actions/runs/3533076220/jobs/5928239220

@ulucinar ulucinar requested a review from turkenh November 23, 2022 14:22
@ulucinar ulucinar marked this pull request as draft November 23, 2022 14:23
@ulucinar ulucinar force-pushed the ci-improvements branch 3 times, most recently from 57bb60d to 86d84c8 Compare November 23, 2022 14:45
@ulucinar ulucinar marked this pull request as ready for review November 23, 2022 14:55
… fails

- The pull-docs make target does not honour Terraform provider plugin updates
  if the working Terraform provider repo already exists

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar
Copy link
Collaborator Author

Thanks @turkenh!

@ulucinar ulucinar merged commit c5031e5 into crossplane-contrib:main Nov 23, 2022
@ulucinar ulucinar deleted the ci-improvements branch November 23, 2022 20:19
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.

2 participants