bazelbuild / bazelbuild/bazel

//src/test/shell/bazel:starlark_repository_test is not compatible with Python 3

Open
#17,409 0 comments 0 reactions 0 assignees View on GitHub
macos-infra-update P2 team-OSS type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

https://storage.googleapis.com/bazel-untrusted-buildkite-artifacts/01861769-00f9-409f-9fb0-561d0415f679/src/test/shell/bazel/starlark_repository_test/shard_4_of_6/test_attempts/attempt_1.log: `TypeError: can't concat str to bytes`

### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

_No response_

### Which operating system are you running Bazel on?

_No response_

### What is the output of `bazel info release`?

_No response_

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

_No response_

### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with //src/test/shell/bazel:starlark_repository_test and inspect the linked shard log for the TypeError: can't concat str to bytes failure. Run the test with Python 3, identify the incompatible string/bytes handling, and verify that the target passes without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.