Comments (1)
Thanks for the great writeup!
I also feel the single test class restriction is kind of clunky and we should definitely fix bazelbuild/bazel#2539. But perhaps that would be best done once the rules are out of bazel and in this repo.
re: flaky tests, I think the general guidance is always to fix flakiness :). Internally, what I see is a mix of re-running + ignoring (based on flakiness stats).
Generating a
@Suite
(either at compile time or dynamically via something like AllTests) clashes with --flaky_test_attempts as, if any test case fails, the entire suite is detected as having failed and so all tests are run again. This can be somewhat mitigated by sharding but there's a cap of 50 on the number of shards.
A partial mitigation could be to extract all your known flaky tests into separate, individual targets, and use the AllTests mechanism for all the other well-behaved targets. It's manual toil but I'm uncertain if there's anything one could do - flaky tests are just inherently problematic.
from rules_java.
Related Issues (20)
- Add jmods to jdk targets HOT 1
- Add support for JDK 21 HOT 1
- Push a new release containing JDK 21 HOT 14
- Java toolchain is not respected HOT 2
- Release: rules_java 7.3.1 HOT 1
- JRE logs to stdout and breaks javac/scalac worker on certain environments HOT 2
- rules_java > 7.2.0 incorrectly states it is compatible with Bazel >= 6.4.0 HOT 1
- Provide a way of packaging separate layers into Java container after deprecation of rules_docker HOT 3
- CI postsubmit is broken HOT 3
- Release: rules_java 7.3.2 HOT 4
- rules_java not respecting --tool_java_language_version/--tool_java_runtime_version for test_jar's as of at least 7.1.0 HOT 2
- Turbine native image broke NONPREBUILT_TOOLCHAIN_CONFIGURATION
- Release: rules_java 7.4.0 on BCR HOT 3
- Broken local Java version detection
- java_tools should have prebuilt Linux AArch64 binaries HOT 5
- Where's the documentation? How do I force to use the local JVM? HOT 2
- Add support for JDK 22 HOT 1
- Gazelle fails on Windows with "javaparser/generators/Main: file does not exist" HOT 1
- Release: rules_java 7.6.0 HOT 4
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 rules_java.