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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tachyon-zcash__ragu__508 | tachyon-zcash/ragu | 508 | defect | 1254e53bd5401c1047e20ed07916cc79c52e1bba | b9f3a577a760835306981bdaebaca8c74c8ecfa1 | Follow up on floor planner scaffolding | Addressing all my post-merge comments in #483.
each commit is self-contained and self-explanatory.
cc: @TalDerei The only breaking change that may affect your PR is the "Slot -> Segment" renaming for consistency.
(suggested in https://github.com/tachyon-zcash/ragu/pull/483#discussion_r2843927846, done in [6a7... | diff --git a/crates/ragu_circuits/src/floor_planner.rs b/crates/ragu_circuits/src/floor_planner.rs
index d3793ac80..d12f35560 100644
--- a/crates/ragu_circuits/src/floor_planner.rs
+++ b/crates/ragu_circuits/src/floor_planner.rs
@@ -14,6 +14,19 @@
//!
//! The root routine (index 0) is always pinned at offset 0; see t... | 3 | 2 | 0 | [{"id": "G0", "claim": "The scope-jump / floor-plan documentation examples are hard to parse; reframe root/child as circuit scope versus routine scope and redraw the diagram to present the parent-side entries as constraints rather than gaps, per the reviewer's modified diagram.", "category": "documentation", "verdict":... | null |
tachyon-zcash__ragu__510 | tachyon-zcash/ragu | 510 | defect | 1254e53bd5401c1047e20ed07916cc79c52e1bba | 374d1f44cf71cd667eb121e7374afedc80877406 | feat(arithmetic): maybe_rayon and criterion support | References https://github.com/tachyon-zcash/ragu/issues/18 and minimally resurrects https://github.com/tachyon-zcash/ragu/pull/46. Synergetic with https://github.com/tachyon-zcash/ragu/pull/507.
`rayon` dependency (data-parallelism library) wasn't currently employed, which leaves a clean slate for implementing a par... | diff --git a/Cargo.lock b/Cargo.lock
index 1e24a6588..86799793d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -121,6 +121,31 @@ dependencies = [
"libc",
]
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dd111b7b7f7d55b72c0a6ae3... | 1 | 1 | 0 | [{"id": "G6", "claim": "window_sum should take an iterator instead of a slice so the non-multicore path avoids collecting bases into a Vec.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tachyon-zcash__ragu__525 | tachyon-zcash/ragu | 525 | defect | 27a7ac65abf4910d3946018351c0158f27abe60c | d4942d66d58cf9d33f4dee4197acb88dd59c1d8c | feat(circuits): demonstration threadpool for witness generation | Upstreams https://github.com/ebfull/ragu/pull/1 and extensibly builds on https://github.com/tachyon-zcash/ragu/pull/519. Rebases on top of https://github.com/tachyon-zcash/ragu/pull/510 to use `maybe_rayon`. Closes https://github.com/tachyon-zcash/ragu/issues/63 and https://github.com/tachyon-zcash/ragu/issues/55.
I... | diff --git a/Cargo.lock b/Cargo.lock
index 9274b7f9c..28eb87d83 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -753,6 +753,7 @@ dependencies = [
"ff",
"group",
"gungraun",
+ "maybe-rayon",
"proptest",
"ragu_arithmetic",
"ragu_core",
diff --git a/Cargo.toml b/Cargo.toml
index fc734db7f..ce9081c65 100644
--- a/C... | 3 | 1 | 0 | [{"id": "G0", "claim": "The newly added std::sync::mpsc channel (which pulls in std, against the crate's no_std goal) could be replaced with a shared stack mutex, since there is no sender cloning or channel infrastructure - though the author is unsure.", "category": "design", "verdict": "opposed", "priority": "P3", "sc... | null |
tachyon-zcash__ragu__540 | tachyon-zcash/ragu | 540 | defect | a4f541e71462f47bb0868a53c20278a14d9e2159 | a4ab18d511db76ed0eba6a5f8ca83d5548d7a3dc | chore(book): standard library docs and no_std crate standardization | References https://github.com/tachyon-zcash/ragu/issues/501. | diff --git a/book/src/guide/requirements.md b/book/src/guide/requirements.md
index b7ea00a27..1d7f45829 100644
--- a/book/src/guide/requirements.md
+++ b/book/src/guide/requirements.md
@@ -5,5 +5,68 @@
* Ragu requires minimal dependencies and currently strives to avoid using
dependencies that are not already used i... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new Standard Library Usage section should be rewritten as general principles applying to all crates (no std by default via an optional std feature, alloc always required, optional performance features may need std, std required on the host) instead of enumerating specific crates and their de... | null |
tachyon-zcash__ragu__549 | tachyon-zcash/ragu | 549 | defect | 786c52637ac4027a25e370877d09cc32561e9b0b | 847826b4a2afcefeccdc518d6c2d8dfeb6f9fb4d | chore(arithmetic): batch normalize in fuse | References https://github.com/tachyon-zcash/ragu/issues/545, an obvious _minor_ optimization that hooks into the existing `batch_normalize` utility.
This also adds a criterion bench to measure wall-clock time between sequential and parallel fuse. In thinking about https://github.com/tachyon-zcash/ragu/issues/333, I ... | diff --git a/Cargo.lock b/Cargo.lock
index 4307cf15d..caef4f1c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -812,8 +812,10 @@ dependencies = [
name = "ragu_pcd"
version = "0.0.0"
dependencies = [
+ "criterion",
"ff",
"gungraun",
+ "maybe-rayon",
"pasta_curves",
"ragu_arithmetic",
"ragu_circuits",
diff --gi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The two commit method names are inverted: the projective-returning one should be `commit` and the normalizing one should get the longer, unappealing name like `commit_to_affine`, to encourage normalization at the callsite.", "category": "design", "verdict": "supported", "priority": "P1", "scope"... | null |
tachyon-zcash__ragu__556 | tachyon-zcash/ragu | 556 | defect | 863f0a1594e72bac7dae19de633badf9964f387d | 76c518543936e26369b5e8444b9f000cd1ad033a | chore: shared proptest strategy |
- Shared proptest strategies: Centralized field element, coefficient, and
polynomial root strategies in `ragu_testing::strategies`, replacing
duplicated per-crate implementations across arithmetic/core/primitives.
Added CI job (`proptests-fast`) and justfile recipes (`proptests_fast`,
`proptests_heavy`) with `--r... | diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 9db856f4c..b83c763dc 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -69,6 +69,22 @@ jobs:
- name: Run clippy
run: cargo clippy --workspace --lib --tests --benches --locked --all-features -- -D warning... | 5 | 5 | 1 | [{"id": "G0", "claim": "The pull request causes benchmark regressions: `circuits::registry_ops::finalize::finalize` and `pcd::app_setup::finalize::finalize` run ~5x slower than baseline, exceeding the 1.5x threshold.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
tachyon-zcash__ragu__561 | tachyon-zcash/ragu | 561 | defect | b60c0f19f189d561c11cfc25e6fd7a4b6e196b43 | 6b2e3d8271d1bd8307aaa4344c56f8d210af61c2 | Refactor: drop 'source lifetime | Blocked by #535,
(will rebase the only new commit [6b2e3d8](https://github.com/tachyon-zcash/ragu/pull/561/commits/6b2e3d8271d1bd8307aaa4344c56f8d210af61c2) once 535 is merged)
Suggested by @ebfull in https://github.com/tachyon-zcash/ragu/pull/535#pullrequestreview-3904501261:
The 'source lifetime on `Header::D... | diff --git a/_typos.toml b/_typos.toml
index 231bc1d52..be52b4869 100644
--- a/_typos.toml
+++ b/_typos.toml
@@ -17,3 +17,4 @@ extend-exclude = [
[default.extend-words]
ND = "ND" # ND = NewDriver
Bootle = "Bootle" # Bootle is a person's name
+ba = "ba" # b*a in tests
diff --git a/crates/ragu_circuits/benches/criteri... | 2 | 2 | 2 | [{"id": "G0", "claim": "Dropping the 'source lifetime made the PR own everything and introduced redundant deep clones (e.g. Arc::new(witness.clone()) on witnesses and Arc::new(left.clone()) on proofs) instead of atomic refcounts; the reviewer asked to wrap each witness/proof in Arc once at creation and thread it throug... | null |
tachyon-zcash__ragu__596 | tachyon-zcash/ragu | 596 | defect | fb62c0c5decaac62fa9a6b9fdc5c9353e0c021ff | b081ec2ef27ee410b894cedd3a6b2ac0bb345fde | ragu_circuits: stop exposing CircuitObject in public API | This is a change in service of #594.
`CircuitObject` doesn't need to be exposed in the public API. There are some cases where this is necessary, mainly for tests, but we can rectify those later. In the mean time, we can introduce a wrapper around a boxed `CircuitObject` called a `BondingPolynomial` (appropriate, bec... | diff --git a/crates/ragu_circuits/benches/circuits.rs b/crates/ragu_circuits/benches/circuits.rs
index 7d756da4b..56db28039 100644
--- a/crates/ragu_circuits/benches/circuits.rs
+++ b/crates/ragu_circuits/benches/circuits.rs
@@ -88,15 +88,15 @@ fn eval_ky((a, b, y): (Fp, Fp, Fp)) {
}
#[library_benchmark]
-#[bench::... | 6 | 3 | 1 | [{"id": "G0", "claim": "Use the more minimal BondingPolynomial shape from #594 (tuple struct with pub(crate) new/into_inner) and drop the internal sxy/sx/sy eval methods, since there are no prod callers and tests can use the _trivial variants.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "in... | null |
tachyon-zcash__ragu__606 | tachyon-zcash/ragu | 606 | defect | af439f5f1501f8f2735035630b5134af9ef630c5 | 41d883b3dcf657b6a2ed279d66a4d31f6da7a837 | feat(circuits): cheaper gate layout for alloc | Optimization vector originally suggested by @ebfull and to be rebased over #605 and orthognal to https://github.com/tachyon-zcash/ragu/issues/607. We knew each nonzero coefficient in the trace polynomial constituted a scalar multiplication in the commitment. The previous layout `(a, b, a*b, 0)` had 3 nonzero coefficie... | diff --git a/crates/ragu_circuits/src/metrics.rs b/crates/ragu_circuits/src/metrics.rs
index cae24efaa..c8e2be961 100644
--- a/crates/ragu_circuits/src/metrics.rs
+++ b/crates/ragu_circuits/src/metrics.rs
@@ -213,8 +213,8 @@ pub struct CircuitMetrics {
/// Contains both the constraint counting record index and the ide... | 15 | 9 | 3 | [{"id": "G0", "claim": "Exposing the d-wire in the structured view and advancing current_d_x in mul leads to a performance regression, and advancing current_d_x in mul is not technically necessary.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
tachyon-zcash__ragu__634 | tachyon-zcash/ragu | 634 | defect | 4cff42df59f914aa18e41d8e6f78ebcbbd163a50 | 6cb3e81cf79cd2344ccaf928a62ffd8bd98d74ba | Cache global mask and projection for bonding polynomials | Closes #623
Factor the invariant $s_{global}(x,y)$ global stage mask out of `StageMask` to `Registry` so that we only have to compute it once for all the stage mask/bonding polynomials, instead of doing them redundantly per stage mask.
Similarly, the projection for `sx()/sy()` is also split into a global project... | diff --git a/crates/ragu_circuits/src/registry.rs b/crates/ragu_circuits/src/registry.rs
index 97c19b73f..9d1e208a8 100644
--- a/crates/ragu_circuits/src/registry.rs
+++ b/crates/ragu_circuits/src/registry.rs
@@ -16,6 +16,7 @@
//! be efficiently evaluated at different restrictions.
use alloc::{boxed::Box, collectio... | 12 | 11 | 3 | [{"id": "G1", "claim": "The comment in bonding_coeff_sum's Direct arm should say omega^bitreverse(i) rather than omega^i.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The registry's implicit assumption that everything in bonding_range is current... | null |
tachyon-zcash__ragu__647 | tachyon-zcash/ragu | 647 | defect | 6b79ba28fdf7083ad20edf05708ff015ee2f90a6 | 03fa6fb901de3c2ee93c470918b0406600a6c083 | Second class allocation | Closes #645. | diff --git a/crates/ragu_circuits/benches/criterion/trace.rs b/crates/ragu_circuits/benches/criterion/trace.rs
index 820741960..8e3a9d05a 100644
--- a/crates/ragu_circuits/benches/criterion/trace.rs
+++ b/crates/ragu_circuits/benches/criterion/trace.rs
@@ -9,7 +9,7 @@ use ragu_core::{
routines::{Prediction, Routin... | 6 | 2 | 0 | [{"id": "G0", "claim": "`Driver::routine` may be a similar anti-pattern because it bakes the routine-dispatch policy into a driver trait method, and a quasi-split that extracts routine dispatch to the gadget level while the driver keeps save/restore scope and execution might be worth considering.", "category": "design"... | null |
tachyon-zcash__ragu__655 | tachyon-zcash/ragu | 655 | defect | 1cf528d3647fd4e0efc2bc759bb007fdd8899281 | f3c2fd20748c2d802895e7ef226340c5ce9d8f74 | chore(primitives): donate more spare d wires to standard allocator | Exploiting other gadget candidates where c is structurally zero, similar to the boolean gadget in https://github.com/tachyon-zcash/ragu/pull/643. `is_zero / is_equal` / `conditional_enforce_equal` calls donate an extra token. | diff --git a/crates/ragu_pcd/src/internal/native/circuits/outer_collapse.rs b/crates/ragu_pcd/src/internal/native/circuits/outer_collapse.rs
index 498f30683..71b2d9894 100644
--- a/crates/ragu_pcd/src/internal/native/circuits/outer_collapse.rs
+++ b/crates/ragu_pcd/src/internal/native/circuits/outer_collapse.rs
@@ -177... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use `use crate::allocator::Allocator` and plain `Allocator` in the is_zero signature instead of the fully qualified `crate::allocator::Allocator` path, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In co... | null |
tadata-org__fastapi_mcp__31 | tadata-org/fastapi_mcp | 31 | defect | 8753db3bbae82a2800b94306d7fe5c0712c1bc9f | a21000596594620bd9a9b7681f354d67f24d90fa | Fix/hide handle mcp connection | ## Describe your changes
When creating tools from openapi_schema, skip the internal handle_mcp_connection_mcp_get
## Issue ticket number and link (if applicable)
https://github.com/tadata-org/fastapi_mcp/issues/23
## Screenshots of the feature / bugfix
Before:
, so the fix still works if the python mcp l... | null |
tadata-org__fastapi_mcp__86 | tadata-org/fastapi_mcp | 86 | defect | dcd50e687abaca4f8172885b733b8cb54e4f0002 | 4ad4eef513b74892ff38502d958963aa56840120 | fix: make sure items etc. is passed to mcp tools | ## Describe your changes
This patch fixes a bug in `convert_openapi_to_mcp_tools` where array‑typed parameters lost their items sub‑schema and caused downstream function‑calling errors.
- Deep‑copy each parameter’s full schema instead of rebuilding only its type
- Preserve items, format, enum, default, etc., for a... | diff --git a/fastapi_mcp/openapi/convert.py b/fastapi_mcp/openapi/convert.py
index fb0ff211..439d9a08 100644
--- a/fastapi_mcp/openapi/convert.py
+++ b/fastapi_mcp/openapi/convert.py
@@ -202,11 +202,13 @@ def convert_openapi_to_mcp_tools(
param_desc = param.get("description", "")
param... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a unit test covering the parameter-schema construction at fastapi_mcp/openapi/convert.py line 211 (properties[param_name] = param_schema.copy() with title/description/type handling).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tafia__calamine__390 | tafia/calamine | 390 | defect | ad57593e6a5231556e16a9c45ea33831c04e3369 | 6ceb976a07bcbbbf17880b0a455f35be395e1193 | refactor: make `DataTypeRef` public and introduce a `DataTypeTrait` trait | Hello there, I recently discovered `DataTypeRef` in the changelog, really nice addition!
However, it is not publicly available through the API, so I figured I wanted to make it public. I then realised that it would be convenient to have a `DataType` trait, in order to allow for generics. I was thinking about someth... | diff --git a/src/datatype.rs b/src/datatype.rs
index f3d508e2..fd1ba7ba 100644
--- a/src/datatype.rs
+++ b/src/datatype.rs
@@ -40,54 +40,67 @@ pub enum DataType {
Empty,
}
-impl DataType {
- /// Assess if datatype is empty
- pub fn is_empty(&self) -> bool {
+/// An enum to represent all different data typ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The date-related methods (is_duration and similar) should not be gated behind the dates feature, since that feature is only needed for converting excel dates to chrono.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DataTypeTr... | null |
tafia__calamine__464 | tafia/calamine | 464 | defect | a90e877aed7984fca28b9925110b5c42d48bf4e7 | 7f6ef63bfaae72cab050f822977bcc90b22b1971 | feat: named table data as `DataRef` type | During some work I was performing on a MR for `fastexcel` (https://github.com/ToucanToco/fastexcel/pull/282) I noticed no method for retrieving `Table`s with `DataRef` as inner type was not possible. This MR should hopefully resolve this issue.
I also implemented `From<Table<T>>` for `Range<T>` to prevent large clo... | diff --git a/src/lib.rs b/src/lib.rs
index c2896edf..12da3e02 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -468,7 +468,7 @@ impl<T: CellType> Range<T> {
// search bounds
let row_start = cells.first().unwrap().pos.0;
let row_end = cells.last().unwrap().pos.0;
- let mut co... | 2 | 2 | 0 | [{"id": "G0", "claim": "It is better to refrain from adding the `CellType` constraint on the `Table` struct, since the impl blocks are enough, more generic and more future proof.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `CellType` constraint on... | null |
tafia__calamine__596 | tafia/calamine | 596 | defect | 1dc58c64d0fd54a99c0edf76610a69ead31dfeaf | f000a7c853a8d0e6da16930afe70ff7d18f8fc92 | ods: fix DoS via repeated rows/columns (issue #594) | Fix DoS vulnerability where malicious ODS files can exhaust memory by declaring billions of repeated cells via `table:number-rows-repeated` and `table:number-columns-repeated` XML attributes.
- Add caps matching XLSX limits: 1M rows, 16K columns, 100M total cells
- Return `OdsError::CellLimitExceeded` instead of ... | diff --git a/src/ods.rs b/src/ods.rs
index f83c4967..c77fbc1b 100644
--- a/src/ods.rs
+++ b/src/ods.rs
@@ -13,6 +13,7 @@
use std::collections::{BTreeMap, HashMap};
use std::io::{BufReader, Read, Seek};
+use log::warn;
use quick_xml::events::attributes::Attributes;
use quick_xml::events::Event;
use quick_xml::nam... | 4 | 3 | 1 | [{"id": "G0", "claim": "MAX_CELLS might be better as a configurable value in the `Ods` structure rather than a hard-coded constant, though it is fine for now.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Explicit `usize` annotations that are not requir... | null |
tafia__quick-xml__679 | tafia/quick-xml | 679 | defect | bbc7bda4585b28caabe614f206eedf8ca23fc8df | d6f7d155c1c04eb8002dcf7987266cfeec282a34 | Fix wrong disregarding of not closed markup, such as lone `<` | The 1st commit is a preparation step.
The 2nd adds a regression test.
The 3rd commit fixes #622.
The bug was in two parts:
- the first one is incorrect returning of `Event::Eof` in `read_until_close!` macro. We are inside a markup at this moment, so we cannot return EOF event.
- the second is an incorrect transi... | diff --git a/src/reader/async_tokio.rs b/src/reader/async_tokio.rs
index 207c1b64e..1cdab220c 100644
--- a/src/reader/async_tokio.rs
+++ b/src/reader/async_tokio.rs
@@ -4,13 +4,13 @@
use tokio::io::{self, AsyncBufRead, AsyncBufReadExt};
+use crate::errors::{Error, Result, SyntaxError};
use crate::events::Event;
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The doc comment of read_bytes_until should read 'Returns a slice of data read up to `byte` (exclusive),' instead of '... which does not include into result,'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The macro-local v... | null |
tafia__quick-xml__684 | tafia/quick-xml | 684 | defect | 64c42495c0596933436d2887f5eb658c21083ae6 | 81811c6828f7315c51b7aca4b8f8f73684956fff | Add new tests for syntax and ill-formed parser errors and fix... emm... errors | This PR is a prepare step for rewriting parser from scratch. First of all I want to guarantee that behaviour will not be changed, especially conditions on which errors is returned and a final state after the error.
Thanks to that tests, I found several bugs related to result of `.buffer_position()` that should repor... | diff --git a/Changelog.md b/Changelog.md
index 986b19fde..ff934af2e 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -20,6 +20,8 @@ configuration is serializable.
- [#677]: Added methods `config()` and `config_mut()` to inspect and change the parser
configuration. Previous builder methods on `Reader` / `NsReader` wa... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new `IllFormedError::MissedVersion` variant is poorly named and should be renamed to something more explicit that provides context, such as `DeclWithoutVersion`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The magi... | null |
tafia__quick-xml__685 | tafia/quick-xml | 685 | defect | 9fb181aaed237042c4131c7cffa1ac05d4c495a1 | 1fe8a1515a47d9c852001ea8539445e98903b4be | Add ability to set desired level of escaping special characters in XML | Fixes #362 | diff --git a/Changelog.md b/Changelog.md
index 7f3134ac3..fb747ce61 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -20,8 +20,11 @@ configuration is serializable.
- [#677]: Added methods `config()` and `config_mut()` to inspect and change the parser
configuration. Previous builder methods on `Reader` / `NsReader` w... | 3 | 2 | 1 | [{"id": "G0", "claim": "Minimal escaping should not be made the default quote level for the serializer; the default should be Partial or Full escaping instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reusing BytesText for Comment, PI and DocType e... | null |
tafia__quick-xml__704 | tafia/quick-xml | 704 | defect | de61fa1094dbeec0bb144568673ac719d9d359a6 | 715c4bcb375b0418c9892b61896a6b840a3546f3 | Fixed expand empty not expanding tags with attributes | In PR #620 the expand_empty_elements function was added to the serializer. With the current implementation only unit variants are expanded, but if a tag has an attribute it would not expand the tag which seems inconsistent. | diff --git a/Changelog.md b/Changelog.md
index 5c51eec33..07f3f4e82 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -35,6 +35,7 @@ to get an offset of the error position. For `SyntaxError`s the range
- [#622]: Fix wrong disregarding of not closed markup, such as lone `<`.
- [#684]: Fix incorrect position reported for... | 3 | 3 | 1 | [{"id": "G0", "claim": "The two consecutive writer calls ('>' then '</') in the expand-empty branch should be merged into a single write_str of the combined literal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Changelog.md line refere... | null |
tafia__quick-xml__705 | tafia/quick-xml | 705 | defect | de61fa1094dbeec0bb144568673ac719d9d359a6 | c85b2f48f97c8e2055b453b82545b08309937d3c | Adds NsReader::prefixes to iterate on all the prefixes currently declared | This is useful for some use cases like RDF/XML where prefixes might be interesting to extract | diff --git a/src/name.rs b/src/name.rs
index 7ac207c12..220169d5d 100644
--- a/src/name.rs
+++ b/src/name.rs
@@ -617,6 +617,30 @@ impl NamespaceResolver {
None => ResolveResult::Unbound,
}
}
+
+ #[inline]
+ pub fn iter(&self) -> impl Iterator<Item = (PrefixDeclaration, Namespace)> {
+ ... | 6 | 6 | 0 | [{"id": "G0", "claim": "If the returned iterator may need to be stored in a struct, its type should be named explicitly instead of returning an unnameable `impl Iterator`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests should assert `prefixes()... | null |
tafia__quick-xml__771 | tafia/quick-xml | 771 | defect | 80f0e7cc4cc3dedf416b9f4f4efd35d89b67cd8c | 9e099a9a36caa9409bd2dba4b1dc22dc3af442f1 | Fixes in unescape routine | This PR fixes 2 errors that I found when working on a new way to represent entity references:
1. Currently, `quick_xml` does not allow too long numbers to represent character references. It, however, does not takes in account, that any number of leading zeroes are allowed, so the real character entity length can be an... | diff --git a/Changelog.md b/Changelog.md
index 2d9f59af7..cf4a84862 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -22,9 +22,21 @@
- [#773]: Fixed reporting incorrect end position in `Reader::read_to_end` family
of methods and trimming of the trailing spaces in `Reader::read_text` when
`trim_text_start` is set ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The helper that wraps `u32::from_str_radix` and abuses a hand-crafted `ParseIntError` to reject signs is a hack; the pull request should instead define its own easily-convertible integer-parsing error type that can be returned on its own.", "category": "design", "verdict": "supported", "priority... | null |
tafia__quick-xml__780 | tafia/quick-xml | 780 | defect | 22b3e458d193e6937882ba6b643ec8c31a671de5 | 2d5c175a24127c5401de76fa52b9adfd7fddc722 | Allow attributes in the `Event::End` and fix `.error_position()` | This PR allows us to have attributes in the `Event::End` (but they are not accessible via `BytesEnd` directly). As explained in https://github.com/tafia/quick-xml/issues/776#issuecomment-2208078867 we anyway can produce an event which `.name()` does not valid, so it is better ar least keep it useful for some scenarios.... | diff --git a/Changelog.md b/Changelog.md
index 7232379b4..6835cd04a 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -15,10 +15,17 @@
### New Features
+- [#776]: Allow to have attributes in the end tag for compatibility reasons with Macromedia Flash XML parser.
+
### Bug Fixes
### Misc Changes
+- [#780]: `rea... | 4 | 3 | 0 | [{"id": "G0", "claim": "Parsing attributes in end tags should be behind an opt-in, with the default behavior throwing an IllFormedError like other parsers do for malformed XML.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment explaining why attri... | null |
tafia__quick-xml__783 | tafia/quick-xml | 783 | defect | 10ddcb7e943351fa72dda30ffd51db40463663e8 | cdff2857ccca80835bfc8aac3275d89433bb1ff1 | Implement ability to read data directly from the underlying reader | Closes #623
This also implements #260, but the user should manually:
- ensure, that it is reading text
- stop reading when text ends
So I do not consider that #260 is solved. | diff --git a/Changelog.md b/Changelog.md
index 97caff84e..6f8941760 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -15,10 +15,15 @@
### New Features
+- [#623]: Added `Reader::stream()` that can be used to read arbitrary data
+ from the inner reader while track position for XML reader.
+
### Bug Fixes
### Mis... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc example's wording 'We somehow should known its size' should read 'We must know its size' instead of weasel-wording the comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should mention, somewh... | null |
tafia__quick-xml__810 | tafia/quick-xml | 810 | defect | ccb8b6f997f222955b1e19cb8eac9f5e215b675a | 41c57d84f1bdaa07ae7c3eeebb93a3c559f695e9 | Return `std::io::Error` from Writer methods | I recently made a PR to update this crate in [another crate (inferno)](https://github.com/jonhoo/inferno/pull/332) and needed to remove this crates errors from the public API. While doing this I realized that the `Writer` could never return any error other than `Error::Io`. Wrapping this error in `Arc` and putting it i... | diff --git a/src/errors.rs b/src/errors.rs
index 0c5c46e3d..c4948302f 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -159,7 +159,7 @@ impl std::error::Error for IllFormedError {}
/// The error type used by this crate.
#[derive(Clone, Debug)]
pub enum Error {
- /// XML document cannot be read from or written to... | 6 | 6 | 1 | [{"id": "G0", "claim": "Introduce a separate error type for the serializer instead of putting an IoError variant in DeError (closing #227), and add a changelog entry with an explicit link in the links section.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
tafia__quick-xml__820 | tafia/quick-xml | 820 | defect | 6eea6bbcb361a3ab51ccd1f5917d855d8a195c71 | b74a6aff6bf778f77e76e70366351affa6b34a6f | Do not write excess indents arount text fields when serialize with serde | This PR alternative and more full implementation of the fix for excess indents around text fields. It implements the [Python](https://github.com/tafia/quick-xml/issues/655#issuecomment-2395506831) scheme of writing indents:
```rust
struct Xml {
before: String,// = "value1"
#[serde(rename = "$text")] // or $valu... | diff --git a/Changelog.md b/Changelog.md
index 0da34663d..5dde6e40d 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -26,10 +26,12 @@
- [#811]: Renamed `Error::EscapeError` to `Error::Escape` to match other variants.
- [#811]: Narrow down error return type from `Error` where only one variant is ever returned:
attri... | 1 | 1 | 1 | [{"id": "G0", "claim": "With indentation around text productions removed, consecutive text fields can no longer be distinguished — vec![1, 2, 3] serializes identically to vec![123] and Tuple(\"first42\", 0) to Tuple(\"first\", 420) — and dralley asks how they are distinguished and that the limitation be written up in a... | null |
tafia__quick-xml__865 | tafia/quick-xml | 865 | defect | 8258d9742a7c3b7b1412213dbe9f2ac882c5d59c | cf6d62ce873df995d9f42cc94694900845284bf0 | Yet another approach to disable trim | I implemented disabling trim by modifying Text struct.
See: https://github.com/tafia/quick-xml/issues/285#issuecomment-2863592598
I need this for parsing `.odt` files.
Can anybody give me some feedback? This issue is 4 years old and I'm willing to fix it if possible. | diff --git a/src/de/map.rs b/src/de/map.rs
index c5540459c..fd4ef34ef 100644
--- a/src/de/map.rs
+++ b/src/de/map.rs
@@ -262,6 +262,7 @@ where
QNameDeserializer::from_attr(QName(&slice[key]), decoder, &mut self.de.key_buf)?;
seed.deserialize(de).map(Some)
} else {
+ sel... | 3 | 3 | 0 | [{"id": "G0", "claim": "Text::trimmed_string() should return a trimmed Cow<'a, str> instead of allocating a String, and should be made public with a docstring.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Checking emptiness via trimmed_string() ma... | null |
tafia__quick-xml__884 | tafia/quick-xml | 884 | defect | dee4b1bbc02c248c275011556d260f154cca3a40 | a091bfdfe99a79df2eab12f2614b3405e85e7313 | Proper EOL normalization | Because we support XML and HTML parsing and the rules for EOL normalization is differs between them, this PR introduces two new methods for `BytesText`, `BytesCData` and `BytesRef` in addition to `decode`:
- `xml_content()`
- `html_content()`
XML rules: https://www.w3.org/TR/xml11/#sec-line-ends
HTML rules: https... | diff --git a/Changelog.md b/Changelog.md
index 280b1b59..e9658984 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -22,11 +22,16 @@
- `Deserializer::buffering_with_resolver`
- [#878]: Add ability to serialize structs in `$value` fields. The struct name will
be used as a tag name. Previously only enums was allowed... | 1 | 1 | 0 | [{"id": "G0", "claim": "If normalization is the only difference between `html_content()` and `xml_content()`, the duplicated function bodies in `src/encoding.rs` should be replaced by a single utility function taking the normalization function as an argument.", "category": "maintainability", "verdict": "supported", "pr... | null |
tafia__quick-xml__893 | tafia/quick-xml | 893 | defect | aa7f0b4f46e94970bcd8da3b6d4afb3c1bcdf1ca | 73c66f89ad301ca9a226eedb3d160253e651ab48 | Make `NamespaceResolver` public | This introduces small breaking change -- `Attributes::has_nil` now accepts `&NamespaceResolver` instead of `Reader<R>` and does not need to be generic anymore (which is good).
Other changes that may look as breaking in the diff not breaking changes, because they was made on initially private types. | diff --git a/Changelog.md b/Changelog.md
index bae1df53..5fcbf524 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -16,10 +16,19 @@
### New Features
+- [#893]: Implement `FusedIterator` for `NamespaceBindingsIter`.
+- [#893]: Make `NamespaceResolver` public.
+- [#893]: Add `NsReader::resolver()` for access to names... | 5 | 2 | 0 | [{"id": "G0", "claim": "The resolver should gain `resolve_element` and `resolve_attribute` as convenience APIs, mirroring what is on `BytesStart`/`NsReader`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An API is needed to add namespace bindings to a `... | null |
tafia__quick-xml__924 | tafia/quick-xml | 924 | defect | 646ce4b866ee574f9f7e85de1496eea519ac2166 | 3388f3c4d034c32b7435aa6032a08ad0a0f1e4c2 | Split SyntaxError::UnclosedPIOrXmlDecl into separate enum variants | Implements #916
The SyntaxError enum is public, so this is a breaking change.
The Parser trait is also public, so the method signature change is also a breaking change. | diff --git a/src/errors.rs b/src/errors.rs
index f7c7a8c69..cc69c91aa 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -17,9 +17,12 @@ pub enum SyntaxError {
/// The parser started to parse `<!`, but the input ended before it can recognize
/// anything.
InvalidBangMarkup,
- /// The parser started to ... | 4 | 4 | 4 | [{"id": "G0", "claim": "The byte-level `?xml` sniffing in PiParser::eof_error prevents handling UTF-16 encoded documents; the reviewer wants at least an `#[ignore]`d test for that case and a FIXME at the problematic line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
tafia__quick-xml__932 | tafia/quick-xml | 932 | defect | f869d0eb04fcce1ddf6624942d00043b57e84dd2 | 9125d0072d3bfece7af83bed9275313db69e19be | Split `SyntaxError::UnclosedTag` into `UnclosedTag` and `UnclosedAttributeValue` | For more precise error reporting.
Closes #926.
Currently error is reported at start of a tag instead of start of an attribute value. | diff --git a/Changelog.md b/Changelog.md
index 9a044091..5e921edd 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -40,12 +40,15 @@ struct and can be applied at once. When `serde-types` feature is enabled, config
- [#924]: (breaking change) Split `SyntaxError::UnclosedPIOrXmlDecl` into `UnclosedPI` and
`UnclosedXmlD... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new `UnclosedAttributeValue(bool)` variant should use an enum type instead of a bool, or alternatively two separate variants per quote kind rather than a nested enum that would be used only here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tafia__quick-xml__940 | tafia/quick-xml | 940 | defect | 9b71bb62a3f504ee6422e7882b4e02c228cd80b0 | 3413aab3a140a5a30131ef5c508655a7a6288123 | Fix parsing error of the tag from buffered reader, when the first byte `<` is the last in the internal buffer of `BufRead` | Fixes #939 which is regression from #936 | diff --git a/src/reader/mod.rs b/src/reader/mod.rs
index 2cc828bd..bf59eebb 100644
--- a/src/reader/mod.rs
+++ b/src/reader/mod.rs
@@ -1258,9 +1258,9 @@ mod test {
#[ignore = "start CDATA sequence fully checked outside of `read_bang_element`"]
$($async)? fn not_properly_start()... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new regression tests should have a short note explaining what is being tested, in addition to the issue number.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tafia__quick-xml__952 | tafia/quick-xml | 952 | defect | 6238d8a16179d68718b43882e544ebd20982c79c | 6c8e6b270aa12ad4a23d8482c2f5a8d3567117ae | Remove feature gating from detect_encoding() | Have it return a generic enum so that it can be used with or without the encoding feature.
It was suggested that this be split off from #947 | diff --git a/src/encoding.rs b/src/encoding.rs
index d894f950..7d4bedc5 100644
--- a/src/encoding.rs
+++ b/src/encoding.rs
@@ -4,18 +4,16 @@ use std::borrow::Cow;
use std::str::Utf8Error;
#[cfg(feature = "encoding")]
-use encoding_rs::{DecoderResult, Encoding, UTF_16BE, UTF_16LE, UTF_8};
+use encoding_rs;
/// Un... | 2 | 2 | 0 | [{"id": "G0", "claim": "The DetectedEncoding methods encoding() and bom_len() could both be const.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DetectedEncoding variants Utf16Le and Utf16Be should be renamed to Utf16LeLike and Utf16BeLike, sin... | null |
tag1consulting__goose__108 | tag1consulting/goose | 108 | defect | 9b4fe49035a54da3f4b1333c51a90d55c09258d8 | 409bca40c52b4df85c0b380f6d1b434884d809f2 | return a Result from Task functions | Tasks must be converted to return `GooseTaskResult`.
This allows the use of `?` as it supports returning a GooseTaskError:
```rust
pub type GooseTaskResult = Result<(), GooseTaskError>;
```
Currently we define 3 errors:
```rust
/// Definition of all errors Goose Tasks can return.
#[derive(Debug)]
pub enu... | diff --git a/examples/drupal_loadtest.rs b/examples/drupal_loadtest.rs
index a1ed7425d..7c3901c2b 100644
--- a/examples/drupal_loadtest.rs
+++ b/examples/drupal_loadtest.rs
@@ -81,13 +81,8 @@ fn main() {
}
/// View the front page.
-async fn drupal_loadtest_front_page(user: &GooseUser) {
- let mut goose = match u... | 4 | 4 | 2 | [{"id": "G0", "claim": "The `user.get(REDIRECT_PATH).await` call in get_domain_redirect is missing a trailing `?` so the task would not propagate the request error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Leave one example that explicitly cal... | null |
tag1consulting__goose__116 | tag1consulting/goose | 116 | defect | f742556a578021329cd0943a54bc4469fa1dbfbf | 166da23c9a2c081a9a8b7105cefe8874fa70dd04 | expose statistics from GooseAttack via GooseStats | - return `GooseStats` from `GooseAttack.execute()`, a public sub-object contained within `GooseAttack`
- move `GooseStats` to `mod.stats` and rework functions as methods
- consume and display statistics with `goose_stats.print()`
- other methods: `.print_running()`, `.print_requests()`, `.print_response_times()`... | diff --git a/src/lib.rs b/src/lib.rs
index 6d05d44e6..24ea2896f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -454,31 +454,31 @@ impl From<io::Error> for GooseError {
#[derive(Clone)]
pub struct GooseAttack {
/// An optional task to run one time before starting users and running task sets.
- test_start_task: Op... | 3 | 3 | 3 | [{"id": "G0", "claim": "Making all GooseAttack properties public exposes the internal structure as a stable API/ABI, so getters/setters or a rethought visibility would be preferable.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "GooseState would be a pr... | null |
tag1consulting__goose__150 | tag1consulting/goose | 150 | defect | b49dfb4a26225c7f433b5aec96e5f1f4b75756c6 | 924575e43582854937a43f523eb565842bfa5e61 | convert from structopt to gumdrop | **CHANGES**
- replaced `structopt` with `gumdrop`, fixing #149
- gumdrop doesn't auto-sort options, so this proved a good opportunity to structure options more logically
- added spaces between and headers before grouped options
- renamed "meta" variable names for options with longer names, for example, `--metr... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 977d09e38..67b0a9242 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,7 +11,14 @@
o `--no-task-stats` became `--no-task-metrics`
o `--stats-log-file` became `--metrics-log-file`
o `--stats-log-format` became `--metrics-log-format`
-
+ - replace `structopt... | 2 | 2 | 0 | [{"id": "G0", "claim": "The large renamings should be done in a separate PR, before or after this one, not bundled with the functional structopt-to-gumdrop changes, because they make this PR super-hard to review.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
tag1consulting__goose__152 | tag1consulting/goose | 152 | defect | ae8be350da40ad5c67a046ad6fd5efeed5e65a51 | 5144745327b03a71ea1b50e70a74ddeae11684fc | consistently build configuration from arguments | Consistently build configuration from arguments:
- remove cases where parameters were manually modified directly in the configuration object
- remove cases where defaults were automagically derived
This fixes #144.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 294d253ac..d3d99357f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@
o restructured help page to logically group related options
o rewrote/simplified configuration descriptions to fit standard console width
- update prelude documentation
+ - cons... | 1 | 1 | 0 | [{"id": "G0", "claim": "The helper `set_users` should be called `calculate_users` since it does not modify any data.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tag1consulting__goose__169 | tag1consulting/goose | 169 | defect | 886c12f4d5e457ca563c4a4c445f10e13f096073 | fa7240ac4a49a2c531b6fc9533f7ee59cd2c51bd | return error if setting invalid defaults, bounds checking of defaults | Returns a Result<> from the `GooseDefaultType`, which requires wrapping it in a `Box<>`. This code is not in the fast-path, it's just one time configuration at the start of a load test.
Performs bounds checking whether values are set by flags, custom defaults, or Goose defaults.
Fixes #168 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ce3e37ae5..494352552 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
## 0.10.1-dev
- rework `hatch_rate` to be stored in an `Option<usize>` as it can be `None` on a Worker
- remove redundant `GooseAttack.users` instead using the `Option<usize>` in `config... | 3 | 3 | 0 | [{"id": "G0", "claim": "The `key` assignment in the default-to-number-of-cpus users path should not be needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two code paths that set only `value` without `key` are confusing, and a comment sho... | null |
tag1consulting__goose__175 | tag1consulting/goose | 175 | defect | 4f5de630c679a3481c698bd04089a47d301b0b37 | 9c219ec2f29ff4b0816400497de662c8ce98eaca | remove `gaggle.rs`, instead adding gaggle-versions of existing integration tests | It's important that all functionality is tested in standalone and gaggle mode to be sure it works in both cases. Toward this goal, we remove `tests/gaggle.rs` and instead add gaggle variations of the existing integration tests.
Fixes #158 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd5d23815..c7aa58a6b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## 0.10.2-dev
+ - remove `tests/gaggle.rs`, instead mixing gaggle tests with per-feature integration tests
## 0.10.1 Sep 20, 2020
- rework `hatch_rate` to be stored in an... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests this PR adds duplicate large blocks of endpoint/setup/validation code, and the reviewer asks that the duplicated code be reworked into common helper functions (initially within the file) so every test can be run in normal and gaggle mode without copying all the code.", "category": "mai... | null |
tag1consulting__goose__225 | tag1consulting/goose | 225 | defect | da8c84303364ae5f37b09fd5c24ddd41e1003684 | 4ea61ca3cac425be7c32dcfc0696102296bcc152 | expose GooseScheduler for allocating GooseTaskSets | - allow configuration of the algorithm used when allocating `GooseTaskSet`s to starting `GooseUser`s:
- `GooseScheduler::RoundRobin` allocates 1 of each available `GooseTaskSet` at a time (new default)
- `GooseScheduler::Serial` allocates all of each available `GooseTaskSet` in the order they are defined
-... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 83ec555af..68ea6790e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,11 @@
# Changelog
## 0.10.6-dev
- - Replace `--only-summary` with `--running-metrics <usize>`, running metrics are disabled by default
+ - replace `--only-summary` with `--running-metrics <usi... | 4 | 4 | 1 | [{"id": "G0", "claim": "The Serial-allocation doc example ending in A, A, A, A, A, B, B, B, B, A, A, A, A, A, B, B, B, B, A, B is wrong and would end with B, A, A.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Maybe the new scheduler enum should ... | null |
tag1consulting__goose__373 | tag1consulting/goose | 373 | defect | d02a25cf5e5b4f88324b33b1ba165c16e9648955 | ead67de58d81d656da60d4f36d94a18d8a423968 | introduce GooseRequest and builder pattern | - **API change**: introduce `GooseRequest` and `GooseRequestBuilder` for more flexibility when making requests
o remove `GooseUser::post_named`, `GooseUser::head_named`, `GooseUser::delete_named`, `GooseUser::goose_get`, `GooseUser::goose_put`, `GooseUser::goose_head`, `GooseUser::goose_put`, `GooseUser::goose_pa... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 15eb547f0..a8fa5ea1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,8 @@
# Changelog
-## 0.14.2-dev
+## 0.15.0-dev
- [#372](https://github.com/tag1consulting/goose/pull/372) de-deduplicate documentation, favoring [The Goose Book](https://book.goose.rs)
+ - @T... | 1 | 1 | 0 | [{"id": "G0", "claim": "In examples/simple_with_session.rs, build the Reqwest RequestBuilder into a helper variable and pass it to GooseRequest::builder().set_request_builder() instead of nesting it inline, and preferably add bearer_auth as a function on the GooseRequest builder that passes through to Reqwest.", "categ... | null |
tag1consulting__goose__450 | tag1consulting/goose | 450 | defect | cd07bd0c954c4e87c9893299e9492831bdc17838 | 949a8ae4a0ae7d41066442d56695e504851008fc | Support multiple and variable speed Decrease attack phases | - Support multiple and variable speed decrease attack phases
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 90d6718b8..4fcb782a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@
o don't allow `--test-plan` together with `--users`, `--startup-time`, `--hatch-rate`, `--run-time`, `--no-reset-metrics`, `--manager` and `--worker`
o internal `AttackPhase`s ren... | 5 | 5 | 3 | [{"id": "G0", "claim": "The users-per-second graph looks odd, and it is unclear whether goose_attack_run_state.active_users always stores the actual number of users at the time rather than the target number for the current step.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
tag1consulting__goose__464 | tag1consulting/goose | 464 | defect | 486b8a2a91ec2aef593c11c66291affdf70b738d | 5bff198291847f20250b84511b693686246c204d | expose `startup_time` to controllers | - de-duplicate controller logic to make less fragile (add [`strum`](https://docs.rs/strum) to allow walking of Enum and avoid having to declare all command twice and in the same identical order)
- expose `startup_time` to controllers, resets `hatch_rate` to `None` if previously set
- setting `hatch_rate` resets `star... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 45ef6fdb3..2a6c8b263 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## 0.16.1-dev
+ - [#464](https://github.com/tag1consulting/goose/pull/464) add `startuptime` (and `startup_time`) TIME to controllers, setting how long the load test should sp... | 1 | 1 | 0 | [{"id": "G0", "claim": "A central command definition carrying these response messages could be introduced so much of this code could be generalized (suggested as an improvement/follow-up).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tag1consulting__goose__505 | tag1consulting/goose | 505 | defect | 2a19e2cb3a457eac8e90749d9855e3ac65342d50 | a653837f0c232c10ea52b3742330f39fc775051a | run-time option to configure which scenarios run | - NOTE: depends on #506 being merged fixed (to address clippy errors) -- I've rebased on top of this PR
- assign a unique machine name for each scenario
- introduce `--scenarios` to optionally specify which scenarios run during a load test
- introduce `--scenarios-list` to list scenarios by machine name
- int... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2cdaaa45a..a6de5138f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
- [#498](https://github.com/tag1consulting/goose/issues/498) ignore `GooseDefault::Host` if set to an empty string
- [#487](https://github.com/tag1consulting/goose/pull/487) add dev-depen... | 1 | 1 | 0 | [{"id": "G0", "claim": "Scenario machine names (whose conflict-dedup suffixes depend on registration order) may change if a refactor reorders the scenarios, which could cause confusion; the reviewer asks how the ordering works.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tag1consulting__goose__516 | tag1consulting/goose | 516 | defect | 5dd61d18d34f4349bd66896ab109294bdcbf8c0b | 529cde14d5afb05838e2fc00d7b92c82e3fcba9c | Refactor CSV Logging | To fix #515 I added a macro that properly escapes the values.
I like this approach because it is very lightweight and doesn't add any csv reader functionality as many external dependencies would. On the other hand, this still struggles with nested data and Option<> as well as hard coded headers.
However, currently ... | diff --git a/src/logger.rs b/src/logger.rs
index 593e61ca8..f0f5a2d43 100644
--- a/src/logger.rs
+++ b/src/logger.rs
@@ -160,6 +160,31 @@ pub(crate) type GooseLoggerJoinHandle =
/// Optional unbounded sender from all GooseUsers to logger thread, if enabled.
pub(crate) type GooseLoggerTx = Option<flume::Sender<Option<... | 4 | 2 | 0 | [{"id": "G0", "claim": "The PR author asks the reviewer where he runs into problems with nested data and Option<> in the new CSV formatting approach.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The format_csv_row macro, exported with macro_expo... | null |
tag1consulting__goose__53 | tag1consulting/goose | 53 | defect | e8f8831c373451d698c2d2fc809c271991ea3d05 | 9c798dd9077a51cc0452a87d572093c0d2251800 | automate load test testing | - introduce httpmock
- test normal load test
- test load test with no normal tasks (only `on_start` and `on_stop` tasks) | diff --git a/Cargo.toml b/Cargo.toml
index 7cc702334..4d53d2fae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,3 +34,6 @@ nng = { version = "0.5", optional = true }
[features]
gaggle = ["nng"]
+
+[dev-dependencies]
+httpmock = "0.3"
diff --git a/src/goose.rs b/src/goose.rs
index 2fec2f464..3d9f79129 100644
--- a/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test code should not hardcode the mock server host/port (e.g. \"http://127.0.0.1:5000\") and other path strings inline, but use a constant so the special strings live in one place.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tag1consulting__goose__578 | tag1consulting/goose | 578 | defect | 00d551757d6a0a1adfcffe3e3ee135cef70dbaec | 3ed4dd0bada418a6a878d5820a9f57eebff780ac | make it possible to disable cookies and optimize startup | Add type-safe HTTP client builder for configurable cookie support
- Implement `GooseClientBuilder<State>` with compile-time configuration validation
- Replace conditional compilation with clean type-state pattern
- Optimize performance with shared clients when cookies disabled
- Maintain full backward compatibi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2a818358..9ab4c02bc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- [#568](https://github.com/tag1consulting/goose/pull/568) don't panic when truncating non utf-8 string
- [#574](https://github.com/tag1consulting/goose/pull/574) update [`http`](https://... | 5 | 4 | 2 | [{"id": "G0", "claim": "The Cargo.toml example documented in cookie.md fails with \"feature `reqwest/default-tls` in dependency `goose` is not allowed to contain slashes\", so the docs need a working example (or re-exported features).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "in... | null |
tag1consulting__goose__580 | tag1consulting/goose | 580 | defect | 6646c9f777cedbd9080065893528c2235a90a85d | 39aff5b340fb55087896042e87cdd466bd0dc008 | #222: Allow naming of tasks without naming requests | https://github.com/tag1consulting/goose/issues/222
This is an attempt at giving the user the option to name a transaction without that name affecting the name of the requests inside of it.
At the core of it is the new enum `TransactionName`, that basically forces you to decide if you need the transaction name in ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1db119741..c20bff155 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## 0.19.0
+ - **API change**: `Transaction::set_name()` now only affects transaction names, not request names (more intuitive default behavior)
+ o existing `set_name()` c... | 6 | 5 | 0 | [{"id": "G0", "claim": "Add a rustdoc example to the new naming method set_name_transaction_only() in src/goose.rs showing the transaction named for metrics while requests keep their original names.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A... | null |
tag1consulting__goose__646 | tag1consulting/goose | 646 | defect | 5cd7c85dd04adaf808588bc3bee4456142903040 | 60922cce332a71d9d0350c7a91acc761c920f0d0 | allow transaction functions returning "any error" as string, enhanced | # Add Custom Error Support for Transaction Functions
## Summary
This PR enhances Goose's error handling by adding a `Custom(String)` variant to the `TransactionError` enum, allowing transaction functions to return arbitrary string errors. This addresses issues [#250](https://github.com/tag1consulting/goose/issues... | diff --git a/src/goose.rs b/src/goose.rs
index bd2665470..3119a49db 100644
--- a/src/goose.rs
+++ b/src/goose.rs
@@ -342,6 +342,8 @@ pub enum TransactionError {
Reqwest(reqwest::Error),
/// Wraps a [`url::ParseError`](https://docs.rs/url/*/url/enum.ParseError.html).
Url(url::ParseError),
+ /// A gener... | 5 | 5 | 1 | [{"id": "G0", "claim": "The From<&str> implementations mentioned in the pull request description are missing from the code; adding them would allow Err(\"simple error\".into()) without needing .to_string().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
tag1consulting__goose__652 | tag1consulting/goose | 652 | defect | 332091e0f61332eddafaaba6ce1d65db2eb04b1c | bddec9638e3f53edc8b4053301f80a721acfdd66 | respect --no-reset-metrics | # Fix User Metrics Graph Incorrect Decrease (Issue #650)
- Closes #650
## Problem
HTML report user metrics graphs showed incorrect decreases when the `--no-reset-metrics` flag was not used. The graph would start at maximum users, drop to zero, then ramp back up, despite users remaining active throughout the tes... | diff --git a/src/graph.rs b/src/graph.rs
index 34820d8c..778b4898 100644
--- a/src/graph.rs
+++ b/src/graph.rs
@@ -91,6 +91,31 @@ impl GraphData {
}
}
+ /// Reset graph data while preserving user count to maintain continuity.
+ pub(crate) fn reset_preserving_users(&mut self, current_users: Option<... | 3 | 3 | 2 | [{"id": "G0", "claim": "Simplify the logic for determining last_user_count using unwrap_or_else for conciseness.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tests are failing: line 172 tries to destructure goose_metrics.transactions.iter(... | null |
tag1consulting__goose__655 | tag1consulting/goose | 655 | defect | 59e8c06a80da9d688ee8a9f6524a462f43cb6eb7 | bd3a283137ced1b47b0d0fce8ccd036ddec39751 | Fix scenario filtering to use exact matching without wildcards | # PR Description: Fix scenario filtering substring matching bug
## Problem
Issue #612: When filtering scenarios, `--scenarios put1024bytes` incorrectly matched both `put1024bytes` and `getput1024bytes` due to substring matching instead of exact matching.
## Root Cause
`scenario_is_active()` method used `scenari... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d15f3ea7..bee971eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
o introduces `TransactionName` enum with `TransactionOnly` and `InheritNameByRequests` variants
- [#578](https://github.com/tag1consulting/goose/pull/578) add type-safe client builder fo... | 3 | 3 | 0 | [{"id": "G0", "claim": "The scenario_is_active function can be simplified by using the `any` iterator method, making the code more concise and idiomatic Rust.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider using a specialized crate like... | null |
tag1consulting__goose__656 | tag1consulting/goose | 656 | defect | 59e8c06a80da9d688ee8a9f6524a462f43cb6eb7 | c214719964dea158db889167ce9392e154084051 | Fix stack overflow when cloning GooseUser with session data | # PR: Fix stack overflow when cloning GooseUser with session data
## Summary
Fixes #606 - Stack overflow when cloning `GooseUser` with `GooseUserData` present.
## Problem
Infinite recursion in `Clone` implementation for `Box<dyn GooseUserData>`:
```rust
impl Clone for Box<dyn GooseUserData> {
fn clone(&s... | diff --git a/examples/session.rs b/examples/session.rs
index 524d9886b..57613c255 100644
--- a/examples/session.rs
+++ b/examples/session.rs
@@ -21,6 +21,7 @@ use goose::prelude::*;
use serde::Deserialize;
use std::time::Duration;
+#[derive(Clone)]
struct Session {
jwt_token: String,
}
diff --git a/src/goose... | 2 | 2 | 0 | [{"id": "G0", "claim": "Extract the GooseConfiguration creation in tests/clone_user_with_session_data.rs into a helper function to reduce code duplication across the three tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the GooseUserDat... | null |
tag1consulting__goose__663 | tag1consulting/goose | 663 | defect | 66e4c0db803b99792385241d26854ffbbe58569c | bf015bea392147fbe2d322a3b73e694695054515 | Response Time Breakdowns by HTTP Status Code | ## Summary
This PR implements response time breakdowns grouped by HTTP status code in Goose's CLI and HTML/PDF reports, providing valuable performance insights for load testing analysis.
Closes https://github.com/tag1consulting/goose/issues/528
## What's New
When a request returns multiple different HTTP status... | diff --git a/src/docs/goose-book/src/getting-started/metrics.md b/src/docs/goose-book/src/getting-started/metrics.md
index 326837fd..0ecbf3a0 100644
--- a/src/docs/goose-book/src/getting-started/metrics.md
+++ b/src/docs/goose-book/src/getting-started/metrics.md
@@ -204,6 +204,14 @@ All 9 users hatched.
-------------... | 9 | 8 | 4 | [{"id": "G0", "claim": "Identifying a status code breakdown row by checking `metric.method.starts_with(\"└─\")` tightly couples report generation to the formatting of the metric string; add an explicit boolean field like `is_breakdown` to the `ResponseMetric` struct and branch on it instead.", "category": "design", "ve... | null |
tag1consulting__goose__75 | tag1consulting/goose | 75 | defect | 32a473f68fc30c83565c4e147178fd888a676427 | cfe85761326416bdde76adca0a639021c8727ed8 | fix #74 optionally make redirects of base_url sticky | This functionality is required for a client load test ported from Locust. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7d4ce751e..871dab530 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## 0.7.6-dev
- detect and track redirects in `GooseRawRequest`
+ - redirect of test base_url are sticky and affect subsequent requests
## 0.7.5 June 10, 2020
- store actual URL requ... | 13 | 7 | 3 | [{"id": "G0", "claim": "The get_redirected_host getter acquires a write lock where a read lock would suffice.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new CHANGELOG entry has wrong grammar and should read 'redirect ... is sticky', not 'red... | null |
tag1consulting__goose__86 | tag1consulting/goose | 86 | defect | 5ecd7bfd9d86807e46ebfa5489067fccacfda43d | 73950ccb1f34caf76ed7935928ddcf416ed1d55c | add optional debug log | ## Load Test Debug Logging
Goose can optionally log details about requests and responses for debug purposes. First, when writing a load test you must invoke `client.log_debug(tag, Option<headers>, Option<body>, Option<request>)`) where `tag` is an arbitrary string to identify where in the load test and/or why debug ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 08222909b..974dc2185 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,9 +1,12 @@
# Changelog
+## 0.8.2-dev
+ - `client.log_error()` will log errors to file when load test is started with `--error-log-file=` and specifies an error log file
+
## 0.8.1 June 30, 2020
-... | 4 | 4 | 2 | [{"id": "G0", "claim": "The README's 'Load Test Debug Logging' paragraph says 'First' although no second step follows, so the wording should be cleaned up.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The logger thread and its channel are set up... | null |
tag1consulting__goose__97 | tag1consulting/goose | 97 | defect | b7a9d7501bc2035b0655275a367a2f63ca0c5911 | 830ca7f60d71d5ec5f7abb7fa480135809b598c5 | optionally throttle requests per second | Initial implementation of requests/second throttle. Fix #90
- rebased on top of #98 and #99 (splitting out rename of outer `response` wrapper to `goose`)
- return `Result<GooseResponse, Error)` from `goose_send()` to allow a clean and quick shutdown even when the throttle is enabled -- this is an API change, bum... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a40d0a97d..23d30ad4a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
## 0.8.3-dev
- fix code documentation, requests are async and require await
- properly support setting host when registering task set
+ - throttle requests per second
## 0.8.2 July 2... | 5 | 4 | 0 | [{"id": "G0", "claim": "If nobody consumes tokens they accumulate, so a client that waits and then fires can burst far above the configured req/s; the reviewer suggests a bounded channel with try_send.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
tahowallet__extension__1840 | tahowallet/extension | 1,840 | defect | f854c78bccb790a6616235db2419d045d6cc7ac8 | 3a8b68f57e98768a1320ea3d3f34b2d01affbf2a | :eye: Trust but verify | Add a warning in the wallet asset list when interacting with assets whose metadata has been inferred from transaction history.

 => {
const preferenceService = P... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new getKeyringSourceForAddress method should be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice for ChainService to use KeyringService.emitter.on(\"...\") instead of calling out to the keyrin... | null |
tahowallet__extension__2301 | tahowallet/extension | 2,301 | defect | c9363430f84d88b257ce54418f6b2a148c8f2e4c | a4b2fbdb5df730ad2d6548ef180026b7851f2a49 | Only poll for gas prices when a network is active | This PR introduces functionality which limits the extension from polling for gas prices when the extension is not active - and lays the groundwork for doing the same with base asset balances, erc20 lookups, and just about any other chain lookup we want to throttle.
## What is going on here.
The central change tha... | diff --git a/background/main.ts b/background/main.ts
index ec3893859..95d42290f 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -733,6 +733,10 @@ export default class Main extends BaseService<never> {
)
)
})
+
+ uiSliceEmitter.on("userActivityEncountered", (addressOnNetwork) => {
+ ... | 6 | 3 | 2 | [{"id": "G0", "claim": "The useEffect in Popup.tsx Main runs on every re-render because it has no dependency array; add an empty dependency array so it only runs on mount.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The warning message 'unsupport... | null |
tahowallet__extension__2303 | tahowallet/extension | 2,303 | defect | a610a7e47b5f364ecefafe6d894244a04d3d2feb | af56c971e7eae41cdcc354c8490a3e1a1bfb261c | Prevent chain service from subscribing to networks twice. | This should also help decrease our json-rpc usage.
### To Test
- [x] Drop a setInterval inside of chain service that logs `this.subscribedNetworks `
- [x] Ensure that the `this.subscribedNetworks ` array does not have any duplicates. | diff --git a/background/services/chain/index.ts b/background/services/chain/index.ts
index 40c30438d..e90555492 100644
--- a/background/services/chain/index.ts
+++ b/background/services/chain/index.ts
@@ -268,13 +268,6 @@ export default class ChainService extends BaseService<Events> {
const activeNetworks = await ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new startup test should assert on `subscribedNetworks` instead of `supportedNetworks` so it verifies what the pull request actually changed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tahowallet__extension__2516 | tahowallet/extension | 2,516 | defect | 6e57ddf969b9ef0836f8f85e8b88bead4c2d1741 | aa0379b854655849da93240f7eb74db39a4e816e | ❤️🩹 Nonces vs Mempool: Separate nonce behavior between chains with and without mempool | ## What
If a chain doesn't have mempool then
the tx is either picked up or dropped immediately. Eg, on optimism
and arbitrum. This means that we should rely on the nonce that
we got from the chain, and no need for us to track lasSeenNonce.
The same distinction should also happen when releasing nonces.
Note... | diff --git a/background/services/chain/index.ts b/background/services/chain/index.ts
index 67f5a16cd..7534359da 100644
--- a/background/services/chain/index.ts
+++ b/background/services/chain/index.ts
@@ -675,39 +675,54 @@ export default class ChainService extends BaseService<Events> {
const normalizedAddress = no... | 4 | 3 | 1 | [{"id": "G0", "claim": "The code and comment conflate having a mempool with being EIP-1559 compliant — a chain can have a mempool without implementing EIP-1559, so gating the existingNonce handling on EIP_1559_COMPLIANT_CHAIN_IDS and the comment stating mempool means EIP-1559 are wrong.", "category": "correctness", "ve... | null |
tahowallet__extension__2529 | tahowallet/extension | 2,529 | defect | 0b58b16d1d9ed540c36c59ae6b4f76605886bfaf | 43d1ce674ba3a78077f9ccdd1d2b1913a61ff3b9 | Update setup for testing library and add sample tests | Closes #2310
Closes #2534
This PR updates setup for testing the library. PR includes a minimal sample test of the `SharedInput` component. The changes show the recommended test structure. Further more complex tests will be created in the task : https://github.com/tallycash/extension/issues/2530
Latest build: [ex... | diff --git a/package.json b/package.json
index 94fa94720..a4d1ad5d3 100644
--- a/package.json
+++ b/package.json
@@ -11,10 +11,12 @@
"setupFiles": [
"fake-indexeddb/auto",
"jest-webextension-mock",
+ "@testing-library/react",
"./setupJest.ts"
],
"setupFilesAfterEnv": [
- ".... | 4 | 3 | 1 | [{"id": "G0", "claim": "Returned promises in the tests (e.g. userEvent.type(inputElement, value)) must be awaited to prevent flaky tests and side effects across tests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The jest.mock of react-i18next in ... | null |
tahowallet__extension__2947 | tahowallet/extension | 2,947 | defect | b7d0b49a4b235438086a65c86986fc8f7532c4eb | 4462e869eecf63a39c02eb75bc06909e716f151c | Prevent fetching prices for custom assets | Revised the indexing service balance alarm so that it does not requests CoinGecko token prices for custom assets.
Custom assets price points might still be cached in Redux so we might need an additional migration to remove them and revert the selector changes introduced in #2933
To Test
----
- [ ] Reinstall t... | diff --git a/background/lib/prices.ts b/background/lib/prices.ts
index 8a7bc0466..b9493a7c7 100644
--- a/background/lib/prices.ts
+++ b/background/lib/prices.ts
@@ -98,6 +98,10 @@ export async function getTokenPrices(
): Promise<{
[contractAddress: string]: UnitPricePoint<FungibleAsset>
}> {
+ if (tokenAddresses.... | 8 | 5 | 0 | [{"id": "G0", "claim": "getCustomAssetsByNetwork should accept only `EVMNetwork[]` and drop the union with the `Array.isArray` branching.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Dexie version(5) schema change needs a comment explaining wha... | null |
tahowallet__extension__2986 | tahowallet/extension | 2,986 | defect | b396fa5e3522903df0185c9e3435876632920e46 | cdae40bf8eb20669db99cef3bf2f311028a47a91 | Refactor Indexing service balances alarm handler | Moved the concern of loading account balances to a separate method such that the balance alarm handler no longer depends on parameters only relevant for loading balances. This PR also fixes an issue with erc20 token balances loading for alchemy supported networks due to [a bug within a check](https://github.com/tallyho... | diff --git a/background/services/indexing/index.ts b/background/services/indexing/index.ts
index c9fd75000..d1655ac9c 100644
--- a/background/services/indexing/index.ts
+++ b/background/services/indexing/index.ts
@@ -1,7 +1,3 @@
-import {
- AlchemyProvider,
- AlchemyWebSocketProvider,
-} from "@ethersproject/provider... | 2 | 2 | 0 | [{"id": "G0", "claim": "The alchemy-vs-cached-assets selection in the balances alarm is confusing without context, and a comment explaining why supporting alchemy changes which assets are checked would be helpful.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
tahowallet__extension__2996 | tahowallet/extension | 2,996 | defect | 0b750a982b3b23e1fa0da26568707a83bc903b51 | 326b0e5c3d10d358b8aa2b23fc29e6b5944403f0 | Custom RPCs - Request user confirmation before adding a custom network | Closes #2957
Implements a popup to prompt the user for confirmation before adding a new network and changes `wallet_switchEthereumChain` and `wallet_addEthereumChain` to only work with connected dApps.
... | diff --git a/background/main.ts b/background/main.ts
index 9ff59ba53..a52668402 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -166,6 +166,7 @@ import {
deleteAbilitiesForAccount,
initAbilities,
} from "./redux-slices/abilities"
+import { AddChainRequestData } from "./services/provider-bridge"
//... | 9 | 8 | 2 | [{"id": "G0", "claim": "The new addNewChain subtitle string should read \"Tally Ho!\" with a space instead of \"TallyHo!\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new thunk dispatchAddNetworkUserResponse should be renamed to addNetwork... | null |
tahowallet__extension__3013 | tahowallet/extension | 3,013 | defect | be123ea3e0b645042fcccdd54ac677a0529ecb7a | 116b73105bff94cc10aebbc49048e551b1d5a64b | Refactor deleting transferred NFTs reducer | ### What
Cover edge cases where:
- transferred NFTs weren't loaded to redux cache
- there were multiple NFTs transfers in a row
- transferred NFT was the last one in the collection
### Testing
Test NFTs transfers using steps from the "Transfers" section: https://github.com/tallyhowallet/extension/pull/2843
... | diff --git a/background/redux-slices/nfts_update.ts b/background/redux-slices/nfts_update.ts
index 7fa6dfe49..5d7f0a336 100644
--- a/background/redux-slices/nfts_update.ts
+++ b/background/redux-slices/nfts_update.ts
@@ -66,6 +66,41 @@ export type Events = {
export const emitter = new Emittery<Events>()
+export fu... | 3 | 2 | 0 | [{"id": "G0", "claim": "The body of the updateNFTs reducer should not be packaged into a separate updateNFTsInCollection helper function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests should focus on unit testing through the reducer, as sh... | null |
tahowallet__extension__3120 | tahowallet/extension | 3,120 | defect | 8df0c7f6b73bb3883f3447991a58b095d9250474 | 561a02948cde59176464195fa34ed522d3c7fae9 | Token Balances - Fix incorrect CoinGecko IDs for built in network assets | Corrects CoinGecko token IDs for network base assets, also fixes an issue with the signing buttons for typed data requests.
Closes #3116
Closes #3122
## To Test
- [ ] Open the extension, switch to bsc, balance in USD for BNB should display correctly
Latest build: [extension-builds-3120](https://github.com/taho... | diff --git a/background/constants/base-assets.ts b/background/constants/base-assets.ts
index 1bcd11fd9..834d555f2 100644
--- a/background/constants/base-assets.ts
+++ b/background/constants/base-assets.ts
@@ -15,7 +15,7 @@ const ARBITRUM_ONE_ETH: NetworkBaseAsset = {
...ETH,
chainID: "42161",
metadata: {
- ... | 6 | 5 | 1 | [{"id": "G0", "claim": "The change to the TransactionButton ready-state logic (adding the typed-data signing request check) should have tests added for it.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The built-in network asset ID assertions placed in... | null |
tahowallet__extension__3140 | tahowallet/extension | 3,140 | defect | 0162ce70c33e97e84027131287d8f20e851d45a2 | b848a19ee47d574f9ae133d55d038bab500ca8ee | Add basic tests for abilities | This PR adds tests for AbilitiesService. PR tests the performance of refreshing abilities and adding them.
Latest build: [extension-builds-3140](https://github.com/tahowallet/extension/suites/11630118352/artifacts/603559665) (as of Fri, 17 Mar 2023 10:57:49 GMT). | diff --git a/background/services/abilities/index.ts b/background/services/abilities/index.ts
index 2701aae4b..a0303d16a 100644
--- a/background/services/abilities/index.ts
+++ b/background/services/abilities/index.ts
@@ -42,7 +42,7 @@ const normalizeDaylightRequirements = (
}
}
-const normalizeDaylightAbilities =... | 5 | 5 | 0 | [{"id": "G0", "claim": "The hand-rolled localStorage mock in setupJest.ts can be removed because the Jest/jsdom version already provides localStorage support.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test filename index.intedration.tes... | null |
tahowallet__extension__3154 | tahowallet/extension | 3,154 | defect | 05723ff932cc0a930d88fd489c267a49c0495845 | af041d676028a404e2b96c1a7a9c69af5b69b081 | Switch to a given network if adding a network that is already added. | Since a given dapp does not necessarily have a sense of what networks are supported within the wallet (and since some dapps rely exclusively on wallet_addEthereumChain) we should support the functionality of switching to a network when receiving a wallet_addEthereumChain message with a chainID that we already support.
... | diff --git a/background/services/provider-bridge/index.ts b/background/services/provider-bridge/index.ts
index 61a0e467c..04a728245 100644
--- a/background/services/provider-bridge/index.ts
+++ b/background/services/provider-bridge/index.ts
@@ -532,6 +532,25 @@ export default class ProviderBridgeService extends BaseSer... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new test no longer needs to stub feature flags, since this flow does not depend on them, so the stub should be removed.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Can the PR remove the 'Network already added' screen, whic... | null |
tahowallet__extension__3173 | tahowallet/extension | 3,173 | defect | fc044fa6ad277e363f4a787f4772b4a382113155 | 1b4b93b3083c4fde4e8bf8dc42675c4959f68a18 | Unit tests for NFTItem | Closes #3047
This PR adds tests for the `NFTItem` component. Scope of testing:
- displaying a thumbnail image
- hovering item
- displaying floor price for collection
- displaying network icon
- displaying NFT name
Latest build: [extension-builds-3173](https://github.com/tahowallet/extension/suites/118341649... | diff --git a/ui/components/NFTS_update/NFTImage.tsx b/ui/components/NFTS_update/NFTImage.tsx
index d412beb6e..a2e832d4a 100644
--- a/ui/components/NFTS_update/NFTImage.tsx
+++ b/ui/components/NFTS_update/NFTImage.tsx
@@ -2,7 +2,7 @@ import classNames from "classnames"
import React, { ReactElement, useEffect, useState ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefer querying via ui.container.getElementByClassName instead of ui.getByTestId so the data-testid attributes added to the elements are not needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tahowallet__extension__3195 | tahowallet/extension | 3,195 | defect | 1ccd1e3832de37d9dc72a1148ec1382ade1adb19 | 214b9783760557244d3144debce422b6198586aa | Token Discovery - Remap redux asset balances | Prevents tokens with the same symbol from overriding existing balances. Changes the way combined amounts data is computed so that balances displayed in overview for e.g. USDC on Mainnet and USDC on Polygon get bundled together only if they both are sourced from a token list (or are network base assets).
## To Test
... | diff --git a/background/accounts.ts b/background/accounts.ts
index 631465661..5c821da8f 100644
--- a/background/accounts.ts
+++ b/background/accounts.ts
@@ -1,5 +1,5 @@
-import { AnyAssetAmount } from "./assets"
-import { EVMNetwork } from "./networks"
+import { AnyAssetAmount, SmartContractFungibleAsset } from "./asse... | 5 | 3 | 0 | [{"id": "G0", "claim": "Asks that a util function checking whether an asset has token lists be added, since the token-list check is written out manually in many places already.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Requests a name that ... | null |
tahowallet__extension__3236 | tahowallet/extension | 3,236 | defect | ac1c405883006839755fb17fac2113658e435f78 | 0fe67eeb7de5607b4976ea151ced5129f6378cb2 | Add custom chain analytics event | ### To Test
- [x] Add a custom chain to the wallet
- [x] Observe the `Custom Chain Added` event in posthog.
Latest build: [extension-builds-3236](https://github.com/tahowallet/extension/suites/12046398882/artifacts/633415473) (as of Wed, 05 Apr 2023 13:17:48 GMT). | diff --git a/background/lib/posthog.ts b/background/lib/posthog.ts
index 5b495482f..e1708887c 100644
--- a/background/lib/posthog.ts
+++ b/background/lib/posthog.ts
@@ -7,6 +7,7 @@ export enum AnalyticsEvent {
NEW_INSTALL = "New install",
UI_SHOWN = "UI shown",
NEW_ACCOUNT_TO_TRACK = "Address added to tracking... | 2 | 1 | 1 | [{"id": "G0", "claim": "The customChainAdded analytics event should use the chain ID instead of the chain name, since users will soon be able to add chains with arbitrary chain names.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The UI_SHOWN analy... | null |
tahowallet__extension__3253 | tahowallet/extension | 3,253 | defect | 85adb932cf586c1fb900f3cb327a4c6354493cf8 | c36fe05ad800ecfa43f48d56aac6e969fcdb43f8 | Export private keys from HD wallet addresses | ### What
Let's allow exporting private keys from HD wallet addresses.
### Testing
- [x] add HD wallet with the mnemonic
- [x] export private key for account from HD wallet
- [x] export the same private key with metamask and compare them
: Promise<void> {
- return this.chainService.removeCu... | 2 | 2 | 1 | [{"id": "G0", "claim": "After connecting to a dApp (e.g. Uniswap) and then adding another custom network, the dApp gets disconnected, contrary to the intended behaviour that adding a network should not disconnect the dApp.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
tahowallet__extension__3362 | tahowallet/extension | 3,362 | defect | 71fba886f85848ab010651d108d641165b26fa7e | 452b2a9b9a82a06005b37916fe810f2801fb6e0b | Fix the issue for Incorrect time detail for the abilities | Closes #3188
## What
We haven't displayed the exact details of the time details for the ability. This was confusing for the user. Let's count down the days until closing and starting ability. The limit for the appearance of the message was set to 30 days. Completed and open abilities shouldn't have time details.... | diff --git a/ui/_locales/en/messages.json b/ui/_locales/en/messages.json
index f8b2d1471..76baf482a 100644
--- a/ui/_locales/en/messages.json
+++ b/ui/_locales/en/messages.json
@@ -842,8 +842,14 @@
"open": "Open",
"none": "None"
},
- "timeStarting": "Starting in 1 month",
- "timeCloses": "Close... | 2 | 2 | 0 | [{"id": "G0", "claim": "The plural labels should use i18next's built-in key_one/key_other suffix pattern from the docs instead of the manual units.day/days lookup interpolated as {{unit}}.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test ... | null |
tahowallet__extension__3377 | tahowallet/extension | 3,377 | defect | 2b52afc801bf075a3f6bd49bc744bb787ed5f7d6 | 4b35a95086b79b506327f44c24e048dfdf219a1a | Remove private key signers if they are replaced by accounts from HD wallet | Improvement mentioned in the [RFB 4: One-Off Keyring Design](https://github.com/tahowallet/extension/pull/3372/commits/6c71c8de122ab2e59f71e77c5d246921fccbcd90#diff-ed55cc77a7760815ad539b38803831098099e4912702cee612fa3565656a39bfR163-R165)
### What
To avoid storing duplicated key material let's remove duplicated acco... | diff --git a/background/redux-slices/abilities.ts b/background/redux-slices/abilities.ts
index 4f4846be1..4c1aebcf7 100644
--- a/background/redux-slices/abilities.ts
+++ b/background/redux-slices/abilities.ts
@@ -16,18 +16,18 @@ const isLedgerAccount = (
.includes(address)
const isImportOrInternalAccount = (
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The method `hideAccount` should be renamed to `removeAccount`, and its docs should clarify that for accounts derived from a keyring it only hides the associated address unless it is the last derived address from the keyring.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
tahowallet__extension__3410 | tahowallet/extension | 3,410 | defect | 4370543f37969f36436859cd4542a38c39c8e935 | 30b50cf47c2a82858c51b7bad81b8f3c65212efb | Fixes for verified/unverified assets | ## What
- Update the editing flow of the asset between the db and the UI. Check out this [post](https://github.com/tahowallet/extension/pull/3394#pullrequestreview-1444570845).
- The list of unverified assets should close automatically only after switching accounts.
- Fix the issue with the missing "sliding up/dow... | diff --git a/background/main.ts b/background/main.ts
index 3580afe3b..d4c316a7e 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -50,10 +50,13 @@ import {
loadAccount,
updateAccountBalance,
updateAccountName,
- updateAssetReferences,
updateENSAvatar,
} from "./redux-slices/accounts"
-import { a... | 5 | 5 | 1 | [{"id": "G0", "claim": "The duplicate-detection `if` condition in assetsLoaded is convoluted and should reuse existing utils or a newly created one instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"Asset automatically imported\" slid... | null |
tahowallet__extension__3413 | tahowallet/extension | 3,413 | defect | 65fa6b27a87c9b07909754a04ef2c7ca38f2f73b | f9030ff1c2c1ee1cfb8fb997ca0d5354cb92101c | Remove the verified/unverified assets | Closes https://github.com/tahowallet/extension/issues/3399
## What
The user should be able to delete the verified/unverified asset. However, the asset should not be removed but hidden from the user. To see a deleted asset again, the user should add it as a custom asset.
## UI
https://github.com/tahowallet/e... | diff --git a/background/assets.ts b/background/assets.ts
index 390a9fd05..4f6cb9a63 100644
--- a/background/assets.ts
+++ b/background/assets.ts
@@ -44,6 +44,10 @@ export type AssetMetadata = {
* legitimate asset.
*/
verified?: boolean
+ /**
+ * Set by the user to remove asset that has been verified by mi... | 4 | 4 | 2 | [{"id": "G0", "claim": "The removed flag should live only in the indexing database and not percolate out to the shared asset metadata type or the UI: the UI should see a removed asset as actually deleted, with the db tracking removal only to decide whether a discovered asset can be added again.", "category": "design", ... | null |
tahowallet__extension__3431 | tahowallet/extension | 3,431 | defect | 843795cb0d3c89357eed21eb4f3bf60bce192726 | 5038f1206a0e9fb5978817c7e30c7bf32bfc946d | Fix duplicate base assets being stored in redux asset cache | Closes #3445
Fixes an issue when caching assets in the redux state that did not correctly handle already existing network base assets.
## To Test
- [x] Do a fresh install on `main`
- [x] Add a custom network, after a few minutes check the assets slice in the redux state, the last entries should be duplicates o... | diff --git a/background/redux-slices/assets.ts b/background/redux-slices/assets.ts
index 0fb006fe4..8c91c1135 100644
--- a/background/redux-slices/assets.ts
+++ b/background/redux-slices/assets.ts
@@ -13,11 +13,7 @@ import {
import { AddressOnNetwork } from "../accounts"
import { findClosestAssetIndex } from "../lib/... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use the existing sameNetworkBaseAsset helper in the network-base-asset branch of isSameAsset instead of comparing chainID directly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a link to the relevant issue in the comment at ... | null |
tahowallet__extension__3491 | tahowallet/extension | 3,491 | defect | d0db72b06c2301efb94ca6d73c73379aea57728b | 546f8c579bb0fe87ac9ffa7eb047f3be68acfa97 | Untrusted assets should not block the addition of custom tokens | Closes https://github.com/tahowallet/extension/issues/3467
## What
Currently, the user isn't able to add an asset that is in the untrusted list. We display a message about the existence of the token and block the button. We should allow users to add an asset that is in the untrusted list.
### Changes
- Abilit... | diff --git a/background/main.ts b/background/main.ts
index cdc1bfc8d..2737d228f 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -188,6 +188,7 @@ import {
OneTimeAnalyticsEvent,
} from "./lib/posthog"
import {
+ isVerifiedAsset,
isBuiltInNetworkBaseAsset,
isSameAsset,
} from "./redux-slices/util... | 5 | 5 | 1 | [{"id": "G0", "claim": "In background/main.ts the `exists` value would be clearer in logic and naming as `const shouldDisplay = cachedAsset && isVerifiedAsset(cachedAsset)`, though the reviewer is not 100% sure it is all accurate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
tahowallet__extension__3492 | tahowallet/extension | 3,492 | defect | 312dcc747ac2c04f728ec670c0ea80287df20db7 | 2578d1f2504a183500b6f0bec62cb084202c7bd6 | Flip updated dApp connections flag | cc @VladUXUI for design QA
e2e test was also added for the initial display of the Connect to Taho hint popover.
## Testing
- With Taho as default set to on, the first time:
- [x] Ensure the toggle in the Taho popup is pointed at Taho.
- [x] Trying to connect to Uniswap, ensure the dApp connection popup d... | diff --git a/.env.defaults b/.env.defaults
index c1f270262..f5c392d41 100644
--- a/.env.defaults
+++ b/.env.defaults
@@ -32,4 +32,4 @@ SUPPORT_SWAP_QUOTE_REFRESH=false
SUPPORT_ACHIEVEMENTS_BANNER=false
SUPPORT_NFT_SEND=false
USE_MAINNET_FORK=false
-ENABLE_UPDATED_DAPP_CONNECTIONS=false
+ENABLE_UPDATED_DAPP_CONNECTIO... | 6 | 4 | 2 | [{"id": "G0", "claim": "The dApp connection box is still using the old image; for consistency it should use the image used in the sign tx information box, and it doesn't need to be clickable.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Update the dA... | null |
tahowallet__extension__3508 | tahowallet/extension | 3,508 | defect | 24380e281681ffde2f15d7e7c61a2cabc189d87c | a57e45379ee57e633a332ff5ade96dafdf1bdee8 | Fix custom asset price fetching | - ~Fixes price fetching of assets that were first discovered as custom assets and then retrieved from token lists~ Now in #3534.
- ~Fixes a bug that caused token list assets to have a discovery transaction hash and to also be included as custom assets.~
- Enables price fetching for all trusted assets: base network, ... | diff --git a/background/redux-slices/utils/asset-utils.ts b/background/redux-slices/utils/asset-utils.ts
index 266d02f85..3691276cf 100644
--- a/background/redux-slices/utils/asset-utils.ts
+++ b/background/redux-slices/utils/asset-utils.ts
@@ -342,6 +342,10 @@ export function heuristicDesiredDecimalsForUnitPrice(
)... | 9 | 5 | 1 | [{"id": "G0", "claim": "The description of getFullAssetID (and the relationship between it and getAssetID) should be expanded because it is unclear why two functions determine an asset's id.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chain... | null |
tahowallet__extension__3528 | tahowallet/extension | 3,528 | defect | 24380e281681ffde2f15d7e7c61a2cabc189d87c | f0a16af3d83bbfae9ec977fd7b9417cc86715eea | Refactor of terms for verified/unverified assets | ## What
Currently, some of the terms and conditions for untrusted assets have become unclear. This should be simplified and described. There are three concepts baseline trusted assets, trusted assets, and verified assets.
- Baseline trusted means “the wallet ~trusts this”—i.e., the asset is in a token list OR the... | diff --git a/background/redux-slices/accounts.ts b/background/redux-slices/accounts.ts
index 126532658..277e6ede6 100644
--- a/background/redux-slices/accounts.ts
+++ b/background/redux-slices/accounts.ts
@@ -17,7 +17,7 @@ import {
getAssetID,
isNetworkBaseAsset,
isSameAsset,
- isUntrustedAsset,
+ isTrustedA... | 21 | 18 | 1 | [{"id": "G0", "claim": "The SUPPORT_UNVERIFIED_ASSET feature flag should be removed (ideally in this PR) since keeping it around complicates the logic in many places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The plain-English meanings of... | null |
tahowallet__extension__3559 | tahowallet/extension | 3,559 | defect | 5cd05a3fe3be3a4133df29f3e5f8b1f17c81e1aa | f13d2daf0da1cc2e6f68d363a41f9c5108b85afb | Use JSON onboarding in e2e tests of transactions | Prior to this change we were onboarding using a seed phrase, which was not ideal, as it could lead to a seed phrase leakage in the Playwright report added to the artifacts of CI jobs (that's why we've temporarily switched off storing of the test artifacts).
Now that we support in Taho the onboarding with a JSON keysto... | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7149ab0ea..ea6d118ca 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -186,17 +186,14 @@ jobs:
|| contains(github.head_ref, 'e2e')
|| needs.detect-if-flag-changed.outputs.path-filter == 't... | 4 | 2 | 1 | [{"id": "G0", "claim": "The CI lint job fails because the actions workflow does not install the dependencies of scripts/key-generation before running yarn lint, and the workflow needs a yarn install step for that folder.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id... | null |
tahowallet__extension__517 | tahowallet/extension | 517 | defect | 081d7ef5184aae3ebf6c3905266539e66895957b | 88d96d8f7707363da2776696cec82fd0373dc903 | Custodian: Add keyring service autolock and track status in keyrings slice | From the first commit message:
The service supports autolocking depending on internal and external
idle times. Currently both are set to 30 minutes, but although the
markOutsideActivity method exists on the service, it is not yet being
called by any external caller, so the keyring is locked for max 30
minutes no... | diff --git a/background/main.ts b/background/main.ts
index 68be57689..368ff3719 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -35,6 +35,8 @@ import { activityEncountered } from "./redux-slices/activities"
import { assetsLoaded, newPricePoint } from "./redux-slices/assets"
import {
emitter as keyringS... | 3 | 2 | 1 | [{"id": "G0", "claim": "Consider making the new keyrings-slice `status` field (\"locked\" | \"unlocked\" | \"uninitialized\") an enum.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `mockAlarms` helper's unused callback parameters should be dealt wit... | null |
taichi-dev__taichi__6024 | taichi-dev/taichi | 6,024 | defect | 5b05116323ca5a84472eb445e1212deab4f65c80 | b176726dde546063c15486dbb306703d18eccc14 | [Lang] MatrixNdarray refactor part6: Add scalarization for LocalLoadStmt & GlobalLoadStmt with TensorType | Related issue = https://github.com/taichi-dev/taichi/issues/5873, https://github.com/taichi-dev/taichi/issues/5819
This PR is working "Part ④" in https://github.com/taichi-dev/taichi/issues/5873. | diff --git a/python/taichi/lang/impl.py b/python/taichi/lang/impl.py
index 0bca4fe175704..8ec1d049066fc 100644
--- a/python/taichi/lang/impl.py
+++ b/python/taichi/lang/impl.py
@@ -74,6 +74,8 @@ def expr_init(rhs):
if isinstance(rhs, Struct):
return Struct(rhs.to_dict(include_methods=True, include_ndim=Tr... | 5 | 5 | 3 | [{"id": "G0", "claim": "Add Python-side test cases covering defining local matrices with both `real_matrix` and `real_matrix_scalarize=True`, to make sure the two work together when constructing programs from Python.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
taichi-dev__taichi__6080 | taichi-dev/taichi | 6,080 | defect | e23ad2d9abd6a612c7c889c7bb67161b8776cd87 | 5867279c2436a70e76d7ded77e7faff10cf7f61f | [Lang] MatrixNdarray refactor part7: Add scalarization for UnaryOpStmt with TensorType-operand | Related issue = https://github.com/taichi-dev/taichi/issues/5873, https://github.com/taichi-dev/taichi/issues/5819
This PR is working "Part ④" in https://github.com/taichi-dev/taichi/issues/5873. | diff --git a/taichi/ir/frontend_ir.cpp b/taichi/ir/frontend_ir.cpp
index f99869aef12f7..893908bd3f3a9 100644
--- a/taichi/ir/frontend_ir.cpp
+++ b/taichi/ir/frontend_ir.cpp
@@ -139,22 +139,47 @@ void RandExpression::flatten(FlattenContext *ctx) {
void UnaryOpExpression::type_check(CompileConfig *config) {
TI_ASSE... | 4 | 4 | 2 | [{"id": "G0", "claim": "The comment added in scalarize.cpp gives a wrong rationale: the differing dest/val dtypes are normal and are handled by type_check.cpp, so the unrelated load_store_forwarding() (and the claim of relying on type_promotion()/load_store_forwarding()) should not appear in the comment.", "category": ... | null |
taichi-dev__taichi__6099 | taichi-dev/taichi | 6,099 | defect | 18c946ea67d23265896d3fb967482dfdd4e63795 | b33f65976de15fa26bd9f301c5387015e8a707f7 | [dx12] Add aot for dx12. | Only make sure the pipeline generate something.
No real dxil generated yet.
Move DX12 build to gpu ci which will run the aot test.
Issue: #5276
| diff --git a/.github/workflows/scripts/win_build.ps1 b/.github/workflows/scripts/win_build.ps1
index dba6d15e0cc9cf..288f0588ebaf6d 100644
--- a/.github/workflows/scripts/win_build.ps1
+++ b/.github/workflows/scripts/win_build.ps1
@@ -115,6 +115,7 @@ if (!$llvmVer.CompareTo("10")) {
$env:TAICHI_CMAKE_ARGS += " -DCLAN... | 5 | 3 | 1 | [{"id": "G0", "claim": "The dx12 branch added to JITSession::create should be merged with the existing code block under \"#ifdef TI_WITH_LLVM\" above.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in add_field_per_backend was copied f... | null |
taichi-dev__taichi__6126 | taichi-dev/taichi | 6,126 | defect | a4b24d1524a82293a4df293e9628acf514d251b9 | 39ffde0e9ee97ec6a2cdb83c60d891fc98555739 | [bug] [llvm] Fix is_same_type when the suffix of a type is the prefix of the suffix of the other type | Issue: #5511
### Brief Summary
is_same_type fails when it encounters comparison between `%struct.PhysicalCoordinates.1` and `%struct.PhysicalCoordinates.11` where `1` is the prefix of `11`.
This bug does not affect 1.1.3 because parallel compilation is turned off in 1.1.3. | diff --git a/taichi/codegen/llvm/llvm_codegen_utils.cpp b/taichi/codegen/llvm/llvm_codegen_utils.cpp
index eded6943af854..4ce6cff4a5b9f 100644
--- a/taichi/codegen/llvm/llvm_codegen_utils.cpp
+++ b/taichi/codegen/llvm/llvm_codegen_utils.cpp
@@ -65,38 +65,37 @@ bool is_same_type(llvm::Type *a, llvm::Type *b) {
}
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Unit tests in C++ should be added against is_same_type.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
taichi-dev__taichi__6189 | taichi-dev/taichi | 6,189 | defect | ed1281332b5d1a6245e7b87a12dd957398ebb740 | 6b3bea7fea7e1f4734c8f3382a8a99926e5c5fa6 | [Lang] MatrixNdarray refactor part11: Fuse ExternalPtrStmt and PtrOffsetStmt | Related issue = https://github.com/taichi-dev/taichi/issues/5873, https://github.com/taichi-dev/taichi/issues/5819
This PR is working "Part ④" in https://github.com/taichi-dev/taichi/issues/5873.
Fused `PtrOffsetStmt` with `base_ptr=ExternalPtrStmt` into a modified `ExternalPtrStmt` to minimized number of instruc... | diff --git a/taichi/codegen/llvm/codegen_llvm.cpp b/taichi/codegen/llvm/codegen_llvm.cpp
index a9341b92fcae0..92e77f4b23370 100644
--- a/taichi/codegen/llvm/codegen_llvm.cpp
+++ b/taichi/codegen/llvm/codegen_llvm.cpp
@@ -1941,17 +1941,25 @@ void TaskCodeGenLLVM::visit(ExternalPtrStmt *stmt) {
auto address_offset =... | 3 | 3 | 0 | [{"id": "G0", "claim": "The visit and members of RemoveMatrixOfGlobalPtr should be private (a `private:` access specifier should be added before visit).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The MatrixOfGlobalPtrStmt visit override shou... | null |
taichi-dev__taichi__6199 | taichi-dev/taichi | 6,199 | defect | 3b4381643cd9643fd030ac693c8e5687ff655c07 | a3c56993ef6cf2e2fcf000048ac5820be3bd6478 | [aot] Reorganized C-API headers | As @jim19930609 mentioned before including vulkan headers might be contaminating the user namespaces so this PR removes the include and macro. The users should include `vulkan/vulkan.h` *before* `taichi/taichi.h`. | diff --git a/c_api/include/taichi/taichi.h b/c_api/include/taichi/taichi.h
index 1b2734e263fa61..066c909317b8cc 100644
--- a/c_api/include/taichi/taichi.h
+++ b/c_api/include/taichi/taichi.h
@@ -5,7 +5,6 @@
#include "taichi/taichi_core.h"
#if TI_WITH_VULKAN
-#define VK_NO_PROTOTYPES 1
#include "taichi/taichi_vulka... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing #include <vulkan/vulkan.h> from taichi_vulkan.h may leave users hitting compile errors like \"unknown type VkInstance\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
taichi-dev__taichi__6311 | taichi-dev/taichi | 6,311 | defect | c2ca681871c39d28be054fbc82756281764a51d8 | 8acf58c88cbe2964debf686fc93c8845b3877b0e | [bug] Fix generating LLVM AOT module for the second time failed | Issue: fixes #6309 | diff --git a/taichi/runtime/llvm/llvm_offline_cache.cpp b/taichi/runtime/llvm/llvm_offline_cache.cpp
index f91a9567735ca4..6294c506498c73 100644
--- a/taichi/runtime/llvm/llvm_offline_cache.cpp
+++ b/taichi/runtime/llvm/llvm_offline_cache.cpp
@@ -266,7 +266,7 @@ void LlvmOfflineCacheFileWriter::dump(const std::string &... | 2 | 1 | 1 | [{"id": "G0", "claim": "ailzhang asks whether there is a specific reason the offline cache must explicitly load old metadata and overwrite it, instead of just overwriting without looking at the old ones.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "ail... | null |
taichi-dev__taichi__6337 | taichi-dev/taichi | 6,337 | defect | 7319935e600b2b5153bb68e67b0d928d8f180e43 | fb3d4bb455bc6c458cd32a1c107a876b3065d4da | [IR] Unified type system for internal operations | Issue: fixes #5382
| diff --git a/python/taichi/lang/impl.py b/python/taichi/lang/impl.py
index 5e6a2906fc4b3c..6df5a7917bee5e 100644
--- a/python/taichi/lang/impl.py
+++ b/python/taichi/lang/impl.py
@@ -1069,8 +1069,8 @@ def default_cfg():
def call_internal(name, *args, with_runtime_context=True):
return expr_init(
- _ti_co... | 19 | 15 | 3 | [{"id": "G0", "claim": "The pull request's CI has problems that must be fixed before it can go in.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The InternalOps (and StaticTraits) singletons are unnecessary and should not be used.", "category": "de... | null |
taichi-dev__taichi__6482 | taichi-dev/taichi | 6,482 | defect | 6cf89a8401f318c3d7ae03e01d2eb2b572a6406d | fe0fbfe196f5b4305e6c073104b4d89b927b7887 | [amdgpu] Part2 add runtime | Issue: https://github.com/taichi-dev/taichi/issues/6434
### Brief Summary
1. This is the third part of adding the backend of amdgpu: adding the runtime part of the implementation. The main code for runtime is llvm ir generating gcn-isa/object and hsaco (which is a file format that can be accepted by the module la... | diff --git a/cmake/TaichiCore.cmake b/cmake/TaichiCore.cmake
index 7f11eb724a68a1..6b94c0dbb9e511 100644
--- a/cmake/TaichiCore.cmake
+++ b/cmake/TaichiCore.cmake
@@ -242,8 +242,10 @@ if(TI_WITH_LLVM)
llvm_map_components_to_libnames(llvm_amdgpu_libs AMDGPU)
add_subdirectory(taichi/rhi/amdgpu)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "taichi/runtime/amdgpu/runtime.cpp is unnecessary because Runtime::register_impl() was removed in #6830 and the file is not even compiled, so it should be deleted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
taichi-dev__taichi__6721 | taichi-dev/taichi | 6,721 | defect | d7487955bff0a215345d953e308ed0c7dee696e4 | c9f1998d7c723fb66bbfb9b4e5efc4ad3c5031e0 | [Lang] Enable packed mode by default | Issue: #6660
### Brief Summary
This PR does the following:
- Provides missing part of packed mode support for Metal sparse;
- Removes `ti.extension.packed`;
- Sets `packed=True` by default;
- Fixes illegal tests. | diff --git a/taichi/inc/extensions.inc.h b/taichi/inc/extensions.inc.h
index 1668bce569588..36a9676eacff7 100644
--- a/taichi/inc/extensions.inc.h
+++ b/taichi/inc/extensions.inc.h
@@ -8,6 +8,5 @@ PER_EXTENSION(adstack) // For keeping the history of mutable local variables
PER_EXTENSION(bls) // Block-local s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The newly added `bool packed;` member of SNodeExtractors should be given an initial value, since the struct has no well-designed constructor to initialize it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
taichi-dev__taichi__6843 | taichi-dev/taichi | 6,843 | defect | d144615a4af0e53a1410f050af09a1fd6aa052ce | e7004238af575ba5e5b55d38a1397b7236dd4125 | [vulkan] Cleanup spdlog related logging from Vulkan RHI | Related: #6832
1. Removed the TI_XXX logging from Vulkan RHI and prepare for total removal of spdlog from RHI
2. Started wrapping internal Vulkan RHI functions with `RhiReturn<>` to return a error status instead of throwing exception
3. Start to work on the `implementation API` vs `public API` separation
Updati... | diff --git a/.github/workflows/scripts/aot-demo.sh b/.github/workflows/scripts/aot-demo.sh
index feec32c84e259..f4bcdfdeb5653 100755
--- a/.github/workflows/scripts/aot-demo.sh
+++ b/.github/workflows/scripts/aot-demo.sh
@@ -17,7 +17,7 @@ function build-and-smoke-test-android-aot-demo {
rm -rf taichi-aot-demo
... | 6 | 4 | 1 | [{"id": "G0", "claim": "The test should search for a descriptive phrase in the error message so that it is helpful for code readers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CudaDevice::map appears to always return success here, so the rev... | null |
taichi-dev__taichi__6906 | taichi-dev/taichi | 6,906 | defect | b9b5f1a9fb711adb5020fa2841b3d92645140fdb | 094c05a56a0cfe7f5b3c0d00525b48e3238e699d | [autodiff] Support grad in ndarray | # **Support ndarray.grad in kernels**
Specifically, we want to run the following demo.
```
x = ti.ndarray(dtype=ti.f32, shape=(4), needs_grad=True)
@ti.kernel
def compute_ndarray(x: ti.types.ndarray()):
x.grad[0] = 10.0
x.grad[1] = 20.0
x.grad[2] = 30.0
x.grad[3] = 40.0
x[0] = 50.0
... | diff --git a/external/SPIRV-Headers b/external/SPIRV-Headers
index b2a156e1c0434b..b42ba6d92faf6b 160000
--- a/external/SPIRV-Headers
+++ b/external/SPIRV-Headers
@@ -1 +1 @@
-Subproject commit b2a156e1c0434bc8c99aaebba1c7be98be7ac580
+Subproject commit b42ba6d92faf6b4938e6f22ddd186dbdacc98d78
diff --git a/external/SPI... | 8 | 6 | 2 | [{"id": "G0", "claim": "The `has_external_arrays` variable assigned in the ndarray argument branch is set but never used, so it serves no purpose.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The block added to ArgLoadStmt LLVM code generation... | null |
taichi-dev__taichi__6934 | taichi-dev/taichi | 6,934 | defect | c58e650a0b1947c9666248321343a2fd52f57fe4 | 8d8cfc4e6239316194c482b970c55c58486b2c13 | [lang] Migrate TensorType expansion for SNode indices from Python to Frontend IR | Issue: https://github.com/taichi-dev/taichi/issues/5819
### Brief Summary
| diff --git a/python/taichi/lang/snode.py b/python/taichi/lang/snode.py
index 440fb72d3596a..782d13053c29e 100644
--- a/python/taichi/lang/snode.py
+++ b/python/taichi/lang/snode.py
@@ -1,4 +1,3 @@
-import functools
import numbers
import warnings
@@ -8,34 +7,6 @@
from taichi.lang.util import get_traceback
-def ... | 2 | 1 | 1 | [{"id": "G0", "claim": "It may be unnecessary for the newly added SNodeOpExpression constructor to expand `values`.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Python-side scalarization `expr._get_flattened_ptrs(val)` in snode.py's `append` should b... | null |
taichi-dev__taichi__6942 | taichi-dev/taichi | 6,942 | defect | 5ac1e0560174d09c0e0a607c869799f11e840ebb | 847989b1042416d46a92763dbefe9eedd8997153 | [lang] Migrate TensorType expansion for subscription indices from Python to Frontend IR | Issue: https://github.com/taichi-dev/taichi/issues/5819
### Brief Summary
For indices of TensorType, instead of scalarizing them at Python level, it is up to the Frontend IR's consumer to decide whether TensorType'd indices are acceptable and if we should have it scalarized.
This PR removes `expand_expr` in Expr... | diff --git a/python/taichi/lang/any_array.py b/python/taichi/lang/any_array.py
index c7c44ba20e244..4b980797cd243 100644
--- a/python/taichi/lang/any_array.py
+++ b/python/taichi/lang/any_array.py
@@ -78,6 +78,8 @@ def __init__(self, arr, indices_first):
@taichi_scope
def subscript(self, i, j):
+ ast... | 13 | 11 | 3 | [{"id": "G0", "claim": "The `index_dim` variable in `subscript()` is no longer valid after this PR's change and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `field_dim` variable in `subscript()` is no longer used and sho... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.