Coder Social home page Coder Social logo

Comments (7)

jskeet avatar jskeet commented on August 24, 2024

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.

SurferJeffAtGoogle avatar SurferJeffAtGoogle commented on August 24, 2024

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.

jskeet avatar jskeet commented on August 24, 2024

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.

jskeet avatar jskeet commented on August 24, 2024

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.

jskeet avatar jskeet commented on August 24, 2024

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:

... 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.

jskeet avatar jskeet commented on August 24, 2024

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.

jskeet avatar jskeet commented on August 24, 2024

Fixed in googleapis/gapic-generator-csharp#623

from repo-automation-bots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.