bazel-contrib / bazel-contrib/rules_go

test sharding runs Example tests in each shard

Open
#3,395 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.5k
Forks
760
Avg merge
1d 11h
Merged PRs (30d)
12

Description

### What version of rules_go are you using?

0.34

### What version of Bazel are you using?

5.1.0

### Does this issue reproduce with the latest releases of all the above?

Yes

### What operating system and processor architecture are you using?

macOS

### What did you do?

I use sharded testing. Some of the tests are `Example` tests. They seem to run in every shard.

### What did you expect to see?

I'd expect to see the Example run in only one shard.

### What did you see instead?

It's run in every shard.

Contributor guide

Open the contributing guide

Research direction

Reproduce the sharded test behavior with rules_go 0.34 and Bazel 5.1.0 on macOS, using a test suite that includes Example tests. Trace the test-sharding implementation and its handling of Example tests; done when each Example runs in only one shard rather than every shard.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.