Comments (7)
The change also occurred on the preview branch, but that doesn't have a commit on the preview branch of googleapis-gen either.
from repo-automation-bots.
Bazel bot failed to generate all the csharp targets. Therefore, no changes were committed.
I see this error repeated throughout the bazel bot log:
Step #1: ERROR: /workspace/googleapis/google/cloud/workstations/v1beta/BUILD.bazel:361:21: @//google/cloud/workstations/v1beta:workstations_csharp_gapic_srcjar: `bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc --experimental_allow_proto3_optional --plugin=protoc-gen-gapic=bazel-out/k8-opt-exec-2B5CBBC6/bin/external/gapic_generator_csharp/rules_csharp_gapic/run.sh --gapic_out=bazel-out/k8-fastbuild/bin/google/cloud/workstations/v1beta/workstations_csharp_gapic_srcjar.srcjar.zip --gapic_opt=rest-numeric-enums=True,transport=grpc+rest,grpc-service-config=google/cloud/workstations/v1beta/workstations_grpc_service_config.json,common-resources-config=external/gax_dotnet/Google.Api.Gax/ResourceNames/CommonResourcesConfig.json,service-config=google/cloud/workstations/v1beta/workstations_v1beta.yaml -Igoogle/cloud/workstations/v1beta/workstations.proto=google/cloud/workstations/v1beta/workstations.proto -Igoogle/api/annotations.proto=google/api/annotations.proto -Igoogle/api/http.proto=google/api/http.proto -Igoogle/protobuf/descriptor.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/descriptor_proto/google/protobuf/descriptor.proto -Igoogle/api/client.proto=google/api/client.proto -Igoogle/api/launch_stage.proto=google/api/launch_stage.proto -Igoogle/protobuf/duration.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/duration_proto/google/protobuf/duration.proto -Igoogle/api/field_behavior.proto=google/api/field_behavior.proto -Igoogle/api/resource.proto=google/api/resource.proto -Igoogle/longrunning/operations.proto=google/longrunning/operations.proto -Igoogle/rpc/status.proto=google/rpc/status.proto -Igoogle/protobuf/any.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/any_proto/google/protobuf/any.proto -Igoogle/protobuf/empty.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/empty_proto/google/protobuf/empty.proto -Igoogle/protobuf/field_mask.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/field_mask_proto/google/protobuf/field_mask.proto -Igoogle/protobuf/timestamp.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/timestamp_proto/google/protobuf/timestamp.proto -Igoogle/cloud/common_resources.proto=google/cloud/common_resources.proto -Igoogle/cloud/location/locations.proto=google/cloud/location/locations.proto -Igoogle/iam/v1/iam_policy.proto=google/iam/v1/iam_policy.proto -Igoogle/iam/v1/options.proto=google/iam/v1/options.proto -Igoogle/iam/v1/policy.proto=google/iam/v1/policy.proto -Igoogle/type/expr.proto=google/type/expr.proto google/cloud/workstations/v1beta/workstations.proto google/cloud/common_resources.proto google/cloud/location/locations.proto google/iam/v1/iam_policy.proto` failed: (Exit 1): protoc failed: error executing command (from target //google/cloud/workstations/v1beta:workstations_csharp_gapic_srcjar) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc --experimental_allow_proto3_optional ... (remaining 28 arguments skipped)
Step #1:
Step #1: Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Step #1: System.IO.IOException: Read-only file system : '/root/.local/share/NuGet/Migrations'
Step #1: at System.IO.FileSystem.CreateDirectory(String fullPath)
Step #1: at System.IO.Directory.CreateDirectory(String path)
Step #1: at NuGet.Common.Migrations.MigrationRunner.GetMigrationsDirectory()
Step #1: at NuGet.Common.Migrations.MigrationRunner.Run()
Step #1: at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
Step #1: at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(IFirstTimeUseNoticeSentinel firstTimeUseNoticeSentinel, IAspNetCertificateSentinel aspNetCertificateSentinel, IFileSentinel toolPathSentinel, Boolean isDotnetBeingInvokedFromNativeInstaller, DotnetFirstRunConfiguration dotnetFirstRunConfiguration, IEnvironmentProvider environmentProvider, Dictionary`2 performanceMeasurements)
Step #1: at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
Step #1: at Microsoft.DotNet.Cli.Program.Main(String[] args)
Step #1: The user's home directory could not be determined. Set the 'DOTNET_CLI_HOME' environment variable to specify the directory to use.
Step #1: --gapic_out: protoc-gen-gapic: Plugin failed with status code 1.
Assigning this bug back to Jon for advice.
from repo-automation-bots.
My guess is that this was caused by updating the .NET SDK from 6.0.402 to 6.0.408 in the Bazel rules (in this commit). This issue may or may not be related.
In order to unblock the pipeline during the UK day, I'll revert just the Bazel part of that commit and do a new release (and update WORKSPACE to refer to it). I'll then reach out to @SurferJeffAtGoogle to find a way to reproduce this myself, so I can work on a fix without having to go via doing a release each time.
from repo-automation-bots.
Reverting to 6.0.402 has fixed the build - we now have the changes propagated to googleapis-gen. I'll work on diagnosing why 6.0.408 fails.
from repo-automation-bots.
An attempt to reproduce this:
First start bash in a new container with the docker image:
- sudo docker run --rm -it --entrypoint bash gcr.io/repo-automation-bots/bazel-bot:latest
Now do the simple bits of a build, which should exercise the problematic part:
- git clone https://github.com/googleapis/googleapis.git
- cd googleapis
- git checkout 70eaf0dbea370afd5e094e574e3b84153a6ae774 # this is the broken commit
- bazel build google/ads/admob/v1:google-ads-admob-v1-csharp
... but that succeeds :(
Next, try bazelisk instead (in a fresh container), e.g.
- bazelisk build //google/cloud/functions/v1:google-cloud-functions-v1-csharp
... that succeeds as well. So I'm stuck as to how to reproduce this...
from repo-automation-bots.
Update: I now have a docker image (from this commit) which fails in Cloud Build, but works in a local Docker build. Curiouser and curiouser.
Will try to reduce it further...
from repo-automation-bots.
Fixed in googleapis/gapic-generator-csharp#623
from repo-automation-bots.
Related Issues (20)
- owlbot-bootstrapper: bad source-link URL HOT 1
- bug(owl-bot): Owlbot copy code PRs haven't been opened since September 21 HOT 1
- Query request(auto-approve): Request for available/possible customisation to use auto-approve bot HOT 2
- [OwlBot] OwlBot opens an issue if a library is removed from a monorepo
- [auto-approve] Docker deps not matching built-in regex
- Owlbot Copy error HOT 6
- release-please bot is being triggered when merging it's own PRs HOT 2
- Error: Changes must be made through a pull request.
- allow creation of a single automated PR per rep rather than multiple analogous PRs HOT 1
- Snippet Bot: Snippet check fails on first run only HOT 1
- auto-approve bot: The bot isn't approving PR as intended. HOT 2
- Comment on viable auto-approve candidates if they were not approved
- can't set repoToClone to a local directory
- Request access to repo-automation-bots project HOT 1
- LINT_PATHS in `noxfile.py` doesn't include `vertexai` HOT 1
- Release-please is not running on gax-nodejs HOT 2
- I can no longer access owlbot logs on PRs HOT 1
- Critical: Security Risks Identified in Automation Bots with node:14-slim Dockerfile Base Image
- bug(owlbot): `owlbot:run` label does not trigger owlbot; `owlbot:run` label is not removed HOT 5
- release-please creates pull requests that have already been merged
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repo-automation-bots.