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

fix: update workflow for refs and multiple artifacts #1695

Closed
wants to merge 7 commits into from

Conversation

alicejli
Copy link
Contributor

Follow up to #1692
This fixes an error in the workflow if it is triggered via release, and also corrects for multiple artifacts that begin with gax.

@alicejli alicejli requested a review from a team as a code owner May 22, 2023 22:41
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label May 22, 2023
@alicejli alicejli requested a review from suztomo May 22, 2023 22:41
.github/workflows/create_additional_release_tags.yaml Outdated Show resolved Hide resolved
git tag ${ARTIFACT_ID}/$VERSION ${{ github.event.inputs.releaseTag }}
git push origin ${ARTIFACT_ID}/$VERSION
VERSION=$(grep "^${ARTIFACT_ID}:" versions.txt | cut -d':' -f2 | tr -d '[:space:]')
TEMP_BRANCH="temp_branch_${ARTIFACT_ID}_$VERSION"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you need a branch to create tags.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was running into permissions errors running this on my fork without the new branch creation because my repo settings were not allowing for modification on the workflow files (which since this is a loop, is considered a modification of the workflow file). I added this temp branch step to workaround that issue (not sure it would also be an issue on this repo, but at least it shouldn't hurt).

Copy link
Member

Choose a reason for hiding this comment

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

Can you show me the permission error that was resolved by creating a branch or deleting the yaml file?

@alicejli alicejli requested a review from suztomo May 23, 2023 13:23
git checkout -b $TEMP_BRANCH
git rm .github/workflows/create_additional_release_tag.yaml
git commit -m "Remove workflow file"
git tag "${ARTIFACT_ID}/$VERSION"
Copy link
Member

Choose a reason for hiding this comment

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

Can you name tag with "v"?

(It follows convention. https://github.com/googleapis/google-cloud-go/tags)

burkedavison and others added 6 commits May 23, 2023 11:26
* chore: add 2 minute timeout to GrpcDirectStreamControllerTest

* chore: 3 minute timeout to GrpcDirectStreamControllerTest
* deps: update protobuf dependencies to v3.23.1 and update grpc version to 1.55.1
Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.27.1...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: s Pull request size is small. labels May 23, 2023
@alicejli
Copy link
Contributor Author

I messed up fixing merge conflicts in this PR. Going to open a new one.

@alicejli alicejli closed this May 23, 2023
@sonarqubecloud
Copy link

[gapic-generator-java-root] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

[java_showcase_integration_tests] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

[java_showcase_unit_tests] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

lqiu96 pushed a commit that referenced this pull request Jun 8, 2023
)

* chore(java): update gcp-releasetool and cryptography in java requirements file
Source-Link: https://github.com/googleapis/synthtool/commit/74d0956884c1bb9dc901b52de35ca2bca025a74e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:142286d973c7b6d58186070f203b50058a20a7d7b42147996db24921a18da1b0
lqiu96 pushed a commit that referenced this pull request Jun 8, 2023
…1017)

* chore(java): update gcp-releasetool and cryptography in java requirements file
Source-Link: https://github.com/googleapis/synthtool/commit/74d0956884c1bb9dc901b52de35ca2bca025a74e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:142286d973c7b6d58186070f203b50058a20a7d7b42147996db24921a18da1b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants