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

debug(actions): try to trace GitHub action problems #814

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
19 changes: 16 additions & 3 deletions .github/workflows/diregapic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: DIREGAPIC Updater
on: # yamllint disable-line rule:truthy
schedule:
- cron: '19 */8 * * *'
pull_request: # FIXME(vchudnov): just for debugging
branches:
- master
workflow_dispatch:

jobs:
Expand All @@ -13,14 +16,23 @@ jobs:
steps:
- name: Checkout master
uses: actions/checkout@v3
with:
ref: master
# with:
# ref: master
- name: Download discovery docs
run: |
curl https://www.googleapis.com/discovery/v1/apis/compute/v1/rest --output google/cloud/compute/v1/compute.v1.json
echo compute_revision=$(grep -oP '"revision":\s*"\d+"' google/cloud/compute/v1/compute.v1.json | grep -oP '\d+') >> $GITHUB_ENV
#- name: Ensure clean Bazel builds
# run: |
# bazel clean
- name: Regenerate API definitions
run: |
echo "*** DEBUG START"
git version
ls -la /__w/googleapis
ls -la /__w/googleapis/googleapis
git config --global --add safe.directory /__w/googleapis/googleapis
echo "*** DEBUG END"
bazel build //google/cloud/compute/v1:compute_gen
cp bazel-bin/google/cloud/compute/v1/compute_gen.proto google/cloud/compute/v1/compute.proto
bazel build //google/cloud/compute/v1:compute_grpc_service_config_gen
Expand All @@ -31,7 +43,8 @@ jobs:
- name: Build GAPIC clients
if: contains(env.api_changes, 'file')
run: |
bazel build //google/cloud/compute/v1/...
bazel build //google/cloud/compute/v1/... || bazel build --sandbox_debug //google/cloud/compute/v1/...

bazel build //google/cloud/compute/v1/...
- name: Create PR
uses: googleapis/code-suggester@v2
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ gapic_generator_ruby_repositories()
# Discovery
##############################################################################

_disco_to_proto3_converter_version = "c47a76dd3d591478dd1a902413636c06da1153b8"
_disco_to_proto3_converter_version = "96e1e63d3c1ddc546a57ac78b28893ee1013266a"

http_archive(
name = "com_google_disco_to_proto3_converter",
Expand Down