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
tobymao__sqlglot__7497
tobymao/sqlglot
7,497
defect
713e95fb9bca5fa6ac0aa660f599a4be632872e2
345636bd4c82e6e8eeb8bcbfd81cef4fc98638cb
fix(snowflake): transpile DuckDB JSON_ARRAY to ARRAY_CONSTRUCT [CLAUDE]
## Summary DuckDB's `JSON_ARRAY` function has no Snowflake equivalent — Snowflake uses `ARRAY_CONSTRUCT` instead (`JSON_ARRAY` is not a recognized Snowflake function). Currently, `JSON_ARRAY(...)` falls through to `Anonymous` in the DuckDB parser and passes through unchanged to Snowflake output, producing invalid SQL...
diff --git a/sqlglot/generators/snowflake.py b/sqlglot/generators/snowflake.py index 7be0779484..8c8dc2697d 100644 --- a/sqlglot/generators/snowflake.py +++ b/sqlglot/generators/snowflake.py @@ -497,6 +497,10 @@ class SnowflakeGenerator(generator.Generator): exp.GetExtract: rename_func("GET"), exp.Gro...
1
1
1
[{"id": "G0", "claim": "The transpiled output is a bare ARRAY_CONSTRUCT array, so a JSON-style access on it (e.g. SELECT JSON_ARRAY('a', 1, 'c')->>1) would not be valid; the result should be wrapped with TO_JSON to match DuckDB's semantics (and NULL values should be handled).", "category": "correctness", "verdict": "su...
null
tobymao__sqlglot__7505
tobymao/sqlglot
7,505
defect
53088a69a528076feda2ad2e747ce82e43cf911f
aa668aea665c567f15a754deb78cc519c7e68319
fix(snowflake): transpile REDUCE to DuckDB LIST_REDUCE
Adds support for transpiling Snowflake's REDUCE function to DuckDB's LIST_REDUCE.
diff --git a/sqlglot-integration-tests b/sqlglot-integration-tests index f4de0ebec5..a9f0ad152c 160000 --- a/sqlglot-integration-tests +++ b/sqlglot-integration-tests @@ -1 +1 @@ -Subproject commit f4de0ebec55913bd959b1ee02eb333bfdf280db4 +Subproject commit a9f0ad152c339ad8a996a568db19e2277cd60f29 diff --git a/sqlglot/...
1
1
0
[{"id": "G0", "claim": "Decorate reduce_sql with @unsupported(\"finish\") instead of manually checking the finish arg and calling function_fallback_sql inside the method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tobymao__sqlglot__7510
tobymao/sqlglot
7,510
defect
379c63e6fb766ab2ac9667f8bb9eab49f0de64f5
e0b1efdedb962ffcb2bf50b250859293e699abb5
Add `INVISIBLE` column constraint for MySQL.
MySQL 8.0.23 introduced invisible columns, declared with the `INVISIBLE` keyword in column definitions. Until now, sqlglot could parse `ALTER TABLE ... ALTER COLUMN ... SET INVISIBLE` (PR #4809) and `ALTER TABLE ... ALTER INDEX ... INVISIBLE` (PR #4800), but the keyword was not recognized in column definitions. This me...
diff --git a/sqlglot/expressions/constraints.py b/sqlglot/expressions/constraints.py index 5c99c49de6..fc9320fedc 100644 --- a/sqlglot/expressions/constraints.py +++ b/sqlglot/expressions/constraints.py @@ -33,6 +33,10 @@ class AutoIncrementColumnConstraint(Expression, ColumnConstraintKind): pass +class Invisi...
1
1
0
[{"id": "G0", "claim": "The two assertIsInstance checks in test_invisible_column are somewhat redundant given that the roundtrip is already tested, and could be trimmed down to shorter assertions (assertIsNotNone).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tobymao__sqlglot__7511
tobymao/sqlglot
7,511
defect
379c63e6fb766ab2ac9667f8bb9eab49f0de64f5
972abf02f276c18a6137e8f06bded476c80cbea2
Feat(mysql): support `ALTER TABLE ... RENAME INDEX`.
MySQL 5.7 introduced `ALTER TABLE ... RENAME INDEX old TO new` (and the `RENAME KEY` synonym) as a metadata-only operation that renames an index without rebuilding it.
diff --git a/sqlglot/expressions/ddl.py b/sqlglot/expressions/ddl.py index cd3494de49..0e2662828f 100644 --- a/sqlglot/expressions/ddl.py +++ b/sqlglot/expressions/ddl.py @@ -279,6 +279,10 @@ class AlterRename(Expression): pass +class RenameIndex(Expression): + arg_types = {"this": True, "to": True} + + cl...
2
1
0
[{"id": "G0", "claim": "The standalone test_rename_index method added in tests/dialects/test_mysql.py is redundant with the validate_identity assertions and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since exp.RenameIndex is a nod...
null
tobymao__sqlglot__7514
tobymao/sqlglot
7,514
defect
379c63e6fb766ab2ac9667f8bb9eab49f0de64f5
a521da1c8690f68e96d84ec9f614d97deab2fae6
feat(doris, starrocks): support two-argument DATE_ADD/DATE_SUB
## Problem Doris and StarRocks natively support the two-argument form of `DATE_ADD` / `DATE_SUB`: ```sql SELECT DATE_SUB(current_date(), 3); -- equivalent to INTERVAL 3 DAY ``` Both dialects inherit from MySQL, which binds these functions to build_date_delta_with_interval (strict INTERVAL-only). As a result...
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index bbb4515c5a..e7e6906782 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -1598,6 +1598,7 @@ def _builder(args: BuilderArgs) -> E: def build_date_delta_with_interval( expression_class: Type[E], + default_u...
2
2
0
[{"id": "G0", "claim": "The verbose multi-line validate_all blocks in tests/dialects/test_doris.py::test_date_add_sub should be replaced with single-line validate_identity calls.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The verbose multi-l...
null
tobymao__sqlglot__7522
tobymao/sqlglot
7,522
defect
7660486c4cc6a679e73d2a45498982d8895b64c0
bea0c48be896eb2b31a266623dca47df6ee110f1
fix(mysql): accept quoted charset in `USING`.
MySQL allows backtick-quoted charset names in both ```CONVERT(... USING `utf8mb4`)``` and ```CHAR(... USING `utf8mb4`)```. Both called `_parse_var`, which only matches unquoted tokens. Adding `TokenType.IDENTIFIER` to the token set accepts quoted charsets without changing behavior for unquoted ones.
diff --git a/sqlglot/parser.py b/sqlglot/parser.py index 30816a4318..8252b60584 100644 --- a/sqlglot/parser.py +++ b/sqlglot/parser.py @@ -7592,7 +7592,8 @@ def _parse_char(self) -> exp.Chr: return self.expression( exp.Chr( expressions=self._parse_csv(self._parse_assignment), - ...
3
2
2
[{"id": "G0", "claim": "The parser should also accept the BINARY token after USING in CHAR(...), to support queries like SELECT CHAR(65 USING BINARY).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Stripping backticks from a quoted charset that is n...
null
tobymao__sqlglot__7524
tobymao/sqlglot
7,524
defect
7660486c4cc6a679e73d2a45498982d8895b64c0
0485cc916e1ad63fe53ebb282b8e31e03e745c73
feat(starrocks): stop eliminating semi/anti joins, QUALIFY, and FULL OUTER JOIN [CLAUDE]
StarRocks inherits from the MySQL dialect, but it natively supports several SQL features that MySQL does not. The MySQL generator unnecessarily rewrites these into workarounds, producing suboptimal SQL for StarRocks. This PR corrects that. **Features now preserved (no longer eliminated):** - **Semi/anti joins**: StarR...
diff --git a/sqlglot/generators/starrocks.py b/sqlglot/generators/starrocks.py index ef35b920d7..04b9ad39d5 100644 --- a/sqlglot/generators/starrocks.py +++ b/sqlglot/generators/starrocks.py @@ -100,6 +100,14 @@ class StarRocksGenerator(MySQLGenerator): exp.JSONExtract: arrow_json_extract_sql, exp.Pro...
2
2
0
[{"id": "G0", "claim": "The test_distinct_on assertion should use self.validate_identity(...) directly instead of self.validate_all(...) with a write dict, since it is a single starrocks identity check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
tobymao__sqlglot__7530
tobymao/sqlglot
7,530
defect
9f2f894d9f1284336eb4956d53b7489da91398ea
7543dc31b8525993c063a59ded9ab7c4f7939c52
feat(mysql)!: support `DROP PRIMARY KEY`.
This commit adds support for `ALTER TABLE t DROP PRIMARY KEY` for MySQL. I followed the general pattern of `DropPartition`, as it looked most extensible to other database vendors (eg. BigQuery, Oracle, Snowflake, Databricks) based on a sampling of syntax.
diff --git a/sqlglot/expressions/ddl.py b/sqlglot/expressions/ddl.py index 0e2662828f..79e8ac3484 100644 --- a/sqlglot/expressions/ddl.py +++ b/sqlglot/expressions/ddl.py @@ -354,6 +354,10 @@ def kind(self) -> str | None: return kind and kind.upper() +class DropPrimaryKey(Expression): + arg_types = {} +...
1
1
1
[{"id": "G0", "claim": "Routing `DROP PRIMARY KEY` through the base parser regresses dialects that support a superset of MySQL's syntax: BigQuery's `alter table foo drop primary key if exists`, which parsed as a Command on main, now raises a ParseError, so the parsing logic should be moved to MySQL's parser or else eve...
null
tobymao__sqlglot__7536
tobymao/sqlglot
7,536
defect
fc6e7cb093583d44ac4863d770b583e75d45f365
0a243f4b24608573da3617a4f1efc64859b5dcc2
feat(duckdb)!: Add transpilation support for STRTOK_TO_ARRAY function
Snowflake's `STRTOK_TO_ARRAY(str, delim)` splits a string on any character in delim (treating it as a character class), skips empty tokens, defaults to space when delimiter is omitted, and returns `NULL` when either argument is `NULL`. DuckDB has no equivalent — a simple rename to `STRING_TO_ARRAY` fails because Duc...
diff --git a/sqlglot-integration-tests b/sqlglot-integration-tests index 7281197267..47d3becd76 160000 --- a/sqlglot-integration-tests +++ b/sqlglot-integration-tests @@ -1 +1 @@ -Subproject commit 7281197267141c2802f8fc603fe3e1c2a27b9509 +Subproject commit 47d3becd76bcff8a5ae79f3793eb27123e768e01 diff --git a/sqlglot/...
3
2
1
[{"id": "G0", "claim": "The Snowflake parser should default the delimiter to \" \" when seq_get(args, 1) is None, so callers like the DuckDB generator do not have to apply the snowflake-default semantics on a case-by-case basis.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
tobymao__sqlglot__7538
tobymao/sqlglot
7,538
defect
86cfdb3020daeac279db2631c99fe7ebde4a4bbd
97c1e17b9aac53e8fa9001cb432e2f8858bfba77
feat(exasol): transpile USE/OPEN SCHEMA and SHOW TABLES to system-table query
## Summary Two related Exasol statement-transpilation features: 1. **`USE <schema>` ↔ `OPEN SCHEMA <schema>`** — Exasol uses `OPEN SCHEMA` where other dialects use `USE`. Before this PR, parsing `OPEN SCHEMA test` raised a ParseError, and transpiling `USE test` from MySQL produced a literal `USE test` which Exasol re...
diff --git a/sqlglot/generators/exasol.py b/sqlglot/generators/exasol.py index e94d0c3ea4..5ebc4a7602 100644 --- a/sqlglot/generators/exasol.py +++ b/sqlglot/generators/exasol.py @@ -890,6 +890,31 @@ def if_sql(self, expression: exp.If) -> str: false = self.sql(expression, "false") return f"IF {this} ...
1
1
0
[{"id": "G0", "claim": "The signatures of the new `_parse_statement` and the edited `_parse_column` in sqlglot/parsers/exasol.py should use the `Expr | None` annotation style instead of `t.Optional[exp.Expr]`, to match sqlglot's type-hint convention.", "category": "maintainability", "verdict": "supported", "priority": ...
null
tobymao__sqlglot__7544
tobymao/sqlglot
7,544
defect
68861d9f3aaa6c9ae405dacfa22117fb64a1d803
c0fb75867655ec83253272ac0f04395b1dc9c6bc
fix(parser): robust CONCAT_WS
Fixes #7540
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index e7e6906782..a3d4a226ca 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -399,6 +399,9 @@ class Dialect(metaclass=_Dialect): CONCAT_COALESCE = False """A `NULL` arg in `CONCAT` yields `NULL` by default, bu...
2
2
1
[{"id": "G0", "claim": "The new CONCAT_WS_COALESCE docstring should be simplified and reworded to mimic the CONCAT docstring above it for consistency.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should confirm that the changed CONCAT...
null
tobymao__sqlglot__7549
tobymao/sqlglot
7,549
defect
f3871121d5f61e3c12dd47cfa700c4452f4fd807
900a6705fec62536555790b81e4c78b6231d2453
fix(optimizer): EXPLODE qualify and annotate
Fixes #7541
diff --git a/sqlglot/optimizer/annotate_types.py b/sqlglot/optimizer/annotate_types.py index 5d6b2b47a3..0e6b1c407c 100644 --- a/sqlglot/optimizer/annotate_types.py +++ b/sqlglot/optimizer/annotate_types.py @@ -300,14 +300,23 @@ def _get_scope_selects(self, scope: Scope) -> dict[str, dict[str, t.Any]]: ...
3
1
0
[{"id": "G0", "claim": "The parentheses around the walrus assignment `(source_expr := source.expression)` are unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A check that the source expression's type is a struct...
null
tobymao__sqlglot__7561
tobymao/sqlglot
7,561
defect
cf0ffd99ef27a4a4764104feb9b1dd2af1c544ce
d17f7e1985c5c8cd58049dca2ce896b057f6d594
[CLAUDE] [OPUS 4.7] feat(hive): register NAMED_STRUCT in parser so struct fields annotate
I'm relatively certain this is an actual fix; we monkey-patched this into our SQLGlot implementation and it resolved issues locally. No changes to the generator to keep the impact on the tests minimal and ensure it won't give any surprises to any other users of SQLGlot, but it's worthwhile to consider generating NAMED_...
diff --git a/sqlglot/parsers/hive.py b/sqlglot/parsers/hive.py index d2c30d6824..bbab067e09 100644 --- a/sqlglot/parsers/hive.py +++ b/sqlglot/parsers/hive.py @@ -29,6 +29,16 @@ def _build_to_date(args: list) -> exp.TsOrDsToDate: return expr +def _build_named_struct(args: list) -> exp.Struct: + """Map named...
1
1
0
[{"id": "G0", "claim": "In _build_named_struct, the name should be taken as key.name instead of branching on exp.Literal to pick key.this.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tobymao__sqlglot__7562
tobymao/sqlglot
7,562
defect
cf0ffd99ef27a4a4764104feb9b1dd2af1c544ce
a5244ba866fd0a4a51625e354d9a1aea073034b9
fix(mysql)!: full `MODIFY COLUMN` support.
The semantics of `MODIFY COLUMN` in MySQL are not the same as `ALTER COLUMN`, but have been treated so since #3189. The[ two `ALTER TABLE` expressions](https://dev.mysql.com/doc/refman/8.4/en/alter-table.html) are fundamentally incompatible: ``` | MODIFY [COLUMN] col_name column_definition [FIRST | AFTER...
diff --git a/sqlglot/expressions/ddl.py b/sqlglot/expressions/ddl.py index 79e8ac3484..9576a1aa0b 100644 --- a/sqlglot/expressions/ddl.py +++ b/sqlglot/expressions/ddl.py @@ -245,6 +245,10 @@ class AlterColumn(Expression): } +class ModifyColumn(Expression): + pass + + class AlterIndex(Expression): arg...
2
2
1
[{"id": "G0", "claim": "The FIRST | AFTER parsing should be pushed into parser.py::_parse_column_def() instead of being duplicated in MySQL's _parse_alter_table_modify, since the same logic already exists in parser.py::_parse_add_column.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd...
null
tock__libtock-rs__112
tock/libtock-rs
112
defect
8e96724746827a638d19db09729d9c19497495c7
793661c3561995ec7897d0680c1101295e0afa02
Add parallel timer
# Summary Add an implementation for the timer driver which allows parallel execution of delays. Also add an example how to use this api. Moreover, we show a simple way how to make the driver actually a singleton (so different instances can't interfere which each other). This PR depends on https://github.com/tock/t...
diff --git a/examples/adc.rs b/examples/adc.rs index 202270f8b..9d19414d6 100644 --- a/examples/adc.rs +++ b/examples/adc.rs @@ -4,9 +4,12 @@ use core::fmt::Write; use libtock::adc; use libtock::console::Console; use libtock::timer; -use libtock::timer::Duration; async fn main() { + let context = timer::Driver...
6
4
2
[{"id": "G0", "claim": "The changes in src/timer.rs should be documented so that all the major structures and functions have comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation on DriverContext should explain the purpose of ...
null
tock__libtock-rs__126
tock/libtock-rs
126
defect
27f75fd7774e2cb43e99570ddb5cb9ac02b41493
9a012f1101faf806584ccf6d168973dfd39502d4
Enable clippy and fix lints
# Summary In this PR I enable clippy in CI and fix some lints. Some soiutions may be a matter of taste. Most significantly I removed some `unsafe` constraints, where I think there is no unsafety.
diff --git a/.travis.yml b/.travis.yml index 69d3a3740..0bcbb0c54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,8 +19,10 @@ install: - rustup target add thumbv7em-none-eabi - rustup target add riscv32imc-unknown-none-elf - rustup component add rustfmt-preview + - rustup component add clippy script: ...
6
1
1
[{"id": "G0", "claim": "If the `Default::default()` call sites are only a transitional state left by the clippy lint, maybe clippy could be switched off for `Default` impls instead.", "category": "tooling", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `command` functions in...
null
tock__libtock-rs__144
tock/libtock-rs
144
defect
63b58b0ba1a4140a42118f9374214fcc451bc703
dc3228cc34af7649aa9c90ff46587bd1c3b79439
Improve output of the libtock test suite
This PR adds clear assertions to the integration test suite. It also tries to remove some confusion about the intent of the integration tests by renaming them from `hardware_test.rs` to `libtock_test.rs`.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dd09bf16f..e313e1834 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,18 +35,19 @@ The pins P0.03 and P0.04 need to be connected (on an nRF52 DK). Then do the foll - connect your device to your computer - open a console, e.g. `tockloader listen` -- run t...
1
1
1
[{"id": "G0", "claim": "Reviewer asks whether Termination::check_result is used anywhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tock__libtock-rs__149
tock/libtock-rs
149
defect
371334f5ccc8d2d31219fa317f05dc99bddabbc1
211a04ee0de45ff140a94454f8cec16541d4c7de
Update Rust toolchain
Fixes #138 and updates the Rust toolchain s.t. it is in line with Tock OS.
diff --git a/.travis.yml b/.travis.yml index 651ad977f..dae25d0ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ branches: language: rust rust: - - nightly-2019-11-06 + - nightly-2020-01-16 os: - linux diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68c463dfb..1caeca59f 100644 --- a/CONTRIB...
2
1
0
[{"id": "G0", "claim": "The reviewer asks Woyten to explain why the retrieve_drivers singleton rework (with its unit test moved to an integration test) is required, and suggests adding a comment in the code so the reason is clear.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introd...
null
tock__libtock-rs__158
tock/libtock-rs
158
defect
d60e36596c6823abebabe7636af6ca981273792d
f457e00d065f7a581ada9d88e19701ee8b160379
Create test runner to run integration tests in qemu
This PR proposes a test runner written in rust. The goal is to have the following improvements over the previous solution using single a command line call: * it should time out transparently and signal that it has timed out * it should note that tests failed * it shouldn't be too fragile (e.g. changing output f...
diff --git a/.travis.yml b/.travis.yml index 7b6bf87a1..8efe4b776 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,10 @@ cache: cargo # Once Travis supports a version of Ubuntu Disco or newer we can apt install QEMU for RISC-V # Until then we need to build it ourselves before_install: -# - sudo apt-get -y ...
3
3
0
[{"id": "G0", "claim": "The test runner checks for a specific set of test cases rather than scanning for libtock_test's \"Test suite finished with state SUCCESS\" output; the reviewer asks why.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test runn...
null
tock__libtock-rs__17
tock/libtock-rs
17
defect
cebf425638587e54747620dbe6787ad5f6fd3af5
4000b1c8b7075804dd397bff1a5b95b0b2b6a74b
New allow structure, de-allow and de-subscribe features
**Overview** This pull request contains the following changes: - establish a new allow structure to be able to automatically take away shared resources from the kernel when the shared object goes out of scope. - change the unsubscribe method to the new "subscribe" interface introduced to the kernel by #746. - chang...
diff --git a/examples/hardware_test.rs b/examples/hardware_test.rs index a127c22b7..3b0d7ea78 100644 --- a/examples/hardware_test.rs +++ b/examples/hardware_test.rs @@ -16,6 +16,9 @@ use tock::timer::Duration; fn main() { let mut buf: Box<[u8]> = ipc_cs::reserve_shared_buffer(); let mut console = Console::ne...
4
4
2
[{"id": "G0", "claim": "SharedMemoryHandle should be renamed to SharedMemory (or MemoryShare) in analogy with SubscribableCallback/CallbackSubscription, because SomethingHandle has no clear meaning.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ScanBuff...
null
tock__libtock-rs__222
tock/libtock-rs
222
defect
e9a95cea30e2e53d90dbfdc2497bd36a9e73700d
5824434eed832b33f457cabae3f6009025ae316a
Add the Allowed type to libtock_platform.
Allowed is the type that will be returned by `Platform::allow()` in the successful case. It represents a memory buffer shared with the kernel. It uses raw pointers and volatile writes to perform read/write accesses to the memory to avoid encountering undefined behavior. This is the first step towards fixing #129 and...
diff --git a/core/platform/src/allows/allow_readable.rs b/core/platform/src/allows/allow_readable.rs new file mode 100644 index 000000000..c35701bfb --- /dev/null +++ b/core/platform/src/allows/allow_readable.rs @@ -0,0 +1,18 @@ +/// Because the kernel may modify shared memory and place any bit pattern into +/// that m...
2
2
2
[{"id": "G0", "claim": "The comment on `Allowed::set` is misleading because it reads as if drop being called (or not) for values placed in an `Allowed` is deterministic, when the caller cannot know whether the destructor runs for the userspace-inserted or the kernel-inserted value, so the comment should be reworded.", ...
null
tock__libtock-rs__235
tock/libtock-rs
235
defect
3cee5970721d19bbfdfa9eaf66945f97a8843991
0ee417a121285801c935059afbf1e2ab43b2f417
console: Add support for println! and print!
Currently we have a cluncky way of printing by calling the following: writeln!(console, "My message")?; Although this works, it means we need to keep track of the console struct. This makes it difficult to support printing in third party libraries. This also means that we don't follow the Rust convention of...
diff --git a/examples-features/alloc_error.rs b/examples-features/alloc_error.rs index 40ae93949..8b20f84a6 100644 --- a/examples-features/alloc_error.rs +++ b/examples-features/alloc_error.rs @@ -7,7 +7,7 @@ extern crate alloc; use alloc::vec::Vec; use core::alloc::Layout; -use core::fmt::Write; +use libtock::prin...
7
4
1
[{"id": "G0", "claim": "The `unwrap()` inside the println!/print! macros would generate a lot of panicking code.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making the console global is a problem because Console::flush internally yields (executor...
null
tock__libtock-rs__267
tock/libtock-rs
267
defect
a2ff5bcfdce9914eda29e840d1fb96ded84a6bb3
1ea7b5f78c966ae9a98300f82c3a2c6eff9d85ca
Add the `CommandReturn` type.
The `command` system call will return a `CommandReturn`. `CommandReturn` is practically free to construct and contains methods that allow drivers to interpret the register values it contains.
diff --git a/core/platform/src/command_return.rs b/core/platform/src/command_return.rs new file mode 100644 index 000000000..7b4abf35b --- /dev/null +++ b/core/platform/src/command_return.rs @@ -0,0 +1,163 @@ +use crate::{return_type, ErrorCode, ReturnType}; + +/// The response type from `command`. Can represent a succ...
2
1
0
[{"id": "G0", "claim": "The terminology should distinguish system-call return variants from the syscall types themselves, so `ReturnType` should be renamed to `ReturnVariant` (with the TRD updated).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may n...
null
tock__libtock-rs__316
tock/libtock-rs
316
defect
a632eadeb53723f27e29213ff8175a014178d137
875490588d7e07e54706ac7f587bb8beec351b5f
Add an upcall module to `libtock_unittest`.
This change adds an upcall queue to the kernel data. I plan to implement the following in separate PRs: 1. Upcall invocation in Yield 2. Subscribe I added a TODO to write a test for fake::Kernel::add_driver. There are a couple refactorings I want to do to it, and if I write the test now, I'll have to change it s...
diff --git a/platform/src/raw_syscalls.rs b/platform/src/raw_syscalls.rs index bb8a66d1d..49d31f229 100644 --- a/platform/src/raw_syscalls.rs +++ b/platform/src/raw_syscalls.rs @@ -169,7 +169,7 @@ pub unsafe trait RawSyscalls { // noreturn (all these system calls are expected to return) // //...
2
2
0
[{"id": "G0", "claim": "Extend the null-upcall comment in `schedule` to note that the core kernel does not queue null upcalls either.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo 'Very' to 'Verify' in the test comment above the asse...
null
tock__libtock-rs__320
tock/libtock-rs
320
defect
d99f64ea7f3f06a8d9842a212abfe8343500bb36
7a444b54bc47caf7eb2c5e6c565e8ed09efb0b18
Add `AllowDb` to `libtock_unittest`.
`AllowDb` is a component of the fake kernel that tracks currently-allowed buffers. It checks for aliasing requirements, and performs the conversion between `Register` values and native Rust types.
diff --git a/unittest/src/allow_db.rs b/unittest/src/allow_db.rs new file mode 100644 index 000000000..f7d078663 --- /dev/null +++ b/unittest/src/allow_db.rs @@ -0,0 +1,216 @@ +use core::num::NonZeroUsize; +use libtock_platform::Register; + +/// `AllowDb` stores the currently-active Allow buffers, and is responsible fo...
3
2
1
[{"id": "G0", "claim": "The unsafe helper that builds an RoAllowBuffer from a slice is dangerous because the buffer can outlive the passed-in slice; the reviewer asks whether heap allocation of RoAllowBuffer could tie its lifetime to the slice.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "i...
null
tock__libtock-rs__339
tock/libtock-rs
339
defect
8bb0245db2383608a72176ed85a979b1dfd36fee
f676d20396ab6af4be4de77a4824d5886e93d046
Implement Exit in `libtock_unittest`, and add functionality for testing Exit calls.
Calling Exit on a fake kernel will cause the test process to exit. I wanted to make Exit unwind, but that would make it impossible to test error handling in Allow implementations. In particular, the critical `Drop` implementation in #338 cannot be tested if Exit unwinds, as unwinding past the destructor would immedi...
diff --git a/Makefile b/Makefile index deabcbcc9..f5ba9a045 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,12 @@ examples: # libtock_runtime only supports running on Tock. EXCLUDE_RUNTIME := --exclude libtock2 --exclude libtock_runtime +# Arguments to pass to cargo to exclude crates that cannot be tested by Miri...
1
1
0
[{"id": "G0", "claim": "The `unwrap()` on `std::env::current_exe()` in `spawn_test` should be an `expect()` with a descriptive message, for consistency with the `expect()` calls used elsewhere in the function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tock__libtock-rs__344
tock/libtock-rs
344
defect
a69ab884bda2b07f267afa39caa6f5cb337f6d36
c680d36b3822f6e1d476c5e8eb4cd85185c69e0d
Add a Subscribe API to `libtock_platform`.
This API is based on the design at https://github.com/tock/libtock-rs/issues/341. Based on a request from Ti50, I added a configuration parameter to `subscribe`. Currently the only part of `subscribe` that is configurable is its behavior if the kernel returns a non-null upcall. By default I don't think `subscribe` s...
diff --git a/platform/src/default_config.rs b/platform/src/default_config.rs new file mode 100644 index 000000000..60254cff8 --- /dev/null +++ b/platform/src/default_config.rs @@ -0,0 +1,5 @@ +/// A general purpose syscall configuration, which drivers should use as their +/// default syscall config. +pub struct Default...
8
4
0
[{"id": "G0", "claim": "Fix the typo in the Subscribe struct's safety comment: \"if the upcall in invoked\" should read \"if the upcall is invoked\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test looks self-contradictory: the closure cle...
null
tock__libtock-rs__346
tock/libtock-rs
346
defect
4372e786b5e7b97e55fdac54920529d21072d728
cdb8b615143a29bc1d0976ae78b7bc9ca37b61f0
Refactor `syscall_scope` into a new `share` module with a different layout.
This refactoring is motivated by https://github.com/tock/tock/pull/2906, which removes the need for passing around references to `ShareList`s. Instead, this change introduces a `Handle` type, which functions like a `&ShareList` but which is zero-sized. I noticed that a core concept of the various types/methods is th...
diff --git a/platform/src/lib.rs b/platform/src/lib.rs index 40ed324c6..da791f85c 100644 --- a/platform/src/lib.rs +++ b/platform/src/lib.rs @@ -10,8 +10,8 @@ pub mod exit_on_drop; mod raw_syscalls; mod register; pub mod return_variant; +pub mod share; pub mod subscribe; -mod syscall_scope; mod syscalls; mod sysc...
3
3
1
[{"id": "G0", "claim": "The `Handle::change_type` safety comment should clarify the drop relationship between self and `Other` — whether both need separate `Drop` calls or the `Other` need not be dropped separately since the new self's `L` gets dropped.", "category": "documentation", "verdict": "supported", "priority":...
null
tock__libtock-rs__35
tock/libtock-rs
35
defect
4eb0fedd203dd98d1ddade9ba6855d9bb9db088f
0833a043c621624b6609443fae12dc4d0f570142
Fix subscription part of #33
This PR changes `syscalls::subscribe` to consume `&mut CB` instead of `CB`. For more details see #33.
diff --git a/examples/ble_scanning.rs b/examples/ble_scanning.rs index b422ab3db..96caef8f7 100644 --- a/examples/ble_scanning.rs +++ b/examples/ble_scanning.rs @@ -13,6 +13,7 @@ extern crate tock; use alloc::*; use tock::ble_parser; use tock::led; +use tock::simple_ble::BleCallback; use tock::simple_ble::BleDriver...
1
1
0
[{"id": "G0", "claim": "The pointer passed to c_callback for the kernel should be something statically valid; the reviewer would make c_callback a module-level function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tock__libtock-rs__351
tock/libtock-rs
351
defect
9600f17049382ea3dfb1ace380a252a95f642468
80c9bbe5f5ae3501c5126caf595b620eae09c339
Add a TryFrom<u32> impl for ErrorCode
This also adds a link to the TRD 104 error code page to make the restrictions a bit more clear.
diff --git a/platform/src/error_code.rs b/platform/src/error_code.rs index ce11dc58e..e6b629e54 100644 --- a/platform/src/error_code.rs +++ b/platform/src/error_code.rs @@ -1,5 +1,9 @@ -/// An error code returned by the kernel. +use core::{convert::TryFrom, fmt, mem::transmute}; + // TODO: Add a ufmt debug implementat...
2
2
0
[{"id": "G0", "claim": "NotAnErrorCode should use derive(Debug) instead of a manual fmt::Debug impl, so its Debug output is `NotAnErrorCode`, consistent with other Debug implementations.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment sayi...
null
tock__libtock-rs__359
tock/libtock-rs
359
defect
6f8b51237139b41606b563eeb936e167a03fbc89
d738cf094e4da68fd0443f9c3a68d95595fea405
Leds driver (v1)
This PR adds a LEDs driver similar to the `LowLevelDebug` one, but very different from the previous LEDs driver (libtock1).
diff --git a/Cargo.toml b/Cargo.toml index 81f248d9b..1b230c764 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,6 +84,7 @@ debug = true [workspace] exclude = [ "tock" ] members = [ + "apis/leds", "apis/low_level_debug", "codegen", "core", diff --git a/apis/leds/Cargo.toml b/apis/leds/Cargo.toml new...
9
8
2
[{"id": "G0", "claim": "The description in apis/leds/Cargo.toml should be updated (it still says \"libtock low-level debug drivers\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The driver methods should not be marked #[inline(always)]; the co...
null
tock__libtock-rs__370
tock/libtock-rs
370
defect
abff51c0623c2de667cd6001599e87bdda7f4a1a
06763bb0a0783fbd1e1439381ba09aafbad7379d
Add a simple way to convert a CommandReturn into a Result
There are a few changes that this makes: - `CommandReturn` is `#[must_use]` - `ErrorCode` includes `BadRVal` - `CommandReturn` has a `to_result` method I experimented with a few methods of structuring `to_result` to have the smallest overhead per monomorphization. What you see here is the best I could do. I als...
diff --git a/apis/leds/src/lib.rs b/apis/leds/src/lib.rs index 41e6d310f..bfcd51f15 100644 --- a/apis/leds/src/lib.rs +++ b/apis/leds/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -use libtock_platform::Syscalls; +use libtock_platform::{ErrorCode, Syscalls}; /// The LEDs driver /// @@ -9,30 +9,30 @@ use libtock_platform...
3
2
0
[{"id": "G0", "claim": "The leds tests should use assert_eq!(Leds::count(), Ok(10)) (and compare Ok/Err values directly) instead of assert!(...is_ok()), so the error code is printed when the assertion fails.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
tock__libtock-rs__373
tock/libtock-rs
373
defect
a0440bad10fdd68747f0d5a1a1071fe04d2dce73
b516d4c982328be9fcf42dac6476b9e7eeb535a8
Rename DRIVER_ID to DRIVER_NUM
This PR renames the `DRIVER_ID` to `DRIVER_NUMBER` to be consistent with the drivers TRD naming.
diff --git a/apis/leds/src/lib.rs b/apis/leds/src/lib.rs index bfcd51f15..5fe65ff54 100644 --- a/apis/leds/src/lib.rs +++ b/apis/leds/src/lib.rs @@ -11,6 +11,15 @@ use libtock_platform::{ErrorCode, Syscalls}; /// // Turn on led 0 /// let _ = Leds::on(0); /// ``` + +const DRIVER_NUMBER: u32 = 2; + +// Command IDs +co...
3
3
0
[{"id": "G0", "claim": "The driver-number constant should be named DRIVER_NUM rather than DRIVER_NUMBER, for consistency with the predominant usage in libtock-rs and Tock.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The driver-number and comm...
null
tock__libtock-rs__401
tock/libtock-rs
401
defect
85dc9450b81194f3c6501032289a1269780e1c12
b5cba3103bc8cb6b542f3312dc90259f6778c4f0
Add console read
Reading limited to bytes. Reading strings makes some sense in a human context, but there is no API for waiting on a character, so it was skipped. I think I might have a bug somewhere in tests when handling errors because the buffer should have been filled. Or maybe I just don't understand the test framework.
diff --git a/apis/console/src/lib.rs b/apis/console/src/lib.rs index 82979641f..1e18b83d6 100644 --- a/apis/console/src/lib.rs +++ b/apis/console/src/lib.rs @@ -4,6 +4,7 @@ use core::fmt; use core::marker::PhantomData; use libtock_platform as platform; use libtock_platform::allow_ro::AllowRo; +use libtock_platform::...
3
2
1
[{"id": "G0", "claim": "The `map_err` on the command result is dead code: `called.get()` always returns `None` there because upcalls are only invoked when a Yield is executed, so the `map_err` call should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
tock__libtock-rs__405
tock/libtock-rs
405
defect
4340ffdacafda0c17710acf4cff693c642a8ab69
a0ca1175dd7727611c1ac62f4abea394813187a7
api: Add sleep to alarm
I needed a blinking light show for marketing purposes (https://jazda.org), and I didn't have a blinking light example, so I made one. WIP because tests are annoyingly verbose and I also need a display syscall on short notice. I absolutely would not mind if someone else finished it up before I come back to this.
diff --git a/Cargo.toml b/Cargo.toml index f48bf67a6..4d30cca7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ debug = true exclude = ["tock"] members = [ "apis/gpio", + "apis/alarm", "apis/buttons", "apis/console", "apis/leds", diff --git a/apis/alarm/Cargo.toml b/apis/alarm/Cargo....
6
4
1
[{"id": "G0", "claim": "The fake SyscallDriver unit tests substantially duplicate the API implementation unit tests, so the fake driver tests should be reduced to only the cases not already covered by the API implementation tests.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}...
null
tock__libtock-rs__414
tock/libtock-rs
414
defect
85a9640c07a117f9c4b531394390b9acc472896e
cd506ea5c50f91bc0993f801ffddbf93ac784ce7
Implement the driver registration API in `doc/UnitTestOwnership.md`.
As described in #355, I intend to remove the use of thread-local storage in `libtock_unittest`. That requires giving `fake::SyscallDriver` implementations a reference that allows them to schedule upcalls. This PR adds that reference, and updates the `fake::SyscallDrivers` to use it.
diff --git a/apis/buttons/src/tests.rs b/apis/buttons/src/tests.rs index 68783cf5d..e9ab56cf8 100644 --- a/apis/buttons/src/tests.rs +++ b/apis/buttons/src/tests.rs @@ -1,11 +1,9 @@ use core::cell::Cell; use libtock_platform::{share, ErrorCode, Syscalls, YieldNoWaitReturn}; -use libtock_unittest::{fake, upcall}; +u...
2
1
0
[{"id": "G0", "claim": "The default implementation of `register` should silence the unused-parameter warning by naming the parameter `_share_ref` with an empty body (`fn register(&self, _share_ref: DriverShareRef) {}`) instead of `let _ = share_ref; // Silence the unused variable warning.`.", "category": "maintainabili...
null
tock__libtock-rs__451
tock/libtock-rs
451
defect
1d785a043a95d83b410f6a099a6121fc101ca3b7
b3eaab5dceecd27e9d25ee34bbbbd593129bab06
Temperature API
### Pull Request Overview This pull request adds: - a Temperature API, similar to the [libtock-c version](https://github.com/tock/libtock-c/blob/master/libtock/temperature.h). The API provides a function that simulates a synchronous temperature reading and also functions to initiate a reading, register/ unregister ...
diff --git a/Cargo.toml b/Cargo.toml index 3ee3a1916..319436d4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ libtock_buttons = { path = "apis/buttons" } libtock_console = { path = "apis/console" } libtock_debug_panic = { path = "panic_handlers/debug_panic" } libtock_leds = { path = "apis/leds" } +libto...
5
4
1
[{"id": "G0", "claim": "The libtock_temperature dependency entry in Cargo.toml (and the apis/temperature entry in the members list) should be placed in alphabetical order, after libtock_runtime.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
tock__libtock-rs__468
tock/libtock-rs
468
defect
bd77788c64f9b02630bd33e38010451d2abecce4
d3062a744c2f018e7e26e5e2060ae92c8e5b7487
NineDOF API
## Pull Request Overview This pull request adds: - a 9-DOF API similar to the [libtock-c version](https://github.com/tock/libtock-c/blob/master/libtock/ninedof.h). The API provides a function that simulates a synchronous read of the accelerometer, magnetometer and gyroscope, also functions to initiate a reading, re...
diff --git a/Cargo.toml b/Cargo.toml index 76791d699..e4e6bcb40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ libtock_platform = { path = "platform" } libtock_proximity = { path = "apis/proximity" } libtock_runtime = { path = "runtime" } libtock_temperature = { path = "apis/temperature" } +libtock_nined...
4
4
0
[{"id": "G0", "claim": "Put the newly added \"apis/ninedof\" entry in Cargo.toml's members list into alphabetical order, which is preferred and avoids merge conflicts between PRs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `dcz <gihuac.d...
null
tock__libtock-rs__469
tock/libtock-rs
469
defect
bd77788c64f9b02630bd33e38010451d2abecce4
997aacb8e263dafd74776fc674518c4526f0e393
Sound Pressure API
## Pull Request Overview This pull request adds: - a sound pressure API , similar to the [libtock-c version]( https://github.com/tock/libtock-c/blob/master/libtock/sound_pressure.h ). The API provides a function that simulates a synchronous sound pressusre reading and also functions to initiate a reading, register/...
diff --git a/Cargo.toml b/Cargo.toml index 76791d699..6ea0936d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ libtock_platform = { path = "platform" } libtock_proximity = { path = "apis/proximity" } libtock_runtime = { path = "runtime" } libtock_temperature = { path = "apis/temperature" } +libtock_sound...
1
1
0
[{"id": "G0", "claim": "Place the new libtock_sound_pressure dependency in Cargo.toml and the new sound_pressure module in src/lib.rs in alphabetical order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tock__libtock-rs__470
tock/libtock-rs
470
defect
bd77788c64f9b02630bd33e38010451d2abecce4
1f14e27794ef080f4f530b5aa3ed7f3ed0487be1
Buzzer API
## Pull Request Overview This pull request continues the work done by @teodorobert This pull request adds: - a buzzer API, similar to the [libtock-c version]( https://github.com/tock/libtock-c/blob/master/libtock/buzzer.h ). The API provides a function that simulates a synchronous tone setting and also functions...
diff --git a/Cargo.toml b/Cargo.toml index 76791d699..10ed9651a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ version = "0.1.0" [dependencies] libtock_alarm = { path = "apis/alarm" } libtock_buttons = { path = "apis/buttons" } +libtock_buzzer = {path = "apis/buzzer"} libtock_console = { path = "apis/co...
1
1
0
[{"id": "G0", "claim": "Place the new buzzer module declaration into alphabetical order among the module declarations in src/lib.rs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tock__libtock-rs__485
tock/libtock-rs
485
defect
83bb348481fae0fb0a77f0b697a0a7bd2e68b44b
8fbffb751e4d9eb1ea9eb41d3fde5e7c1a43c3da
api: adc: exists needs to handle number of channels
This is a bug in the kernel which will be fixed in future releases but for now we enable the ADC example to work.
diff --git a/apis/adc/src/lib.rs b/apis/adc/src/lib.rs index 31c6f153a..d2dc86ac8 100644 --- a/apis/adc/src/lib.rs +++ b/apis/adc/src/lib.rs @@ -10,7 +10,12 @@ pub struct Adc<S: Syscalls>(S); impl<S: Syscalls> Adc<S> { /// Returns Ok() if the driver was present.This does not necessarily mean /// that the dri...
1
1
0
[{"id": "G0", "claim": "The workaround comment in `exists()` should link to the kernel issue https://github.com/tock/tock/issues/3375 so future maintainers can see when this has been changed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tock__libtock-rs__488
tock/libtock-rs
488
defect
089f5c67fd7b8dacc8800c1b1db0c8f22230f5ba
5c3cd84b97e1e48cc019a1bfb9e977b48c9d30ba
Add key-value support
This adds the api and an example app for key-value. This is blocked on two things: 1. #487 - we need the new upcall conversion types 2. https://github.com/tock/tock/pull/3551 - we should wait until the kernel settles down before actually merging this. The userspace code won't change _that_ much, and I wanted to op...
diff --git a/Cargo.toml b/Cargo.toml index 1d1267d17..ef430280c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ version = "0.1.0" rust-version = "1.70" [dependencies] -libtock_adc = { path = "apis/adc" } +libtock_adc = { path = "apis/adc"} libtock_air_quality = { path = "apis/air_quality" } libtock_ala...
3
3
1
[{"id": "G0", "claim": "The key-value syscall driver API is being added without a fake version of the driver for the unittest crate; the author should add one, or the project should discuss whether unit tests should be required for all API implementations.", "category": "testing", "verdict": "supported", "priority": "P...
null
tock__libtock-rs__517
tock/libtock-rs
517
defect
cda873797a4a2937ccc13da75d0c74c04fab0a23
c6d9f2dc709247edcd7c27f465eba4006c5af026
apis: update breaking driver existence check changes
Bring libtock-rs into consistency with the changes in [this PR](https://github.com/tock/tock/pull/3613/). Only `apis/gpio/src/lib.rs` needed to be changed. The rest is a grepped driver_check -> exists.
diff --git a/apis/adc/src/lib.rs b/apis/adc/src/lib.rs index d0bbc1fb7..8d0e626d1 100644 --- a/apis/adc/src/lib.rs +++ b/apis/adc/src/lib.rs @@ -11,11 +11,11 @@ impl<S: Syscalls> Adc<S> { /// Returns Ok() if the driver was present.This does not necessarily mean /// that the driver is working. pub fn exis...
2
2
1
[{"id": "G0", "claim": "Keep the latter half of the exists() doc comment in apis/gpio, the part explaining that a present driver may still fail to allocate grant memory.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some of the CI errors are real...
null
tock__libtock-rs__71
tock/libtock-rs
71
defect
25fae0efb1a5641e8bf2a3d41c301ee13077b227
9b30d6a7a72aaa11030f02a38d72afa37f58fce5
Create hardware test cases
In this PR I create some more test cases. The tests need a device connected and the pins 0/1 connected. On the NRF52-DK these pins correspond to the pins p0.03 and p0.04 respectively. The following features of the library are tested: - Heap - Trait objects - GPIO - Callbacks - shared buffers (indirectly via ...
diff --git a/examples/hardware_test.rs b/examples/hardware_test.rs index 32b160fe4..0370e69b4 100644 --- a/examples/hardware_test.rs +++ b/examples/hardware_test.rs @@ -1,21 +1,126 @@ #![feature(alloc)] #![no_std] - +/// Hardware regression tests. +/// Need P0.03 and P0.04 to be connected (on a nrf52-dk). +#[macro_us...
5
3
1
[{"id": "G0", "claim": "Compiler optimizations may hide the relocation-related issues this hardware test is meant to catch, so optimization should be disabled for this particular test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "For consistency, the ...
null
tock__tock__3010
tock/tock
3,010
defect
a8ec6c44fe0053a99e271b6a23c91028f883f11c
1f1720f7ce391a316f693b6308b508c9df5609b2
Software implementation of SHA-256 in a capsule
### Pull Request Overview This pull request adds a software implementation of SHA256 as a capsule. The implementation relies in a deferred call to trigger callbacks. It includes a test, which passes. It adds a commented out line to the imix `main.rs` to include the test. I wrote this capsule so we have a software...
diff --git a/boards/imix/src/main.rs b/boards/imix/src/main.rs index 4704f6d9fd9..1f26efdc8bd 100644 --- a/boards/imix/src/main.rs +++ b/boards/imix/src/main.rs @@ -702,6 +702,8 @@ pub unsafe fn main() { );*/ //virtual_alarm_timer.set_alarm_client(mux_timer); + //test::sha256_test::run_sha256(dynamic_def...
12
9
3
[{"id": "G0", "claim": "The module doc comment's first line should be rewrapped so the implementation attribution starts on its own line, as the suggestion block proposes.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to remove t...
null
tock__tock__3056
tock/tock
3,056
defect
dc8eed7b7714cf8503fed6e8477e33fd92563986
704d3ed015327bab959066bffc617c321ef68787
OpenTitan: Bump to the latest RTL SHA
### Pull Request Overview This bumps us to the latest SHA. This includes support for the Manifest and the ePMP changes ### Testing Strategy Running on FPGA and Verilator ### TODO or Help Wanted Still get all the tests passing ~~and ePMP cleaned up~~ ### Documentation Updated - [X] Updated the relev...
diff --git a/arch/riscv/src/csr/mseccfg.rs b/arch/riscv/src/csr/mseccfg.rs index 618842fc152..91966ca6f97 100644 --- a/arch/riscv/src/csr/mseccfg.rs +++ b/arch/riscv/src/csr/mseccfg.rs @@ -5,7 +5,7 @@ use kernel::utilities::registers::register_bitfields; register_bitfields![usize, pub mseccfg [ mml OFFSE...
8
5
2
[{"id": "G0", "claim": "Changing panic_print/panic's nop parameter from &dyn Fn() to Option<&dyn Fn()> is a significant kernel API change that should be discussed (and split out of this hardware-bump PR).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
tock__tock__3092
tock/tock
3,092
defect
9c8dae808f3fd6dfbd861ed628bacbdb26693b1f
6ffd9f9e22e506268b7869e58a265d1bc60ca4ca
capsules: Add support for AES GCM
### Pull Request Overview This PR adds a new aes_gcm capsule. This capsule exposes [AES-GCM](https://en.wikipedia.org/wiki/AES-GCM-SIV) support if the hardware doesn't actually have it. We implement AES GCM using other supported AES operations and with a software implementation of ghash. This is similar to the...
diff --git a/boards/opentitan/src/main.rs b/boards/opentitan/src/main.rs index 8dd5463b7b6..5397fb35ffe 100644 --- a/boards/opentitan/src/main.rs +++ b/boards/opentitan/src/main.rs @@ -13,11 +13,10 @@ use crate::hil::symmetric_encryption::AES128_BLOCK_SIZE; use crate::otbn::OtbnComponent; use capsules::sha256::Sha25...
1
1
1
[{"id": "G0", "claim": "GCM should not be built as a single capsule on top of the AES-CCM virtualizer, combining GCM translation with virtualization; the composition should be decomposed into separate translation and virtualization capsules.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in...
null
tock__tock__3448
tock/tock
3,448
defect
100e0fbc042907ac1c345b27965160ea6e7e3066
ff8432f89b41c56f4fed46c39e1c84158cb61a28
nRF52 AES Improvements
### Pull Request Overview This pull request: - Updates the nRF52 AES driver to support ECB and CBC, as well as in-place operations for ECB, CBC, and CTR. - Adds an AES component. - ~~Adds the userspace AES driver to the nRF52840dk board.~~ - Adds the AES tests to the nRF52840dk board. - Updates the AES tests ...
diff --git a/boards/components/src/aes.rs b/boards/components/src/aes.rs new file mode 100644 index 00000000000..d6ce14b1868 --- /dev/null +++ b/boards/components/src/aes.rs @@ -0,0 +1,152 @@ +// Licensed under the Apache License, Version 2.0 or the MIT License. +// SPDX-License-Identifier: Apache-2.0 OR MIT +// Copyri...
2
1
0
[{"id": "G0", "claim": "The AES test invocations should be run through the unit test framework rather than left commented out in the board main.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OpenTitan board should be updated to use the new AE...
null
tock__tock__3685
tock/tock
3,685
defect
cd10b16d6b3668f59557e6a3bb6b946309152f55
60d56f952ff4d53d40df64cab13f7310c62bdfa3
boards: opentitan: Fixup existing test cases
### Pull Request Overview Fixup the current test cases and update the documentation to be simpler to follow ### Testing Strategy `make test-hardware` ### TODO or Help Wanted N/A ### Documentation Updated - [X] Updated the relevant files in `/docs`, or no updates are required. ### Formatting ...
diff --git a/boards/opentitan/README.md b/boards/opentitan/README.md index c83c2aaf257..2207678665c 100644 --- a/boards/opentitan/README.md +++ b/boards/opentitan/README.md @@ -3,7 +3,7 @@ OpenTitan RISC-V Board - https://opentitan.org/ -OpenTitan is the first open source project building a transparent, +OpenTitan...
1
1
1
[{"id": "G0", "claim": "The PR's README change should be backed out so the README keeps pointing users at the OPENTITAN_SUPPORTED_SHA commit (the one discussed in tock/tock#3639) instead of recommending the Earlgrey-M2.5.2-RC0 release tag, since Tock is still using that SHA.", "category": "documentation", "verdict": "s...
null
tock__tock__3697
tock/tock
3,697
defect
cbb99a13e1feb012fb5b2e30c5b7ab1db5649ea3
6f02ac94ad9a2ac752b4f33bed36d59d1ee9abbc
Flash error improvement
### Pull Request Overview This pull request addresses the issue #3692 . ### Testing Strategy This pull request has not been tested on any hardware yet ### TODO or Help Wanted I need testing on actual hardware to see if everything works as expected. ### Documentation Updated No updates require...
diff --git a/boards/opentitan/src/tests/flash_ctrl.rs b/boards/opentitan/src/tests/flash_ctrl.rs index 4c0876c4f2c..6337a09e48a 100644 --- a/boards/opentitan/src/tests/flash_ctrl.rs +++ b/boards/opentitan/src/tests/flash_ctrl.rs @@ -60,37 +60,37 @@ impl<'a> FlashCtlCallBack { } impl<'a, F: hil::flash::Flash> hil::f...
2
1
1
[{"id": "G0", "claim": "The pull request replaces the explicit flash error match arms with a catch-all Err(_), so future error variants would no longer have to be added and handled explicitly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull reque...
null
tock__tock__4159
tock/tock
4,159
defect
abf76691cf20300554f5d647350c812b49f35750
584cdc5cf6f4d349a41b63c360ce13a9d2508eab
atecc508a: Support the SignatureVerify HIL
### Pull Request Overview This builds on top of https://github.com/tock/tock/pull/4154 to support hardware acceleration of the `SignatureVerify` HIL. The atecc508a is used as a hardware accelerator to verify that a digest was signed with a supplied public key. The atecc508a can also verify against it's own pub...
diff --git a/boards/apollo3/lora_things_plus/src/tests/verify_sig.rs b/boards/apollo3/lora_things_plus/src/tests/verify_sig.rs new file mode 100644 index 00000000000..a24e2810f7f --- /dev/null +++ b/boards/apollo3/lora_things_plus/src/tests/verify_sig.rs @@ -0,0 +1,171 @@ +// Licensed under the Apache License, Version ...
1
1
0
[{"id": "G0", "claim": "Remove the `unsafe impl Sync for HmacTestCallback {}` from the new verify_sig.rs test, since the test builds fine without it and the reviewer does not want the pattern to proliferate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tod-org__tod__1227
tod-org/tod
1,227
defect
4b98d9e21f7596735e018626fb2b559f1ad1db0c
c2bdccda8e49f8b209ee5a9a720b3daa23de4b69
feat: oauth auth login command
What I have implemented here is the `auth login` command, that results in updating `token` in the config file if it succeeds. Based on the documentation it looks like the token never expires, so we can use it in the same manner that we used the developer token. In my next PR I am going to have the user choose whe...
diff --git a/CHANGELOG.md b/CHANGELOG.md index de682bdd..167a82f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased (on main branch only) +- Added `auth login` for registering with `OAuth` + ## 2025-05-19 v0.7.7 - Fix regression where project was not being shown while processing by fil...
4
3
0
[{"id": "G0", "claim": "Hard-coding CLIENT_SECRET in source code can expose sensitive credentials; the secret should be loaded from an environment variable or a secure store instead.", "category": "security", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using a fixed sleep to w...
null
tod-org__tod__1329
tod-org/tod
1,329
defect
010c3e3e1502472f385d5ddd159c12ebe8a6fecd
6adcf77de745432a175be4d2985b736f0030fdff
chore: document tasks by filter
# 📦 Pull Request ## Summary > Briefly describe what this PR does and what it changes. ## PR Checklist > Please confirm all items below before requesting a review (required for approval) - [x] This PR/commit messages follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format - [x] Al...
diff --git a/src/todoist.rs b/src/todoist.rs index abe3a77b..b06dafd7 100644 --- a/src/todoist.rs +++ b/src/todoist.rs @@ -258,6 +258,7 @@ pub async fn all_tasks_by_project( Ok(tasks) } +/// Uses multiple filters (comma separated) to fetch multiple lists of tasks in parallel. Returns each list of tasks with the...
3
2
0
[{"id": "G0", "claim": "Hyphenate \"comma-separated\" in the all_tasks_by_filters doc comment for consistency with Rust documentation conventions.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comments for all_tasks_by_filters and all_tas...
null
tod-org__tod__1386
tod-org/tod
1,386
defect
2ae5c1a000eb5102ef97a41909390444f0fafcd3
2483dc5737b9e0a7cf2ea9fb3e06ff262ad4295f
feat: add installation method detection & auto-update
# 📦 Pull Request ## Summary Adds auto-update including installation method detection (best effort, based on executable location) and prints installation version method. Also updates y/n in Config Reset to use inquire::Confirm (crate already present) for consistency in methods. fix auto-update to include in...
diff --git a/docs/usage.md b/docs/usage.md index 9853bc2c..d903bf98 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -6,7 +6,7 @@ - [Usage Examples](#usage-examples) - [Shell script examples](#shell-script-examples) - [Sort, schedule, prioritize, and process tasks](#sort-schedule-prioritize-and-process-task...
9
7
1
[{"id": "G0", "claim": "Fix the typo in the src/update.rs header comment: 'Thils' should be 'This'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the src/shell.rs header comment: 'exeution' should be 'execution'.", "category": "do...
null
tod-org__tod__1433
tod-org/tod
1,433
defect
4e46f015f7b53e8c41f6955de81a83ed32a60a85
c786ac5d9248a21833794fc09c87e21a646d4dbb
fix: create config at correct path
# 📦 Pull Request ## Summary > Briefly describe what this PR does and what it changes. ## PR Checklist > Please confirm all items below before requesting a review (required for approval) - [ ] This PR/commit messages follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format - [ ] Al...
diff --git a/src/commands/config_commands.rs b/src/commands/config_commands.rs index 1b6eedfb..3adb2072 100644 --- a/src/commands/config_commands.rs +++ b/src/commands/config_commands.rs @@ -7,13 +7,24 @@ use crate::{ update, }; +// Values pulled from Cargo.toml +const NAME: &str = env!("CARGO_PKG_NAME"); cons...
1
1
1
[{"id": "G0", "claim": "Tests (and manual verification) should exist for both creating the config at the default path when none is specified and creating it at the correct custom path when one is.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
toeverything__AFFiNE__11322
toeverything/AFFiNE
11,322
defect
eda680ccdc67c7acaaa7711293c0aaa6ed0664c7
8cceddc6dd4171fb91cc045027703cc5cb28459d
fix(editor): sync gfx block transform update with RAF to prevent stale transform
Close [BS-2866](https://linear.app/affine-design/issue/BS-2866/presentation-mode中的note消失) ## Problem When using RequestAnimationFrame (RAF) for GFX block updates, there was a timing issue where the transform update would lag behind the RAF callback, causing the block to display with the previous frame's transform stat...
diff --git a/blocksuite/framework/std/src/gfx/viewport-element.ts b/blocksuite/framework/std/src/gfx/viewport-element.ts index 1ecdac997969e..07088052e3909 100644 --- a/blocksuite/framework/std/src/gfx/viewport-element.ts +++ b/blocksuite/framework/std/src/gfx/viewport-element.ts @@ -2,14 +2,15 @@ import { WithDisposab...
1
1
1
[{"id": "G0", "claim": "In the new presentation-mode test, the frame's bottom-right y-coordinate is computed as noteBound[0] + noteBound[3] + 10 (the x-coordinate) instead of noteBound[1] + noteBound[3] + 10, which could misposition the test frame and affect test reliability.", "category": "correctness", "verdict": "su...
null
toeverything__AFFiNE__11375
toeverything/AFFiNE
11,375
defect
cb7b5caa74281e4986ada4b22bcd08e90cc74b81
6b24b9030fe17c97fc47494f3c151ababf1ca45e
fix(core): should display date as original title of journal
Closes: [BS-2991](https://linear.app/affine-design/issue/BS-2991/linked-journal添加alias后,toolbar上获取不到标题)
diff --git a/blocksuite/affine/blocks/block-embed/src/embed-linked-doc-block/configs/toolbar.ts b/blocksuite/affine/blocks/block-embed/src/embed-linked-doc-block/configs/toolbar.ts index 6b113112e116c..900a586064a3a 100644 --- a/blocksuite/affine/blocks/block-embed/src/embed-linked-doc-block/configs/toolbar.ts +++ b/bl...
3
3
1
[{"id": "G0", "claim": "The new test description contains a typo: `shoud` should be `should`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's variables `text0` and `text1` should be renamed to purposeful names like `inlineTitleText` and ...
null
toeverything__AFFiNE__11575
toeverything/AFFiNE
11,575
defect
c09bd8c422a970a01039a4eaa00d4e9ce0826192
3510a87d6652f009f0dc0ed37bdb53823437964c
fix(editor): fix overlay of tool is not shown or repeated when switching tool
Close [BS-3029](https://linear.app/affine-design/issue/BS-3029/frame-里面的-shape-没办法进入文本编辑模式) Close [BS-3082](https://linear.app/affine-design/issue/BS-3082/按s切换至shape工具,在白板上点击会创建两个shape) Close [BS-3091](https://linear.app/affine-design/issue/BS-3082/按s切换至shape工具,在白板上点击会创建两个shape) ## Fix Shape Tool Issues This PR addr...
diff --git a/blocksuite/affine/blocks/surface/src/consts.ts b/blocksuite/affine/blocks/surface/src/consts.ts index fb195d94877c9..8e74e52da4b34 100644 --- a/blocksuite/affine/blocks/surface/src/consts.ts +++ b/blocksuite/affine/blocks/surface/src/consts.ts @@ -17,8 +17,12 @@ export interface IModelCoord { y: number;...
1
1
1
[{"id": "G0", "claim": "The toolbar shape-button handler should check the shape tool's dragging state and return early when a shape drag is in progress before cycling the shape or switching the tool.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
toeverything__AFFiNE__11888
toeverything/AFFiNE
11,888
defect
e4d6833296278af411fd85c017485a0b19de9d1e
0959801a17812bfec701954d68960987156637b4
fix(editor): add footnote url markdown preprocessor to avoid link node parsing
Closes: [BS-3282](https://linear.app/affine-design/issue/BS-3282/预处理-footnote-definition-中的-url-避免-markdown-link-node-parsing)
diff --git a/blocksuite/affine/all/src/adapters/markdown/preprocessor.ts b/blocksuite/affine/all/src/adapters/markdown/preprocessor.ts index 48a630f5a6a9f..882277c2700bb 100644 --- a/blocksuite/affine/all/src/adapters/markdown/preprocessor.ts +++ b/blocksuite/affine/all/src/adapters/markdown/preprocessor.ts @@ -1,7 +1,...
2
2
2
[{"id": "G0", "claim": "The isEncoded check added by the PR is logically flawed: comparing the URI with the re-encoding of its decoded form fails to correctly identify partially encoded URIs, so it should instead compare the URI with its decoded form and treat undecodable URIs as already encoded.", "category": "correct...
null
toeverything__AFFiNE__11988
toeverything/AFFiNE
11,988
defect
49c57ca649667c91e3d2be4895e351cd2a74c387
399bb641506cb61c072c0107cc0cae6a196fa01a
fix(editor): can not delete code block with delete keyboard
Fix: #11860 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated the behavior of the Delete key in code blocks for improved consistency with expected keyboard interactions. - **Tests** - Added a test to verify deletion of code blocks using t...
diff --git a/blocksuite/affine/blocks/code/src/code-block.ts b/blocksuite/affine/blocks/code/src/code-block.ts index a2ed482445abf..12b538791f1fc 100644 --- a/blocksuite/affine/blocks/code/src/code-block.ts +++ b/blocksuite/affine/blocks/code/src/code-block.ts @@ -332,7 +332,7 @@ export class CodeBlockComponent extends...
2
1
1
[{"id": "G0", "claim": "The Delete hotkey handler should return a boolean (true) instead of undefined, because returning undefined breaks the expected event-handler behavior.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add...
null
toeverything__AFFiNE__12210
toeverything/AFFiNE
12,210
defect
d379143db3bae2cf8e02aa6e36b265086dddc498
0dab93b1000c8b974c826ca8dec3d5dc0b38160c
refactor(editor): extract slider component
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new slider component for line width selection, providing a more interactive and streamlined UI. - Added support for using the slider component across relevant panels. - **Improvem...
diff --git a/blocksuite/affine/components/package.json b/blocksuite/affine/components/package.json index 876a223e4766e..129cc98ea66cd 100644 --- a/blocksuite/affine/components/package.json +++ b/blocksuite/affine/components/package.json @@ -69,10 +69,10 @@ "./highlight-dropdown-menu": "./src/highlight-dropdown-men...
5
2
1
[{"id": "G1", "claim": "The slider's select event is dispatched without bubbles: true and composed: true, which the original line-width-panel event had, so the event may not propagate through shadow DOM boundaries; add them to maintain consistent behavior.", "category": "correctness", "verdict": "supported", "priority"...
null
toeverything__AFFiNE__12211
toeverything/AFFiNE
12,211
defect
8704c98c7eb7b604715bc5a73c5578c6dc864245
7dcc66f05989683be49447007355c0284a05491b
fix(server): abort behavior in sse stream
fix AI-121 fix AI-118 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of connection closures and request abortion for streaming and non-streaming chat endpoints, ensuring session data is saved appropriately even if the connectio...
diff --git a/packages/backend/server/src/plugins/copilot/controller.ts b/packages/backend/server/src/plugins/copilot/controller.ts index 8b31427f06b79..d03372661046b 100644 --- a/packages/backend/server/src/plugins/copilot/controller.ts +++ b/packages/backend/server/src/plugins/copilot/controller.ts @@ -13,22 +13,22 @@...
10
2
1
[{"id": "G0", "claim": "The getSignal implementation never removes its socket listeners, so every request leaks two listeners until process exit and can eventually hit MaxListenersExceeded under SSE load; at minimum remove them inside the 'close' handler.", "category": "correctness", "verdict": "supported", "priority":...
null
toeverything__AFFiNE__12328
toeverything/AFFiNE
12,328
defect
101062aa25cb8b8fa16fe672b293c2b31636f2f9
c8e08e6a048361254a483dcf749a74dba1897a8e
feat(server): trigger workspace embedding
fix AI-127 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added automated event handling for workspace updates and document embedding, streamlining document embedding workflows. - Introduced detection and queuing of documents needing embedd...
diff --git a/packages/backend/server/src/models/copilot-context.ts b/packages/backend/server/src/models/copilot-context.ts index 6c868c61db1e6..53ff367fdb730 100644 --- a/packages/backend/server/src/models/copilot-context.ts +++ b/packages/backend/server/src/models/copilot-context.ts @@ -238,10 +238,11 @@ export class ...
12
3
2
[{"id": "G0", "claim": "addDocEmbeddingQueueFromEvent enqueues the embedding job with docId set to doc.workspaceId instead of doc.docId, so every doc.indexer.updated event creates a job that targets the workspace itself instead of the document.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "sco...
null
toeverything__AFFiNE__12329
toeverything/AFFiNE
12,329
defect
8b669b725bef875851acfe469e691e03b6aa969e
43c41c7ab8519af52ecbaabdff1619f4fec6c942
feat(mobile): new docs list for mobile
close AF-2514 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced document explorer on mobile with live updates, responsive masonry layout, and improved empty state handling for all documents, collections, and tags. - Added customizatio...
diff --git a/packages/frontend/component/src/hooks/use-debounce-callback.ts b/packages/frontend/component/src/hooks/use-debounce-callback.ts new file mode 100644 index 0000000000000..938f0d144c6fd --- /dev/null +++ b/packages/frontend/component/src/hooks/use-debounce-callback.ts @@ -0,0 +1,27 @@ +import { debounce } fr...
18
1
1
[{"id": "G0", "claim": "The doc cards rendered by the new DocsExplorer need a data-testid (or an equivalent prop) so the mobile e2e suites can target individual cards, which they could not do after the new UI replaced the old list.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"...
null
toeverything__AFFiNE__12387
toeverything/AFFiNE
12,387
defect
6f9361caee6bbb244837c82813b45037188cbfbd
efc29fd6545926907c56015b8970419b16f2660d
refactor(core): indexer & embedding -> embedding
### TL;DR refactor: rename settings, indexer embedding -> embedding <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Unified naming in workspace settings from "Indexer & Embedding" to "Embedding" for improved clarity. - Updated sidebar labels, ...
diff --git a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/index.tsx b/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/index.tsx index 141836365c5de..b48fcb09159c5 100644 --- a/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/index.tsx +++ b/packages/front...
4
1
0
[{"id": "G0", "claim": "The sidebar item's testId should be updated from 'workspace-setting:indexer-embedding' to 'workspace-setting:embedding' to stay consistent with the renamed key and help prevent potential test failures.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
toeverything__AFFiNE__12411
toeverything/AFFiNE
12,411
defect
65a14f50c78a238842784bd0ffe6af126bed1b0e
84b4afe265cd51d43707db5b262972cedb9756a3
fix(editor): toc viewer no update after delete heading in edgeless mode
Close [BS-3494](https://linear.app/affine-design/issue/BS-3494/在白板删除note的标题,切回page模式,toc没更新) Other changes: `doc` -> `store` ### Before https://github.com/user-attachments/assets/ddce20b9-eda2-414b-9452-d8d54a811cf1 ### After https://github.com/user-attachments/assets/7124b8a1-9ab4-4e09-b0ff-7ea2cc9613c2 <!--...
diff --git a/blocksuite/affine/fragments/outline/src/body/outline-notice.ts b/blocksuite/affine/fragments/outline/src/body/outline-notice.ts index bdeccc161d898..db9873efaa759 100644 --- a/blocksuite/affine/fragments/outline/src/body/outline-notice.ts +++ b/blocksuite/affine/fragments/outline/src/body/outline-notice.ts...
3
1
0
[{"id": "G0", "claim": "In getHeadingBlocksFromDoc the call still passes the old `doc` parameter to getNotesFromStore and should pass `store` to match the renamed signature.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `// titl...
null
toeverything__AFFiNE__12505
toeverything/AFFiNE
12,505
defect
0f19a506acbca6812acaf7a30988cf351d6e4548
5080cde8612d417cd35a45b9715a0c99299db72d
feat(editor): support connector dom renderer
### TL;DR Added DOM-based renderer for connector elements in the AFFiNE editor. ### What changed? - Created a new DOM-based renderer for connector elements that uses SVG for rendering - Implemented `ConnectorDomRendererExtension` to register the DOM renderer for connector elements - Added support for rendering conne...
diff --git a/blocksuite/affine/gfx/connector/src/element-renderer/connector-dom.ts b/blocksuite/affine/gfx/connector/src/element-renderer/connector-dom.ts new file mode 100644 index 0000000000000..6b75e48adc137 --- /dev/null +++ b/blocksuite/affine/gfx/connector/src/element-renderer/connector-dom.ts @@ -0,0 +1,11 @@ +i...
1
1
1
[{"id": "G0", "claim": "Don't manipulate SVG strings directly: create an SVG builder covering path and points/shapes that is not related to the affine app (placed in a framework package such as @blocksuite/global/svg) and is shared between the SVG renderers.", "category": "design", "verdict": "supported", "priority": "...
null
toeverything__AFFiNE__12608
toeverything/AFFiNE
12,608
defect
793823a9f9ccf3cd3e919bf68a3e997aaaf83f74
f3ad32fd7feb6f1644af0983da904bc65d5c1ff1
fix(server): handle edge case of empty docs
fix AI-130 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of document fragments, ensuring they are returned even if certain summary information is missing. - **Tests** - Updated tests to accept multiple possible tooltip mess...
diff --git a/packages/backend/server/src/plugins/copilot/context/job.ts b/packages/backend/server/src/plugins/copilot/context/job.ts index 270f2cf8a24b6..a1f6488e32216 100644 --- a/packages/backend/server/src/plugins/copilot/context/job.ts +++ b/packages/backend/server/src/plugins/copilot/context/job.ts @@ -261,7 +261,...
2
1
0
[{"id": "G0", "claim": "Replace the console.log debug statements added to the embedding job with the project's structured logger (e.g. this.logger.debug) instead of direct console logging in production code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
toeverything__AFFiNE__12661
toeverything/AFFiNE
12,661
defect
bc67766bb952e1761a2af113d2b64aa953fd14fd
856bee0574a377c1e08d4254393c1958c3c79ce0
fix(editor): can move frame by dragging title
Close [BS-3351](https://linear.app/affine-design/issue/BS-3351/无法通过拖拽frame-title来拖拽frame) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved rendering performance and consistency for widgets within frames. - Frame titles are now direct...
diff --git a/blocksuite/affine/blocks/frame/src/frame-block.ts b/blocksuite/affine/blocks/frame/src/frame-block.ts index 1fbc447109d38..f9630c3a7b7c5 100644 --- a/blocksuite/affine/blocks/frame/src/frame-block.ts +++ b/blocksuite/affine/blocks/frame/src/frame-block.ts @@ -16,6 +16,7 @@ import { import { cssVarV2 } fro...
2
1
0
[{"id": "G0", "claim": "The frame title positioning should use plain string literals instead of template literals in the added `style.left`/`style.top` assignments.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A tracking issue should be create...
null
toeverything__AFFiNE__12709
toeverything/AFFiNE
12,709
defect
c7aebd04128919f298def35d29b6bd0f4bc01be6
d9cc1173aef8de02b0c389451540402dae26fbc5
fix(editor): support copying single image from edgeless and pasting to page
Closes: [BS-3586](https://linear.app/affine-design/issue/BS-3586/复制白板图片,然后粘贴到-page,图片失败) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Copying a single selected image in edgeless mode now places the image directly onto the system clipboard a...
diff --git a/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts b/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts index 2e2d9d5ebcf73..1234b6f4daa44 100644 --- a/blocksuite/affine/blocks/root/src/edgeless/clipboard/clipboard.ts +++ b/blocksuite/affine/blocks/root/src/edgeless/clipboard/...
5
2
1
[{"id": "G0", "claim": "Replace the delete operators that clear the clipboard item keys with undefined assignment, since the delete operator can impact performance (Biome lint/performance/noDelete).", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "M...
null
toeverything__AFFiNE__13826
toeverything/AFFiNE
13,826
defect
d74087fdc5c7c7e8e5366112478757e94a3c0ed8
3b526b71b84253426c0e7ddde3ff662bc3a00f02
feat(server): early subscription for iap
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a mutation to request/apply a subscription by transaction ID (client mutation and server operation), returning subscription details. * **Bug Fixes / Improvements** * More robust external...
diff --git a/packages/backend/server/src/base/utils/unit.ts b/packages/backend/server/src/base/utils/unit.ts index f0798822b6b56..2605c46e96e1c 100644 --- a/packages/backend/server/src/base/utils/unit.ts +++ b/packages/backend/server/src/base/utils/unit.ts @@ -1,4 +1,5 @@ export const OneKB = 1024; export const OneMB...
11
1
1
[{"id": "G0", "claim": "The existsSubscription query filters by targetId=user.id, so the different-user branch is dead code; look the subscription up by rcExternalRef only and enforce ownership (throw InvalidSubscriptionParameters on mismatch) before proceeding, otherwise a known/guessable transactionId lets a user cla...
null
toeverything__AFFiNE__14140
toeverything/AFFiNE
14,140
defect
7539135c4dd4787ac8cb6f30e2b34d5b2eebeb05
46b9fdcb3dec4ffde5e8a13a1b9efa36a3184ca5
fix: cleanup expired records
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved subscription reconciliation with a reliable cleanup phase that removes stale subscriptions and emits cancellation events. * Better sequencing and conflict handling when reconciling subsc...
diff --git a/packages/backend/server/src/plugins/payment/revenuecat/webhook.ts b/packages/backend/server/src/plugins/payment/revenuecat/webhook.ts index 4c22e93158ea9..fb21e11fa6b79 100644 --- a/packages/backend/server/src/plugins/payment/revenuecat/webhook.ts +++ b/packages/backend/server/src/plugins/payment/revenueca...
3
2
2
[{"id": "G0", "claim": "When a subscription triggers deleteInstead, the entry stays in toBeCleanup, so the cleanup phase deletes it again and emits a second user.subscription.canceled event for the same subscription.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
toeverything__AFFiNE__14229
toeverything/AFFiNE
14,229
defect
e4dc82ee356b899a46b2c836f8a1433fd7c81e9b
f865e5835e148005ea72cf34c993688dbb0b436c
fix(editor): invalid caret in note-edgeless-block on focus
### Problem ●In edgeless mode, when starting to edit, `note-block` exhibits two types of invalid caret behavior: (1)**Title Region Misalignment**: Clicking on the title region incorrectly generates the caret in the first line of the note content, rather than in the title itself. (2)**Vanishing Caret at Line End**: W...
diff --git a/blocksuite/affine/blocks/note/src/note-edgeless-block.ts b/blocksuite/affine/blocks/note/src/note-edgeless-block.ts index bc2829e7a14dd..d444f5b6ca47e 100644 --- a/blocksuite/affine/blocks/note/src/note-edgeless-block.ts +++ b/blocksuite/affine/blocks/note/src/note-edgeless-block.ts @@ -454,37 +454,58 @@ e...
4
2
1
[{"id": "G0", "claim": "Guard against a negative index: when startOffset is 0, childNodes[startOffset - 1] accesses childNodes[-1], which is undefined, so the normalization skips the element at index 0 and falls through to the generic fallback, potentially missing the correct text node.", "category": "correctness", "ve...
null
toeverything__AFFiNE__14257
toeverything/AFFiNE
14,257
defect
76e1721d70fc81dae8a2e7f69a15a166d359701b
992889ef1d83d6bc7e2178f647699333e127437f
feat: misc optimizations
fix #13798 #### PR Dependency Tree * **PR #14257** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Extracts and tracks document referenc...
diff --git a/packages/common/native/src/doc_parser/affine.rs b/packages/common/native/src/doc_parser/affine.rs index a9973c089aa37..48d0c7e35b0a2 100644 --- a/packages/common/native/src/doc_parser/affine.rs +++ b/packages/common/native/src/doc_parser/affine.rs @@ -1,3 +1,5 @@ +use std::collections::HashSet; + use serd...
4
1
1
[{"id": "G0", "claim": "lodash-es' `uniq` uses SameValueZero comparison and only removes identical object references, so duplicate references with the same `refDocId` and `ref` values but different object instances are not filtered out of `collectInlineReferences`; use `uniqBy`/`uniqWith` to deduplicate by the serializ...
null
toeverything__AFFiNE__14292
toeverything/AFFiNE
14,292
defect
056f2c1161e1ca23a3fc66220aac43f225e4ec5b
94f7b6f1cbc5a6db4117de2865854b272c5edd0a
fix: safe cookie parsing
# Summary This PR fixes a server-side cookie parsing edge case where malformed cookie values throw `URI malformed`, causing socket.io auth to fail and clients to get stuck in infinite workspace loading/syncing. # Observed Behavior - User creates a cloud-backed workspace and invites another user to it. - Second us...
diff --git a/packages/backend/server/src/__tests__/auth/controller.spec.ts b/packages/backend/server/src/__tests__/auth/controller.spec.ts index 23f9b7e01356e..20c44cd8986ae 100644 --- a/packages/backend/server/src/__tests__/auth/controller.spec.ts +++ b/packages/backend/server/src/__tests__/auth/controller.spec.ts @@ ...
2
1
1
[{"id": "G0", "claim": "The new test calls parseCookies(res), which parses Set-Cookie headers from the response rather than the request's cookies, so the t.notThrows and the final assertion test the wrong function; the test should directly unit-test parseCookies from request.ts against a request carrying the malformed ...
null
toeverything__AFFiNE__14394
toeverything/AFFiNE
14,394
defect
8192a492d9445f9130885a08f82f577260c8c5cb
d21300f0407ca2dfce8761b117e4679e61216a80
fix(editor): database behavier
fix #13459 fix #13707 fix #13924 #### PR Dependency Tree * **PR #14394** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved URL paste...
diff --git a/blocksuite/affine/blocks/database/src/properties/paste-url.ts b/blocksuite/affine/blocks/database/src/properties/paste-url.ts new file mode 100644 index 0000000000000..1d8910542ab50 --- /dev/null +++ b/blocksuite/affine/blocks/database/src/properties/paste-url.ts @@ -0,0 +1,49 @@ +import type { + AffineIn...
4
3
2
[{"id": "G0", "claim": "When the user has selected text and pastes content that goes through insertUrlTextSegments, the existing selection is not deleted — the pasted text is inserted alongside the selected text, unlike the single-URL path which replaces the selection.", "category": "correctness", "verdict": "supported...
null
toeverything__AFFiNE__14403
toeverything/AFFiNE
14,403
defect
8192a492d9445f9130885a08f82f577260c8c5cb
2bf40f1db66b8d63305ef63e429e38becd042538
fix: old workspace migration
fix #14395 #### PR Dependency Tree * **PR #14403** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added ability to enumerate and list local w...
diff --git a/packages/frontend/apps/electron/src/helper/workspace/handlers.ts b/packages/frontend/apps/electron/src/helper/workspace/handlers.ts index 111f2a63a8f94..9790f393c10be 100644 --- a/packages/frontend/apps/electron/src/helper/workspace/handlers.ts +++ b/packages/frontend/apps/electron/src/helper/workspace/han...
3
1
1
[{"id": "G0", "claim": "setLocalWorkspaceIds on Electron writes via globalState.set without ensuring ready has resolved, so a write before initialization may be silently dropped with no localStorage fallback for writes, losing the workspace ID update.", "category": "correctness", "verdict": "uncertain", "priority": "P1...
null
toeverything__AFFiNE__14429
toeverything/AFFiNE
14,429
defect
4460604dd3467aee2c549ebebe22e9d64a0f5ac4
b5dbe6dba718d7d307ae3e00eb70b2e3840291cd
feat: improve editor performance
#### PR Dependency Tree * **PR #14429** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * HTML import now splits lines on <br> into separate paragraph...
diff --git a/blocksuite/affine/all/src/__tests__/adapters/html.unit.spec.ts b/blocksuite/affine/all/src/__tests__/adapters/html.unit.spec.ts index 382ff1957f6f1..099869f277e28 100644 --- a/blocksuite/affine/all/src/__tests__/adapters/html.unit.spec.ts +++ b/blocksuite/affine/all/src/__tests__/adapters/html.unit.spec.ts...
14
3
2
[{"id": "G1", "claim": "When deltas.length > 1 the enter handler emits self-contained blocks via openParagraphBlocks, but the 'p' leave handler still calls closeNode() unconditionally, closing a node never opened in this enter invocation and corrupting the tree; guard the leave handler with a multi-emission context fla...
null
toeverything__AFFiNE__14447
toeverything/AFFiNE
14,447
defect
9a1f600fc9754760d04ae762b4c9086c4086e017
7789a01724bdccb21a6991de251459b899ea139f
feat: support markdown preview
#### PR Dependency Tree * **PR #14447** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Documents can be served as markdown when requested via the A...
diff --git a/packages/backend/server/src/core/doc-renderer/__tests__/controller.spec.ts b/packages/backend/server/src/core/doc-renderer/__tests__/controller.spec.ts index 8dfcda3b5f3ef..90d0c92b99385 100644 --- a/packages/backend/server/src/core/doc-renderer/__tests__/controller.spec.ts +++ b/packages/backend/server/sr...
4
3
3
[{"id": "G1", "claim": "Content negotiation should use the `Accept` header rather than `Content-Type`, in both the controller check and the test that exercises it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The `isWorkspacePath` condition lacks ...
null
toeverything__AFFiNE__14498
toeverything/AFFiNE
14,498
defect
ad988dbd1e355741c90a2a6b321c4e2aff30d216
d60c8e0a2828700548044e6dffe50161e4ac3708
fix(editor): editor behavior and styles
fix #14269 fix #13920 fix #13977 fix #13953 fix #13895 fix #13905 fix #14136 fix #14357 fix #14491 #### PR Dependency Tree * **PR #14498** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.a...
diff --git a/blocksuite/affine/blocks/callout/src/callout-block.ts b/blocksuite/affine/blocks/callout/src/callout-block.ts index 9252c32dae7c0..b25090bf5e27f 100644 --- a/blocksuite/affine/blocks/callout/src/callout-block.ts +++ b/blocksuite/affine/blocks/callout/src/callout-block.ts @@ -216,9 +216,13 @@ export class C...
6
1
1
[{"id": "G0", "claim": "In Chrome 121+ the new scrollbar-width/scrollbar-color declarations override the ::-webkit-scrollbar styles produced by scrollbarStyle(), so the intended 4px rounded scrollbar silently reverts to the browser's thin preset; the standard properties should be gated with @supports so they apply only...
null
toeverything__AFFiNE__14500
toeverything/AFFiNE
14,500
defect
ef6717e59a95793ed90fcf9e055a759b7859d582
a7cc31ae89b24f058b957244f1c4a2e968a2ef4f
fix(data-view): preserve filtering on hidden properties
Fixes issue #14036 where hiding a column used in filters caused empty table/kanban results. Root cause: filter evaluation built the row map from visible properties only. Change: evaluate filters using full property set (propertiesRaw$) so hidden filtered columns still participate. Added unit regressions for bo...
diff --git a/blocksuite/affine/data-view/src/__tests__/kanban.unit.spec.ts b/blocksuite/affine/data-view/src/__tests__/kanban.unit.spec.ts index 30447b898ec42..1fdfefa2fa7b7 100644 --- a/blocksuite/affine/data-view/src/__tests__/kanban.unit.spec.ts +++ b/blocksuite/affine/data-view/src/__tests__/kanban.unit.spec.ts @@ ...
1
1
0
[{"id": "G0", "claim": "The hidden-column filtering tests in both kanban.unit.spec.ts and table.unit.spec.ts should also cover the negative path: a hidden column whose value does not match the filter, asserting isShow returns false.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
toeverything__AFFiNE__14510
toeverything/AFFiNE
14,510
defect
9c99293c9218fde68a12407beb45b60377d73ab7
34da180dc7af8f048d6ba3fd340c95efbe274397
feat: handle calendar sync failed
#### PR Dependency Tree * **PR #14510** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved calendar sync reliability with exponential backoff for...
diff --git a/packages/backend/server/src/plugins/calendar/__tests__/service.spec.ts b/packages/backend/server/src/plugins/calendar/__tests__/service.spec.ts index 03ef923319dc8..6d2bb45e41802 100644 --- a/packages/backend/server/src/plugins/calendar/__tests__/service.spec.ts +++ b/packages/backend/server/src/plugins/ca...
5
2
1
[{"id": "G0", "claim": "The backoff check should be moved before the token fetch (and mutex work) so that subscriptions in backoff skip the wasted mutex acquisition, provider resolution and external token refresh.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
toeverything__AFFiNE__14520
toeverything/AFFiNE
14,520
defect
895e77456961faac1ec5d01edcee1e408e577093
505505a1e71784283bf1be4e01b80bc86090c5b1
fix: prevent IME preedit overflow in mind map node editor
## Summary Update the edgeless shape text editor to resize mind map node text bounds while IME composition is in progress. ## Changes - listen to `compositionupdate` on the inline editor container - trigger `_updateElementWH()` on `compositionupdate` and `compositionend` - keep text box dimensions in sync before com...
diff --git a/blocksuite/affine/gfx/shape/src/text/edgeless-shape-text-editor.ts b/blocksuite/affine/gfx/shape/src/text/edgeless-shape-text-editor.ts index a4501f8cd4281..1794099042db1 100644 --- a/blocksuite/affine/gfx/shape/src/text/edgeless-shape-text-editor.ts +++ b/blocksuite/affine/gfx/shape/src/text/edgeless-shap...
1
1
0
[{"id": "G0", "claim": "Consider throttling or batching the compositionupdate handler with requestAnimationFrame, because each _updateElementWH() invocation performs DOM measurements and mind map layout on every IME keystroke, which could cause jank on slower devices or complex mind maps.", "category": "performance", "...
null
toeverything__AFFiNE__14564
toeverything/AFFiNE
14,564
defect
c0139abf7976ae7bd2523e00b6a06063dbc3eb57
bef3c5b740669f31304f8755688938cb53f4b4cd
fix(server): normalize mail server name
fix #14562 fix #14226 fix #14192 #### PR Dependency Tree * **PR #14564** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * SMTP and fallbac...
diff --git a/.docker/selfhost/schema.json b/.docker/selfhost/schema.json index 1feba431badfd..6c027fbec178f 100644 --- a/.docker/selfhost/schema.json +++ b/.docker/selfhost/schema.json @@ -197,8 +197,8 @@ "properties": { "SMTP.name": { "type": "string", - "description": "Name of the ...
4
2
2
[{"id": "G0", "claim": "The address-literal check is too permissive for SMTP HELO/EHLO: the regex accepts bracketed tokens like [foo] that are not valid SMTP address literals, so invalid server names can still pass normalization.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
toeverything__AFFiNE__14588
toeverything/AFFiNE
14,588
defect
b5d5b71f95cd2a9e0efe602d2247adb481cc2d1e
4af1b3cd447d56acf438776da5e8aeb14a576588
feat(server): add image resize support
fix #13842 #### PR Dependency Tree * **PR #14588** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Images are now processed natively and con...
diff --git a/Cargo.lock b/Cargo.lock index f5fa565556168..33fa44a7a5278 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -178,9 +178,13 @@ name = "affine_server_native" version = "1.0.0" dependencies = [ "affine_common", + "anyhow", "chrono", "file-format", + "image", "infer", + "libwebp-sys", + "little_exif", "...
10
2
2
[{"id": "G0", "claim": "The native image pipeline is exported synchronously and called inline from the upload resolvers, so decode + resize + WebP encode blocks the Node event loop and stalls unrelated requests; it should be moved behind an async N-API task or worker-thread path.", "category": "performance", "verdict":...
null
toeverything__AFFiNE__14662
toeverything/AFFiNE
14,662
defect
8f03090780389070dd74a6ef1a0ed339023f173c
4a19613782d7fd2b313f7c809c1f2e75542420d4
feat(server): improve doc tools error handle
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Centralized sync/status messages for cloud document sync and explicit user-facing error types. * Frontend helpers to detect and display tool errors with friendly names. * **Bug Fixes** * Co...
diff --git a/packages/backend/server/src/__tests__/copilot/tool-call-loop.spec.ts b/packages/backend/server/src/__tests__/copilot/tool-call-loop.spec.ts index 846d7d96eb5bb..ee9c5f81c2b24 100644 --- a/packages/backend/server/src/__tests__/copilot/tool-call-loop.spec.ts +++ b/packages/backend/server/src/__tests__/copilo...
5
1
1
[{"id": "G0", "claim": "The new guard validates query.trim() but searchDocsByKeyword still receives the original string, so inputs like \"hello \" pass validation and can miss matches if trailing whitespace is treated literally; use the trimmed query for the actual lookup.", "category": "correctness", "verdict": "suppo...
null
toeverything__AFFiNE__14686
toeverything/AFFiNE
14,686
defect
8ca8333cd6af4cdf2e90e8ad95908c0b7f603c8d
796240b23dc3dec0ff084640c1fc356128f7a2e5
feat(server): improve oidc compatibility
fix #13938 fix #14683 fix #14532 #### PR Dependency Tree * **PR #14686** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added OpenID Con...
diff --git a/packages/backend/server/src/__tests__/oauth/controller.spec.ts b/packages/backend/server/src/__tests__/oauth/controller.spec.ts index d2b27845f1e8b..0a7033c60c2ce 100644 --- a/packages/backend/server/src/__tests__/oauth/controller.spec.ts +++ b/packages/backend/server/src/__tests__/oauth/controller.spec.ts...
3
3
0
[{"id": "G0", "claim": "Storing the OAuth flow mode returned by resolveOAuthFlowMode in sessionStorage is flagged as clear-text storage of sensitive information.", "category": "security", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The oauth-flow spec stubs sessionStorage in...
null
toeverything__AFFiNE__14689
toeverything/AFFiNE
14,689
defect
0d2d4bb6a1f5e02a82a1db8bd16a7431589fcb0c
74fc41004b36a4b899fea930765d4458c4f743a6
fix(native): cleanup deleted docs and blobs
fix #14291 #### PR Dependency Tree * **PR #14689** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Stricter import validation to reject invalid databa...
diff --git a/packages/frontend/apps/electron/src/helper/dialog/dialog.ts b/packages/frontend/apps/electron/src/helper/dialog/dialog.ts index bc5a5a0acd0f7..d53d137531083 100644 --- a/packages/frontend/apps/electron/src/helper/dialog/dialog.ts +++ b/packages/frontend/apps/electron/src/helper/dialog/dialog.ts @@ -1,4 +1,...
6
5
5
[{"id": "G0", "claim": "saveDBFileAs removes an existing destination file before vacuumInto() runs, so a failed export destroys the previous backup, and resolve() only normalizes strings so a symlink/junction alias to the live database escapes the same-path check; export to a temp file, compare canonical paths or file ...
null
toeverything__AFFiNE__14693
toeverything/AFFiNE
14,693
defect
6a935664222209f4e2dcddab000989962fe9341f
76c47c3c15d93c7b972f6c1dd3dd1bf7baff893d
feat: redirect account click & OAuth to Calendar settings
### PR Description * clicking a linked calendar account now switches settings to Workspace Integrations and opens the Calendar settings directly * calendar OAuth returns now land on Workspace Integrations with the Calendar settings opened instead of the homepage * Improves UX by reducing friction when managing cal...
diff --git a/packages/frontend/core/src/__tests__/calendar-oauth-redirect.spec.ts b/packages/frontend/core/src/__tests__/calendar-oauth-redirect.spec.ts new file mode 100644 index 0000000000000..2eefaa8615d05 --- /dev/null +++ b/packages/frontend/core/src/__tests__/calendar-oauth-redirect.spec.ts @@ -0,0 +1,30 @@ +impo...
2
1
0
[{"id": "G0", "claim": "In the settings dialog effect, scrolling to the anchor element may be undone by the unconditional scrollTo({ top: 0 }) that runs afterwards, and the flushSync around the synchronous querySelector/scrollIntoView is unnecessary; it should only reset scroll when there is no anchor.", "category": "c...
null
toeverything__AFFiNE__14704
toeverything/AFFiNE
14,704
defect
ffa3ff9d7f4f8fc1d4524eab7f8700f798754812
54c4a9dbab99644c7392e43ae8f275985da637cf
fix(editor): ci stability
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Improved Electron shutdown, diagnostics and tab teardown for more reliable exits and forced cleanup on stubborn processes. * **Tests** * Introduced polling-based test helpers, timeout-fallbacks, vis...
diff --git a/tests/affine-local/e2e/blocksuite/paragraph.spec.ts b/tests/affine-local/e2e/blocksuite/paragraph.spec.ts index b76e990379d49..cb0ecf2895361 100644 --- a/tests/affine-local/e2e/blocksuite/paragraph.spec.ts +++ b/tests/affine-local/e2e/blocksuite/paragraph.spec.ts @@ -14,7 +14,7 @@ import { waitForEditor...
7
1
0
[{"id": "G0", "claim": "The setTimeout(10000) callback in cleanupElectronApp executes even when closeApp() wins the race, so kill() may be called on an already-terminated process; use an AbortController to cancel the timeout when cleanup succeeds.", "category": "correctness", "verdict": "supported", "priority": "P2", "...
null
toeverything__AFFiNE__14705
toeverything/AFFiNE
14,705
defect
8ba02ed6fba3345929d3d3a1b7519338586378a6
e88ebe818ec14859efe8bc35cac7e3ae79067f55
feat(editor): add "Copy as Markdown" option in context & export menus
- Allow users to select text and copy it as Markdown via the context menu - Add "Copy as Markdown" under Export menu to copy entire document to clipboard Fixes #12983 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added "Copy as Markdown"...
diff --git a/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts b/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts index 433c1256a94b2..4e0d925433d1d 100644 --- a/packages/frontend/core/src/blocksuite/view-extensions/editor-config/toolbar/index.ts ++...
5
2
1
[{"id": "G0", "claim": "copyAsMarkdown exits silently when std is unavailable and the success toast is still shown unconditionally, so \"Copied as Markdown\" can be reported even when nothing was copied.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
toeverything__AFFiNE__14716
toeverything/AFFiNE
14,716
defect
dcf041a3f2e83df2e179c071c650b288595dc05a
a89f27dc57cc27a36a349fe1f586ad659a337fb7
feat: add auto-date titles for new documents
## Summary Adds an Editor setting to automatically title blank new documents with the current date. fixes https://github.com/toeverything/AFFiNE/issues/14709 https://www.loom.com/share/953b4eafcfb247839e977dca6f457229 ## What Changed - Added `Auto-title new docs with current date` under Editor settings - Ad...
diff --git a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/general.spec.tsx b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor/general.spec.tsx new file mode 100644 index 0000000000000..8734cc987a586 --- /dev/null +++ b/packages/frontend/core/src/desktop/dialogs/sett...
9
5
3
[{"id": "G0", "claim": "getNewDocDateTitleFormatItems duplicates the literal format values already defined in newDocDateTitleFormatOptions and should be derived from those schema options to avoid drift.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
toeverything__AFFiNE__14732
toeverything/AFFiNE
14,732
defect
5b05c5a1b2de4d19355a5578b7e06effea4e07a7
b7188993f61c96810b996d5d357495e177513326
feat: adapt cloudflare worker ai
#### PR Dependency Tree * **PR #14732** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Cloudflare Workers AI added as a Copilot provider (configura...
diff --git a/.docker/selfhost/schema.json b/.docker/selfhost/schema.json index c625f9e778f32..362e29f0b6ecc 100644 --- a/.docker/selfhost/schema.json +++ b/.docker/selfhost/schema.json @@ -1005,6 +1005,14 @@ "baseURL": "https://api.openai.com/v1" } }, + "providers.cloudflareWorke...
10
3
3
[{"id": "G0", "claim": "Remove the focused AVA test before merge: `test.only` at line 946 runs only this case and skips the rest of the suite in the file, which can hide unrelated test failures during CI/CD.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
toeverything__AFFiNE__14749
toeverything/AFFiNE
14,749
defect
64f385817dea8becb8c5d79782d8ee38057cfe7d
0032d668da282e3504e04a7ce210bf2aaf0f4b87
fix(test): e2e stability
#### PR Dependency Tree * **PR #14749** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved link preview reliability by updating request identific...
diff --git a/blocksuite/integration-test/src/__tests__/edgeless/shape-dom.spec.ts b/blocksuite/integration-test/src/__tests__/edgeless/shape-dom.spec.ts index 6872dad5287d8..89f3e5f21b768 100644 --- a/blocksuite/integration-test/src/__tests__/edgeless/shape-dom.spec.ts +++ b/blocksuite/integration-test/src/__tests__/ed...
2
1
0
[{"id": "G0", "claim": "In clearAllIgnoredDocs, line 215 uses getByTestId('page-list-item'), a test-id that does not appear in the codebase, while the same component context uses 'doc-list-item', so it should be updated to 'doc-list-item' for consistency.", "category": "correctness", "verdict": "supported", "priority":...
null
toeverything__AFFiNE__14756
toeverything/AFFiNE
14,756
defect
91ad78397323f17b1b849979be9628ef280d3a50
784e271f580d59fd7b4ba6aa7382f3f7618a8f51
fix(core): shared page mode syncing
### Summary This fixes a few inconsistencies in shared page behavior: fixes https://github.com/toeverything/AFFiNE/issues/14751 - shared pages now open in the correct published mode when the URL does not already include ?mode=... - switching between page and edgeless in shared mode now keeps the URL query param in ...
diff --git a/packages/frontend/core/src/__tests__/share-page.spec.ts b/packages/frontend/core/src/__tests__/share-page.spec.ts new file mode 100644 index 0000000000000..05f6b1537525a --- /dev/null +++ b/packages/frontend/core/src/__tests__/share-page.spec.ts @@ -0,0 +1,42 @@ +import { PublicDocMode } from '@affine/grap...
7
4
4
[{"id": "G0", "claim": "getDefaultShareMode should keep the unset-mode case as undefined instead of coercing it to 'page', so that an edgeless doc does not copy a page link when editor.mode$ has not hydrated yet and onClickCopyLink's omitted-mode fallback is preserved.", "category": "correctness", "verdict": "supported...
null
toeverything__AFFiNE__14783
toeverything/AFFiNE
14,783
defect
bfcf7fc2ba9fe74d4126e397bef5b46967f6130d
44476909e11aa2c3a075169b1b471d5d2cb42ddc
feat(server): improve calendar sync queue
#### PR Dependency Tree * **PR #14783** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Configurable request timeout for calendar integrations. * ...
diff --git a/packages/backend/server/migrations/20260405013956_calendar_queue_schedule/migration.sql b/packages/backend/server/migrations/20260405013956_calendar_queue_schedule/migration.sql new file mode 100644 index 0000000000000..2e7ccbf23b9d9 --- /dev/null +++ b/packages/backend/server/migrations/20260405013956_cal...
4
1
1
[{"id": "G0", "claim": "The migration's make_interval call writes `mins = >` instead of the required `mins =>`, a PostgreSQL syntax error that will cause the migration to fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The upsert's update paylo...
null
toeverything__AFFiNE__14792
toeverything/AFFiNE
14,792
defect
b0cc2fd389fae030bd3f21dd005db3333061b0c8
2543404d69f6450b2f9eab6943fb180ed5bc1158
fix(server): online and storage statistics
#### PR Dependency Tree * **PR #14792** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Admin dashboard returns more accurate sync and storage timel...
diff --git a/packages/backend/server/src/__tests__/e2e/workspace/admin-analytics.spec.ts b/packages/backend/server/src/__tests__/e2e/workspace/admin-analytics.spec.ts index 11a628bd78fb9..09381c7b3e2db 100644 --- a/packages/backend/server/src/__tests__/e2e/workspace/admin-analytics.spec.ts +++ b/packages/backend/server...
6
4
4
[{"id": "G0", "claim": "The e2e test derives currentDay from a live new Date() while adminDashboard() computes its own clock later, so a UTC-midnight crossing between the two calls can push the seeded twoDaysAgo row out of the 3-day window and make the carry-forward assertions flaky; the test should freeze time with a ...
null
tofsjonas__sortable__80
tofsjonas/sortable
80
defect
dedc38cc2028e060e19f476be62011641a21c4a7
3e80d5f853351a30b024dd41f2e314528a2a3621
Allow sorting to succeed when a TR element has no TD elements.
I had a bug in my code where I was generating an HTML TABLE that had one row which had a TR element that did not have any TD child elements. When I tried sorting the table (by clicking on a TH element), the table rows would not sort because `sortable.js` threw an Error (due to a missing TD element). This PR allows the ...
diff --git a/src/sortSortable.ts b/src/sortSortable.ts index 8a1be55..a022caf 100644 --- a/src/sortSortable.ts +++ b/src/sortSortable.ts @@ -20,8 +20,10 @@ export function sortSortable(table: HTMLTableElement, alt_sort: boolean) { function getValue(element: HTMLTableCellElement): string { if (alt_sort && elemen...
2
2
1
[{"id": "G0", "claim": "Refactor getValue into the suggested nested early-return form to go 'all in on readability'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the pull request's new behaviour of sorting a table whose TR ...
null
tokio-rs__async-stream__109
tokio-rs/async-stream
109
defect
0588ec1e961e033ac0a84d30e50c86bf1029ddbe
64e85858fe83e5b063037aa809f908e23da4c7c1
Fix unsoundness issues #106 and #107
This PR fixes the unsoundness reported in #106 and #107 cc @steffahn (for checking the fixes, whether they are actually correct) Closes #106 Closes #107
diff --git a/async-stream-impl/src/lib.rs b/async-stream-impl/src/lib.rs index 5f7f2dd..42252ce 100644 --- a/async-stream-impl/src/lib.rs +++ b/async-stream-impl/src/lib.rs @@ -120,10 +120,19 @@ impl VisitMut for Scrub<'_> { // let ident = &self.yielder; - *i = if self.is_try { - ...
4
4
3
[{"id": "G0", "claim": "Add regression tests (e.g. UI tests) so that the unsoundness cases this PR fixes are covered and no longer compile.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The soundness guard can still be bypassed by defining a block labe...
null
tokio-rs__async-stream__46
tokio-rs/async-stream
46
defect
ba314cf7ec825df825da3b6e7a80a97229d0d280
a43e5d3eebd98eb200ef02aaee179a2fb109fb29
Support reexporting from anywhere by wrapping in a declarative macro
This PR allows the `stream!` and `try_stream!` macros to be reexported from anywhere by having the procedural macro take a path to `async_stream`, and having the macros in `async-stream` be declarative macros that wrap the procedural ones and pass in `$crate`.
diff --git a/async-stream-impl/src/lib.rs b/async-stream-impl/src/lib.rs index 3d4d185..b959f65 100644 --- a/async-stream-impl/src/lib.rs +++ b/async-stream-impl/src/lib.rs @@ -1,46 +1,51 @@ use proc_macro::TokenStream; -use proc_macro2::{Delimiter, Group, TokenStream as TokenStream2, TokenTree}; +use proc_macro2::{Gr...
4
4
4
[{"id": "G0", "claim": "The PR needs a test to make sure reexporting the macros (using them through a re-export rather than a direct dependency) works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The note block the PR added to yield_in_async.stderr a...
null