instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HumanCompatibleAI__imitation__319 | HumanCompatibleAI/imitation | 319 | defect | fe739f018cda818184d877bce7025e84d6ad7518 | 9bf25ba7e505811b7019774fee8a0d1d8c2f205e | An End-to-End script for generating paper tables | Depends on several other active PRs: ~~#309 #313~~ ~~#317~~ ~~#316 #322~~. This branch started as `replicate_results` (#317).
Updates `experiments/imit_benchmark.sh` to include several ease-of-use flags like --pdb, --echo, and -T/--tmux, and also adds to it the `--mvp_seals` flag which
can be used to replicate pape... | diff --git a/experiments/bc_benchmark.sh b/experiments/bc_benchmark.sh
new file mode 100755
index 000000000..8e7a363df
--- /dev/null
+++ b/experiments/bc_benchmark.sh
@@ -0,0 +1,76 @@
+#!/usr/bin/env bash
+set -e
+
+# This script trains BC experts.
+#
+# Use the --mvp_seals flag to produce paper benchmark results.
+#
+... | 3 | 3 | 1 | [{"id": "G0", "claim": "The SCRIPT_NAMES smoke-test list added in tests/test_experiments.py is missing dagger_benchmark.sh and rollouts_from_policies.sh, so those experiment scripts get no test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
HumanCompatibleAI__imitation__320 | HumanCompatibleAI/imitation | 320 | defect | d13de8901a3ff09c7052b95fb419cc710fd10655 | 705d66e43748b622349377217144c62da094409d | Preference comparisons | A simple implementation of reward learning using preference comparisons. The plan is to only implement synthetic preference sources for now (i.e. no human feedback), but the design is such that extensions like that should be possible without changes later.
Requires #311. I based the `preference_comparisons` branch o... | diff --git a/src/imitation/algorithms/adversarial.py b/src/imitation/algorithms/adversarial.py
index 00373cd27..da35d35d5 100644
--- a/src/imitation/algorithms/adversarial.py
+++ b/src/imitation/algorithms/adversarial.py
@@ -466,7 +466,7 @@ def __init__(
class AIRL(AdversarialTrainer):
- reward_net: reward_nets... | 25 | 24 | 0 | [{"id": "G0", "claim": "The module docstring should not say fragments are \"short\" since DRLHP can use entire episodes.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code should import modules rather than individual classes, per the Google P... | null |
HumanCompatibleAI__imitation__331 | HumanCompatibleAI/imitation | 331 | defect | 57f5b8872cd8c5f9e8d52cc4146396baa546028b | 7fac3191ce80b2be65e69c947725b9a50bf78b74 | Configure logger in training scripts | Hotfix for https://github.com/HumanCompatibleAI/imitation/pull/328
I forgot to update the scripts to use the new log configuration, which requires passing in the logger to the algorithm. Updates `train_{adversarial,bc,dagger}` to do this.
I also started seeing some unrelated unit test breakage in DAgger due to a ... | diff --git a/docs/guide/gettingstarted.rst b/docs/guide/gettingstarted.rst
index 71fb8fa21..4a53b1c74 100644
--- a/docs/guide/gettingstarted.rst
+++ b/docs/guide/gettingstarted.rst
@@ -77,28 +77,35 @@ AIRL models on that data.
# Train BC on expert data.
# BC also accepts as `expert_data` any PyTorch-style Dat... | 3 | 2 | 1 | [{"id": "G0", "claim": "In rollout_stats the episode-return check should be `if ep_return is not None` rather than truthiness, otherwise episodes that happen to have exactly zero return are skipped.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
HumanCompatibleAI__imitation__359 | HumanCompatibleAI/imitation | 359 | defect | 08b135fd6a711fd500205452e292a06dd91f7e37 | ed2f23b783afc1570dd7a6a21ac1366c7f5e82a6 | Fix bugs in adversarial trainer | 1. Adversarial training could fail if `allow_variable_horizon=False` even on fixed-horizon environments. The issue was that we use `reset_num_timesteps=False` when calling SB3's `learn()`, which has the side effect of not resetting the environment. So it could happen that we had partial trajectories, which would be col... | diff --git a/src/imitation/algorithms/adversarial/common.py b/src/imitation/algorithms/adversarial/common.py
index 6d1f8ce06..c037d8627 100644
--- a/src/imitation/algorithms/adversarial/common.py
+++ b/src/imitation/algorithms/adversarial/common.py
@@ -388,6 +388,17 @@ def train_gen(
learn_kwargs = {}
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Instead of the reset()-based workaround for the variable-horizon check error, the BufferingWrapper should keep track of episode length so the fixed-horizon check can be done directly on episode lengths.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HumanCompatibleAI__imitation__361 | HumanCompatibleAI/imitation | 361 | defect | 08b135fd6a711fd500205452e292a06dd91f7e37 | 080371c2c59035e82e9e2fbd4f52408cec246aed | ResettableEnv: make observation space dict combining states and observations | This PR modifies `ResettableEnv` (and subclass `TabularModelEnv`) to return observations consisting of a dict of the underlying state, and the POMDP-style observation.
This allows MCE IRL to fit in better with the Gym/SB3 interface. Specifically, MCE IRL policy is state-based (planned), while the MCE IRL reward is o... | diff --git a/README.md b/README.md
index b36ddfbef..89ab5eeca 100644
--- a/README.md
+++ b/README.md
@@ -38,17 +38,17 @@ From [examples/quickstart.sh:](examples/quickstart.sh)
```bash
# Train PPO agent on pendulum and collect expert demonstrations. Tensorboard logs saved in `quickstart/rl/`
-python -m imitation.scr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added comment `# obs_state = state from the MDP` references a name that is not used anywhere in the code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The name `raw_observation_space` is nondes... | null |
HumanCompatibleAI__imitation__367 | HumanCompatibleAI/imitation | 367 | defect | 4ccc96f9e4920dd4a2c4dd01d90978c76f75ea3c | 9bb0ced5694a9b971cef92a2616c105d109b5739 | Add integration of Weights and Biases | This PR aims to incorporate a minimal integration of W&B into `imitation`.
This differs from the [official integration for sb3](https://github.com/wandb/client/blob/master/wandb/integration/sb3/sb3.py) in the following aspects:
1. wandb.integration.sb3 uploads all statistics by syncing all data from TensorBoard, whic... | diff --git a/experiments/bc_benchmark.sh b/experiments/bc_benchmark.sh
index 157fef031..8ba155b08 100755
--- a/experiments/bc_benchmark.sh
+++ b/experiments/bc_benchmark.sh
@@ -17,7 +17,7 @@ extra_configs=()
extra_options=()
extra_parallel_options=()
-if ! TEMP=$($GNU_GETOPT -o fT -l fast,paper,tmux,run_name: -- "$... | 7 | 7 | 1 | [{"id": "G3", "claim": "The ingredients list in train_rl.py did not need to be reformatted onto multiple lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G4", "claim": "The make_wandb_kwargs docstring contains typos: \"User-sepcified\" should be \"User-sp... | null |
HumanCompatibleAI__imitation__375 | HumanCompatibleAI/imitation | 375 | defect | dacb2425e9d19d57e318578a414b50cb98ead647 | d5403250c9cfdbb2e697a1929e2994e89e562e32 | Saving checkpoints periodically for preference comparisons | This PR aims to
- Allow additional self-defined `callback` to happen in `main_trainer.train()`.
- Allow periodical saving of reward model and policy weights at the end of `main_trainer.train()`. | diff --git a/src/imitation/algorithms/preference_comparisons.py b/src/imitation/algorithms/preference_comparisons.py
index cdf62e1e7..11dc7ea31 100644
--- a/src/imitation/algorithms/preference_comparisons.py
+++ b/src/imitation/algorithms/preference_comparisons.py
@@ -7,7 +7,7 @@
import math
import pickle
import ran... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `vec_normalize` attribute added to `PreferenceComparisons` doesn't seem to be used anywhere, so `save` in the script should take `vec_normalize` directly instead of reading it off the trainer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
HumanCompatibleAI__imitation__397 | HumanCompatibleAI/imitation | 397 | defect | f9475c5168592259642adf600f288afae7190dcf | 6a447686d761fbc7a5629226ea570a1504c2fff3 | Overhaul of the examples folder | To resolve issue #383 this MR introduces a couple of new example files. | diff --git a/examples/quickstart.py b/examples/quickstart.py
index 9e5fe19df..67f46b801 100644
--- a/examples/quickstart.py
+++ b/examples/quickstart.py
@@ -1,78 +1,19 @@
-"""Trains BC, GAIL and AIRL models on saved CartPole-v1 demonstrations."""
-
-import pathlib
import pickle
-import tempfile
-
+import gym
import s... | 8 | 7 | 1 | [{"id": "G0", "claim": "The new render_a_trajectory_and_print_reward helper may duplicate functionality that already exists in gym or other utilities; the author asks whether anybody knows of such a utility.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G18",... | null |
HumanCompatibleAI__imitation__403 | HumanCompatibleAI/imitation | 403 | defect | 9ca1e441ac4ee2c43f96a57b044cf625cab8b31a | 92e9fea9bbb5ec6402b22855805941da26f04465 | Eliminate duplicate saving of DAgger demonstrations | Fixes #402. One-line change in DAgger to remove line duplicated from `InteractiveTrajectoryCollector`. Some more involved changes to the tests to let us check number of demo episodes saved is correct. In particular, needed to switch to `Pendulum-v1` from `CartPole-v0` to benefit from fixed length episodes letting us ba... | diff --git a/src/imitation/algorithms/dagger.py b/src/imitation/algorithms/dagger.py
index 891339a6d..e972d49ea 100644
--- a/src/imitation/algorithms/dagger.py
+++ b/src/imitation/algorithms/dagger.py
@@ -632,7 +632,6 @@ def train(
)
for traj in trajectories:
- _save_dagger_de... | 2 | 2 | 0 | [{"id": "G0", "claim": "The expert_policy fixture silently returns a random policy when no expert policy is serialized for the env, instead of doing something to indicate failure (e.g. raising an exception or returning None).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
HumanCompatibleAI__imitation__405 | HumanCompatibleAI/imitation | 405 | defect | 9ca1e441ac4ee2c43f96a57b044cf625cab8b31a | ab67a1a3767709b8c9c87abd51f0e57c6ba9ba4f | Train experts on demand | In the long run we want to avoid checked in binary blows with trained expert policies and their trajectory rollouts.
This PR removes the use those binary blobs from the test. Only the scripts still rely on them and therefore also the tests for the scripts.
Instead of loading the expert policies from the checked-i... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2791e719e..fa8bc39c8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -140,7 +140,10 @@ jobs:
sleep 1
done
background: true
-
+ - restore_cache:
+ key: v1-pytest-cache
+ paths:
+ ... | 10 | 7 | 3 | [{"id": "G0", "claim": "Blank lines should be kept between list entries in .circleci/config.yml for consistency with the rest of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "As written the CircleCI cache is immutable, so the expert c... | null |
HumanCompatibleAI__imitation__409 | HumanCompatibleAI/imitation | 409 | defect | e6e531180b26d94aec802aed5bb2ae96fb67fc31 | e97ac96eac25734815ba796e72d6d6a6a6183877 | Bits and pieces | While browsing the code I found lots of little typos and other details I would like to change, that are not big enough for their own PR. | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 794f5fd31..f1d50c20d 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -52,14 +52,9 @@ commands:
- run:
name: install dependencies
- # MUJOCO_KEY is defined in a CircleCI context
- # Do some sanity checks ... | 1 | 1 | 1 | [{"id": "G0", "claim": "BC's remaining type annotations still say `BasePolicy` (e.g. `__init__` takes `policy: Optional[policies.BasePolicy]`) although BC needs an `ActorCriticPolicy` because it calls `evaluate_actions`, so the other annotations should be updated.", "category": "correctness", "verdict": "supported", "p... | null |
HumanCompatibleAI__imitation__411 | HumanCompatibleAI/imitation | 411 | defect | e6e531180b26d94aec802aed5bb2ae96fb67fc31 | 9676886401d6e29e5ca088485c29525e89b17d8c | Refactor `stay_prob` to `switch_prob` in `ExplorationWrapper` | This PR aims to address #410. It refactors `stay_prob` to `switch_prob` in `ExplorationWrapper`. | diff --git a/src/imitation/algorithms/preference_comparisons.py b/src/imitation/algorithms/preference_comparisons.py
index fd2abde72..72f9f3cea 100644
--- a/src/imitation/algorithms/preference_comparisons.py
+++ b/src/imitation/algorithms/preference_comparisons.py
@@ -113,7 +113,7 @@ def __init__(
algorithm: b... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment above the sampling loop in test_switch_prob (\"Ensure that we test both the random and the wrapped policy at least once\") is unclear and does not seem to connect to the code that immediately follows it, which checks the policy is never switched when switch_prob=0.0.", "category": "m... | null |
HumanCompatibleAI__imitation__414 | HumanCompatibleAI/imitation | 414 | defect | fb743c8c3aefeac348e82d66e8c765e6984bd715 | 729bbbff303da348c6c3afd814f0646429b3f395 | MCE IRL: fix sample-based occupancy measure computation | `MCEIRL` either takes the occupancy measure directly, or estimates it from a finite number of demonstrations. `mce_occupancy_measure` computes occupancy measure by summing discounted occupancies over an episode. For sample-based approximations, we were normalizing everything to sum to 1, when it should instead sum to `... | diff --git a/src/imitation/algorithms/mce_irl.py b/src/imitation/algorithms/mce_irl.py
index ddd2df0f4..7eed93cfe 100644
--- a/src/imitation/algorithms/mce_irl.py
+++ b/src/imitation/algorithms/mce_irl.py
@@ -5,7 +5,7 @@
.. _PhD thesis:
http://www.cs.cmu.edu/~bziebart/publications/thesis-bziebart.pdf
"""
-
+impo... | 7 | 7 | 1 | [{"id": "G0", "claim": "The docstring of mce_occupancy_measures misdescribes the returned tuple: the first returned value is a matrix and the second a vector, contrary to the docstring's stated order and types.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
HumanCompatibleAI__imitation__423 | HumanCompatibleAI/imitation | 423 | defect | facf90823b3c67ec4c6698c148f9f0ce08cb16d7 | ceabfba936eb3a26d7cbacd159c7c8ca8befe204 | Set deterministic_policy of `exploration_wrapper` to False | - Set deterministic_policy of `exploration_wrapper` to False.
- `exploration_wrapper.predict(...)` will
- sample non-deterministic actions for stochastic algorithms.
- generate deterministic actions for [deterministic algorithms](https://stable-baselines3.readthedocs.io/en/master/_modules/stable_baselines3/t... | diff --git a/src/imitation/algorithms/preference_comparisons.py b/src/imitation/algorithms/preference_comparisons.py
index 9d66c9cf5..4c57a9d4f 100644
--- a/src/imitation/algorithms/preference_comparisons.py
+++ b/src/imitation/algorithms/preference_comparisons.py
@@ -164,7 +164,7 @@ def __init__(
policy = rol... | 1 | 1 | 0 | [{"id": "G0", "claim": "The generate_trajectories calls should pass deterministic_policy=False explicitly and carry a comment explaining the choice (consistency with the non-deterministic rollouts of buffering_wrapper).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HumanCompatibleAI__imitation__429 | HumanCompatibleAI/imitation | 429 | defect | ed45793dfdd897d3ac1f3a863a8816b56d436887 | 30dab91367348022dbaf2ca1f7c6038c67e3aeab | Remove mean_return helper and replace by evaluate_policy in SB3 | Just a small PR to gradually reduce the number of helpers and utils that we have to maintain ourselves. | diff --git a/src/imitation/data/rollout.py b/src/imitation/data/rollout.py
index 001198bcb..a97edd845 100644
--- a/src/imitation/data/rollout.py
+++ b/src/imitation/data/rollout.py
@@ -462,20 +462,6 @@ def rollout_stats(
return out_stats
-def mean_return(*args, **kwargs) -> float:
- """Find the mean return ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The deleted `trainer.train(n_batches=10)` line in test_bc should be restored, as its removal from the test looks premature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HumanCompatibleAI__imitation__453 | HumanCompatibleAI/imitation | 453 | defect | 2db81fec1490ea4624881fc44b9b566626f0658a | 163095d5656bda126954acb844c1169b0abc71a6 | Implement FIFO buffer for preference comparison labels; a few related fixes | Fixes #389 and #452. In particular, there is now a `comparison_queue_size` flag on `PreferenceComparisons.__init__()` and `PreferenceDataset.__init__()` which defaults to `None`. If it is non-`None` then the oldest fragments will be evicted from the queue as needed to make room for new fragments appended by `push()`. O... | diff --git a/examples/5_train_preference_comparisons.ipynb b/examples/5_train_preference_comparisons.ipynb
index 7c433b7e0..ed2d200f4 100644
--- a/examples/5_train_preference_comparisons.ipynb
+++ b/examples/5_train_preference_comparisons.ipynb
@@ -18,7 +18,7 @@
},
{
"cell_type": "code",
- "execution_count"... | 12 | 10 | 1 | [{"id": "G0", "claim": "Bump the stable-baselines3 requirement to 1.5.0 to pick up the logging bugfix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Consider adding back the note that initial_epoch_multiplier should be set to 200 to achieve s... | null |
HumanCompatibleAI__imitation__455 | HumanCompatibleAI/imitation | 455 | defect | 6b1a36cafa2e8a4d512f890adfd28038cc6c8702 | 6190aff5a2d860a89e843b184d552b48b750d890 | Customizable schedules for querying preferences | Fixes #390.
This PR makes a **BC-breaking change** to the `PreferenceComparisons` API and `train_preference_comparisons` script, in order to allow for customizable preference querying schedules. In particular, the `comparisons_per_iteration` parameter has been removed, since the number of comparisons gathered will g... | diff --git a/examples/5_train_preference_comparisons.ipynb b/examples/5_train_preference_comparisons.ipynb
index 9a6120d1c..fa5b48085 100644
--- a/examples/5_train_preference_comparisons.ipynb
+++ b/examples/5_train_preference_comparisons.ipynb
@@ -1,196 +1,194 @@
{
- "cells": [
- {
- "cell_type": "markdown",
- "... | 4 | 3 | 0 | [{"id": "G0", "claim": "Consider making the query schedule ndarray->ndarray rather than float->float; the reviewer asks whether there is a case where a vector implementation would not easily work.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The script's... | null |
HumanCompatibleAI__imitation__466 | HumanCompatibleAI/imitation | 466 | defect | 6da6721339cbb83bcaba1208c4fe30b561893242 | 4c9074c046db93a95aeb4a5b1696ea6bbc1b70e2 | Update `convert_trajs` script to support new format | `convert_trajs` script loads trajectories (perhaps in an old format) and saves in latest format. This PR:
- Changes `convert_trajs` to save with `".npz"` file format rather than overwriting original `".pkl"` file, and related to this renames `convert_trajs_in_place` -> `convert_trajs` (it might still do it in place... | diff --git a/src/imitation/data/types.py b/src/imitation/data/types.py
index d01d3bcd4..b31431cb6 100644
--- a/src/imitation/data/types.py
+++ b/src/imitation/data/types.py
@@ -322,9 +322,10 @@ def load(path: AnyPath) -> Sequence[Trajectory]:
# it should be a Mapping that we need to decode, whereas if it's the old... | 4 | 4 | 0 | [{"id": "G0", "claim": "The comparison logic in the testing helper may not be needed if equality is implemented as `__eq__(self, other)` on the Trajectory class itself.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conversion test should invoke the ... | null |
HumanCompatibleAI__imitation__471 | HumanCompatibleAI/imitation | 471 | defect | 2a383ebfeef1753a9538435cb35e7b1f7f0ddb80 | c3a6d84bb5d6cb50563d9863ddf7f2af9b633ae8 | Convert RewardFn from Callable to abstract class (#427) | * Convert validate_reward_fn to ValidateRewardFn class
* RewardFn inherits from typing.Protocol for structural subtyping functions as RewardFn objects | diff --git a/src/imitation/algorithms/preference_comparisons.py b/src/imitation/algorithms/preference_comparisons.py
index 4334333da..f47ad7eef 100644
--- a/src/imitation/algorithms/preference_comparisons.py
+++ b/src/imitation/algorithms/preference_comparisons.py
@@ -25,7 +25,7 @@
Transitions,
)
from imitation.... | 5 | 5 | 1 | [{"id": "G0", "claim": "The __call__ docstring should insert a blank line between the Args and Returns sections, as the suggestion block proposes.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Returns entry should read 'Computed rewards of sh... | null |
HumanCompatibleAI__imitation__472 | HumanCompatibleAI/imitation | 472 | defect | 130aa6bf9c9c572e0aeca5b20d11fb2cac4a9209 | 30558751a89a7f3bebad8010cfebb88ef8246a3f | Uniformize logits sign convention for adversarial algorithms | Fixes #275. This PR uniformizes the convention of the logits outputted by reward nets in adversarial networks (e.g. GAIL and AIRL) as reported on #275 to mean that high logits correspond to the discriminator considering the trajectory to come from the expert, and conversely, low logits mean that the discriminator belie... | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a84b90dcc..771ed2cee 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -41,3 +41,10 @@ if [ "${skipexpensive:-}" != "true" ]; then
flake8 "${file_array[@]}"
fi
fi
+
+set +x
+
+echo
+echo
+printf "\e[1;32mCode checks completed. No errors found\e[0... | 8 | 2 | 1 | [{"id": "G0", "claim": "The pull request's tests are failing in CI and the root cause has not been tracked down; they need to be fixed before another review.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The Args sections of the logits_expert_is_hi... | null |
HumanCompatibleAI__imitation__515 | HumanCompatibleAI/imitation | 515 | defect | 17bd23a4ac72bd8cd2eda79ca453c00fad136e1c | 02597692a17beb19a73dcbe0210ddf0782ffffe3 | circleci: Remove MuJoCo | This PR simplifies the CI tests by removing the MuJoCo requirement, as suggested by https://github.com/HumanCompatibleAI/imitation/pull/511#pullrequestreview-1058076927.
## Testing
Check CI to make sure no tests are newly failing or passed.
[`master`](https://app.circleci.com/pipelines/github/HumanCompatibleAI... | diff --git a/Dockerfile b/Dockerfile
index f1d36f499..c5efd64aa 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,16 +33,11 @@ RUN apt-get update -q \
ENV LANG C.UTF-8
-RUN mkdir -p /root/.mujoco \
- && curl -o mjpro150.zip https://www.roboti.us/download/mjpro150_linux.zip \
- && unzip mjpro150.zip -d /root... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's removal of the MuJoCo-based skip leaves test_parallel_train_adversarial_custom_env running, and failing, on Windows CI; the author should briefly investigate why it fails and, if that does not pan out within about an hour, skip the test on Windows as done elsewhere for os.name... | null |
HumanCompatibleAI__imitation__542 | HumanCompatibleAI/imitation | 542 | defect | de36306397610f2db08ded0c921a5b35731b63f8 | 1ed9f826a6149473c18ba712ab6b0af54fc4f8f6 | Improve bagging method for ensemble training (#530) | ## Description
Improved the bagging method to train ensemble members by sampling examples over the entire preference dataset instead of the earlier implementation of sampling over fixed batches. Also refactored `PreferenceModel`, `CrossEntropyRewardLoss`, `EnsembleTrainer`, and `_make_reward_trainer`.
The ense... | diff --git a/examples/5_train_preference_comparisons.ipynb b/examples/5_train_preference_comparisons.ipynb
index b3c382f2b..0beb824c3 100644
--- a/examples/5_train_preference_comparisons.ipynb
+++ b/examples/5_train_preference_comparisons.ipynb
@@ -40,8 +40,8 @@
"gatherer = preference_comparisons.SyntheticGatherer... | 4 | 4 | 0 | [{"id": "G0", "claim": "The EnsembleTrainer TypeError message (and the test regex matching it) should read 'PreferenceModel of a RewardEnsemble expected by EnsembleTrainer.' rather than 'Preference Model of a RewardEnsemble expected by EnsembleTrainer.'.", "category": "documentation", "verdict": "supported", "priority"... | null |
HumanCompatibleAI__imitation__565 | HumanCompatibleAI/imitation | 565 | defect | 91c66b73776636d2b24f760960333e18b348cd8f | 5e397cad097a24d00853a9542d0fcc887456229c | Include notebook tutorials in documentation | ## Description
While cleaning up the documentation, I found a nice way to integrate the tutorial notebooks with the sphinx documentation.
There is a number of redundant options we could also remove in this PR:
1. Since the notebooks are executed during the conversion to HTML, they are implicitly tested and we ca... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index aa653bff3..8af7eb5cc 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -235,14 +235,18 @@ jobs:
name: codespell
command: codespell -I .codespell.skip --skip='*.pyc,tests/testdata/*,*.ipynb,*.csv' ${SRC_FILES}
- docs:
+... | 3 | 3 | 2 | [{"id": "G0", "claim": "The documentation should still link to the example notebooks so people can follow along rather than just passively read, with the reviewer voting for each notebook linking to itself on GitHub at the top.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
HumanCompatibleAI__imitation__593 | HumanCompatibleAI/imitation | 593 | defect | 2fea7f9734c07a80f284706328e5c49878fcccea | cfa71a8f89730df626a0fa776132de8c750c316a | Enable mypy analysis for all files. | ## Description
**EDIT: remaining issues have been resolved. The issues with `env.horizon` and `evaluate_policy` are to be taken upstream, and then depending on how quickly the turnaround is on those, either wait for them to be merged before merging this, or ignore the issues for now and un-ignore them once the fixes... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8f9cf9cd1..d676b1a85 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -37,13 +37,6 @@ executors:
# If you change these, also change ci/code_checks.sh
SRC_FILES: src/ tests/ experiments/ examples/ docs/conf.py setup.py ci/
... | 14 | 12 | 5 | [{"id": "G0", "claim": "The added `train` method should annotate **kwargs as Dict[str, Any] rather than plain Any.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep compute_train_stats' return type as Mapping[str, float]; changing to Dict should be a s... | null |
HumanCompatibleAI__imitation__595 | HumanCompatibleAI/imitation | 595 | defect | 2fea7f9734c07a80f284706328e5c49878fcccea | 52d4197d515401c03909ef612c60f07cd1ed322e | Implement gradient accumulation. | ## Description
Implements #506. ~Currently only for `preference_comparisons.py` but looking at the other algorithms too. They should follow a similar pattern to this, so any feedback would be welcome.~ Implemented for adversarial, BC, and preference comparisons (but not MCEIRL). Also haven't actually tested it on a ... | diff --git a/src/imitation/algorithms/bc.py b/src/imitation/algorithms/bc.py
index d080e6e3c..9d7d71ccc 100644
--- a/src/imitation/algorithms/bc.py
+++ b/src/imitation/algorithms/bc.py
@@ -142,26 +142,6 @@ def __call__(
)
-@dataclasses.dataclass(frozen=True)
-class BehaviorCloningTrainer:
- """Functor t... | 12 | 9 | 1 | [{"id": "G0", "claim": "The new `minibatch_size` docstring does not explain why you'd want to use it (i.e. reducing memory consumption).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The gradient-accumulation logic in `_train` is a bit obscure an... | null |
HumanCompatibleAI__imitation__610 | HumanCompatibleAI/imitation | 610 | defect | 23fae17f5ae488dee42319b73f75557a1ad6f416 | 82732332a26b1a230b5083d2a0a3862d894243cc | Add default config for cnn policies | ## Description
Adds a default configuration option for CNN policies, addressing #549
## Testing
Tested with following command:
`python -m imitation.scripts.train_rl with common.env_name=AsteroidsNoFrameskip-v4 train.cnn_policy`
| diff --git a/src/imitation/scripts/config/train_rl.py b/src/imitation/scripts/config/train_rl.py
index b9ede3165..347cba0b4 100644
--- a/src/imitation/scripts/config/train_rl.py
+++ b/src/imitation/scripts/config/train_rl.py
@@ -1,6 +1,8 @@
"""Configuration settings for train_rl, training a policy with RL."""
impor... | 3 | 3 | 1 | [{"id": "G0", "claim": "The config hook in `common/train.py` (and the `policy_kwargs` defaulting it does) should be removed, and the `cnn_policy` named config should be moved out of `train_rl.py` into `common/train.py`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3... | null |
HumanCompatibleAI__imitation__649 | HumanCompatibleAI/imitation | 649 | defect | 681cb72f258bc278f381faba0e5685aa8c142d40 | 4e9c85abcd079dbed7c92e9ab745cee1ca077325 | Fix non-determinism in DAgger (fixes #643) | ## Description
The issue (#643) was that DAgger demonstrations were loaded from disk for training in a different order each run. This was because the filenames for the saved demonstrations changed each run and that changed the order in which os.listdir returned the filenames. The filenames changed each run, because ... | diff --git a/src/imitation/algorithms/dagger.py b/src/imitation/algorithms/dagger.py
index a7194a5bf..d059558a9 100644
--- a/src/imitation/algorithms/dagger.py
+++ b/src/imitation/algorithms/dagger.py
@@ -10,6 +10,7 @@
import logging
import os
import pathlib
+import uuid
from typing import Any, Callable, List, Mapp... | 6 | 5 | 1 | [{"id": "G0", "claim": "An assertion that the demo file does not already exist should be added before saving, since a reseeded rng could cause overwriting.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The list comprehension in _get_demo_paths has ... | null |
HumanCompatibleAI__imitation__653 | HumanCompatibleAI/imitation | 653 | defect | db05dc3519af86a05748a196dcdd39653eaa6667 | 0f95f05db98907ee0587e0f48d94a25df1f22276 | Fix benchmarking configs + Add a minimal test suite for those configs. | ## Description
This PR patches in the changes from PR #650. It also fixes an error in the dagger configs by replacing "py/object" with "py/type". "py/object" failed the assert in sacred.config.utils.assert_is_valid_key.
## Testing
The PR adds a minimal test suite for the benchmarking configs. Running all the ... | diff --git a/benchmarking/example_dagger_seals_ant_best_hp_eval.json b/benchmarking/example_dagger_seals_ant_best_hp_eval.json
index 38f3f504a..035beab83 100644
--- a/benchmarking/example_dagger_seals_ant_best_hp_eval.json
+++ b/benchmarking/example_dagger_seals_ant_best_hp_eval.json
@@ -16,7 +16,7 @@
},
"dagger"... | 4 | 4 | 2 | [{"id": "G0", "claim": "The cwd-dependent BENCHMARKING_DIR lookup and its exists-guard could be removed by making the path relative to the test script, as in tests/test_examples.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should ... | null |
HumanCompatibleAI__imitation__654 | HumanCompatibleAI/imitation | 654 | defect | 8c1839715c3b2fc2a72765ed46dfddfe14825c40 | 120b91a64c0d072a252460d68c75d092f2e24cd2 | Add a program to generate commands to run training scripts | ## Description
See the header file of experiments/commands.py for details. The primary motivation is to make it easy to run the training scripts using the config files in benchmarking/. It attempts to simplify (1) running local commands in parallel compared to the bash scripts in experiments/ and (2) running command... | diff --git a/benchmarking/fast_dagger_seals_cartpole.json b/benchmarking/fast_dagger_seals_cartpole.json
new file mode 100644
index 000000000..d16652ef3
--- /dev/null
+++ b/benchmarking/fast_dagger_seals_cartpole.json
@@ -0,0 +1,12 @@
+{
+ "bc_train_kwargs": {"n_batches": 50},
+ "dagger": {"total_timesteps": 50},... | 13 | 12 | 3 | [{"id": "G0", "claim": "The cfg_pattern example in the docstring would convey intent more explicitly with a pattern like (gail|airl) than with the *ai* substring glob.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The --force-pull flag in the generated cl... | null |
HumanCompatibleAI__imitation__660 | HumanCompatibleAI/imitation | 660 | defect | 64b0a7359c96242c12e9a48cc643f4e4be80599c | 67e25ad1d98fa0e4a468d8910eb2b561a19b27d1 | Fix GAIL with SAC learner on GPU | ## Description
Right now GAIL with a SAC learner is broken on the GPU. Read details in #655
## Testing
This PR includes a test to reproduce the issue.
Note: the test in the pipeline does not fail since it is executed without GPU. | diff --git a/src/imitation/algorithms/adversarial/common.py b/src/imitation/algorithms/adversarial/common.py
index 8729d3c30..9bd32bebd 100644
--- a/src/imitation/algorithms/adversarial/common.py
+++ b/src/imitation/algorithms/adversarial/common.py
@@ -501,7 +501,8 @@ def _get_log_policy_act_prob(
# `acts_... | 3 | 3 | 1 | [{"id": "G0", "claim": "The regression test is pointless on the CircleCI runners because they have no GPU, so a GPU flag for tests should be introduced and those tests run on a dedicated GPU runner.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tes... | null |
HumanCompatibleAI__imitation__705 | HumanCompatibleAI/imitation | 705 | defect | ebdb42bae3141b2600a4705ee14281d3bdd7a40d | 148b5b03251408c57806a58d568d8234c27d6c81 | Add helpers and instructions on how to share datasets on the huggingface hub | ## Description
I added some helpers to make it easier to publish or download datasets with trajectories from HuggingFace Datasets Hub.
## Testing
Not tested so far! Add coverage for:
- [x] getting a slice out of a HuggingFace Datasets backed trajectories sequence
- [ ] The trivial case where we convert a seq... | diff --git a/docs/index.rst b/docs/index.rst
index 0db52c23b..f3ec53b03 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -74,6 +74,7 @@ If you use ``imitation`` in your research project, please cite our paper to help
tutorials/5a_train_preference_comparisons_with_cnn
tutorials/6_train_mce
tutorials/7_tra... | 2 | 1 | 0 | [{"id": "G0", "claim": "The documentation might be nicer if it included an example of passing the TrajectoryDatasetSequence into a method that takes a sequence of trajectories.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "levmckinney asks whethe... | null |
HumanCompatibleAI__imitation__801 | HumanCompatibleAI/imitation | 801 | defect | 8db6bfb0cfd533f6418e662890499670bd6b010b | 812d47250da92d48f87afe092c3575e31ef42969 | Upgrade pytype | ## Description
Originally from this [commit](https://github.com/HumanCompatibleAI/imitation/pull/785/commits/194ec1ac336d5ecdb36a5df92d53e056458291be) to remove workaround for old versions. But it turns out we need to address many more type issues than expected. So I moved pytype related fix from #785 to here.
##... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f07fd58d9..f6607a0c2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -78,7 +78,7 @@ repos:
name: pytype
language: system
types: [python]
- entry: "bash -c 'pytype -j ${NUM_CPUS:-auto}'"
+ entry: "bash -c 'pyt... | 1 | 1 | 0 | [{"id": "G0", "claim": "Using `./` as the pytype input in .pre-commit-config.yaml may cause problems relative to specifying the particular source directories (pytype erroring with `multiple rules generate /imitation/.pytype/pyi/imitation/scripts/parallel.pyi`).", "category": "correctness", "verdict": "supported", "prio... | null |
HumanCompatibleAI__imitation__812 | HumanCompatibleAI/imitation | 812 | defect | 20366b0b1a2414ea87665d52812257345a985245 | 000975ea65e35d90bbd150beedaef7d2257a0410 | Running benchmarks | ## Description
Add scripts to run the entire benchmark suite.
## Testing
Description of how you've tested your changes.
| diff --git a/benchmarking/compute_probability_of_improvement.py b/benchmarking/compute_probability_of_improvement.py
new file mode 100644
index 000000000..d6560ec55
--- /dev/null
+++ b/benchmarking/compute_probability_of_improvement.py
@@ -0,0 +1,251 @@
+"""Compute the probability that one algorithm improved over anoth... | 14 | 12 | 1 | [{"id": "G0", "claim": "Add a warning (like the existing one for missing run.json) when a sacred run is skipped because only_completed_runs filters out non-completed runs.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the `&` operator (e.g. `... | null |
HumanCompatibleAI__imitation__830 | HumanCompatibleAI/imitation | 830 | defect | ab45b475396535aa979db5723d62e24432002abd | 293015c45ddb5aa2f8b246145a457d0202854b5c | Fix coverage issue in BC tests | Some missing coverage in BC testing was surfacing in a couple of the most recent PRs. This PR fixes it so we don't have to ask @AdamGleave to merge all the time. | diff --git a/src/imitation/algorithms/bc.py b/src/imitation/algorithms/bc.py
index 29f12588d..2ea47a77d 100644
--- a/src/imitation/algorithms/bc.py
+++ b/src/imitation/algorithms/bc.py
@@ -325,7 +325,7 @@ def __init__(
self._demo_data_loader: Optional[Iterable[types.TransitionMapping]] = None
self.bat... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a clarification of the newly suppressed hypothesis data_too_large health check explaining what it does, when it would be possible to remove this check, and what causes the check to fail.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
Hyperfoil__Horreum__1656 | Hyperfoil/Horreum | 1,656 | defect | a3ed1b101bb8e0de9ac7cdf390dd6391ed02e2a6 | 187b583b5a7e551b1c3badbe944c803aa8a05d94 | Setup unit testing bypassing REST | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Changes proposed
With this PR I am proposing teh following improvements:
- [x] Setup new tests bypassing the REST, this way we can directly inject and call the services we... | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java
index 28e6a7cd7..32f5f17be 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java
+++ b/horreum... | 7 | 6 | 1 | [{"id": "G0", "claim": "In addOrUpdateLabel the PR changes behaviour slightly: before, when the existing label was not found it was used as the label and label.id set to -1, but now a not-found id throws notFound.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
Hyperfoil__Horreum__1689 | Hyperfoil/Horreum | 1,689 | defect | 324d718aacbdfff0e7ffa5cc1b001851f0cc9fb0 | e6f3b5a91e09ffabb675364a50a8b31dab3d2b20 | Validate test/schema import format: Fixes #1685 | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
Fixes #1685
<!-- Remove this section if not applicable -->
<!-- Example: Closes #31 -->
## Changes proposed
<!-- List all the proposed changes in your... | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java
index adf81bac3..c9de7e78f 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/SchemaServiceImpl.java
+++ b/horreum... | 1 | 1 | 0 | [{"id": "G0", "claim": "Create the additional ObjectMapper only once and inject it, instead of calling mapper.copy() on every schema/test import.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Hyperfoil__Horreum__1703 | Hyperfoil/Horreum | 1,703 | defect | 9e5c2f4d0f3c2a83c44ab62e3ad789b4532bf7ea | 6f92ebead8a694407ed1eb94f2f727175a1bca7e | Add Collector API datastore | ## Fixes Issue
Closes #1109
## Proposed Changes
This patch issues a request to the collector API to get all available data. To limit the size of returned data we require the use of a specific `tag` and `imgName` combination, while also limiting the date range.
## Check List (Check all the applicable boxes)... | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index ce2368104..d77a751d6 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -2451,6 +2451,23 @@ components:
- FIXED_THRESHOLD
- RELATIVE_DIFFERENCE
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The API path should be a separate config param or part of jsonDatastoreConfig.url instead of hard-coded, since if the API changes (e.g. a version bump) the hard-coded path will likely no longer be valid.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
Hyperfoil__Horreum__1731 | Hyperfoil/Horreum | 1,731 | defect | ab6bb187610c2c4762e5cf20d53ba96007221a4a | 4d079be34806c154a9241f5b4c9e85ec1b8654f8 | Implement test filtering by name | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
Fixes https://github.com/Hyperfoil/Horreum/issues/1412
## Changes proposed
The main purpose of this change was to add a name filtering on AllTests page.
... | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index 9da75f31a..7c8dd8e3c 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -1792,7 +1792,9 @@ paths:
in: query
description: Sort direction
... | 3 | 3 | 1 | [{"id": "G0", "claim": "Consider extending the new name-filtering mechanism to the Schema entities as well (requested in #1198), since the extra effort should be small.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Placing the ChangeModal inside the <Dr... | null |
Hyperfoil__Horreum__1859 | Hyperfoil/Horreum | 1,859 | defect | b809cbef7dfed981253a39f396780cc646da32c5 | 43de3c1be057c2d6b61c8391be8743da8f6c61d2 | Offload multi run upload processing to message queue: Fixes #1858 | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
Offload processing multiple runs from datastore to async queue
## Fixes Issue
Fixes #1858 | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/datastore/ElasticsearchDatastore.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/datastore/ElasticsearchDatastore.java
index 0481b5152..6b33f8ca4 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/datastore/Elastics... | 4 | 4 | 1 | [{"id": "G0", "claim": "The endpoint should return different status codes depending on whether processing was synchronous or asynchronous: 200 when the response contains the list of run IDs, 202 when it contains nothing useful because processing is offloaded to the async queue.", "category": "design", "verdict": "suppo... | null |
Hyperfoil__Horreum__1977 | Hyperfoil/Horreum | 1,977 | defect | f2a03f1919ce83cbeffb51102d5bf7f2fa3cb343 | 3b83904eb5883246f8fe2e9cee983ff6eceae276 | Move label values json aggregation into Java | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Changes proposed
I am proposing to move part of the `/labelValues` logic from jdbc to Java, especially the json aggregation.
This seems coming with a huge improvement, h... | diff --git a/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/data/ExportedLabelValues.java b/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/data/ExportedLabelValues.java
index 261f32b97..a320e8463 100644
--- a/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/data/ExportedLabelValues.java
+++ ... | 4 | 4 | 4 | [{"id": "G0", "claim": "With this change the filter and multiFilter no longer work because the whole object is not available in the query anymore, and the three labelValuesFilterMultiSelect tests fail with HTTP 500; a way to fix that is needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "sco... | null |
Hyperfoil__Horreum__2041 | Hyperfoil/Horreum | 2,041 | defect | 37bc00cc7dbe7b45b211ab39a36d31451fb99c11 | 51a59e178cbb14603927ab3371878c7651789823 | Add support for jsonpath filter expression ... | ... which may return an ArrayNode that we need to process more
<!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
When `findJsonPath` is invoked with a jsonpath filter expression, the ArrayNode is not transfo... | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/Util.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/Util.java
index ef1146f08..52edace67 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/Util.java
+++ b/horreum-backend/src/main/java/io/hyperfoil/too... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the `System.out.println(root);` debug statement from the new UtilTest.findJsonPath test, or replace it with a `Log.trace(root);` statement so logging can be controlled while tests run.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
Hyperfoil__Horreum__2100 | Hyperfoil/Horreum | 2,100 | defect | 90da37df3c1e390863b9ff68a5f5a2c6c4e06944 | ec91d5e51c3a1cc3b11f9a2b68731a5a439225fb | Remove test token feature | The introduction of API keys (https://github.com/Hyperfoil/Horreum/pull/1952) as an alternative authentication mechanism makes the test tokens redundant.
We're now at a point when that feature can be removed. | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index d223ff739..9cf4f9067 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -609,12 +609,6 @@ paths:
schema:
$ref: "#/components/schemas/Access"... | 8 | 6 | 4 | [{"id": "G0", "claim": "The author asks whether the endpoints that take a token should be kept (deprecated, sending an error when a token parameter is present) for compatibility, or whether it is fine to just drop the token altogether, noting the same applies to getRunSummary, getMetaData, etc.", "category": "design", ... | null |
Hyperfoil__Horreum__2119 | Hyperfoil/Horreum | 2,119 | defect | 3f702863f74b741a5d582440eca9fadad9c6a83d | d4f20263cb4602a9c3cf7a90dbeaf950f9725fd3 | Add base roles to API keys | If a user has a composite role (like `dev-uploader`) it will get the base roles from keycloak (in this case `dev-team` and `uploader`) as well.
At the moment the API key only provides the composite roles. It should give the same set of composite and base roles. | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBackend.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBackend.java
index d67f1fdbb..74fbb2b66 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBacke... | 2 | 2 | 0 | [{"id": "G0", "claim": "The List.of(Roles.MANAGER, Roles.TESTER, Roles.UPLOADER, Roles.VIEWER) constructed inline in getRoles should be defined as a static variable to avoid creating the list every time the method is called.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
Hyperfoil__Horreum__2172 | Hyperfoil/Horreum | 2,172 | defect | 42aa5acb4daa7b314a6b4d4b1279be1092d02200 | 62885781530644f8c34083e48a6ed696d8892d24 | Refactor the Run upload process | Refactor the process such that runs and related datasets get created/persisted synchronously whereas the datasets processing (label values calculation and so on) is deferred to the async process by making use if the dataset-even queue
<!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the is... | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index 2f35a9d1c..3ef780893 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -648,18 +648,16 @@ paths:
jobDisplayName: upstream-perf-bre-datastructure... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR should explain or justify the new in-memory AMQ resource, whose crash behavior seems unhandled given that the external AMQ instance exists to persist unprocessed messages for crash recovery.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1... | null |
Hyperfoil__Horreum__2223 | Hyperfoil/Horreum | 2,223 | defect | 9038d5cba655dffaaabd1125ba1b4e6ecac8ee9e | e12720c44fbf9950ebfd2f6f5dcb5810e59942e5 | Strongly typed Datastore configuration - Fixes #2088 | This is a fairly major re-factor of the `Datastore` configuration API.
It solves the following problems;
- Add Strongly Typed authentication models: `No Auth`, `Api Key` and `Username/Password`
- Add openapi discriminators for datastore authentication types
- Fixes validation for all datastores: Fixes #2088
-... | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index 3ef780893..6e35bfc98 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -66,6 +66,21 @@ paths:
schema:
format: int32
... | 19 | 18 | 4 | [{"id": "G0", "claim": "In CollectorApiDatastoreConfig.validateConfig the empty-apiKey branch returns the wrong message (\"url must be set\") instead of \"apiKey must be set\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "DatastoreType.TypeConfig ... | null |
Hyperfoil__Horreum__2272 | Hyperfoil/Horreum | 2,272 | defect | fc6b610a4c16cd6e8ed1b78224ccfd96a276392f | 89f9e6d1d1c1e4a46118e15e754dae78dd948e74 | Fix label values limits | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
Fixes https://github.com/Hyperfoil/Horreum/issues/2266
## Changes proposed
With https://github.com/Hyperfoil/Horreum/pull/1977 we changed how the labelVal... | diff --git a/horreum-backend/pom.xml b/horreum-backend/pom.xml
index bd283e3b1..d3918fe68 100644
--- a/horreum-backend/pom.xml
+++ b/horreum-backend/pom.xml
@@ -178,6 +178,13 @@
<artifactId>commons-math3</artifactId>
<version>${commons.math3.version}</version>
</dependency>
+
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use the JDK's Collectors.partitioningBy/groupingBy instead of Guava's Lists.partition, so the new Guava dependency added only for this is avoided.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Hyperfoil__Horreum__2459 | Hyperfoil/Horreum | 2,459 | defect | 246166f67ddce20350d84c0523f325bafa97724e | aa375188c6b98bb47e0696a5f3be501b99b53084 | Add new Dataset Labels Computed event | ## Fixes Issue
https://issues.redhat.com/browse/MPL-960
**Problem**
At the moment users can get notified when a new Run is uploaded, but given the async nature of the run upload logic (which means that label values are calculated asynchronously after some time) they cannot rely on such event to retrieve label va... | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/ActionEvent.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/ActionEvent.java
index e6912bbfe..06dc8b94b 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/ActionEvent.java
+++ b/horreum-backend/src/main/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new DATASET_LABELS_COMPUTED event is fired in the wrong cases — the Dataset.NewEvent also triggers when recomputing a single label, and the condition (checking labelId > 0 instead of <= 0) calls the action only when a single label is updated/created instead of when the dataset label values a... | null |
Hyperfoil__Horreum__2531 | Hyperfoil/Horreum | 2,531 | defect | daebf6bf328e585f7c1b50a38861e23af6d67a6c | 70c74bcca853484f9c6c7e8b4af89c52b052ba04 | Added test with actual run data to trigger recalculations and removed dataset from Fingerprint | If approved should be merged after the larger refactor @lampajr did.
| diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/entity/FingerprintDAO.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/entity/FingerprintDAO.java
index d0fafb075..b90b032c9 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/entity/FingerprintDAO.java
+++ b/horreum... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PR's change adding a \"<unknown>\" default value to horreum.application.commit in ConfigServiceImpl duplicates a change already included in PR #2522.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RunServiceNoRestTest... | null |
Hyperfoil__Horreum__2555 | Hyperfoil/Horreum | 2,555 | defect | 161a3b7b308f2785e153d607188cff2e04453ac3 | 0d10cdb38cdbea1b2b92f573460a40e4bbda6a81 | Return filtering label values as map | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
Fixes the issue that users might experience when they have multiple filtering labels values and many datasets.
Currently the `filteringLabelValues` endpoint ... | diff --git a/docs/site/content/en/openapi/openapi.yaml b/docs/site/content/en/openapi/openapi.yaml
index fa08d9f3a..cb6ce764e 100644
--- a/docs/site/content/en/openapi/openapi.yaml
+++ b/docs/site/content/en/openapi/openapi.yaml
@@ -5103,7 +5103,9 @@ paths:
$ref: "#/components/schemas/TestExport"
/a... | 4 | 4 | 0 | [{"id": "G0", "claim": "Filtering on label values that are not scalars (JSON objects or arrays) does not work as expected, even for an exact match — a pre-existing limitation, present on master, that this PR leaves to be addressed in a separate issue.", "category": "correctness", "verdict": "supported", "priority": "P2... | null |
Hyperfoil__Horreum__2568 | Hyperfoil/Horreum | 2,568 | defect | 29bf733e905f9dc2529e0f25e44d195e4a5cbc93 | 131e5ca03bdcc2586133746aca0685983022e9a8 | Fix how "all matches" extractor are handled | <!-- If your PR fixes an open issue, use `Closes #435` to link your PR with the issue. #435 stands for the issue number you are fixing -->
## Fixes Issue
The expectation is that "previewing" a label execution and its actual label value computation return the same result, which is not true a the moment when one of... | diff --git a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/DatasetServiceImpl.java b/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/DatasetServiceImpl.java
index 4f92f41f8..6f33437a4 100644
--- a/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/DatasetServiceImpl.java
+++ b/horr... | 4 | 4 | 0 | [{"id": "G0", "claim": "Don't know why the flatten call was introduced here; it seems to force a 'first match' result in case of an array of arrays and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "The run JSON in labelValuesWi... | null |
HypothesisWorks__hypothesis__3184 | HypothesisWorks/hypothesis | 3,184 | defect | 09fc14039576fa2891b565bc1c4aff3d361d3489 | 01e2246782b90b4172e7e67f05632ff0970b2e0f | Prevent `xps.indices()` from generating indices that flat index arrays | Resolves #3166.
I opted to simply filter the base `extra._array_helpers.BasicIndexStrategy` used inside of `extra.array_api._indices()`, which seems to do the trick... I didn't want to play around the internals haha. Let me know if you'd like a solution that doesn't filter itself. I'm fairly happy with the testing s... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..4504d904d88
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch updates :func:`xps.indices` so no flat indices are generated, i.e.
+generated indices will n... | 5 | 4 | 1 | [{"id": "G0", "claim": "The internal `flat_index` argument of `BasicIndexStrategy` should be renamed to the more verbose `allow_fewer_indices_than_dims`, with the explanatory comment moved up and shortened.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
HypothesisWorks__hypothesis__3574 | HypothesisWorks/hypothesis | 3,574 | defect | c80aaddfc589cbc1824e027b15ae53bcea8e293d | 97dc464e51108ef46dd8fea184b297bf276fcf69 | Downcast numbers passed to `floats()` internally in `constrained_complex()` | Should resolve #3573, where we used the builtin width (i.e. 64) results of `cathetus()`, which don't validate in `floats()` for any width but `64`. Currently this PR downcasts the output of `cathetus()`, but I wonder if some of those downcasts would need clipping... EDIT: yeah somethings wrong | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..7eaa30d08b
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch fixes :func:`~hypothesis.strategies.complex_numbers` accidentally
+invalidating itself when pa... | 4 | 3 | 1 | [{"id": "G0", "claim": "The existing tests for st.complex_numbers() accept broken behaviour such as epsilon errors, and this PR should include a review of those tests rather than carry that acceptance forward unaddressed (e.g. by filtering out epsilon-error values and documenting the approach).", "category": "correctne... | null |
HypothesisWorks__hypothesis__3924 | HypothesisWorks/hypothesis | 3,924 | defect | 747cca0539f69c6c00464471475f80851df22244 | 98c46a3cd68af69b3a00a973a075eeaa53285b3b | Fix `PermissionError` for inaccessible database path | - Fix #3764 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..9b4b7ffc53
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: minor
+
+This release resolves :py:exc:`PermissionError` that come from creating databases on inaccessible paths.
... | 3 | 2 | 2 | [{"id": "G0", "claim": "Move the permission-database tests from nocover/ into cover/ so that the `# pragma: no cover` is no longer needed and the coverage failure goes away.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of creating a new `_usab... | null |
HypothesisWorks__hypothesis__3955 | HypothesisWorks/hypothesis | 3,955 | defect | 5578efc734aeeaf3375b69e2d8fc77de9d80cc9a | 74819c90116733b3350cb1005a86ea270e6db3a5 | compatibility with `numpy>=2.0` | - [x] closes #3950
This also replaces a couple of top-level `pytest.warns` with ignores, which was the simplest way I found to silence the errors caused by the change in behavior of `numpy>=2`.
Still missing: a way to actually test this with a nightly build of `numpy`, but since I don't know your CI well enough I... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index fe47bf7527..8b56decfee 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -96,6 +96,7 @@ their individual contributions.
* `Jonty Wareing <https://www.github.com/Jonty>`_ (jonty@jonty.co.uk)
* `Joshua Boone <https://www.github.com/patchedwork>`_ (joshuaboone4190@gmail.com)
* `... | 8 | 6 | 2 | [{"id": "G0", "claim": "The new RELEASE.rst entry uses single backticks, which render differently in rst, and should use rst semantic roles / inline code as in the suggested block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test_floati... | null |
HypothesisWorks__hypothesis__4015 | HypothesisWorks/hypothesis | 4,015 | defect | 395649aa005999e475c28f28d9f17a7e7d82f065 | 0e49ca35ed922aa8343c414b92abd9e427c7232e | Add strategies for Django's model choice fields | Fixes #4010 | diff --git a/hypothesis-python/src/hypothesis/extra/django/_fields.py b/hypothesis-python/src/hypothesis/extra/django/_fields.py
index b4a574d69d1..89406277262 100644
--- a/hypothesis-python/src/hypothesis/extra/django/_fields.py
+++ b/hypothesis-python/src/hypothesis/extra/django/_fields.py
@@ -262,6 +262,51 @@ def _f... | 4 | 4 | 2 | [{"id": "G0", "claim": "The InvalidArgument raised when the queryset has no explicit ordering could use a better message, like the one in check_sample.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ModelMultipleChoiceField should generate a uniqu... | null |
HypothesisWorks__hypothesis__4023 | HypothesisWorks/hypothesis | 4,023 | defect | 3af004234afb6f1567c1f7ccba65caa6bb17ee2e | f777996371adc58547cd59fd0aeb192a3f9df5f1 | Improve internal warning tests | Fixes #4021
When a warning is raised (due to `-Werror`) during test execution, it may cause the test to raise `Flaky` from `StopTest`. This makes the error message less informative.
~~This PR makes `HypothesisWarning` fatal, not only `HypothesisDeprecationWarning`. Because the warnings are meant to be seen.~~ | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..234365daf4
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch treats ``HypothesisWarning`` exceptions as fatal
+failures during test execution, thus not rep... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the `except HypothesisWarning: raise` clause in `_execute_once_for_engine` so that all HypothesisWarnings are treated as an ordinary test failure in the next clause down, if there is no substantial downside to doing so.", "category": "design", "verdict": "supported", "priority": "P1", "sc... | null |
HypothesisWorks__hypothesis__4043 | HypothesisWorks/hypothesis | 4,043 | defect | a0426add9e1d250c32428317042af71ea831e5c3 | 522274db5bc47abb7d77a5e6f4a2c73ee5f32d8e | Make Flaky into an ExceptionGroup | This PR makes `Flaky` into an `ExceptionGroup` to improve presentation of flaky failures. Closes #4040.
As usual, *There Were Complications*. Basically because an `ExceptionGroup` is not allowed to have an empty group; so a straightforward replacement is not possible.
On the plus side, I think the reworked `Flaky... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..f36a34b17f
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,4 @@
+RELEASE_TYPE: minor
+
+This patch changes most Flaky errors to use an ExceptionGroup, which
+makes the representation of these e... | 2 | 1 | 0 | [{"id": "G0", "claim": "The name of the new exception class at errors.py line 75 may make users think Hypothesis is reporting an internal error rather than something they need to fix, so it should be reconsidered; the thread settles on keeping FlakyReplay and renaming the other new class FlakyData to FlakyStrategyDefin... | null |
HypothesisWorks__hypothesis__4162 | HypothesisWorks/hypothesis | 4,162 | defect | e575bf35bddcc41082ed032b48e15c5e8bbd4535 | 1122bedd55c876af60d40ade4b79bb11c916e371 | Migrate `explain` phase to the typed choice sequence | Closes #3864. Take two of #4160 due to git weirdness. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..a0e7f7bebf
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+This patch migrates the :obj:`~hypothesis.Phase.explain` :ref:`phase <phases>` to our IR layer (:issue:`3... | 4 | 3 | 0 | [{"id": "G0", "claim": "whole_repo_tests/test_mypy.py intermittently fails because mypy returns an empty string (assert len(out.splitlines()) == 1 with out=''), so a few retries should be added for the empty-output case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id":... | null |
HypothesisWorks__hypothesis__4279 | HypothesisWorks/hypothesis | 4,279 | defect | 36bd5dbc509792f5d1cdb8873370aa3b362ad267 | 3168a18ca17b5341f5b912c77ea32af6f781cdcb | Shrink NaN to canonical form | Closes #4277.
The first issue (`-nan`) is a one-liner, switching from `sign_aware_lte` to `math.copysign` to detect the sign of a choice.
Second issue (`struct.unpack('d', struct.pack('Q', 0xfff8000000000001))[0]`) requires distinguishing NaNs in float shrinking, so that code is reshuffled a bit to separate out t... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..9c0a8cac20
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Improve shrinking of non-standard NaN float values (:issue:`4277`).
diff --git a/hypothesis-python/src/hy... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new test_shrinks_to_canonical_nan is very unreliable (minor changes to the strategy make it stop finding the problem, silently), and the author asks for a simple way to explicitly specify the starting point of a shrink.", "category": "testing", "verdict": "supported", "priority": "P1", "scop... | null |
HypothesisWorks__hypothesis__4283 | HypothesisWorks/hypothesis | 4,283 | defect | dc0740e843b0a6118e4e72fabeac3a320d862e8e | 6289788c4889feb59e6e0e878e9ba84912e991e7 | Deprecate nested given | Closes #4167 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..637fe2fdea
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: minor
+
+Nesting :func:`@given <hypothesis.given>` inside of :func:`@given <hypothesis.given>` is now a :ref:`heal... | 4 | 3 | 3 | [{"id": "G0", "claim": "Some people will probably use .example() inside @given(), and if possible that case should get its own specific error message rather than the nested-@given one, so the message makes more sense to them.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id... | null |
HypothesisWorks__hypothesis__4348 | HypothesisWorks/hypothesis | 4,348 | defect | f79c48fe981346a2c3484ac4c7b4177a0b7362e4 | 616a825d57b3a43de6aab91f9ef1ed8dddfff337 | Initial work on collecting ast constants | See https://github.com/HypothesisWorks/hypothesis/issues/3127#issuecomment-983314619.
This code is not yet called anywhere from Hypothesis. We should work out when to incur this cost - per-test, and cache the ast parsing results?
### what even is "user code"
Right now we use the same classification as the scr... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..6219112c2f
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Lays some groundwork for future work on collecting interesting literals from the code being tested, for i... | 7 | 6 | 2 | [{"id": "G0", "claim": "Cache the module-name -> source-code lookup and the source-code -> constants lookup so that iterating over sys.modules before each test is cheap.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the path classifier an IntE... | null |
HypothesisWorks__hypothesis__4362 | HypothesisWorks/hypothesis | 4,362 | defect | 049d0751b2ceebc2fe915df37cea6b587d475865 | 5cbb8c11ef7c09fdf757c0194a821e3e37c52281 | Rule bundle printing | Closes #4361 by improving printing of the steps (going into exception notes).
There are some matters of taste wrt exactly how the bundle variables should look, which I'll address in comments below. | diff --git a/hypothesis-python/src/hypothesis/stateful.py b/hypothesis-python/src/hypothesis/stateful.py
index 2ade095dbe..80b29b07d6 100644
--- a/hypothesis-python/src/hypothesis/stateful.py
+++ b/hypothesis-python/src/hypothesis/stateful.py
@@ -21,6 +21,7 @@
from copy import copy
from functools import lru_cache
fr... | 2 | 1 | 0 | [{"id": "G5", "claim": "Something should be added to the multiple() docstring explaining the multi-target result assignment behaviour.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G6", "claim": "Single-element tuples in the output should be parenthesized, e.g.... | null |
HypothesisWorks__hypothesis__4371 | HypothesisWorks/hypothesis | 4,371 | defect | 2a5fd0028b8219f667d2c085c5055a0c7acb0683 | 26eae31a268eedc1689777e0b372bd72c76ccf12 | Optimize local constants further | Closes #4370.
Pandas tests are still ~10% more expensive than pre-6.131.1, but after this PR I think that's due to `_maybe_draw_constant` and the ast constant collection itself. (and this number tends towards zero as more tests are run).
pandas hash: `e5898b8d33ac943a60250e1466006c073a506e8c`
this PR:
```
p... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..18e65005b2
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Further improve the performance of the new features introduced in :ref:`version 6.131.1 <v6.131.1>`.
diff... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment above the walrus assignment is confusing — it reads as if the walrus operator itself avoids the race conditions, and the author should reword it to say that the length is stored at first check.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
HypothesisWorks__hypothesis__4383 | HypothesisWorks/hypothesis | 4,383 | defect | 0c6ac59c098260764bef7be6172ef26c6092c0c2 | 38fd162a4e5b047a171469d34abecf5d03086980 | Dont report failure --> verified as unsound | Closes https://github.com/pschanely/hypothesis-crosshair/issues/31 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..9ed115802b
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Fix incorrectly reporting :ref:`alternative backends <alternative-backends>` as unsound in some cases.
di... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment quoting the expected failure message misspells the backend name as 'soundsness_test' instead of 'soundness_test'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function name misspells 'failure' as 'fai... | null |
HypothesisWorks__hypothesis__4384 | HypothesisWorks/hypothesis | 4,384 | defect | 6f4c1f82887bd9978f213076e03d03099eeb12a7 | b32cfaa6273f5eaa62475e46205471adc01a9c54 | Add `for_failure: bool = False` to `provider.realize` | Crosshair can raise `BackendCannotProceed` when realizing choices for any example - including failing examples, as seen in https://github.com/HypothesisWorks/hypothesis/actions/runs/14853721823/job/41703445166, where we don't catch `BackendCannotProceed` and it bubbles up to the user.
Failing examples are more impor... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..170a846426
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Add a ``for_failure: bool = False`` parameter to ``provider.realize`` in :ref:`alternative backends <alte... | 3 | 3 | 1 | [{"id": "G0", "claim": "realize_choices passes for_failure to provider.realize unconditionally, so it should check the provider's signature (e.g. inspect.signature) instead of assuming the parameter exists.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
HypothesisWorks__hypothesis__4396 | HypothesisWorks/hypothesis | 4,396 | defect | d5a23a31115ee8ee8c167ce7b5eaaa5192a45d00 | 1a4db2f32d1d2cd65376fd2d6c359d4aee0b4379 | Warn when sharing incompatible strategies | Closes #4301.
Adds a check for base strategy equality during draw from shared strategies. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..13440dcca2c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Add check for validity of draws from shared strategies.
diff --git a/hypothesis-python/src/hypothesis/i... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add tests the other way round, verifying the new shared-strategy check is not triggered when the strategies are compatible.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Raising InvalidArgument for code that previously worked is... | null |
HypothesisWorks__hypothesis__4397 | HypothesisWorks/hypothesis | 4,397 | defect | d5a23a31115ee8ee8c167ce7b5eaaa5192a45d00 | 1386b2f60ed6cef73b360f2aac952b953d8d0f53 | Fix pyodide | Closes #4393
Collects all test files in directory by name, rather than let pytest discover them.
I had to add a couple of module-level skips to avoid failure during test collection. | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 456b1ffca1..cc49642136 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -267,7 +267,7 @@ jobs:
source .venv-pyodide/bin/activate
# pyodide can't run multiple processes internally, so parallelize e... | 2 | 2 | 1 | [{"id": "G0", "claim": "The crosshair failure of tests/cover/test_testdecorators.py::test_notes_high_overrun_rates_in_unsatisfiable_error (Failed: DID NOT RAISE Unsatisfiable) did not go away on re-run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim"... | null |
HypothesisWorks__hypothesis__4412 | HypothesisWorks/hypothesis | 4,412 | defect | 2578b7059ee4f38e9e3cdd7c952563db95e6e587 | 52b15d14b97c09e123ea062fb75e2eea50ffa575 | conditionally import fields from django.contrib | Closes #3716 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..b495be4f7c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch fixes an error when importing :ref:`our django extra <hypothesis-django>` (via ``hypothesis.ex... | 1 | 1 | 0 | [{"id": "G0", "claim": "The auto-update logic in tooling (update_django_versions) has an existing bug on master where it does not handle `major.minor` version strings without a trailing `.patch` component; make the patch component optional in that regex.", "category": "correctness", "verdict": "supported", "priority": ... | null |
HypothesisWorks__hypothesis__4441 | HypothesisWorks/hypothesis | 4,441 | defect | ed6e36c2f2eebcb97cfebeac6a9606c561a783bf | bca8d9566c506f9090499f19fe6703ba6066dbbc | Cache, defer, and truncate `sampled_from` repr | We're currently eagerly evaluating the repr of arguments passed to `sampled_from`. I don't think this should be eager, and I don't think we should evaluate the entire collection either. The speedup on [bdict's tests](https://github.com/jab/bidict/blob/d1f22c4c603669498a997878434f209be72c6756/tests/test_bidict.py#L92) (... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..95f997bb14
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Speed up usages of |st.sampled_from| by deferring evaluation of its repr, and truncating its repr for lar... | 1 | 1 | 0 | [{"id": "G0", "claim": "SampledFromStrategy.__repr__ should stick with unconditional square brackets (simplifying away the braces logic) and use get_pretty_function_description instead of repr for the elements, which is a substantial upgrade in many cases.", "category": "maintainability", "verdict": "supported", "prior... | null |
HypothesisWorks__hypothesis__4444 | HypothesisWorks/hypothesis | 4,444 | defect | 65897f449db9a14a45a1eece9421179a5a1b3f58 | e0c29098936d767f14ed139f7669cb02ccb66da9 | Automatically infer a strategy for `dtype="object"` | This change would add support for generating numpy.ndarray and pandas.Series with any python object as an element.
Effectively, hypothesis can now generate `np.array([MyObject()], dtype=object)`.
The first use-case for this is with Pandas and Pandera where it is possible and sometimes required to have columns which t... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index 4946f2fa00..a0aed2b9f8 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -172,6 +172,7 @@ their individual contributions.
* `Saul Shanabrook <https://www.github.com/saulshanabrook>`_ (s.shanabrook@gmail.com)
* `Sebastiaan Zeeff <https://github.com/SebastiaanZ>`_ (sebastiaan.ze... | 10 | 10 | 2 | [{"id": "G0", "claim": "The `else: raise InvalidArgument` branch for dtypes without inference (e.g. void) is no longer covered now that the object-dtype test case was deleted, so a covering test case such as a void-dtype one should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i... | null |
HypothesisWorks__hypothesis__4467 | HypothesisWorks/hypothesis | 4,467 | defect | 39223203b4cf03a95c9815c4cd381479ba7ff383 | 60128ac6368b227bded32c0cd66e6a8dd9403e90 | Fix a race in `@initialize` | Part of https://github.com/HypothesisWorks/hypothesis/issues/4451 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..9d6895d41c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Improve threading support for stateful |@initialize| rules.
diff --git a/hypothesis-python/docs/prolog.rs... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release note should say \"Improve thread-safety for stateful |@initialize| rules.\" instead of \"Improve threading support for stateful |@initialize| rules.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HypothesisWorks__hypothesis__4470 | HypothesisWorks/hypothesis | 4,470 | defect | d92a2ccf62f9d4ee078cdb6ca285f4bfab8821b7 | de1e5318fc8657d05e84c0cdc3469d23f6b2550c | Re-raise `DeadlineExceeded` from backends | Closes https://github.com/HypothesisWorks/hypothesis/issues/4462.
Suppressing the "failed on backend A but not backend B" note for `DeadlineExceeded` is simple enough. Once that's done, and `DeadlineExceeded` gets raised, we replay it. We're very likely to get a `FlakyFailure` report of the deadline being exceeded i... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..ecd92ac36f
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: minor
+
+When a failure found by an :ref:`alternative backend <alternative-backends>` does not reproduce under the... | 4 | 3 | 1 | [{"id": "G0", "claim": "Special-casing DeadlineExceeded from alternative backends (re-raising the original error even when the replay passes) costs robustness by assuming the replay works out; Zac-HD would prefer dropping the special case and instead raising an alt-backend-specific subclass of FlakyFailure that clearly... | null |
HypothesisWorks__hypothesis__4473 | HypothesisWorks/hypothesis | 4,473 | defect | cf0f5d6a6d429ec16435ae0de797d89299886730 | 42299bbccb62093eacff312c53db97ed19f47650 | Fix strategy validation thread-safety | Part of https://github.com/HypothesisWorks/hypothesis/issues/4451. This one is pretty rare, only triggering about once per full test suite run under `--parallel-threads 2`. There might be a way to write `do_validate` that takes recursion into account and only tracks `validate_called = True` at the end, but that's a big... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..6449b153a9
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Improve the thread-safety of strategy validation.
diff --git a/hypothesis-python/src/hypothesis/strategie... | 1 | 1 | 1 | [{"id": "G0", "claim": "With the S1 lock-based approach, `validate_called` is set to True inside the lock before `do_validate()` runs, so the early return outside the lock (line 486) leaves a window where another thread can use the strategy while `do_validate` may not have run or may error — consider moving `validate_c... | null |
HypothesisWorks__hypothesis__4490 | HypothesisWorks/hypothesis | 4,490 | defect | 7ed359f0ed7b063fd5a0b21393fe00a7e3aee9f2 | 6c0c6b8e17165d6eac251949edac65659c499694 | Add support for Python 3.14 | Biggest changes are the removal of `collections.abc.ByteString`, which we were implicitly relying on to provide bytes to `Collection[int]`, and typing class hierarchy changes for the new `annotationlib`.
Known failures:
* GC referrers warnings for `random` from changes in upstream GC. @Zac-HD your patch for that on... | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 84d8233506..4afdf98b16 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -50,12 +50,12 @@ jobs:
- check-py313t-cover
- check-py313t-nocover
- check-py313t-niche
- # - check-py31... | 3 | 2 | 1 | [{"id": "G0", "claim": "The release-note line about Python 3.14 RC1 should link to https://devguide.python.org/versions/.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "memoryview is conceptually generic but lacks the runtime machinery, so the PR ... | null |
HypothesisWorks__hypothesis__4500 | HypothesisWorks/hypothesis | 4,500 | defect | 18b1d137cae1d18a93d8440eedb70c8dc09eaaa4 | 809f11b6e90ae7777a1e55ba9b2a41a7daf2fca7 | Redo extract_lambda_source to ast-parse whole file | Closes #4498, as outlined in https://github.com/HypothesisWorks/hypothesis/issues/4498#issuecomment-3155716294.
This PR changes how the source repr of lambdas is constructed. It should be more robust, by parsing the whole file and *then* looking for lambdas in the AST that span the source line.
If there are multi... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..95850d9dd5
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,11 @@
+RELEASE_TYPE: minor
+
+This patch makes the stringification of lambdas, and as
+a result certain automatic filter rewriting ope... | 6 | 4 | 1 | [{"id": "G0", "claim": "Moving from ast-parsing the lambda source to ast-parsing a whole file may hurt performance in extract_lambda_source, which was already a hotspot (e.g. the repr of stateful rules).", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
HypothesisWorks__hypothesis__4501 | HypothesisWorks/hypothesis | 4,501 | defect | 90f5df9d07a3734ba1c20fed08d9c8a54824caf6 | 436aeedf69a6fecde2f9493acff69b4f79469b49 | Declare thread safety | Closes https://github.com/HypothesisWorks/hypothesis/issues/4451 🎉
I also saw a `check-threading` failure on master, which I cannot reproduce locally: https://github.com/HypothesisWorks/hypothesis/actions/runs/16794763925/job/47563329138#step:6:671. One of the threads doesn't shrink. I don't see how this can happe... | diff --git a/hypothesis-python/RELEASE-sample.rst b/hypothesis-python/RELEASE-sample.rst
index f91f996159..6f76356de4 100644
--- a/hypothesis-python/RELEASE-sample.rst
+++ b/hypothesis-python/RELEASE-sample.rst
@@ -27,7 +27,7 @@ which should:
- :class:`package.class` for link to classes (abbreviated as above).
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The last paragraph of the Cross-thread API calls section should be reworded to replace \"The answer might be ... in which case we will update this page.\" with the clearer \"If our investigation determines that we cannot support thread-safety for the feature in question, we will update this page... | null |
HypothesisWorks__hypothesis__4509 | HypothesisWorks/hypothesis | 4,509 | defect | bd2137f048ee23a186b9ad0336295bca421e20df | 919b08e5e82836c1c8cd6c0ec43a2d5cdff4ea9c | Fix shared strategy warnings | Closes #4301.
After I realized that a single strategy may be present multiple times by different keys in the strategy cache, dealing with cache revocations became untenable. So this alternative solution does not refer to the cache or singletons at all, and just compares strategy labels. This is strictly less powerfu... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..c235e59899d
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,4 @@
+RELEASE_TYPE: patch
+
+This patch re-enables the warning for incompatible :func:`~hypothesis.strategies.shared`
+strategies th... | 4 | 3 | 0 | [{"id": "G0", "claim": "The repr-based shared-strategy compatibility check added in S1 is unsatisfying and under-discriminating, so the check should compare strategy labels instead, with label calculations strengthened (callable/args for BuildsStrategy, callable for CompositeStrategy, base label for SharedStrategy, exp... | null |
HypothesisWorks__hypothesis__4517 | HypothesisWorks/hypothesis | 4,517 | defect | c17c6b99bc76be05dabf007607346ec87e5fc694 | 9073628f310d3f6d49f77da69eea1e9cf0602892 | Improvements to bytecode-comparison of lambdas | Closes #4457
The source compilation test for lambda is tweaked so that it has no false negatives on our test corpus. To be confirmed by CI, as (apparent) false negative is now a self-test failure.
That means the test compilation can be done on all sources, and then it's trivial and safe to expand the search to su... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..8ed45b2c13
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,8 @@
+TYPE: patch
+
+This patch further improves stringification of lambdas, by
+never returning a lambda source unless it is confirme... | 7 | 5 | 0 | [{"id": "G0", "claim": "The autouse `_make_unknown_lambdas_fail` fixture is probably going to be a maintenance headache and should be changed before merge, perhaps with a failure counter that fails once some threshold is passed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
HypothesisWorks__hypothesis__4536 | HypothesisWorks/hypothesis | 4,536 | defect | 43cbd618c201b10d084ac430ab05fbdf8c4fd836 | f522b59db77f546f2d3e301e712408a0c3033914 | Copy `avoid_realization` in `run_conformance_test` | ~~(pending confirmation)~~ closes https://github.com/HypothesisWorks/hypothesis/issues/4442. Thanks to @pschanely and especially @jobh for getting to the bottom of this!
- [x] (probably?) remove the cache rebuild added in https://github.com/HypothesisWorks/hypothesis/pull/4518 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..7df4525ce2
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Fixes our bundled |run_conformance_test| not respecting |PrimitiveProvider.avoid_realization|.
diff --git... | 4 | 3 | 0 | [{"id": "G0", "claim": "The currently windows-specific CI job configuration should be migrated to tox, with one of the older python jobs switched to run the same config, so windows-only failures are easier to diagnose.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "... | null |
HypothesisWorks__hypothesis__4550 | HypothesisWorks/hypothesis | 4,550 | defect | c16cf7a23ff18cd886a3b434791868827dd647cd | d02cbb76a9772a99ff0bbcc03d3f04347429e7dc | Add a `st.characters` validation, and mypyc typing changes | I've historically made a bunch of PRs "in preparation for compiling with mypyc". Well I really am now focusing on getting mypyc-built wheels up as a hopefully-soon goal of mine 😅. This PR is all over the place, but has three main changes:
- typing and small source code changes for mypyc
- `_strategies` is now a `Wea... | diff --git a/.gitignore b/.gitignore
index 0c2d559a3b..bdceb9bee8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,7 @@
+# mypyc
+
+*.so
+
# misc (editors, file systems, etc)
*.swo
diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..decad9d500
--- /de... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release needs to be marked as a minor release rather than a patch (RELEASE_TYPE: patch must become minor).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HypothesisWorks__hypothesis__4569 | HypothesisWorks/hypothesis | 4,569 | defect | 14286154cddb3daf66105e8966862ea14c67e7d7 | 3080c7e4073e285d6fdc58e38a50f799bdbe7961 | Fall back to `pretty(obj)` during infinite recursion in observability's `to_json` | Ran into this in the wild with schemathesis, specifically `export HYPOTHESIS_EXPERIMENTAL_OBSERVABILITY=1; pytest '/Users/tybug/Desktop/Liam/coding/schemathesis/test/code_samples/test_curl.py' -k test_as_curl_command`. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..d127cc47f0
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Fix a recursion error when :ref:`observability <observability>` is enabled and a test generates an object... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add reference-cycle detection (e.g. a seen-set keyed on id(obj)) inside _to_jsonable instead of only falling back to pretty(obj) on RecursionError.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HypothesisWorks__hypothesis__4582 | HypothesisWorks/hypothesis | 4,582 | defect | 8c621837d1892378c8a6a617261c54a3252c4cd1 | 31a94c3c1ffb00371b1a38e73be0ac14fb4d08bb | respect TypedDict annotation constraints |
The test will only run on 3.11+, but that seems fine to me. Closes https://github.com/HypothesisWorks/hypothesis/issues/4474. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..efa74788ebf
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,6 @@
+RELEASE_TYPE: patch
+
+:func:`~hypothesis.strategies.from_type` now correctly handles :pypi:`annotated-types`
+annotations on ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use pytest.mark.skipif(sys.version_info[:2] < (3, 11)) for the new TypedDict test instead of try/except, so it is explicit why the test is conditional and when that conditional can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
HypothesisWorks__hypothesis__4587 | HypothesisWorks/hypothesis | 4,587 | defect | c00251cd0e99faa1107d2869cc7006b07b627a86 | 67032055ada6a67ebec1a3aa907d045e5a361bbf | Accept strings for `phase`, `verbosity`, and `suppress_health_check` settings | I'm realizing now that I still need to work out when and where to emit deprecation warnings | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..069d7db806
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,17 @@
+RELEASE_TYPE: minor
+
+|@settings| now accepts equivalent string representations for |settings.verbosity|, |settings.phases|, a... | 2 | 1 | 1 | [{"id": "G0", "claim": "Integer values should not be allowed, documented, or otherwise treated as valid for the verbosity (and phase / suppress_health_check) settings — Zac-HD asks that they not be treated as integers at all.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
HypothesisWorks__hypothesis__4615 | HypothesisWorks/hypothesis | 4,615 | defect | eaecbba97c90a7f785e83e54c23f637765a9722c | e51bc073d56507455c5d98be23657468166cb03e | Improve FlakyStrategyDefinition error message for stateful tests | When a FlakyStrategyDefinition error occurs during stateful testing due to rule selection failing, the error message now includes a note explaining that this is usually caused by a flaky precondition or empty bundle.
Closes #4206 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..b4f4fba3f2c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,4 @@
+RELEASE_TYPE: patch
+
+This patch improves the error message for :class:`~hypothesis.errors.FlakyStrategyDefinition`
+when the... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer is unsure whether removing `get_state_machine_test` was intentional and points out the PR should keep it exported/callable because it was split out of `run_state_machine_as_test` specifically so HypoFuzz can access and call it.", "category": "correctness", "verdict": "supported", "p... | null |
HypothesisWorks__hypothesis__4629 | HypothesisWorks/hypothesis | 4,629 | defect | efe4e5b77a7ad6e955fea41e572720212b21a307 | 84f65f26d21d07c7ed618b4f2934696e4b3603ce | Fix `from_type()` to handle parameterized type aliases | Add support for parameterized type aliases created with Python 3.12+'s PEP 695 type statement. When encountering `A[int]` where `type A[T] = list[T]`, the strategy resolver now properly substitutes type parameters to resolve the underlying type (e.g., `list[int]`) instead of raising a `TypeError`.
Closes https://git... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..bc4026a482
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch fixes :func:`~hypothesis.strategies.from_type` to properly handle
+parameterized type aliases ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The flaky test tests/crosshair/test_crosshair.py::test_crosshair_works_for_all_verbosities_data[Verbosity.quiet-2-2] should be skipped pending a fix.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A parametrized type alias with... | null |
HypothesisWorks__hypothesis__4634 | HypothesisWorks/hypothesis | 4,634 | defect | 2280003272a82e054e8ce167da2b6d985997dc78 | d4df115e858cd441ead7403a334f89db3707283a | Type `StateForActualGivenExecution` | Pulled from https://github.com/HypothesisWorks/hypothesis/pull/4563. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..bf80577f96
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+Add type hints to an internal class.
diff --git a/hypothesis-python/src/hypothesis/_settings.py b/hypothe... | 4 | 3 | 0 | [{"id": "G0", "claim": "The two-statement assignment style (declaring the typed attribute in __init__ and assigning self._runner on a separate line) is clearer than the multi-statement assignment the PR uses.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
HypothesisWorks__hypothesis__4643 | HypothesisWorks/hypothesis | 4,643 | defect | 800b40171a5f8d20d410dde57eb7b2f550da358d | 3141426232c3ebad50f708293dccb829b3835e7f | permit up to 99% assume() failures | Closes https://github.com/HypothesisWorks/hypothesis/issues/4623. | diff --git a/AUTHORS.rst b/AUTHORS.rst
index bd06aff14d..5c4a93908f 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -8,6 +8,7 @@ their individual contributions.
.. NOTE - this list is in alphabetical order by first name (or handle).
+* `A. Jesse Jiryu Davis <https://github.com/ajdavis>`_
* `Aaron Meurer <https://gi... | 4 | 3 | 1 | [{"id": "G0", "claim": "BackendCannotProceed raised by the backend's .realize() escapes ConjectureRunner.test_function and is swallowed by the outer suppress, so those failures never increment invalid_examples or overrun_examples; remove the outer suppress and explicitly try/catch each realize_choices call with fallbac... | null |
HypothesisWorks__hypothesis__4644 | HypothesisWorks/hypothesis | 4,644 | defect | 800b40171a5f8d20d410dde57eb7b2f550da358d | a20f3d55159328ec8f4050d7b8d478d5c11b8290 | Add powers of two to integer constants | This is something we should have done a long time ago!
I recommend reviewing by commit. Only the last one is meaningful. | diff --git a/brand/README.md b/brand/README.md
new file mode 100644
index 0000000000..57c1128260
--- /dev/null
+++ b/brand/README.md
@@ -0,0 +1,38 @@
+# Logos and other pretty things
+
+Hypothesis has a beautiful logo, thanks to the generous work of Libby Berrie in [issue #1519](https://github.com/HypothesisWorks/hypot... | 1 | 1 | 1 | [{"id": "G0", "claim": "The README's statement that Zac hands out pins to contributors and that they can be collected or obtained by sponsoring him is no longer true, so those lines should be removed.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HypothesisWorks__hypothesis__4658 | HypothesisWorks/hypothesis | 4,658 | defect | a2c1b52b5c6bbb5862183a964462babb0ef89e55 | d014d0937ef6c94661691ceccea7532f2150b51e | Fix duplicate word typos in comments and documentation | This PR fixes several duplicate word typos found in comments and documentation:
**Changes:**
- `database.py`: Fixed "the the" → "the" in GitHubArtifactDatabase comment
- `shrinker.py`: Fixed "to to" → "to" in shrinker comment
- `changelog.rst`: Fixed multiple instances of duplicate "the" and "a" in historical change... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..ae361b8031
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,3 @@
+RELEASE_TYPE: patch
+
+This patch fixes several duplicate word typos in comments and documentation.
diff --git a/hypothesis-pyth... | 5 | 4 | 1 | [{"id": "G0", "claim": "Add a duplicate-word check to the ./build.sh lint rule using `git grep -nP '\\b([a-z]+)\\s+\\1\\b'` excluding binary/image files, accepting that it misses cross-line issues and has some false alarms.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"i... | null |
HypothesisWorks__hypothesis__4672 | HypothesisWorks/hypothesis | 4,672 | defect | e7be868bbe2452ebc43f9c79dcc89f000af9b659 | 7fd8e506efc43ce9b0d19993fc2cf8eb759d273f | Annotate SearchStrategy.filter with TypeGuard overload | `TypeIs[T]` case is not expressible (yet?), because you can't express the intersection type:
```python
@overload
def filter(self, condition: Callable[[Ex], TypeIs[T]]) -> "SearchStrategy[Ex & T]": ...
``` | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..4b3f9b5710
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,20 @@
+RELEASE_TYPE: patch
+
+This patch improves our type hints for |.filter| to work with |TypeGuard|. For example:
+
+```python
+fr... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add tests to the revealed-types suite (revealed_types.py) that use type guards in `.filter`, since the PR's new TypeGuard-inference behaviour is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HypothesisWorks__hypothesis__4694 | HypothesisWorks/hypothesis | 4,694 | defect | 86de995810ba66a78d374e4f325b21ceeb8012da | 4ab1fbed0d63895067327f2eda2eb7d08b5e3652 | Various improvements in printing test cases | https://github.com/HypothesisWorks/hypothesis/pull/4692 made me suspicious so I went digging. [I added snapshot tests using syrupy to validate Hypothesis's output on various tests and so we can catch regressions in it](https://github.com/HypothesisWorks/hypothesis/pull/4695), and then I manually reviewed all the output... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 00000000000..d7c5953aa70
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,12 @@
+RELEASE_TYPE: patch
+
+This release further improves printing of generated values, building on the changes
+in :version:`6.1... | 7 | 5 | 1 | [{"id": "G0", "claim": "The many individual per-strategy snapshot tests added by this pull request should be written with @pytest.mark.parametrize to make the large amount of test code easier to review.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
HypothesisWorks__hypothesis__4695 | HypothesisWorks/hypothesis | 4,695 | defect | 86de995810ba66a78d374e4f325b21ceeb8012da | b4fc0530faed8398e9e64b74044da969f31b3e42 | Add snapshot testing with syrupy | This pulls out the commits that are just adding Snapshot testing from #4694.
It does still end up with a release because this necessitates fixing a minor bug (the way the syrupy plugin works means that it shows up as a false positive in scrutineer) but it otherwise just adds tests asserting the current behaviour. | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7dd87e531a..9bc55f22e1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -278,7 +278,7 @@ jobs:
run: |
pip install --upgrade setuptools pip wheel build
python -m build --wheel hypothesis-python ... | 8 | 6 | 0 | [{"id": "G0", "claim": "The syrupy==5.1.0 pin should live in test.in (the requirements input file) rather than being added directly to the tox deps.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_output pytest fixture adds a layer of ind... | null |
HypothesisWorks__hypothesis__4698 | HypothesisWorks/hypothesis | 4,698 | defect | 6a92140a38f46ab2a03edfb57563441352d3ced7 | db3000de96abcccdb991f0c87431e50feab3c2f2 | Add more constant strings | and a few cleanup changes, including a fix for `from_regex` typing. | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..c48aaaf7ee
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+This patch fixes our |from_regex| type annotations so that `from_regex(..., alphabet=None)` is accepted.
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The unicode line breaks are added as separate constant strings, which dilutes the pool of drawn constants and rarely finds bugs on their own; they should be combined into a single string interspersed with normal characters (or the constants/upweighting design otherwise reworked).", "category": "... | null |
HypothesisWorks__hypothesis__4704 | HypothesisWorks/hypothesis | 4,704 | defect | 6a92140a38f46ab2a03edfb57563441352d3ced7 | 62b329e3c71ddc66478c88417fa061ab9fb9aee3 | Automatically write `.gitignore` to `.hypothesis` | See discussion in https://github.com/hegeldev/hegel-go/pull/46#issuecomment-4224628391.
I don't love that this PR adds a new private subclass of `DirectoryBasedExampleDatabase`. The problem is this: `DirectoryBasedExampleDatabase.save` might be the first to create `.hypothesis`, and therefore needs to be aware of ou... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..0808e297d0
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: patch
+
+Hypothesis generally recommends that the ``.hypothesis`` directory not be checked into version control. A... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment '# fail to guarantee we write a file to .hypothesis/examples' in _gitignore_storage_dir_script should be reworded to '# fail, in order to guarantee we write a file to .hypothesis/examples', since the original reads as though the failure means no file gets written.", "category": "docu... | null |
HypothesisWorks__hypothesis__4717 | HypothesisWorks/hypothesis | 4,717 | defect | c727ead5923bd738c51116bba50d4c9f06a1ff51 | 4b554b04eec7d8ce685ec126720b562a91e04d09 | Fix AssertionError in Shrinker.explain() for unstable span labels | The explain phase asserted that spans at the same index between the shrink target and a replayed result share a label, but labels are not necessarily stable between runs (e.g. they aren't for `just` if the type inherits hash from object).
Fixes #4708 | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..01916b95f0
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,8 @@
+RELEASE_TYPE: patch
+
+This patch fixes an internal :class:`AssertionError` in the ``explain``
+shrinking phase (:issue:`4708`),... | 3 | 3 | 0 | [{"id": "G0", "claim": "Move the `from hypothesis import find, settings` import in test_explain_does_not_crash_with_per_run_labels up to the top level of the module instead of importing inside the test function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
HypothesisWorks__hypothesis__4718 | HypothesisWorks/hypothesis | 4,718 | defect | 80fada332e4a5cd19e22ac6be9f7dcfea71d9b68 | 4c843f9d7e0ed86eaa737fc697134b13b6ccfa25 | Try targeted candidates in explain phase before random sampling | When the explain phase tries to determine whether an arg slice can vary freely without affecting failure, it currently relies on pure random sampling. For tests like ``assert n1 == n2`` that misses the only passing value (the other arg's current value), so we'd report a misleading ``# or any other generated value`` com... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..42c552f876
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch improves the |Phase.explain| phase so that simple cases like
+``assert n1 == n2`` no longer ge... | 4 | 1 | 0 | [{"id": "G0", "claim": "Instead of try/excepting around choice_from_index, the code should break when compute_max_children(node.type, node.constraints) < idx, because choice_from_index is not designed to handle semantically-invalid indexes nicely.", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
HypothesisWorks__hypothesis__4726 | HypothesisWorks/hypothesis | 4,726 | defect | c2368879a8b50792215d964415129ce3d2891f6b | 08f6bbb1b79fd9c4104c8eb83814c46d72f4947e | Shrink generated text via unicode normalization | Fixes #4725
<details>
<summary>Implementation notes</summary>
Adds a `normalize_unicode_chars` shrink pass that walks each character of every string choice and tries replacing it with a "natural" simpler equivalent: NFD/NFKD base character, or case-mapped (`upper`/`lower`/`casefold`) form. Candidates are filtered to ... | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 0000000000..b94fc09f94
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch adds a shrinking pass that tries natural text transformations -
+unicode decomposition (NFD/NF... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the length-1 constraint and update the candidates set with all characters of each transformed/normalized form (e.g. accept ß→s from 'ss'), including extending candidates with the full normalized form as well as its first character.", "category": "correctness", "verdict": "supported", "pri... | null |
IBAMR__IBAMR__1042 | IBAMR/IBAMR | 1,042 | defect | 603e2d6f6dc5c5a47b7b1889c9692ef4130a6323 | 6e84c1988cd5f5dbfc4c06d379985368acfb09ab | Adding hierarchy callback tests | Fixes #943. Adds hierarchy callback tests. This also fixes a small comment that prevented a callback description from showing up in the doxygen generated documentation.
<!--
This template should be included in all pull requests. Items in the list should
either be completed by the original author or explicitly dism... | diff --git a/include/ibamr/AdvDiffHierarchyIntegrator.h b/include/ibamr/AdvDiffHierarchyIntegrator.h
index 01940317cc..ab4074b24b 100644
--- a/include/ibamr/AdvDiffHierarchyIntegrator.h
+++ b/include/ibamr/AdvDiffHierarchyIntegrator.h
@@ -449,7 +449,7 @@ class AdvDiffHierarchyIntegrator : public IBTK::HierarchyIntegrat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment's note misspells \"according\" as \"accordint\" in the reset-priority documentation of AdvDiffHierarchyIntegrator and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
IBAMR__IBAMR__1104 | IBAMR/IBAMR | 1,104 | defect | e2e8268c508ef80ba9c3042912a564be77bfe191 | 05fd20ff1b9d8b891e29655e63f001d61e5d6503 | Multilevel ibfe 1 | <!--
This template should be included in all pull requests. Items in the list should
either be completed by the original author or explicitly dismissed by one of the
IBAMR principal developers.
IBAMR is a community effort and it wouldn't exist without people contributing
code. Thanks in advance for helping to ma... | diff --git a/doc/news/changes/incompatibilities/20200910DavidWells b/doc/news/changes/incompatibilities/20200910DavidWells
new file mode 100644
index 0000000000..47dff9b2f4
--- /dev/null
+++ b/doc/news/changes/incompatibilities/20200910DavidWells
@@ -0,0 +1,4 @@
+Changed: IBTK::FEData now requires that the relevant lib... | 3 | 2 | 0 | [{"id": "G0", "claim": "Argument names should follow the convention that `max_levels` means the maximum number of levels and `max_level_number` means the maximum level number, but the pull request renames some `max_level_number` arguments to `max_levels`.", "category": "maintainability", "verdict": "supported", "priori... | null |
IBAMR__IBAMR__1125 | IBAMR/IBAMR | 1,125 | defect | 2b6be6f818ef812f94acea7f5419ff422ad85361 | 5de2989b6334718198ef787e7b10aba2fd343da1 | Improve the documentation of SubdomainToLevelTranslation. | <!--
This template should be included in all pull requests. Items in the list should
either be completed by the original author or explicitly dismissed by one of the
IBAMR principal developers.
IBAMR is a community effort and it wouldn't exist without people contributing
code. Thanks in advance for helping to ma... | diff --git a/ibtk/include/ibtk/FEDataManager.h b/ibtk/include/ibtk/FEDataManager.h
index 5c15e5c4d2..d4cb0129aa 100644
--- a/ibtk/include/ibtk/FEDataManager.h
+++ b/ibtk/include/ibtk/FEDataManager.h
@@ -274,6 +274,18 @@ class FEData : public SAMRAI::tbox::Serializable
class SubdomainToLevelTranslation
{
public:
+ ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The constructor documentation should state that the maximum level number is the maximum level number in the Cartesian grid patch hierarchy.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The operator[] documentation should ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.