GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: fix verify_library_generation.yaml for forks by alicejli · Pull Request #2716 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@alicejli

@alicejli alicejli commented May 2, 2024

Copy link
Copy Markdown
Contributor

PRs opened by renovate-bot are failing verify_library_generation because renovate-bot opens PRs from a fork rather than main.

For instance #2657 is failing:

env:
    base_ref: main
    head_ref: renovate/markupsafe-2.x
+ git checkout main
Previous HEAD position was d84e6072d Merge 645951c0497bf9cdb42e6323cd90a08d77a1926a into 766646a9e0bed6c8e804eb1e6ab4d[13](https://github.com/googleapis/sdk-platform-java/actions/runs/8914757209/job/24482995077?pr=2657#step:3:13)3d1465dca
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
+ git checkout renovate/markupsafe-2.x
error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git

This updates the yaml file to explicitly fetch specific branches which should fix the issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alicejli
chore: fix verify_library_generation.yaml for forks
c18744a
@alicejli
alicejli requested a review from a team May 2, 2024 15:08
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label May 2, 2024
@alicejli
change order of fetch
6ca1445
JoeWang1127
JoeWang1127 reviewed May 2, 2024
View reviewed changes
Comment thread .github/workflows/verify_library_generation.yaml
run: |
set -ex
git checkout "${base_ref}"
git fetch --no-tags --prune origin +${base_ref}:refs/remotes/origin/${base_ref}

@JoeWang1127 JoeWang1127 May 2, 2024

Copy link
Copy Markdown
Contributor

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.

Why git fetch after git checkout?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alicejli alicejli May 2, 2024

Copy link
Copy Markdown
Contributor Author

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.

It doesn't actually matter too much for L23-L24, but it's needed for L25/26 so that it can find the forked branches. I can revert this line if preferred.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JoeWang1127 JoeWang1127 May 2, 2024

Copy link
Copy Markdown
Contributor

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 it's not actually useful, I think we should revert it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alicejli alicejli May 2, 2024

Copy link
Copy Markdown
Contributor Author

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.

Actually I think we do need it. Added some comments to explain.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alicejli
Merge branch 'main' into fixVerify_library_generation
c77d781
JoeWang1127
JoeWang1127 reviewed May 2, 2024
View reviewed changes
Comment thread .github/workflows/verify_library_generation.yaml
git checkout "${base_ref}"
git fetch --no-tags --prune origin +${base_ref}:refs/remotes/origin/${base_ref}
git checkout "${head_ref}"
git fetch --no-tags --prune origin +${head_ref}:refs/remotes/origin/${head_ref}

@JoeWang1127 JoeWang1127 May 2, 2024

Copy link
Copy Markdown
Contributor

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.

Should we move this line before git checkout "${head_ref}"?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alicejli alicejli May 2, 2024

Copy link
Copy Markdown
Contributor Author

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.

Added comments to explain

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
alicejli added 4 commits May 2, 2024 12:03
@alicejli
add comments
b456aaa
@alicejli
Merge branch 'main' of https://github.com/googleapis/sdk-platform-java …
c79b468
…into fixVerify_library_generation
@alicejli
Merge branch 'fixVerify_library_generation' of https://github.com/goo…
c041eb0
…gleapis/sdk-platform-java into fixVerify_library_generation
@alicejli
.
2b57c04
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xs Pull request size is extra small. labels May 2, 2024
@alicejli
remove extraneous files
69c310a
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. and removed size: l Pull request size is large. labels May 2, 2024
JoeWang1127
JoeWang1127 reviewed May 2, 2024
View reviewed changes
Comment thread .github/workflows/verify_library_generation.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

JoeWang1127
JoeWang1127 approved these changes May 2, 2024
View reviewed changes
@alicejli @JoeWang1127
Update .github/workflows/verify_library_generation.yaml
a85b108
Co-authored-by: Joe Wang <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented May 2, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sonarqubecloud

sonarqubecloud Bot commented May 2, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alicejli
alicejli merged commit 5d4567f into main May 2, 2024
@alicejli
alicejli deleted the fixVerify_library_generation branch May 2, 2024 17:14
@alicejli alicejli mentioned this pull request May 2, 2024
chore: follow up fix to verify_library_generation #2721
Merged
alicejli added a commit that referenced this pull request May 3, 2024
@alicejli @JoeWang1127
chore: follow up fix to verify_library_generation (#2721)
2e360ef
#2716 didn't quite
fix what it should have. Follow up to fix the error:

```
Previous HEAD position was e54601f Merge 30c7c5b into 5d4567f
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
+ git fetch --no-tags --prune origin +main:refs/remotes/origin/main
From https://github.com/googleapis/sdk-platform-java
 - [deleted]             (none)     -> origin/main
+ git checkout renovate/markupsafe-2.x
error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git
```

---------

Co-authored-by: Joe Wang <[email protected]>
lqiu96 pushed a commit that referenced this pull request May 22, 2024
@alicejli @JoeWang1127 @lqiu96
chore: fix verify_library_generation.yaml for forks (#2716)
c3c4782
PRs opened by renovate-bot are failing `verify_library_generation`
because renovate-bot opens PRs from a fork rather than main.

For instance #2657
is failing:

```
env:
    base_ref: main
    head_ref: renovate/markupsafe-2.x
+ git checkout main
Previous HEAD position was d84e607 Merge 645951c into 766646a[13](https://github.com/googleapis/sdk-platform-java/actions/runs/8914757209/job/24482995077?pr=2657#step:3:13)3d1465dca
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
+ git checkout renovate/markupsafe-2.x
error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git
```
This updates the yaml file to explicitly fetch specific branches which
should fix the issue.

---------

Co-authored-by: Joe Wang <[email protected]>
lqiu96 pushed a commit that referenced this pull request May 22, 2024
@alicejli @JoeWang1127 @lqiu96
chore: follow up fix to verify_library_generation (#2721)
96b3398
#2716 didn't quite
fix what it should have. Follow up to fix the error:

```
Previous HEAD position was e54601f Merge 30c7c5b into 5d4567f
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
+ git fetch --no-tags --prune origin +main:refs/remotes/origin/main
From https://github.com/googleapis/sdk-platform-java
 - [deleted]             (none)     -> origin/main
+ git checkout renovate/markupsafe-2.x
error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git
```

---------

Co-authored-by: Joe Wang <[email protected]>
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 24, 2026
@alicejli @JoeWang1127
chore: follow up fix to verify_library_generation (#2721)
2479348
googleapis/sdk-platform-java#2716 didn't quite
fix what it should have. Follow up to fix the error:

```
Previous HEAD position was e54601fce Merge 30c7c5b4f9825c14458d6ef31e0b3e3fccbb4207 into e723113
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
+ git fetch --no-tags --prune origin +main:refs/remotes/origin/main
From https://github.com/googleapis/sdk-platform-java
 - [deleted]             (none)     -> origin/main
+ git checkout renovate/markupsafe-2.x
error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git
```

---------

Co-authored-by: Joe Wang <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@JoeWang1127 JoeWang1127 JoeWang1127 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: xs Pull request size is extra small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alicejli @JoeWang1127
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.