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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
theskumar__python-dotenv__148 | theskumar/python-dotenv | 148 | defect | 3b7e60e6cbdef596701c1921257ea9e48076eec3 | 4f290883cfa168a52829d29da9955e47e8c875ef | Add support for newlines, backslashes, trailing comments and unquoted UTF-8 | This adds support for:
* multiline values (i.e. containing newlines or escaped \n), fixes #89
* backslashes in values, fixes #112
* trailing comments, fixes #141
* UTF-8 in unquoted values, fixes #147
This supersedes a previous pull-request, #142, which would add support for
multiline values in `Dotenv.parse`... | diff --git a/dotenv/main.py b/dotenv/main.py
index 349ec069..80aee939 100644
--- a/dotenv/main.py
+++ b/dotenv/main.py
@@ -2,47 +2,91 @@
from __future__ import absolute_import, print_function, unicode_literals
import codecs
-import fileinput
import io
import os
import re
+import shutil
import sys
from subproce... | 3 | 3 | 2 | [{"id": "G0", "claim": "The second `\\s*` (trailing whitespace) group before the comment group in the binding regex is redundant and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Escape-sequence decoding in quoted values now tur... | null |
theskumar__python-dotenv__220 | theskumar/python-dotenv | 220 | defect | 723809fd9e5b6bb5c016c48bc42246f369e8485b | 01c197f9a7d5b45c67bf94fba81f95ee12d98535 | Support no value keys | Add support for variables with no value
Closes: #219 | diff --git a/.travis.yml b/.travis.yml
index c8f56f51..5588c7ff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,10 +12,6 @@ matrix:
- python: "2.7"
env: TOXENV=py27
- - python: "3.4"
- env: TOXENV=py34
- - python: "3.4"
- env: TOXENV=py34-no-typing
- python: "3.5"
env: TOXENV... | 3 | 2 | 1 | [{"id": "G0", "claim": "Removing the Python 3.4 jobs from .travis.yml is not justified by the PyYAML issue and the reviewer would rather keep testing 3.4 for now since it is supported by e.g. Pipenv.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ... | null |
theskumar__python-dotenv__318 | theskumar/python-dotenv | 318 | defect | abde8e5e8409c70c05edadf379ec7308a4965c8c | d8620a7b0294026e7ad5760ec91d10056615d180 | Fix tests for build environment relying on `PYTHONPATH` | Hey,
I want to update dotenv to 0.17.0 in Fedora, but realized the two newly introduced tests started failing in the build process.
This happens because defining `_env` [replaces the existing environment](https://amoffat.github.io/sh/sections/special_arguments.html#env), effectively unsetting many variables (which, i... | diff --git a/tests/test_cli.py b/tests/test_cli.py
index b21725ca..ab61b001 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+import os
+
import pytest
import sh
@@ -144,7 +146,9 @@ def test_run_with_existing_variable(tmp_path):
with open(dotenv_file, "w") as f:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The copied test environment accidentally drops variables the tests previously set; the update should include LANG (test_env.update({\"LANG\": \"en_US.UTF-8\", \"a\": \"c\"})) in both tests so the existing environment is preserved rather than lost.", "category": "correctness", "verdict": "support... | null |
theskumar__python-dotenv__569 | theskumar/python-dotenv | 569 | defect | 666984de9a730a54438362b1adedd09bb1e9f5c7 | e2934383300c161a81b8712158dbde75a457da23 | feat: add `PYTHON_DOTENV_DISABLED` flag to disable load_dotenv (fixes #510) | Using approach proposed [here](https://github.com/theskumar/python-dotenv/issues/510#issuecomment-2998696567). | diff --git a/README.md b/README.md
index e92949ef..bff5b699 100644
--- a/README.md
+++ b/README.md
@@ -134,6 +134,10 @@ Optional flags:
- `-o` to override existing variables.
- `-v` for increased verbosity.
+### Disable load_dotenv
+
+You can disable automatic loading of dotenv values by setting the `DOTENV_AUTOLOA... | 5 | 5 | 1 | [{"id": "G0", "claim": "There should be a warning (or info) log telling the user that autoload is disabled, similar to the other useful warnings the library already emits.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The flag's effect should be renamed... | null |
thesofproject__sof__10446 | thesofproject/sof | 10,446 | defect | 631fc3003e158f2484249cb7ab173b4074b5c178 | 9aaca9c8a6565d16e51a6f8605879c5e1af392dd | DP: more preparation for application-level user-space (part 4.2 of #10287) | Part 4.2 of... Sorry, there's really no better way to describe this than just say that this is a subset of #10386 to make it smaller again... | diff --git a/src/audio/buffers/comp_buffer.c b/src/audio/buffers/comp_buffer.c
index 8cc99a73319b..f437d3abdc0d 100644
--- a/src/audio/buffers/comp_buffer.c
+++ b/src/audio/buffers/comp_buffer.c
@@ -159,7 +159,7 @@ static void comp_buffer_free(struct sof_audio_buffer *audio_buffer)
notifier_unregister_all(NULL, buffe... | 4 | 3 | 2 | [{"id": "G0", "claim": "Fix the spelling error in the new lib_manager_free_module doc comment: \"reguires\" should be \"requires\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After the FOREACH loop finds no matching region, virtual_region coul... | null |
thesofproject__sof__10456 | thesofproject/sof | 10,456 | defect | 70828dd148686f0660df2ce769e7404d317584cf | 8a2a08598a19c42b4e0900da05c95bddb9196bb6 | Add a simple object pool allocator | add an allocator for equal size pool management where allocated elements are never freed but only added to a free pool | diff --git a/src/include/sof/batch.h b/src/include/sof/batch.h
new file mode 100644
index 000000000000..7bc2a2068d50
--- /dev/null
+++ b/src/include/sof/batch.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright(c) 2025 Intel Corporation.
+ */
+
+#ifndef __ZEPHYR_RTOS_BATCH_H__
+#define __ZEPH... | 17 | 9 | 2 | [{"id": "G0", "claim": "The new public API functions (batch_alloc/batch_free) lack function-level documentation of purpose, parameters and return values, which should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A caller requesting a s... | null |
thesofproject__sof__10469 | thesofproject/sof | 10,469 | defect | e19293c118b60f3bb3945153032b1012174393b1 | 7ee9fb97f6f3b534a2cc9c7962da8a1206ae1f90 | dp: nocodec: switch playback SRC to DP by default | Switch one of the two SRC instances in the nocodec topology to DP mode by default. | diff --git a/src/schedule/zephyr_dp_schedule.h b/src/schedule/zephyr_dp_schedule.h
index 303403565506..05f1a66ca63a 100644
--- a/src/schedule/zephyr_dp_schedule.h
+++ b/src/schedule/zephyr_dp_schedule.h
@@ -25,7 +25,9 @@ struct scheduler_dp_data {
enum sof_dp_part_type {
SOF_DP_PART_HEAP,
+ SOF_DP_PART_HEAP_CACHE,... | 6 | 2 | 1 | [{"id": "G0", "claim": "Some nocodec tests are failing with this pull request applied.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "CI still shows red, and the pull request is good to merge only once the failures are resolved.", "category": "cor... | null |
thesofproject__sof__8180 | thesofproject/sof | 8,180 | defect | 2c6c1b4d4fb636ea78dfe1136737c4b6baf5b21c | d378c0419342e54728e4cc5e4f7ca6f06431a10f | loadable libraries and smart-amp-test as an example | This implements support for loadable libraries in SOF and adds the necessary interface to the smart-amp-test to be built and used as such a module. Still WiP | diff --git a/app/prj.conf b/app/prj.conf
index 49b09f62789b..ace506ef9035 100644
--- a/app/prj.conf
+++ b/app/prj.conf
@@ -52,3 +52,5 @@ CONFIG_SCHED_CPU_MASK_PIN_ONLY=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=15000
CONFIG_DAI=y
CONFIG_HEAP_MEM_POOL_SIZE=2048
+
+CONFIG_SAMPLE_SMART_AMP=n
diff --git a/lmdk/cmake/build.cmake b... | 5 | 2 | 0 | [{"id": "G0", "claim": "The newly added xtos include directory in the module build may be unnecessary and should be justified (the author explains it is needed for compiler_attributes.h).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The smart-... | null |
theturtle32__WebSocket-Node__467 | theturtle32/WebSocket-Node | 467 | defect | e48535505a2d733635f5eb9b42fd60b255885488 | 4c1f78a92cd03026f9d64b75d9655542b50e0a18 | Phase 2: Complete ES6+ Code Quality Enhancements | ## Summary
This PR completes **Phase 2** of the ES6+ modernization initiative, implementing comprehensive code quality enhancements across the WebSocket-Node codebase while maintaining full backward compatibility and WebSocket protocol compliance.
### 🎯 Phase 2 Objectives Completed
- ✅ **Enhanced Template Literals**... | diff --git a/.github/workflows/websocket-tests.yml b/.github/workflows/websocket-tests.yml
index 8f93393a..30e023fe 100644
--- a/.github/workflows/websocket-tests.yml
+++ b/.github/workflows/websocket-tests.yml
@@ -1,12 +1,12 @@
name: websocket-tests
-on: [push, pull_request]
+on: [pull_request]
jobs:
test:
r... | 1 | 1 | 1 | [{"id": "G0", "claim": "If the results object parsed from index.json is empty, Object.keys(results) is an empty array, serverName becomes undefined, and Object.entries(testResults) on line 36 throws a TypeError; the script should check that results is non-empty before accessing results[serverName].", "category": "corre... | null |
theturtle32__WebSocket-Node__480 | theturtle32/WebSocket-Node | 480 | defect | dfc849f7a7501fdd0f71e37cc1cc043e9128f113 | 89a70c5c37302d8081c5c111ce7d3b2dbc9da3f7 | Fix all remaining skipped tests - achieve 100% test pass rate (396/396) | ## Summary
Fixed all 13 remaining skipped tests to achieve **100% test pass rate (396/396 tests passing)**.
## Changes
### Event Pattern Tests (10 tests fixed)
- ✅ Connection close pattern validation
- ✅ Close state transition validation
- ✅ Individual frame event pattern
- ✅ Close frame handling pattern
- ✅ Reserve... | diff --git a/CLAUDE.md b/CLAUDE.md
index a5a7d881..57b01529 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -44,3 +44,4 @@
- Update any relevant project plan markdown files.
- Ensure that you have created an appropriately named branch for the work in progress.
- Make sure `pnpm lint:fix` is run and not showing any errors.... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new CLAUDE.md instruction 'When starting work on a new task, create a branch to track that work.' duplicates the existing line 45 instruction about creating an appropriately named branch and should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope"... | null |
theturtle32__WebSocket-Node__482 | theturtle32/WebSocket-Node | 482 | defect | 6bde28283e0ba0fdfbd578bcd7da981f1e00a26d | ec665b39c17843024caf5a3aadf2009926d18fa5 | Add comprehensive WebSocketRequest test suite (40 new tests) | ## Summary
Implemented 40 comprehensive tests for WebSocketRequest, addressing a critical gap in test coverage. Coverage improved from 2 basic tests (29.63%) to 42 total tests (estimated 85%+ coverage).
### Test Coverage
**Request Parsing and Validation (13 tests)**
- ✅ Required headers validation (Host, Sec-WebSock... | diff --git a/CLAUDE.md b/CLAUDE.md
index 57b01529..6614fcce 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -44,4 +44,7 @@
- Update any relevant project plan markdown files.
- Ensure that you have created an appropriately named branch for the work in progress.
- Make sure `pnpm lint:fix` is run and not showing any errors.... | 4 | 1 | 0 | [{"id": "G0", "claim": "The new CLAUDE.md workflow instruction is a very long run-on sentence and should be reformatted into a nested list for clarity and readability.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The EventEmitter import in test/... | null |
theturtle32__WebSocket-Node__483 | theturtle32/WebSocket-Node | 483 | defect | 4ebeef0ec0a6c4d34e0401c949e76adcd66b763a | 2bf3f4d50877240881c6505e0dc5006da2941fd3 | Add enhanced utils.js tests - 21 new targeted tests | ## Summary
Addresses low test coverage (33.84%) in `lib/utils.js` by creating comprehensive tests targeting previously untested code paths.
## Changes
**New file**: `test/unit/core/utils-enhanced.test.mjs` (21 new tests)
### Test Coverage Areas
1. **BufferingLogger Enhanced Coverage**
- `clear()` method functio... | diff --git a/TEST_SUITE_MODERNIZATION_PLAN.md b/TEST_SUITE_MODERNIZATION_PLAN.md
index bc62106e..de10f7de 100644
--- a/TEST_SUITE_MODERNIZATION_PLAN.md
+++ b/TEST_SUITE_MODERNIZATION_PLAN.md
@@ -49,10 +49,10 @@ Phase 6: CI/CD Optimization ❌ 0% Complete
### Test Execution Status
```bash
-Test Files: 25 ... | 7 | 7 | 1 | [{"id": "G0", "claim": "Rename the `BufferingLogger.clear()` describe block and its 'should clear buffered messages' test to accurately reflect that the test exercises printOutput (the buffer is not cleared and new messages can be logged after printing), since `clear()` is not exposed by the factory.", "category": "tes... | null |
theturtle32__WebSocket-Node__484 | theturtle32/WebSocket-Node | 484 | defect | 7bd402690dad0ed3ddebb319c2d337f4c3c0864e | dc2a1c7cd55cca702c6ee4b01da8d8abd43d04ee | Add comprehensive WebSocketRouterRequest tests - 28 new tests | ## Summary
Addresses zero test coverage for `lib/WebSocketRouterRequest.js` by creating a comprehensive test suite covering all functionality.
## Changes
**New file**: `test/unit/core/routerrequest.test.mjs` (28 new tests)
### Test Coverage Areas
1. **Constructor and Property Initialization** (6 tests)
- Proper... | diff --git a/TEST_SUITE_MODERNIZATION_PLAN.md b/TEST_SUITE_MODERNIZATION_PLAN.md
index de10f7de..a89f4f55 100644
--- a/TEST_SUITE_MODERNIZATION_PLAN.md
+++ b/TEST_SUITE_MODERNIZATION_PLAN.md
@@ -35,7 +35,7 @@ This document tracks the comprehensive modernization of the WebSocket-Node test
## Current Status
-### Ove... | 3 | 2 | 0 | [{"id": "G0", "claim": "The test 'should set protocol to null for ____no_protocol____ sentinel' is redundant with the 'should handle sentinel protocol value ____no_protocol____' test and should be removed for conciseness.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
theturtle32__WebSocket-Node__485 | theturtle32/WebSocket-Node | 485 | defect | f6bc159545ddb8f53d5e195dbc6bbc090c96e222 | 9edd6076aaa8034df6e37d6f16d10be48ed51ab5 | Add comprehensive W3CWebSocket tests - 41 new tests | ## Summary
Addresses limited test coverage (2 basic tests) for `lib/W3CWebSocket.js` by creating a comprehensive test suite covering W3C WebSocket API compliance.
## Changes
**New file**: `test/unit/browser/w3c-websocket-enhanced.test.mjs` (41 new tests)
### Test Coverage Areas
1. **Constructor and Initialization*... | diff --git a/TEST_SUITE_MODERNIZATION_PLAN.md b/TEST_SUITE_MODERNIZATION_PLAN.md
index a89f4f55..ca10a293 100644
--- a/TEST_SUITE_MODERNIZATION_PLAN.md
+++ b/TEST_SUITE_MODERNIZATION_PLAN.md
@@ -35,7 +35,7 @@ This document tracks the comprehensive modernization of the WebSocket-Node test
## Current Status
-### Ove... | 6 | 2 | 1 | [{"id": "G0", "claim": "The test named 'should have assembleFragments enabled by default' only opens and closes a connection and never verifies that message fragments are assembled, so it should either test that behavior or be renamed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
theturtle32__WebSocket-Node__501 | theturtle32/WebSocket-Node | 501 | defect | e35b2bdaf436e9ba95901bb9a1b949ecc81c07d6 | d3b8ea929d8d002b458d78f05ed21c670d870faf | Suppress debug output during test runs | ## Summary
Clean up test output by suppressing debug logging during test runs while maintaining full debug functionality in production.
## Changes Made
### Core Library
- **lib/WebSocketConnection.js**: Modified `handleSocketError()` to only call `printOutput()` when `NODE_ENV !== 'test'`
- Prevents verbose debug o... | diff --git a/lib/WebSocketConnection.js b/lib/WebSocketConnection.js
index 377118f0..62f42bb0 100644
--- a/lib/WebSocketConnection.js
+++ b/lib/WebSocketConnection.js
@@ -313,7 +313,10 @@ class WebSocketConnection extends EventEmitter {
this.emit('error', error);
}
this.socket.destroy();
- this._deb... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the test files, the `debug` module should be required (or imported) once at the top of each file using ESM `import` instead of being `require`d inside hooks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Vitest co... | null |
theupdateframework__python-tuf__1147 | theupdateframework/python-tuf | 1,147 | defect | 87e92d589fe97909959de455282d90e83a20564b | 37ad414a0d7d9374986df4b0dfa779b2ec819ab7 | Close file objects, requests.Responses | **Fixes issue #1099**:
maybe also #1123 (but I've only gone through the code exercised by test_updater.py and test_download.py)
**Description of the changes being introduced by the pull request**:
Try to close all file objects and requests.Responses that are left open during test_updater.py and test_download.... | diff --git a/tests/test_download.py b/tests/test_download.py
index 2f97048ac6..4d12c41f7b 100755
--- a/tests/test_download.py
+++ b/tests/test_download.py
@@ -105,13 +105,11 @@ def tearDown(self):
def test_download_url_to_tempfileobj(self):
download_file = download.safe_download
-
- temp_fileobj = download... | 4 | 3 | 0 | [{"id": "G0", "claim": "The python-requests documentation links in the tuf/download.py comments lead to 404 webpages and should be updated or removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request should increase its scope and ... | null |
theupdateframework__python-tuf__1329 | theupdateframework/python-tuf | 1,329 | defect | e7e951a851cf9d3c4409d71641c159c42e9cbb95 | d38e4619eef9b888ba01b8d2079c2d4a452033a2 | New metadata API: add MetaFile and TargetFile classes | This pr is a continuation from pr https://github.com/theupdateframework/tuf/pull/1223
This is the final pr planned for https://github.com/theupdateframework/tuf/issues/1139,
**Description of the changes being introduced by the pull request**:
In the top-level metadata classes, there are complex attributes suc... | diff --git a/tests/test_api.py b/tests/test_api.py
index 24f6ace24a..d920db879e 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -23,6 +23,8 @@
import tuf.exceptions
from tuf.api.metadata import (
Metadata,
+ MetadataInfo,
+ Root,
Snapshot,
Timestamp,
Targets
@@ -96,6 +98,7 @@ def t... | 13 | 8 | 1 | [{"id": "G0", "claim": "Add a new (blank) line before the 'Attributes' section in the new class docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new (de)serialization code should not hardcode the json format or the 'snapshot.json' fil... | null |
theupdateframework__python-tuf__1354 | theupdateframework/python-tuf | 1,354 | defect | ed3d00eb99e10ec4e16e6826664b2cc119d1167a | 238264e0935b5f26428794a2e6c56fd83db6562e | api: Add Metadata.from_bytes() | This is essentially short-hand for
JSONDeserializer().deserialize(data)
but seems easier for the API user so may be worth it.
Metadata.from_file() now uses Metadata.from_bytes() internally.
---
_(message and title edited later to replace string with bytes)_
Fixes #1336
I think adding this makes ... | diff --git a/tests/test_api.py b/tests/test_api.py
index c47e0ef34c..9e05306342 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -105,8 +105,7 @@ def test_generic_read(self):
path = os.path.join(self.repo_dir, 'metadata', metadata + '.json')
metadata_obj = Metadata.from_file(path)
... | 3 | 1 | 1 | [{"id": "G0", "claim": "The \"Optional;\" notation in the from_string docstring may be non-standard and duplicates the typing annotations; the reviewer asks whether to rely on the annotations alone to indicate optional arguments.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduce... | null |
theupdateframework__python-tuf__1355 | theupdateframework/python-tuf | 1,355 | defect | df1a8885b3125323cc0902af0a6821339bba9d2a | 01d2dd580ec36d13b212313816fb626401ef349b | experimental client: Add MetadataBundle | MetadataBundle keeps track of current valid set of metadata for the
client, and handles almost every step of the "Detailed client workflow"
in the TUF specification (the remaining steps are I/O related).
It also
verifies any new metadata (local or downloaded from remote repository).
**EDIT** this bit is no lon... | diff --git a/tuf/client_rework/metadata_bundle.py b/tuf/client_rework/metadata_bundle.py
new file mode 100644
index 0000000000..f54335b5ef
--- /dev/null
+++ b/tuf/client_rework/metadata_bundle.py
@@ -0,0 +1,349 @@
+# Copyright the TUF contributors
+# SPDX-License-Identifier: MIT OR Apache-2.0
+
+"""TUF client bundle-of... | 28 | 19 | 1 | [{"id": "G0", "claim": "The __init__ path argument should have a more descriptive name such as repository_path or repo_path, since it is unclear whether it points at one metadata file or the parent folder of all metadata files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
theupdateframework__python-tuf__1370 | theupdateframework/python-tuf | 1,370 | defect | 1ce94b95cbc876de1054ffba07ca6eaaf8fc5f57 | f4264152ba66b745425a6be02bdea928997d17d7 | New API: Add DelegationRole and Delegations classes | Addresses #1139
**Description of the changes being introduced by the pull request**:
In the top-level metadata classes, there are complex attributes such as
"meta" in Targets and Snapshot, "key" and "roles" in Root etc.
We want to represent those complex attributes with a class to allow
easier veri... | diff --git a/tests/test_api.py b/tests/test_api.py
index 193fe6b601..9706ca8db5 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -27,7 +27,9 @@
Timestamp,
Targets,
Key,
- Role
+ Role,
+ Delegations,
+ DelegationRole,
)
from tuf.api.serialization import (
@@ -302,7 +304,7 @@ def t... | 11 | 10 | 2 | [{"id": "G0", "claim": "Delegations.from_dict assigns into the same keys dict it is iterating over, and the reviewer asks to build a new dict instead since modifying a dictionary while iterating is traditionally a red flag.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
theupdateframework__python-tuf__1373 | theupdateframework/python-tuf | 1,373 | defect | 79aa42a22545bc9f904c0a1d6b5b425e229a9e50 | 0e0c77c7c13839dc77f91a755d0c4cc45157845f | experimental client: Remove mirrors | (This is a continuation of and replaces #1368.)
**Drop "mirrors" support**
New Updater no longer supports downloading each metadata/target file from a list of user-provided mirrors. All downloads are performed from a single url: Default URL prefixes for both metadata and targets can be set in Updater(), and indiv... | diff --git a/tests/test_updater_rework.py b/tests/test_updater_rework.py
index bc6ce3a3f1..162fa5b1f9 100644
--- a/tests/test_updater_rework.py
+++ b/tests/test_updater_rework.py
@@ -123,14 +123,13 @@ def setUp(self):
# directory copied from the original repository files.
tuf.settings.repositories_directory =... | 8 | 5 | 1 | [{"id": "G0", "claim": "Calling _ensure_trailing_slash() on the optional target_base_url will not work when None is passed, since the helper calls url.endswith() unconditionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change exposes the ... | null |
theupdateframework__python-tuf__1379 | theupdateframework/python-tuf | 1,379 | defect | f7360284808314aa3da49986b35ffa78aa1e5d79 | 8b8ed6a3b3f7b63b8d6eb6d61ee3c83521101377 | Metadata minor fixes | Some minor improvements to metadata.py:
* type hint fixes
* Root.remove_key(): avoid unneeded lookups, also raise if key is not found
- [x] The code follows the [Code Style Guidelines](https://github.com/secure-systems-lab/code-style-guidelines#code-style-guidelines)
| diff --git a/tests/test_api.py b/tests/test_api.py
index 193fe6b601..00781edb0c 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -393,6 +393,8 @@ def test_metadata_root(self):
self.assertNotIn(keyid, root.signed.roles['root'].keyids)
self.assertNotIn(keyid, root.signed.keys)
+ with s... | 1 | 1 | 0 | [{"id": "G0", "claim": "unrecognized_fields is read-only in these classes, so its type hint should stay Mapping rather than be changed to Dict as the commit did.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__python-tuf__1423 | theupdateframework/python-tuf | 1,423 | defect | f935ea33da65452a2a1c6e54a8bb225c8cace23e | 73a53e4b215a2315ca2ce903a8a6e2bce89b302c | Metadata API: implement sig verification in Key, store id in key | Fixes #1417
Adding id to Key class simplifies life for API users as usually a key needs its identifier: this is visible in how Root.add_key() becomes simpler and in how `verify_signature()` is now possible to implement in key without an additional id argument.
Moving verification to Key arguably also makes the A... | diff --git a/tests/test_api.py b/tests/test_api.py
index 2a2ebc997f..183685c9f3 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -373,18 +373,18 @@ def test_key_class(self):
# Testing that the workflow of deserializing and serializing
# a key dictionary doesn't change the content.
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Key.id docstring saying only 'An identifier string' should add hints that the id may be the digest of an ambiguous canonical representation of the key (and how its uniqueness is meant).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
theupdateframework__python-tuf__1435 | theupdateframework/python-tuf | 1,435 | defect | f935ea33da65452a2a1c6e54a8bb225c8cace23e | 5ff41a93497c2bdc94ae5b35824c6785c8f35ebe | Handle exceptions in verify | #1417 has been merged so this is good to go.
We want to handle exceptions in verify_signature(): Callers are not going to be interested in the various details of why verification failed (or rather, good error messages are important but no-one is going to write code to handle the different cases).
This call is ty... | diff --git a/tests/test_api.py b/tests/test_api.py
index 2a2ebc997f..f279ba24bd 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -81,13 +81,10 @@ def setUpClass(cls):
# Load keys into memory
cls.keystore = {}
for role in ['delegation', 'snapshot', 'targets', 'timestamp']:
- ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new exception handling should use the caught error 'e' to produce the descriptive error messages the PR description promises.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new verify_signature failure tests do not make clea... | null |
theupdateframework__python-tuf__1454 | theupdateframework/python-tuf | 1,454 | defect | 39ed706d72e206152e9bd0866e3e5ea76f1595f3 | c8398842ad27153817c933dcacee4fc2ee69c81c | BaseFile._verify_hashes: handle sslib errors | Fixes #1452
**Description of the changes being introduced by the pull request**:
BaseFile._verify_hashes handles the following sslib errors raised during hash verification:
- securesystemslib.exceptions.UnsupportedAlgorithmError
- securesystemslib.exceptions.FormatError
and reraises them as tuf.exceptions.Un... | diff --git a/tests/test_api.py b/tests/test_api.py
index e0b57114b2..26dbf8e27d 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -569,7 +569,7 @@ def test_metadata_targets(self):
hashes = {
"sha256": "141f740f53781d1ca54b8a50af22cbf74e44c21a998fa2a8a05aaac2c002886b",
"sha512"... | 1 | 1 | 1 | [{"id": "G0", "claim": "Re-raising sslib UnsupportedAlgorithmError/FormatError as tuf.exceptions.UnsupportedAlgorithmError should be reconsidered (derive it from LengthOrHashMismatchError or drop it if no use case exists), and the new exception behavior needs to be documented in the public methods.", "category": "desig... | null |
theupdateframework__python-tuf__1490 | theupdateframework/python-tuf | 1,490 | defect | 885fcacd0b50a9199c57189046a748eaae6381bd | a8404eef51732f948358b8e51059e2c1598acde7 | Metadata API: add Metadata.to_bytes() | Fixes #1487
**Description of the changes being introduced by the pull request**:
Metadata.to_bytes() is missing from the API and that is now becoming
annoying when writing the tests.
I think it makes sense to add:
it'll complete the serializing counterparts to from_bytes()/from_file().
Signed-off-by: Marti... | diff --git a/tests/test_api.py b/tests/test_api.py
index d4c970c200..492095a8c8 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -158,6 +158,16 @@ def test_read_write_read_compare(self):
os.remove(path_2)
+ def test_to_from_bytes(self):
+ for metadata in ["root", "snapshot", "timesta... | 2 | 2 | 1 | [{"id": "G0", "claim": "Metadata.to_file() should use the new Metadata.to_bytes() method instead of duplicating the logic that defines the default serialiser.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The to_bytes docstring should be improv... | null |
theupdateframework__python-tuf__1512 | theupdateframework/python-tuf | 1,512 | defect | 01e2308428a1082e6590764c7b409636f172d1d4 | 4593342528fec8207cab5ba6eb0e54c6a4612d9e | Implement glob-like pattern matching | Fixes #1505, #1506
**Description of the changes being introduced by the pull request**:
**Implement glob-like pattern matching - 1505**
According to the recently updated version of the specification the shell
style wildcard matching is glob-like (see https://github.com/theupdateframework/specification/pull/17... | diff --git a/tests/test_updater_ng.py b/tests/test_updater_ng.py
index eec10d73cb..8c0d48eb9a 100644
--- a/tests/test_updater_ng.py
+++ b/tests/test_updater_ng.py
@@ -16,6 +16,7 @@
from tests import utils
from tuf import ngclient
+from tuf.ngclient.updater import _is_target_in_pathpattern
logger = logging.getLog... | 2 | 2 | 2 | [{"id": "G0", "claim": "In _visit_child_role the two arguments to _is_target_in_pathpattern are swapped: the child role's pathpattern is passed as targetname and the target_filepath as pathpattern, so delegation matching is inverted.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "intro... | null |
theupdateframework__python-tuf__1520 | theupdateframework/python-tuf | 1,520 | defect | 98cc149489cb137ca2a515b133db1f3e025cab27 | f49bce084c8f684729d9a905cfda11b8710c00ee | Add Key.from_securesystemslib_key | The securesystemslib key dictionary representation includes
the private key in keyval. TUF key doesn't handle it in any way,
but considering that we allow unrecognized symbols in the format,
we should exclude the private key.
A call to securesystemslib.keys.format_keyval_to_metadata
with the default private=False ... | diff --git a/tests/test_api.py b/tests/test_api.py
index 8a3045d44e..6f6a31e89c 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -55,6 +55,10 @@
Signature
)
+from securesystemslib.keys import (
+ generate_ed25519_key
+)
+
logger = logging.getLogger(__name__)
@@ -440,6 +444,17 @@ def test_key_cl... | 3 | 2 | 1 | [{"id": "G0", "claim": "The PR description and commit message should be reworded (using the reviewer's proposed sentence) to explain that because unrecognized symbols are allowed in the key format, the private key must be excluded.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "intro... | null |
theupdateframework__python-tuf__1537 | theupdateframework/python-tuf | 1,537 | defect | f4ffb9dbaabfa6e0df22091b7a6ca63f0dec9377 | 355c3e13985045bc2e533673a8c5c5e5f0ccc3ea | Enforce role name uniqueness and add Targets key helpers | Fixes #1426, #1469
**Description of the changes being introduced by the pull request**:
This pr contains three types of changes:
**Enforce Delegation role name uniqueness**
The spec does not say anything about role name uniqueness in a
delegations object, but I believe we cannot safely allow multiple roles... | diff --git a/tests/test_api.py b/tests/test_api.py
index 1d55b302a6..67fec81238 100755
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -13,7 +13,6 @@
import shutil
import tempfile
import unittest
-import copy
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
@@ -32,7 +3... | 10 | 8 | 2 | [{"id": "G0", "claim": "The comment above the delegated-role lookup is stale after the roles list-to-dict change; please update the comment as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "While Python 3.6 is supported the Delegations roles... | null |
theupdateframework__python-tuf__1604 | theupdateframework/python-tuf | 1,604 | defect | d0213318905604a9ffd882dd90f22d4375cb03fe | b984ec50f9cc65ab0882747cedb8ee17a43603f9 | Ngclient api polish | NOTE: This PR including the description has been updated based on initial comments: this means the first comments look a bit strange now...
---
This is part 2 of #1580 (ngclient API tweaks): originally I thought we could just replicate old client API but the more I've used it, the more I've wanted to change it. So ... | diff --git a/tests/test_updater_ng.py b/tests/test_updater_ng.py
index cfdc178d94..69fbeef8cd 100644
--- a/tests/test_updater_ng.py
+++ b/tests/test_updater_ng.py
@@ -16,7 +16,7 @@
import tuf.unittest_toolbox as unittest_toolbox
from tests import utils
-from tuf.api.metadata import Metadata
+from tuf.api.metadata i... | 6 | 6 | 0 | [{"id": "G0", "claim": "The API need not be that flexible: with target_dir settable in the Updater constructor it is hard to see when the directory argument of download_target() would still be needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mo... | null |
theupdateframework__python-tuf__1605 | theupdateframework/python-tuf | 1,605 | defect | bb1ed9f5d8c3fe92dc62cd8473ec73e1ee31bc18 | 81b0b5b1a8aa7cb09939532af93b75f202f6ef54 | Introduce the idea of trusted/untrusted snapshot | Fixes #1523
**Description of the changes being introduced by the pull request**:
If you do the following steps with a repository that contains hashes in meta dicts:
1. call Updater.refresh() and load, verify and cache all metadata files
2. modify timestamp snapshot meta information:
(One or more of hashes or ... | diff --git a/tests/test_updater_with_simulator.py b/tests/test_updater_with_simulator.py
index f0e08f4680..e73f250a07 100644
--- a/tests/test_updater_with_simulator.py
+++ b/tests/test_updater_with_simulator.py
@@ -6,18 +6,18 @@
"""Test ngclient Updater using the repository simulator
"""
-import logging
import os
... | 6 | 5 | 0 | [{"id": "G0", "claim": "RepositorySimulator should be able to create meta dicts that contain hashes and length (gated by a flag such as metafile_hashes) so the test can just set the flag instead of manually computing and assigning the snapshot hash.", "category": "design", "verdict": "supported", "priority": "P2", "sco... | null |
theupdateframework__python-tuf__1628 | theupdateframework/python-tuf | 1,628 | defect | e86a61571c332643831a56d1c2910f2475f08998 | 15b276db0fa22d44bdb8f44878113ba396820fb8 | Add python3.10 and fix test failures on python3.10 | Fixes #1614
**Description of the changes being introduced by the pull request**:
Python 3.10 is released on October 4-th 2021 and it seems
logical to add support for it as it doesn't require any major effort
from the project.
For reference read:
https://www.python.org/downloads/release/python-3100/
I tri... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 97fb371ebd..e4367a04b9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,7 @@ jobs:
# Run regular TUF tests on each OS/Python combination, plus special tests
# (sslib master) and linters on Linux/Python3... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new context.wrap_socket(httpd.socket) call should pass server_side=True, as the removed ssl.wrap_socket() call did.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tox does not map an envlist entry written as 3.10 to the m... | null |
theupdateframework__python-tuf__1664 | theupdateframework/python-tuf | 1,664 | defect | 8ae944ccb256ba0aa13a62f691fd79d4e16c11ad | 87c6c31bd9e34c64e91e446e32a0dc0e9311eae3 | New implementation tests: address pylint warnings | Related to #1657:
**Description of the changes being introduced by the pull request**:
I believe we should enable linting (tox -e lint) for new test files testing the new implementation.
The first step to do that would be to apply the automatic fixes proposed
by `black` and `isort` on the new test files testi... | diff --git a/tests/repository_simulator.py b/tests/repository_simulator.py
index f5f4209bef..29378237ac 100644
--- a/tests/repository_simulator.py
+++ b/tests/repository_simulator.py
@@ -73,7 +73,7 @@
Timestamp,
)
from tuf.api.serialization.json import JSONSerializer
-from tuf.exceptions import FetcherHTTPError,... | 7 | 6 | 0 | [{"id": "G0", "claim": "The docstrings added by this pull request should end with a period, to be consistent with the other docstrings, and the change should be applied across the PR.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fetch() docs... | null |
theupdateframework__python-tuf__1685 | theupdateframework/python-tuf | 1,685 | defect | fa7990c354f7216ca68c6fd63ce075b06500fb3a | 9b07a45902e7817eb608b3b09de84af4e8927671 | Docs: Add repository tutorial based on metadata API | *[EDIT 11/23/2021: remove draft status and update PR description]*
*[EDIT 11/25/2021: remove reviewer question about test, the PR includes one]*
Fixes #1673
**Description**
Add an excessively commented python script to demonstrate repository creation/operation using only the low-level metadata API.
**Conte... | diff --git a/examples/repo_example/basic_repo.py b/examples/repo_example/basic_repo.py
new file mode 100644
index 0000000000..93e0126df5
--- /dev/null
+++ b/examples/repo_example/basic_repo.py
@@ -0,0 +1,403 @@
+"""
+A TUF repository example using the low-level TUF Metadata API.
+
+
+As 'repository_tool' and 'repositor... | 13 | 13 | 0 | [{"id": "G0", "claim": "The 'Common fields' text could somehow point to the Metadata class at that spot.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two target paths are confusing and an example path and/or URL could help explain them.", "c... | null |
theupdateframework__python-tuf__1687 | theupdateframework/python-tuf | 1,687 | defect | 1b5df4ccfec6306e841b0573aa4a0e26ce0846d2 | 2a83b1dde8f645cff2613f959933cb364033982b | Tests on the new implementation: address mypy warnings | Fixes #1657
Related to #1582.
**Description of the changes being introduced by the pull request**:
This pr includes:
- configure `mypy` to show error codes
- fixed type annotations in test_metadata_serialization
- two additional invalid serialization tests
- manual fixes for a lot of `mypy` warnings.
Whe... | diff --git a/setup.cfg b/setup.cfg
index 1d4a31c202..e4372f2543 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -61,6 +61,7 @@ warn_unreachable = True
strict_equality = True
disallow_untyped_defs = True
disallow_untyped_calls = True
+show_error_codes = True
files =
tuf/api/,
tuf/ngclient,
@@ -71,3 +72,9 @@ ignore_m... | 10 | 8 | 0 | [{"id": "G0", "claim": "The type-ignore annotations are not self-explanatory, so leave comments explaining them (clarified in M003 as review comments, not code comments).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ignore_missing_imports se... | null |
theupdateframework__python-tuf__1690 | theupdateframework/python-tuf | 1,690 | defect | 1b5df4ccfec6306e841b0573aa4a0e26ce0846d2 | f5bf6b0784a3ed585df4677a23df6ae008d88caa | Prevents delegate role name as top-level role name | This commit adds the validation in the ``metadata.Delegations``
to prevent that one of the delegate role names given is a top-level
role name.
A ``ValueError`` will be raised if one of the roles names in the
the list given to as delegated contains the role name as one of the
top-level roles.
The _mirrors role... | diff --git a/tests/test_metadata_serialization.py b/tests/test_metadata_serialization.py
index 9275b8b821..fbeb8e40f0 100644
--- a/tests/test_metadata_serialization.py
+++ b/tests/test_metadata_serialization.py
@@ -360,6 +360,43 @@ def test_delegation_serialization(self, test_case_data: str):
delegation = Dele... | 4 | 4 | 3 | [{"id": "G0", "claim": "The test data in the new valid_delegations dataset should use the keyids actually defined in each delegation's keys block (e.g. keyid1 instead of keyid) instead of referencing an undefined key, in all test cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
theupdateframework__python-tuf__1700 | theupdateframework/python-tuf | 1,700 | defect | a93f618839503cee07cbd705d20d937c81f41ae4 | b8cf1c0e379bc3d864f4314edefd51b8ebb38f27 | doc: basic hash bin delegation repo example + test | Fixes #1673 (together with #1685)
**Description of the changes being introduced by the pull request**:
As 'repository_tool' and 'repository_lib' are being deprecated, hash bin delegation interfaces are no longer available in this implementation. The example code in this file demonstrates how to easily implem... | diff --git a/examples/repo_example/basic_repo.py b/examples/repo_example/basic_repo.py
index 39855f71ef..7201819e26 100644
--- a/examples/repo_example/basic_repo.py
+++ b/examples/repo_example/basic_repo.py
@@ -268,7 +268,7 @@ def _in(days: float) -> datetime:
roles["root"].to_file(root_path, serializer=PRETTY)
-#... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a word or comment explaining what the '1:x' format spec does, and explain somewhere why hexadecimal strings are used.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__python-tuf__1707 | theupdateframework/python-tuf | 1,707 | defect | dd5deeecf0f9082a2b3e938176843cea2b1110c9 | 707e5ee2dfad80ffdd09cd692e6e7e017b03b6df | Test expired metadata from cache | This tests that an expired timestamp/snapshot/targets when loaded
from cache is not stored as final but is used to verify the new
timestamp
Addresses #1681
- [x] The code follows the [Code Style Guidelines](https://github.com/secure-systems-lab/code-style-guidelines#code-style-guidelines)
- [x] Tests have been... | diff --git a/tests/test_updater_with_simulator.py b/tests/test_updater_with_simulator.py
index 72c16ee162..d544c1caa9 100644
--- a/tests/test_updater_with_simulator.py
+++ b/tests/test_updater_with_simulator.py
@@ -11,14 +11,15 @@
import sys
import tempfile
import unittest
+from datetime import datetime, timedelta
... | 5 | 5 | 4 | [{"id": "G0", "claim": "Using `Fixes` in the PR description will close issue #1681 as soon as the first of this PR or #1703 merges, even though neither PR fixes the issue entirely by itself.", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test commen... | null |
theupdateframework__python-tuf__1725 | theupdateframework/python-tuf | 1,725 | defect | bdf1cbbbb56839cd99b965fedae2661ed873c4a2 | eb5457d65c34a9873c0ce20ffeea5c184bdf59c9 | Add new exceptions file for exceptions in the new code | Addresses @jku comment here: https://github.com/theupdateframework/python-tuf/pull/1721#issuecomment-992311731
**Description of the changes being introduced by the pull request**:
Add tuf/api/exceptions.py for exceptions in the new code.
I copied the exceptions from tuf/exceptions.py with a few important
decisi... | diff --git a/tests/repository_simulator.py b/tests/repository_simulator.py
index 6377fe0a2b..2db231514d 100644
--- a/tests/repository_simulator.py
+++ b/tests/repository_simulator.py
@@ -57,6 +57,7 @@
from securesystemslib.keys import generate_ed25519_key
from securesystemslib.signer import SSlibSigner
+from tuf.ap... | 15 | 10 | 1 | [{"id": "G0", "claim": "tuf/api/exceptions.py may be the wrong location for the new exceptions file since tuf/ngclient uses it too, and the file might better live at tuf/exceptions.py.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The RepositoryError clas... | null |
theupdateframework__python-tuf__1734 | theupdateframework/python-tuf | 1,734 | defect | 0f1fc6e33cbc4d4c6b502b9f8c64b119d1a4ad2f | 21303193ad07c81d909731854a26a09aebd3dbd3 | Metadata API: Avoid raising securesystemslib exceptions | Fixes #1646
**Description of the changes being introduced by the pull request**:
In this pr, I aim to remove the need of our users to import securesystemslib
in order to catch the exceptions thrown by `tuf/metadata/api.py`.
I either reexport securesystemslib exceptions or
reraise them by using tuf exceptions... | diff --git a/tests/repository_simulator.py b/tests/repository_simulator.py
index 39535ef26b..abba596bc6 100644
--- a/tests/repository_simulator.py
+++ b/tests/repository_simulator.py
@@ -57,6 +57,7 @@
from securesystemslib.keys import generate_ed25519_key
from securesystemslib.signer import SSlibSigner
+from tuf.ap... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer suggests that from_data, which the PR narrowed to catching only sslib FormatError, could handle both exceptions and raise something generic like UnsignedMetadataError as the verify functions do, which would allow removing UnsupportedAlgorithmError altogether.", "category": "design",... | null |
theupdateframework__python-tuf__1810 | theupdateframework/python-tuf | 1,810 | defect | cb7bd6aff9be097facecbd27ee5998c48feeb52d | 1a8e2dffe467fc42f70e12b8623db8f6a90f8e35 | ngclient: Make DownloadErrors more consistent | * Make fetch() wrap non-DownloadErrors in a DownloadError
* Try to be more consistent in docstrings
* rename FetcherHTTPError to DownloadHTTPError
As a result calling any public fetcher methods is now guaranteed to only raise DownloadError (or something derived from it). I think this looks cleaner, makes it easier... | diff --git a/examples/client_example/client_example.py b/examples/client_example/client_example.py
index bed32b9dce..e747abef99 100755
--- a/examples/client_example/client_example.py
+++ b/examples/client_example/client_example.py
@@ -10,7 +10,7 @@
import shutil
from pathlib import Path
-from tuf.api.exceptions imp... | 4 | 2 | 0 | [{"id": "G0", "claim": "The docstrings of download_file()/download_bytes() document the specific errors DownloadLengthMismatchError and FetcherHTTPError next to the generic DownloadError, and the reviewer asks whether that is okay and wants it discussed.", "category": "design", "verdict": "uncertain", "priority": "P2",... | null |
theupdateframework__python-tuf__1922 | theupdateframework/python-tuf | 1,922 | defect | b7b035aea12048596f62116f29e95f2551efa9be | 8071806e04a01c7130dd1fe99d987c35f3b43c67 | Add default args to Signed constructors | Tweak the constructor signatures to make creating brand new Metadata easier (the constructors were originally designed for deserialization purposes). Modify examples and tests to use the new constructor args.
The changes are backwards compatible. Resulting API is much easier to use for creating new Metadata. The API... | diff --git a/examples/repo_example/basic_repo.py b/examples/repo_example/basic_repo.py
index 7d0c404e60..8d61ba1a81 100644
--- a/examples/repo_example/basic_repo.py
+++ b/examples/repo_example/basic_repo.py
@@ -36,7 +36,6 @@
Key,
Metadata,
MetaFile,
- Role,
Root,
Snapshot,
TargetFile,
@... | 8 | 7 | 3 | [{"id": "G0", "claim": "Metadata.__init__ should assign signatures with an explicit `is None` check instead of `signatures or {}`, which discards an explicitly passed empty dict (the caller's dict is no longer `is` the stored one).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
theupdateframework__python-tuf__2010 | theupdateframework/python-tuf | 2,010 | defect | 80235093d27baa2e5abd5077aec9b25f749241ac | 31476928a4757ff767ec359bd70ae364c20b053f | Add support for succinct roles (TAP 15) | Related to the previous pr: https://github.com/theupdateframework/python-tuf/pull/1948 and issue #1909
**This pr includes 11 breaking changes:**
In `Delegations` class from `tuf/api/metadata.py` :
1. roles argument is made optional
2. unrecognized_fields argument becomes the 4-th rather than the 3-rd
as it use... | diff --git a/docs/api/tuf.api.metadata.supporting.rst b/docs/api/tuf.api.metadata.supporting.rst
index 906e70e95c..c4771c90ac 100644
--- a/docs/api/tuf.api.metadata.supporting.rst
+++ b/docs/api/tuf.api.metadata.supporting.rst
@@ -13,6 +13,7 @@ ones (Root, Timestamp, Snapshot, Targets):
tuf.api.metadata.MetaFile
... | 32 | 27 | 1 | [{"id": "G0", "claim": "is_delegated_role() would improve from early returns as in jku's suggested restructuring.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ValueError is also raised when neither roles nor succinct_roles is set, so the e... | null |
theupdateframework__python-tuf__2165 | theupdateframework/python-tuf | 2,165 | defect | fcf6cf679fd38cbeda17be1623cd50d0223cbccf | 7414f61fde187aa5a7bfee27a6f2fa56020e46ac | Move (most of) Key to Securesystemslib | This updates python-tuf sources for latest securesystemslib signer api changes. Most of the changes are in tests (since we test Key quite extensively) but verify_delegate() is also significantly rewritten. The commits are mostly logical -- the one exception is that the original refactoring of role/key lookup in Metadat... | diff --git a/examples/repo_example/basic_repo.py b/examples/repo_example/basic_repo.py
index 20ebe09ab0..aa002d0f2f 100644
--- a/examples/repo_example/basic_repo.py
+++ b/examples/repo_example/basic_repo.py
@@ -27,13 +27,12 @@
from typing import Any, Dict
from securesystemslib.keys import generate_ed25519_key
-from... | 4 | 3 | 2 | [{"id": "G0", "claim": "How to document the moved Key class is unresolved: the docs should be imported from securesystemslib rather than reproduced in python-tuf, if that is possible.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same documen... | null |
theupdateframework__python-tuf__2277 | theupdateframework/python-tuf | 2,277 | defect | d2908c0041d2949fac6547dd6caefb963ccceae6 | 236bc9f07054d4ee86f68ac5538335281d65dcd7 | Expose default fetcher | This is useful for those who want to use the default fetcher but modify some attributes
The file itself could be moved to tuf/ngclient/ but this is not done yet as sigstore-python is using this internal module. Move can be done once sigstore-python 1.0 is no longer relevant.
Fixes #2268
Signed-off-by: Jussi Ku... | diff --git a/docs/api/tuf.ngclient.fetcher.rst b/docs/api/tuf.ngclient.fetcher.rst
index 466ff389a7..ad64b49341 100644
--- a/docs/api/tuf.ngclient.fetcher.rst
+++ b/docs/api/tuf.ngclient.fetcher.rst
@@ -1,6 +1,9 @@
Fetcher
============
-.. automodule:: tuf.ngclient.fetcher
+.. autoclass:: tuf.ngclient.FetcherInterf... | 1 | 1 | 0 | [{"id": "G0", "claim": "A comment explaining that requests_fetcher is public but still lives in _internal should also be added to the requests_fetcher module itself for people reading that code directly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__python-tuf__2573 | theupdateframework/python-tuf | 2,573 | defect | 52fa73a32d2251fa149dd1f821a21f7ec9267222 | a484ba1a61bda5962efd6d44be510da9dc3912ac | change utcnow() to now(timezone.utc) | Fixes #2572
| diff --git a/examples/manual_repo/basic_repo.py b/examples/manual_repo/basic_repo.py
index 129bbc39fa..2e7d25ccc6 100644
--- a/examples/manual_repo/basic_repo.py
+++ b/examples/manual_repo/basic_repo.py
@@ -23,7 +23,7 @@
import os
import tempfile
-from datetime import datetime, timedelta
+from datetime import datet... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request leaves the linter failing because several lines it adds or modifies are too long.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's commits must be signed off to pass the DCO check.", "category": "p... | null |
theupdateframework__python-tuf__2650 | theupdateframework/python-tuf | 2,650 | defect | ac981a6c288fbe192ad05be6bbe9dec9d49cd325 | afa89b078ffd23c3627f794775cbfa21d802e4af | addd_root_verification | <!--
Before submitting a pull request:
* Run linter and tests locally: Use "tox"
* Ensure your commits are signed-off-by: Use "commit --signoff"
* Make sure new code has tests and is documented
* For more info, see docs/CONTRIBUTING.rst
Once commits are signed off and tested, describe the purpose and co... | diff --git a/tuf/repository/_repository.py b/tuf/repository/_repository.py
index fc96b8f474..454598708c 100644
--- a/tuf/repository/_repository.py
+++ b/tuf/repository/_repository.py
@@ -188,6 +188,12 @@ def do_snapshot(
update_version = force
removed: Dict[str, MetaFile] = {}
+ root = self.r... | 2 | 2 | 2 | [{"id": "G0", "claim": "The verification calls self.snapshot() and root.verify_signature() on the Snapshot object instead of using the containing Metadata object (self.open(Snapshot.type)) with root.verify_delegate(), so the snapshot's signatures cannot actually be verified.", "category": "correctness", "verdict": "sup... | null |
theupdateframework__python-tuf__2815 | theupdateframework/python-tuf | 2,815 | defect | 9f873cb9d53cee2714d3165b939c19c1aa0a01c5 | 7ac9f23721745b9eeb737f6a7bec7b25b401e98e | Port securesystemslib.hash module | securesystemslib.hash is a small wrapper around hashlib, which serves two main purposes:
* provide helper function to hash a file
* translate custom hash algorithm name "blake2b-256" to "blake2b" with (digest_size=32).
In preparation for the removal of securesystemslib.hash, this patch ports above behavior to tuf ... | diff --git a/tests/repository_simulator.py b/tests/repository_simulator.py
index 637ba42a54..5e9ba18939 100644
--- a/tests/repository_simulator.py
+++ b/tests/repository_simulator.py
@@ -45,6 +45,7 @@
from __future__ import annotations
import datetime
+import hashlib
import logging
import os
import tempfile
@@ -... | 4 | 3 | 1 | [{"id": "G0", "claim": "Mypy does not allow IO[bytes] for the file parameter of _file_hash, so a type: ignore seems fair (per the typing issue referenced).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hash helpers should return the hexdige... | null |
theupdateframework__python-tuf__2903 | theupdateframework/python-tuf | 2,903 | defect | 7b9d787971545e6de5b5907539135630e968c6d4 | c49bdb93228962545cc77b14fbc43348268f52dc | feat(ngclient): require explicit bootstrap argument | # Description of the changes being introduced by the pull request:
This PR makes the trust anchor choice explicit in tuf.ngclient.Updater().
- bootstrap is now a required keyword-only argument (no default)
- Callers must choose:
- bootstrap=<root_bytes> (recommended: embedded/deployed trusted root)
... | diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 6beadca962..92f1bfc591 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -2,6 +2,12 @@
## Unreleased
+### Changed
+
+* ngclient: `Updater()` now requires an explicit `bootstrap` argument
+ * This is a breaking change: callers must pass `bootstrap=<r... | 2 | 2 | 0 | [{"id": "G0", "claim": "The now-redundant manual root.json write in tests/test_updater_consistent_snapshot.py could be removed now that _init_updater() passes bootstrap, and the same probably applies to most test files using the repository simulator.", "category": "maintainability", "verdict": "supported", "priority": ... | null |
theupdateframework__rust-tuf__154 | theupdateframework/rust-tuf | 154 | defect | 79058918553a825cfa2e29ae26ed2580743949c1 | cde9bbfc8e470df19d2978fee18d8962dbaaa870 | Reformat with rustfmt 0.8.2-stable (08da30d 2018-06-06) | rustfmt-preview was bumped to 0.8.2, so this reformats the source with it. | diff --git a/src/client.rs b/src/client.rs
index 8d965ed0..8b890894 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -134,14 +134,13 @@ where
/// **WARNING**: This method offers weaker security guarantees than the related method
/// `with_root_pinned`.
pub fn new(config: Config<T>, local: L, remote: R) ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reformat the rustfmt-collapsed array literals in src/metadata.rs by hand so that each comment sits over the item it points to: the FAT control-character comment needs to drop down a line and the other arrays should be reformatted for consistency.", "category": "maintainability", "verdict": "supp... | null |
theupdateframework__rust-tuf__157 | theupdateframework/rust-tuf | 157 | defect | ff429ebed305833d2a60b4af08388f36d0a5fa5b | 0f8f3e7fba366faf01b6eb6add1f51e3a507d55e | Clients should locally save metadata | This patch merges `Client::update_local` and `Client::update_remote` in order to update `Tuf` following the pattern as described in the [spec section 5.1](https://github.com/theupdateframework/specification/blob/master/tuf-spec.md#the-client-application).
One potential problem though is I'm not sure how we can atomi... | diff --git a/src/client.rs b/src/client.rs
index 67c62cfc..f8c9415d 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -43,18 +43,18 @@
//! local,
//! remote,
//! ).unwrap();
-//! let _ = client.update_local().unwrap();
-//! let _ = client.update_remote().unwrap();
+//! let _ = client.... | 3 | 2 | 2 | [{"id": "G0", "claim": "The new local store_metadata calls sit under FIXMEs asking whether self.tuf needs rolling back if saving to the local repository fails; the reviewer holds that no rollback is needed because the in-memory Tuf is the truth and the local repo is just a cache, so the code should just warn and keep g... | null |
theupdateframework__rust-tuf__233 | theupdateframework/rust-tuf | 233 | defect | 3f7ecf0866bd9900619e8c42df85a99b158c310e | e2f1425a73ccef5ad0e409f14384a7d4e31334d7 | Fetch targets by HASH.FILENAME.EXT | In section 5.5.2 of the [TUF Spec], it states that if consistent snapshots is enabled, targets are downloaded by fetching HASH.FILENAME.EXT.
Note that this is layered on top of https://github.com/heartsucker/rust-tuf/pull/231, so I recommend reviewing that first, then reviewing the second commit.
Closes #225... | diff --git a/src/client.rs b/src/client.rs
index d29187de..e79ba942 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -469,7 +469,25 @@ where
target: &'a TargetPath,
) -> Result<Box<dyn AsyncRead + Send + Unpin>> {
let target_description = self.fetch_target_description(target).await?;
- se... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rather than adding the store_target/hash_prefix_target_path helper functions, the test should just hardcode the path since it is only used once, which would also make the test easier to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
theupdateframework__rust-tuf__242 | theupdateframework/rust-tuf | 242 | defect | 540ac446232afa12e5da0f585caa242cd83ef517 | 3a464de616af0c4c14f49296f16ee3660d7ff2b0 | Add new Client constructors, deprecate old ones | This patch changes how Clients are created. It adds the following
functions:
* `Client::from_local` - use the specified root version from the local repository as our initial trusted root.
* `Client::from_pinned_root_keyids` - use the specified root version, threshold, and keyids to trust a root fetched from the lo... | diff --git a/src/client.rs b/src/client.rs
index cdd2d7c0..febd6b82 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -36,12 +36,13 @@
//! .user_agent("rustup/1.4.0")
//! .build();
//!
-//! let mut client = Client::with_root_pinned(
-//! &key_ids,
+//! let mut client = Client::from_pinned_root_keyids(
//! C... | 8 | 8 | 2 | [{"id": "G0", "claim": "The rustdoc intra-doc link `[Client::from_root_pinned_keyids]` in the deprecation notice does not resolve because the method name in the link and note is garbled.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the deprec... | null |
theupdateframework__rust-tuf__289 | theupdateframework/rust-tuf | 289 | defect | eab89a052270714eb455c3bf9da729a19862140c | eae13a43d75eed400df4c78dde328698054afc9a | Remove tuf::Client::with_trusted_root_keyids | In https://github.com/theupdateframework/taps/blob/master/tap12.md, the
TUF community is considering removing the requirement that the keyid must
be derived from the public key. If this lands, then it wouldn't be safe to
initialize trust with just the keyids. To prepare for this transition,
this patch removes `tuf:... | diff --git a/src/client.rs b/src/client.rs
index 5ca4b809..734ebf07 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -8,23 +8,17 @@
//! # use std::path::PathBuf;
//! # use std::str::FromStr;
//! # use tuf::{Result, Tuf};
-//! # use tuf::crypto::KeyId;
+//! # use tuf::crypto::PublicKey;
//! # use tuf::client::{Clie... | 2 | 2 | 1 | [{"id": "G0", "claim": "The crate-level doc example should include some actual PublicKey values (e.g. via PublicKey::new as a const fn, or by deferring to a hidden load_trusted_public_keys() function) instead of the empty TRUSTED_ROOT_KEYS list, which with threshold 1 would make the example client useless.", "category"... | null |
theupdateframework__rust-tuf__293 | theupdateframework/rust-tuf | 293 | defect | 53029b93e23db6e0879867904753fa557ff0b7b0 | cac6e1db001b811a3766a897e5eaa1916aec3618 | Control when metadata is deserialized | This rewrites rust-tuf to be more strict on when metadata is deserialized. This is to start laying the groundwork to prevent rust-tuf from being vulnerable to parser exploits (like [CVE-2017-18349]). Almost all deserialization is moved into the new `verify.rs` module, which validates the metadata's signature before ret... | diff --git a/src/client.rs b/src/client.rs
index 79ab92a5..ca9f90d0 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -63,6 +63,7 @@ use crate::metadata::{
};
use crate::repository::{Repository, RepositoryProvider, RepositoryStorage};
use crate::tuf::Tuf;
+use crate::verify::Verified;
use crate::Result;
/// Tran... | 3 | 1 | 1 | [{"id": "G0", "claim": "Deserializing from the canonical bytes makes verification parse two potentially different slices of raw bytes and is more expensive than parsing from SignedMetadata::signed, so the reviewer asks why that functionality change was made.", "category": "design", "verdict": "opposed", "priority": "P2... | null |
theupdateframework__rust-tuf__298 | theupdateframework/rust-tuf | 298 | defect | 53029b93e23db6e0879867904753fa557ff0b7b0 | bad987c32688bf8ca900da8b599e5c9a806e4963 | Make RepositoryStorage object-safe | This changes the `RepositoryStorage` type to be object-safe by passing in the `AsyncRead` argument as a `&mut dyn AsyncRead`. Furthermore, Rust doesn't allow for a type like `Box<dyn A + B>`. So in order to make the `Repository` struct take a dyn boxed repository, this patch also adds a trait `RepositoryStorageProvider... | diff --git a/src/client.rs b/src/client.rs
index 79ab92a5..3a7a29ee 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -178,7 +178,7 @@ where
/// local.store_metadata(
/// &root_path,
/// &root_version,
- /// root.to_raw().unwrap().as_bytes()
+ /// &mut root.to_raw().unwrap().as_byte... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should define a blanket impl of RepositoryStorageProvider for all T: RepositoryStorage + RepositoryProvider instead of writing manual impls for each concrete type.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__rust-tuf__30 | theupdateframework/rust-tuf | 30 | defect | 02bb8187251d2bb17d9c8fdecbaff02a0f238739 | 3b42ab17b595c0b79d1faa06632a735f2b2cbbca | Replaces the deprecated rustc_serialize with data_encoding | Fixes #29 | diff --git a/Cargo.toml b/Cargo.toml
index 33712c96..85085754 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,44 +1,53 @@
[package]
-name = "tuf"
-version = "0.0.2"
-authors = [ "heartsucker <heartsucker@autistici.org>" ]
+authors = ["heartsucker <heartsucker@autistici.org>"]
+categories = ["cryptography"]
description... | 5 | 5 | 1 | [{"id": "G0", "claim": "The pull request breaks the build: tests/tests.rs still declares `extern crate rustc_serialize` and uses `FromHex`, but the PR removes the rustc-serialize dependency, so compilation fails with E0463.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {... | null |
theupdateframework__rust-tuf__331 | theupdateframework/rust-tuf | 331 | defect | f7fc9263b6c8c7f4ef1f0b2f23a386c77dd3d03e | bd6d32d54c7a66e9b550005c9c28516faa08ff33 | Remove tuf::client::PathTranslator | This removes tuf::client::PathTranslator. I'm not sure if this is a holdover from pre TUF-1.0 era, but as of right now I'm not aware of any strong use cases for translating paths. The only one I can come up with is if some repository wants to escape OS-specific characters, but that could be done in a repository wrapper... | diff --git a/interop-tests/src/lib.rs b/interop-tests/src/lib.rs
index 91182c63..6054d76c 100644
--- a/interop-tests/src/lib.rs
+++ b/interop-tests/src/lib.rs
@@ -8,7 +8,7 @@ use tuf::crypto::{Ed25519PrivateKey, HashAlgorithm, KeyType, PrivateKey, Signatu
use tuf::interchange::JsonPretty;
use tuf::metadata::{
Me... | 1 | 1 | 0 | [{"id": "G0", "claim": "with_hash_prefix should return an error instead of unwrapping when the components pop fails, as belt-and-suspenders defensive coding.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__rust-tuf__339 | theupdateframework/rust-tuf | 339 | defect | ada5ee2a295efa59a08c69baf7b690c1e67e74c1 | f72c2f607f02adcc3db12c72c8173b6b507242e6 | Rename client fetching targets | This patch:
* renames `Client::fetch_target` to `Client::fetch_target_to_local` to make it more obvious all it does is write the target to the local store.
* adds a new `Client::fetch_target`, which returns the target AsyncRead.
* removes `Client::fetch_target_to_writer`, since clients could implement that by usin... | diff --git a/interop-tests/tests/test.rs b/interop-tests/tests/test.rs
index 4d0f5242..953128ff 100644
--- a/interop-tests/tests/test.rs
+++ b/interop-tests/tests/test.rs
@@ -200,10 +200,8 @@ where
// fetch all the targets and check they have the correct content
for (target_path, expected) in self.exp... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the nit in the new comment about the fetch future lifetime: reword the garbled phrase \"rust needs it so since the fetch future can hold\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
theupdateframework__rust-tuf__361 | theupdateframework/rust-tuf | 361 | defect | 7e7a8fea42d9b1c671d7f378688de28b93cf9544 | f6dcba0e9f0af5b257c79a665ca20af4d6cdcc92 | Implement update start time | This patch implements [TUF 1.0.30 section 5.1.1], where we record the update start time at the beginning of the client update workflow, and compare all expirations to this. This allows us to avoid the risk of the metadata expiring during the update process.
In addition, this adds `Client::update_with_start_time(... | diff --git a/tuf/src/client.rs b/tuf/src/client.rs
index 448bd09..88b4509 100644
--- a/tuf/src/client.rs
+++ b/tuf/src/client.rs
@@ -51,7 +51,7 @@
//! # }
//! ```
-use chrono::offset::Utc;
+use chrono::{offset::Utc, DateTime};
use futures_io::AsyncRead;
use log::{error, warn};
use std::future::Future;
@@ -374,13... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the `now` parameter of `fetch_target_description_with_start_time` to `start_time` for consistency with the other functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
theupdateframework__rust-tuf__363 | theupdateframework/rust-tuf | 363 | defect | 5fdec9d9ffae685cac31e6b6e69198d366abc663 | 2a0418abff7ea7c4d742fb4e3942f2d59e6a7d1f | Improve errors | This PR cleans up the errors to include better information:
* missing metadata or target path is now included in relevant errors.
* unused error variants are removed.
* makes variants for common errors. | diff --git a/tuf/src/client.rs b/tuf/src/client.rs
index 81b28ea..adc0328 100644
--- a/tuf/src/client.rs
+++ b/tuf/src/client.rs
@@ -59,7 +59,7 @@ use std::pin::Pin;
use crate::crypto::{self, HashAlgorithm, HashValue, PublicKey};
use crate::database::Database;
-use crate::error::Error;
+use crate::error::{Error, Re... | 5 | 5 | 1 | [{"id": "G0", "claim": "The pull request has some CI failures that should be addressed before merging.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The error string for the new Derp variant should indicate what \"derp\" means, e.g. \"der parse: {0... | null |
thewca__tnoodle-lib__5 | thewca/tnoodle-lib | 5 | defect | d3f09ea8dbabcf69d8104528e7039f2ad9b7934d | 6f87aef1bc649b071ebadf34cf4f14b4b7bde2fa | Implement optimal SQ-1 solver based on recent `sq12phase` changes | Square-1 is now using the optimal solver as backend, thanks to the lightning-fast fixes from @cs0x7f :)
Requesting review from experienced people because this roots deep into the solver | diff --git a/scrambles/src/main/java/net/gnehzr/tnoodle/puzzle/SquareOnePuzzle.java b/scrambles/src/main/java/net/gnehzr/tnoodle/puzzle/SquareOnePuzzle.java
index 34baf3d4..efa52728 100644
--- a/scrambles/src/main/java/net/gnehzr/tnoodle/puzzle/SquareOnePuzzle.java
+++ b/scrambles/src/main/java/net/gnehzr/tnoodle/puzzl... | 6 | 5 | 2 | [{"id": "G0", "claim": "The commented-out constant SQ1_MAX_SCRAMBLE_LENGTH at the top of SquareOnePuzzle is a leftover and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replacing the individual java.util imports with a single... | null |
thiagokokada__gh-gfm-preview__100 | thiagokokada/gh-gfm-preview | 100 | defect | 532ea64b719a4a860ecdbec4363f1006462dc050 | e8867a7f7998514557acfc616c1432057571e45f | Fix directory watching with broken symlinks | - Handle errors in the watcher, so now it will disable the watcher if it encounters an error in the startup instead of failing.
- Only add directories in `--directory-listing` mode, not files. | diff --git a/internal/server/directory_handler.go b/internal/server/directory_handler.go
index 0a33313..0d31265 100644
--- a/internal/server/directory_handler.go
+++ b/internal/server/directory_handler.go
@@ -30,7 +30,12 @@ func handleDirectoryMode(w http.ResponseWriter, r *http.Request, param *Param, w
return
}
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Returning the file path in non-directory mode makes single-file reload rely on file-level fsnotify events, so atomic-save editors (write temp file + rename) may be missed and live reload silently stops.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
thiagokokada__gh-gfm-preview__43 | thiagokokada/gh-gfm-preview | 43 | defect | 72e9e81a4f477588d6b67b88f8efd083b45af295 | 655f04c90547343a5944a0ad36a38bed7e286499 | bug: fix concurrent write to websocket connection panic | ## Problem
This PR fixes the following panic that occurred during production use:
```go
panic: concurrent write to websocket connection
goroutine 859 [running]:
github.com/gorilla/websocket.(*messageWriter).flushFrame(...)
github.com/gorilla/websocket.(*Conn).WriteMessage(...)
github.com/thiagokokada/gh-gf... | diff --git a/internal/server/websocket.go b/internal/server/websocket.go
index 98d59f0..e7b1cc8 100644
--- a/internal/server/websocket.go
+++ b/internal/server/websocket.go
@@ -3,6 +3,7 @@ package server
import (
"errors"
"net/http"
+ "sync"
"time"
"github.com/fsnotify/fsnotify"
@@ -15,12 +16,36 @@ const (
... | 5 | 4 | 1 | [{"id": "G0", "claim": "The TestConcurrentWritePanicReproduction test that demonstrates the bug should be removed from websocket_concurrency_test.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer wanted the whole websocket_concurrency_test... | null |
thin-edge__thin-edge.io__1456 | thin-edge/thin-edge.io | 1,456 | defect | 438358007ae688d359194f5ceab1ab035db2e3bf | 9b7d74e021c135d84a13fcdb760ec4cb29c1123b | fs_notify generates events on wrong directory paths | ## Proposed changes
This PR fixes the issue related to raising the events for the wrong `directory` when `watching multiple directories`.
Uses the `inotify` fix that helps to extract the exact path on which the event has been raised.
## Types of changes
<!--
What types of changes does your code introduce to... | diff --git a/Cargo.lock b/Cargo.lock
index 4270664b27c..9d13a4cce0e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1359,8 +1359,7 @@ dependencies = [
[[package]]
name = "inotify"
version = "0.10.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abf888f9575c290197b2c948dc9e9ff10bd1a39ad1... | 6 | 2 | 1 | [{"id": "G0", "claim": "The watcher description should be a single data structure keyed by the inotify watch descriptor id (which the updated inotify crate exposes), replacing the two parallel structures and the multi-level event-matching loop.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ... | null |
thin-edge__thin-edge.io__1596 | thin-edge/thin-edge.io | 1,596 | defect | b3269313957aa313b8da3040a0e80185c6e9748a | c10cf0e9616a409fc18d7068f7bbedf8106cc3df | Configurable http port | ## Proposed changes
Added configurable http port in tedge.toml where default is 8000.
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug or
resolves a feature request, be sure to link to that issue.
-->
## Types of... | diff --git a/crates/common/tedge_config/src/settings.rs b/crates/common/tedge_config/src/settings.rs
index aa6fbdb418b..3df4e0d6b72 100644
--- a/crates/common/tedge_config/src/settings.rs
+++ b/crates/common/tedge_config/src/settings.rs
@@ -191,6 +191,20 @@ impl ConfigSetting for MqttPortSetting {
type Value = Por... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new HttpPortSetting accessor reads, updates and unsets the mqtt config fields instead of the http ones, so querying http.port returns the MQTT port and updating or unsetting it would write the MQTT port.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
thin-edge__thin-edge.io__1723 | thin-edge/thin-edge.io | 1,723 | defect | 10fec4bdb13c47598fb32114ba2c61d2ed139d94 | 5af581ccb6bfa1bdc6370655e64ae7cac5e54043 | Add aws support - Samuel's version without CSR | ## Proposed changes
This PR is basically #1460 but with resolved conflicts and without the commit adding CSR, as it was decided that eagerly generating the CSR and having it sit alongside the self-signed certificate would perhaps be confusing for users. Instead, the CSR will be looked at separately in another issue/... | diff --git a/README.md b/README.md
index d27e85c3dfa..7efbe98b68a 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@
* [Install thin-edge.io on your device](docs/src/howto-guides/002_installation.md)
* [Connect your device to Cumulocity](docs/src/tutorials/connect-c8y.md)
* [Connect your device to Azure](docs/... | 7 | 6 | 1 | [{"id": "G0", "claim": "The bridge topic scheme (inbound messages as a subset of the outbound `messages/#` mapping) risks an infinite echo loop and needs to be revised with distinct directions, e.g. separate outbound/inbound suffixes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
thin-edge__thin-edge.io__1734 | thin-edge/thin-edge.io | 1,734 | defect | 11c6206c643af1fd5e24832fff554933f87f6674 | 6bcb673202b8b6c5e05f7aae594db23e45dee248 | Applied clippy lints | ## Proposed changes
Using rust 1.69, there were quite a lot of lints reported by `cargo clippy`. Most of them are applied in this commit, however one particular type of lint remains and there were some ambiguities.
## Types of changes
<!--
What types of changes does your code introduce to `thin-edge.io`?
_Pu... | diff --git a/crates/common/batcher/src/batch.rs b/crates/common/batcher/src/batch.rs
index 8de20ee274e..8e7bdb9361d 100644
--- a/crates/common/batcher/src/batch.rs
+++ b/crates/common/batcher/src/batch.rs
@@ -66,11 +66,7 @@ impl<B: Batchable> Batch<B> {
// Go over all the events in this batch plus the new ev... | 6 | 4 | 1 | [{"id": "G0", "claim": "The change replacing the fire-and-forget send with `sender.send(msg).await.unwrap()` in the test MQTT client is the ambiguous change flagged in the PR description.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Removing the... | null |
thin-edge__thin-edge.io__1816 | thin-edge/thin-edge.io | 1,816 | defect | 036f578ecc6b822ee233030dcf863b687bae1f22 | fece872b946aa6f0291713b404c3df9502e6c1f4 | Add MQTT server authentication | ## Proposed changes
This commit adds to our MQTT clients (tedge mqtt and mqtt_channel) the capability to connect to secure MQTT brokers via TLS. For the broker certificate to be successfully verified, this certificate has to be signed by a CA certificate, and the CA certificate needs to be trusted by the client.
... | diff --git a/Cargo.lock b/Cargo.lock
index 19431173f9b..da0d0f64b0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1968,6 +1968,7 @@ version = "0.9.0"
dependencies = [
"anyhow",
"async-trait",
+ "certificate",
"fastrand",
"futures",
"mqtt_tests",
diff --git a/crates/common/certificate/src/lib.rs b/crates/commo... | 6 | 4 | 1 | [{"id": "G0", "claim": "The mosquitto broker configuration needs to be updated for MQTT server authentication, and it is unclear whether this PR does that or whether it remains a manual step.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The type of the n... | null |
thin-edge__thin-edge.io__1818 | thin-edge/thin-edge.io | 1,818 | defect | 56f1045cb3396af6fb5be032665c4eebe5291d46 | 20b67fdc14b951089cf607312df55be3f3f47b15 | Add configuration option to disable lock file creation | ## Proposed changes
This commit adds a configuration option to disable lock file creation by running the `tedge config` command or editing the `tedge.toml` file. More information in #1802
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If... | diff --git a/crates/common/tedge_config/src/tedge_config_cli/settings.rs b/crates/common/tedge_config/src/tedge_config_cli/settings.rs
index 9b8361da7a7..96a70c296b9 100644
--- a/crates/common/tedge_config/src/tedge_config_cli/settings.rs
+++ b/crates/common/tedge_config/src/tedge_config_cli/settings.rs
@@ -457,6 +457,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The mapper's lock must stay in scope up to the end of main(); bound inside the if block it is released on drop, so it no longer prevents another mapper instance from running.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Sin... | null |
thin-edge__thin-edge.io__1867 | thin-edge/thin-edge.io | 1,867 | defect | f7c92c11bc204f82f01a32eb1b2db66ebdb67ecd | b5b824f5cc3b686d1fa46d1fa0b925ce41f3325e | Add #[derive(Document)] to TEdgeConfigDto and replace FilePath with camino::Utf8PathBuf | ## Proposed changes
This is the first batch of changes for #1812. It adds documentation to the `TEdgeConfigDto` struct via doku. It also replaces `FilePath` with [`camino::Utf8Path`](https://docs.rs/camino/latest/camino/struct.Utf8Path.html) for a few reasons:
1. The internals of `TEdgeConfigDto` will become more... | diff --git a/Cargo.lock b/Cargo.lock
index 282914c34d3..018a31e87a5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -491,6 +491,7 @@ dependencies = [
"async-tungstenite",
"base64 0.13.1",
"c8y_api",
+ "camino",
"clap 4.1.6",
"csv",
"futures",
@@ -617,6 +618,15 @@ version = "1.2.0"
source = "registry+https://gi... | 5 | 4 | 0 | [{"id": "G0", "claim": "Add a comment to the manual Document impl for ConnectUrl explaining why it cannot be derived as for IpAddress (due to the serialized type defined by the serde try_from/into String attributes).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
thin-edge__thin-edge.io__2008 | thin-edge/thin-edge.io | 2,008 | defect | faaf14dd05619083fa9487159bbabbcbfe0e60d4 | 4dcb0d7db525f98189a044d27676a1f16316159b | pass config location to plugin-sm from agent | ## Proposed changes
This is follow up PR to #1961 that solve the issue with tedge config. Previously it was assumed that tedge config is in default location, now it is delivered from agent.
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. ... | diff --git a/crates/core/plugin_sm/src/plugin.rs b/crates/core/plugin_sm/src/plugin.rs
index 4dc966870e2..b5caade69ab 100644
--- a/crates/core/plugin_sm/src/plugin.rs
+++ b/crates/core/plugin_sm/src/plugin.rs
@@ -7,7 +7,7 @@ use std::path::Path;
use std::path::PathBuf;
use std::process::Output;
use tedge_api::*;
-us... | 2 | 2 | 0 | [{"id": "G0", "claim": "ExternalPluginCommand should take the value of config.software.plugin.max_packages instead of a TEdgeConfigLocation, with the config read once outside the plugin-loading loop, so that plugin instances do not each have to read the config and plugin_sm does not gain a dependency on tedge_config.",... | null |
thin-edge__thin-edge.io__2331 | thin-edge/thin-edge.io | 2,331 | defect | d1430e9674f659a47bacb49f061569e6bba3872d | 002ca09c0249a5425323e72330360a8a532ea6fc | Test improvements | ## Proposed changes
This makes a few test improvements. One of them concerns running the tests under `cargo-nextest`, which fails on some MQTT tests which spin up a server on a random port due to a conflict. The other two are changes to fix the tests on my machine, as they assume I have a group with the same name as m... | diff --git a/crates/common/download/src/download.rs b/crates/common/download/src/download.rs
index 43ee18d7be2..16f88dee93e 100644
--- a/crates/common/download/src/download.rs
+++ b/crates/common/download/src/download.rs
@@ -836,14 +836,14 @@ mod tests {
200,
false,
Some("http://not_a_url"),
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tests should use the group name of the user who launched the process (e.g. via uzers::get_current_groupname()) instead of passing the username as the group at crates/common/tedge_utils/src/file.rs:491, and the same pattern seems to be used elsewhere.", "category": "correctness", "verdict": "... | null |
thin-edge__thin-edge.io__2471 | thin-edge/thin-edge.io | 2,471 | defect | 56eaa9d16705eee0907c8b279adf97f0ca91a338 | 294a8ec0cbbd97b6906a3eafd10ba3113b92acad | feat: add tedge-write as new multicall binary | ## TODO
- [x] change cargo-sort CI check
- [x] add necessary sudoers entries
- [x] file operation atomic
- [x] verify that path is canonical
- [x] use tedge-write in configuration manager actor
## Proposed changes
Adds `tedge-write` as a new multicall binary.
## Types of changes
<!--
What types of c... | diff --git a/Cargo.lock b/Cargo.lock
index 1a40294542e..fcee4a1d3c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3614,6 +3614,7 @@ dependencies = [
"tedge-log-plugin",
"tedge-mapper",
"tedge-watchdog",
+ "tedge-write",
"tedge_config",
"tedge_utils",
"tempfile",
@@ -3790,6 +3791,20 @@ dependencies = [
"tra... | 9 | 8 | 2 | [{"id": "G0", "claim": "The `.as_path()` call is unnecessary here and the code could just pass `&tedge_config.tmp.path` directly.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test name `changes_file_permissions_if_file_doesnt_exist` is misle... | null |
thin-edge__thin-edge.io__2479 | thin-edge/thin-edge.io | 2,479 | defect | 6a0a8342de29d271544f42264525e106b6d0b25e | 4b556be4b70fcab9aebb196b4d902861db9f6460 | Add support for operation workflow triggering device restart | ## Proposed changes
The following trigger a device restart, leading to "successful_restart" or "failed_restart" depending on the actual success of the reboot.
```
[scheduled]
script = "restart"
next = ["restarting", "successful_restart", "failed_restart"]
```
The `next` list of states is used to configu... | diff --git a/Cargo.lock b/Cargo.lock
index 1a40294542e..7494427b7e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2189,6 +2189,7 @@ dependencies = [
"log",
"mqtt_tests",
"rumqttc",
+ "serde",
"serial_test",
"thiserror",
"tokio",
diff --git a/crates/common/mqtt_channel/Cargo.toml b/crates/common/mqtt_channel/... | 11 | 5 | 1 | [{"id": "G0", "claim": "The workflow file's restart flow is confusing because the pull request hijacks the `next` field, whose entries act as aliases for the internal restart workflow's states behind an implicit restarting state and, in the author's interim proposal, separate on_success/on_error directives; the reviewe... | null |
thin-edge__thin-edge.io__2508 | thin-edge/thin-edge.io | 2,508 | defect | 7a10485e58d3ecb7dade122c23590db14dda2991 | fb0f671ba5338941789c6e46d2667a5702ba09d4 | Add support for parsing unix timestamp measurements | ## Proposed changes
This is an initial proposal for how thin-edge JSON measurements can be augmented to support unix timestamps in addition to ISO-8601 (/RFC-3339 which is what we actually parse and emit). At the moment it does not make any changes to the code generating thin-edge JSON, nor the documentation.
It cu... | diff --git a/crates/core/c8y_api/src/smartrest/alarm.rs b/crates/core/c8y_api/src/smartrest/alarm.rs
index f70b84fc112..67f5fe6c3e6 100644
--- a/crates/core/c8y_api/src/smartrest/alarm.rs
+++ b/crates/core/c8y_api/src/smartrest/alarm.rs
@@ -8,18 +8,17 @@ pub fn serialize_alarm(c8y_alarm: &C8yAlarm) -> Result<String, ti... | 3 | 3 | 0 | [{"id": "G0", "claim": "The PR should avoid accepting too numerous alternative timestamp formats: stick to seconds since Epoch (integer or float) and avoid milliseconds since Epoch, as extra formats would add more confusion than help.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
thin-edge__thin-edge.io__2735 | thin-edge/thin-edge.io | 2,735 | defect | 08399c1de1c2c84a5c1754a329f2c285f4da5446 | 654e7e73e0b65c255ea82227dad19846395247f6 | refactor: deprecate TEdgeConfigRepository | ## Proposed changes
Deprecate `struct TEdgeConfigRepository` which was useless wrapper around `TEdgeConfigLocation`.
## Types of changes
<!--
What types of changes does your code introduce to `thin-edge.io`?
_Put an `x` in the boxes that apply_
-->
- [ ] Bugfix (non-breaking change which fixes an issue)
... | diff --git a/crates/common/tedge_config/src/lib.rs b/crates/common/tedge_config/src/lib.rs
index d6b703bd082..b2c323f7729 100644
--- a/crates/common/tedge_config/src/lib.rs
+++ b/crates/common/tedge_config/src/lib.rs
@@ -7,21 +7,34 @@ pub use self::tedge_config_cli::error::*;
pub use self::tedge_config_cli::models::*;... | 4 | 3 | 1 | [{"id": "G0", "claim": "The code left in tedge_config_repository.rs should be moved into tedge_config_location.rs before merge.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reconnect command works around a compile error by re-loading the c... | null |
thin-edge__thin-edge.io__2968 | thin-edge/thin-edge.io | 2,968 | defect | ec79a0224ad6450cb79d5c60460ac75bba6b80e4 | a1c38bdffeb4e3beb9c484bc338925786f34a021 | ci: update nightly toolchain for udeps in workflow | ## Proposed changes
This PR updates nightly toolchain for cargo udeps to latest one. Newer toolchain is required to bump MSRV to 1.78.
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug or
resolves a feature request, be s... | diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml
index 85b9ecde042..259079f6230 100644
--- a/.github/workflows/pull-request-checks.yml
+++ b/.github/workflows/pull-request-checks.yml
@@ -93,11 +93,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- # TODO... | 1 | 1 | 0 | [{"id": "G0", "claim": "A comment should be added to Cargo.toml explaining why that specific rumqttd git revision is pinned.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thin-edge__thin-edge.io__2995 | thin-edge/thin-edge.io | 2,995 | defect | e310033676296d88fcfd46e70916eebcb73717ef | e5288bbe65bbec545e64227f68b38418d61ea662 | fix: `tedge config get` returns 1 when a key is not set | ## Proposed changes
Return `1` if `tedge config get` is called for unset key.
## Types of changes
<!--
What types of changes does your code introduce to `thin-edge.io`?
_Put an `x` in the boxes that apply_
-->
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change w... | diff --git a/crates/core/tedge/src/cli/config/commands/get.rs b/crates/core/tedge/src/cli/config/commands/get.rs
index bf6013b32b6..7cd01ae0403 100644
--- a/crates/core/tedge/src/cli/config/commands/get.rs
+++ b/crates/core/tedge/src/cli/config/commands/get.rs
@@ -19,6 +19,7 @@ impl Command for GetConfigCommand {
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Requested adding std::process::exit(1) to the ReadOnlyNotFound case (via the suggestion block), or even better removing that case so the error is handled by the catch-all `Err(err) => return Err(err.into())` arm.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
thin-edge__thin-edge.io__3338 | thin-edge/thin-edge.io | 3,338 | defect | 630aa39dfd9577ebbcc97b9e9eb722f0b13b0c69 | 97c45501b20ecff4f9394334c1367d019c877b27 | refactor: fix flaky unit tests | ## Proposed changes
This fixes some flaky unit tests I observed locally. One was the `mqtt_channel` tests, which were failing due to a genuine bug where the connection was closed before all messages were published. The other was a mapper test, which implicitly assumed messages would be delivered in a fixed order.
A... | diff --git a/crates/common/mqtt_channel/src/connection.rs b/crates/common/mqtt_channel/src/connection.rs
index b1d2cff473b..8e1e99ac4aa 100644
--- a/crates/common/mqtt_channel/src/connection.rs
+++ b/crates/common/mqtt_channel/src/connection.rs
@@ -16,6 +16,7 @@ use rumqttc::EventLoop;
use rumqttc::Incoming;
use rumq... | 4 | 3 | 2 | [{"id": "G0", "claim": "When the broker start fails and spawn_broker retries on a new port, the client thread started in the previous iteration must be aborted somehow, because once it enters its loop it cannot break out even on a connection error due to the specific if-let check.", "category": "correctness", "verdict"... | null |
thin-edge__thin-edge.io__3801 | thin-edge/thin-edge.io | 3,801 | defect | 9fbca1c075d6afd0d58c8e6a5dc0e2f76f288ac6 | dbaabe23c40344d2720ea66100bd4f0144740ab8 | refactor: improve handling of intervals in tedge-flows | ## Proposed changes
Refactor tedge-flows to improve interval handling.
Previously, tedge-flows relied on an exact number of seconds passing to execute an interval, and this had two negative effects:
- If tedge-flows was experiencing resource-pressure/needed to execute a moderately long-running javascript process, it c... | diff --git a/Cargo.lock b/Cargo.lock
index b35a6e4e4b8..068277ffed9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5115,6 +5115,7 @@ dependencies = [
"anyhow",
"async-trait",
"camino",
+ "futures",
"humantime",
"rquickjs",
"serde",
diff --git a/crates/extensions/tedge_flows/Cargo.toml b/crates/extensions/tedg... | 2 | 1 | 1 | [{"id": "G0", "claim": "should_execute_interval should take the current time as an argument instead of calling Instant::now() internally, because externalizing the time makes the logic easier to test (tokio::time mocking is useless for `tedge flows test`).", "category": "design", "verdict": "supported", "priority": "P1... | null |
thin-edge__thin-edge.io__3863 | thin-edge/thin-edge.io | 3,863 | defect | a70f207586bd16f219bd8bb58991af8fab1269c3 | c82fa554a958b52c0760cb3abc88aeaf504379fe | feat: Use JS Date for tedge flows timestamps | ## Proposed changes
- [x] Use [JS Date objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) for tedge flow timestamps
- [x] Add a `--processing-time` option to `tedge flows test`
- [x] Deprecate adhoc `DateTime` in favor of std `SystemTime`
- [x] Rename `Message.timestam... | diff --git a/crates/extensions/tedge_flows/src/flow.rs b/crates/extensions/tedge_flows/src/flow.rs
index 3619e2aeadd..418899f8844 100644
--- a/crates/extensions/tedge_flows/src/flow.rs
+++ b/crates/extensions/tedge_flows/src/flow.rs
@@ -404,11 +404,6 @@ impl DateTime {
DateTime::try_from(OffsetDateTime::now_ut... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new using_date unit test asserts a CET (GMT+0100) Date.toString() rendering of the timestamp, so it fails in CI where the build server runs in UTC rather than CET.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
thingsboard__thingsboard__14549 | thingsboard/thingsboard | 14,549 | defect | 98175f671d1d2a6836267b7d4c9e8197923ec825 | 36317a58c3e1678a222bde3639de6ad7f780e4a7 | Improve Edge stats reporting and add related integration tests | ## Pull Request description
Put your PR description here instead of this sentence.
## General checklist
- [ ] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [ ] [Labels](https://docs.github.com/en/issues/using... | diff --git a/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeGrpcSession.java b/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeGrpcSession.java
index 14c1b5e30a1..c0e76c32e49 100644
--- a/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeGrpcSession.java
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The constant name STATISTICS_DEVICE_PROFILE is misleading because it holds the device type passed to saveDevice, not a device profile name; consider renaming it to STATISTICS_DEVICE_TYPE.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
thingsboard__thingsboard__14762 | thingsboard/thingsboard | 14,762 | defect | cf993bcf869414e08c24c2721864b5bb95a45490 | 347163689c03dc83dbfaeedf1d42ef64286bfa88 | Fixed notification requests and RPC cleanup timeout on large datasets | ## Pull Request description
Put your PR description here instead of this sentence.
## General checklist
- [ ] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [ ] [Labels](https://docs.github.com/en/issues/using... | diff --git a/application/src/main/java/org/thingsboard/server/service/ttl/NotificationsCleanUpService.java b/application/src/main/java/org/thingsboard/server/service/ttl/NotificationsCleanUpService.java
index 7b1d40fe6390..a1ce9f1435dd 100644
--- a/application/src/main/java/org/thingsboard/server/service/ttl/Notificati... | 6 | 5 | 2 | [{"id": "G0", "claim": "Rule engine doesn't persist notifications, questioning the premise of the new notification request cleanup.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The default value of sql.ttl.notifications.checking_interval_ms was changed... | null |
thingsboard__thingsboard__14775 | thingsboard/thingsboard | 14,775 | defect | 244a64943c319ba601851811698c75aca2cd7d7b | e4df0ea4ff67be0750da830157aa92db2c1c4bda | Added OTA package data cleanup | ## Pull Request description
https://github.com/thingsboard/thingsboard/pull/14901
merge this as well to master (schema-update.sql)
## General checklist
- [ ] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [ ] ... | diff --git a/application/src/main/data/upgrade/basic/schema_update.sql b/application/src/main/data/upgrade/basic/schema_update.sql
index a2dfeac3587e..c3da4735dc3d 100644
--- a/application/src/main/data/upgrade/basic/schema_update.sql
+++ b/application/src/main/data/upgrade/basic/schema_update.sql
@@ -14,3 +14,66 @@
-... | 6 | 6 | 3 | [{"id": "G0", "claim": "The DELETE_OTA_DATA enum constant declaration ends with a double semicolon; it should end with a single semicolon.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "deleteLargeObject has a void return type while running a SE... | null |
thingsboard__thingsboard__14781 | thingsboard/thingsboard | 14,781 | defect | 244a64943c319ba601851811698c75aca2cd7d7b | 0468451f3ba02983e540e26f968305dd7a2ed04a | Added WS update on telemetry deletion | ## Pull Request description
Added ws update on telemetry deletion
## General checklist
- [x] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [x] [Labels](https://docs.github.com/en/issues/using-labels-and-mileston... | diff --git a/application/src/main/java/org/thingsboard/server/service/subscription/DefaultTbLocalSubscriptionService.java b/application/src/main/java/org/thingsboard/server/service/subscription/DefaultTbLocalSubscriptionService.java
index 51663eea9c2..df28da2dad6 100644
--- a/application/src/main/java/org/thingsboard/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The method `isDeletedEntryMarker()` should be renamed to `isDeletedEntry()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thingsboard__thingsboard__15050 | thingsboard/thingsboard | 15,050 | defect | 132b6a1e3f7dbbf04da812b3bcf3313a632439fe | 6c200e3767a5746e160629e1957998e35aed8b44 | Event-sourced propagation for admin settings | ## Pull Request description
Enables realtime (event-sourced) propagation of `AdminSettings` changes to Edges by ensuring AdminSettings entities can be identified via `EntityId`/`EntityType` mappings and fetched reliably during edge event processing.
Get rid of hardcoded `AdminSettings` keys - push to edge all `Admi... | diff --git a/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeSyncCursor.java b/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeSyncCursor.java
index bf3c94ca446..ce175957f65 100644
--- a/application/src/main/java/org/thingsboard/server/service/edge/rpc/EdgeSyncCursor.java
+++... | 3 | 3 | 1 | [{"id": "G0", "claim": "The newly added @Slf4j annotation is unused in this test class and should be removed (or logging actually used), to avoid an unused annotation/import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "convertEdgeEventToDownl... | null |
thingsboard__thingsboard__15058 | thingsboard/thingsboard | 15,058 | defect | 1a7597ecd84b717f61971e79b3b0bd106f27197e | 412fbefdbbb4678da582304e2ea598b5303dda1e | Added Cassandra result set byte-size limit | ## Pull Request description
Adds page-level byte-size tracking in TbResultSet.allRows() using ExecutionInfo.getResponseSizeInBytes() to fail early when accumulated result set size exceeds the configurable limit (default 50MB).
Also fixes pre-existing bugs where onFailure callbacks in CassandraBaseTimeseriesDao on... | diff --git a/application/src/main/resources/thingsboard.yml b/application/src/main/resources/thingsboard.yml
index 25463bdc6ca..43ad34ac613 100644
--- a/application/src/main/resources/thingsboard.yml
+++ b/application/src/main/resources/thingsboard.yml
@@ -330,6 +330,8 @@ cassandra:
set_null_values_enabled: "${CAS... | 2 | 1 | 1 | [{"id": "G0", "claim": "The test saves entries asynchronously without waiting for the save future to complete before running the query expected to fail, which can make the test flaky; await the save() future (e.g. with get(MAX_TIMEOUT, ...)) before proceeding.", "category": "testing", "verdict": "supported", "priority"... | null |
thingsboard__thingsboard__15127 | thingsboard/thingsboard | 15,127 | defect | 16084f77f2d2f5bc92a9341aaf70c7268e930838 | 9e65c39b75c1d26a18e44c67e77deb9b2c861682 | Added request body template support for REST API call node | ## Pull Request description
Users need to include secrets and dynamic values in HTTP request bodies (e.g., OAuth token endpoints, API login payloads). Currently, the REST API Call node always uses msg.getData() as the request body - there is no way to construct a custom body with metadata fields or secrets. While se... | diff --git a/rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java b/rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java
index 24f88e88a319..e5cbb166750a 100644
--- a/rule-engine/rule-engine-components/src/main/java/org/things... | 3 | 3 | 3 | [{"id": "G0", "claim": "Substituted metadata/message values are not JSON-escaped before the processed template is parsed as JSON when parseToPlainText is false, so values containing JSON-special characters produce malformed JSON and toJsonNode() throws at runtime; either escape substituted values or document the limita... | null |
thingsboard__thingsboard__15160 | thingsboard/thingsboard | 15,160 | defect | 19e72cdeebcc45636db0265ed03d5122325c8dea | bc39695fabe5441ce1a18861664bcd3d86aead74 | Sending WS error when the telemetry queries exceed response size limit | ## Pull Request description
<img width="2482" height="895" alt="resultSetExceededErrorRendering" src="https://github.com/user-attachments/assets/fe3a421e-8dce-4e6e-9fe4-2e94a47d43d3" />
**Problem**
... | diff --git a/application/src/main/java/org/thingsboard/server/service/subscription/DefaultTbEntityDataSubscriptionService.java b/application/src/main/java/org/thingsboard/server/service/subscription/DefaultTbEntityDataSubscriptionService.java
index f0f2e1eaa72..71df830f8da 100644
--- a/application/src/main/java/org/thi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The duplicated error-sending logic in the onFailure handlers should be extracted into a method named `sendError(..)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thingsboard__thingsboard__15170 | thingsboard/thingsboard | 15,170 | defect | 8e32d5913c06b9034b32c85d9cde520eccbd3490 | d864e3216f3504d0f5e4fb7f3f77ea42f9636dc9 | WebSocket API key authentication | ## Pull Request description
Put your PR description here instead of this sentence.
## General checklist
- [ ] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [ ] [Labels](https://docs.github.com/en/issues/using... | diff --git a/application/src/main/java/org/thingsboard/server/config/ApiKeyHandshakeInterceptor.java b/application/src/main/java/org/thingsboard/server/config/ApiKeyHandshakeInterceptor.java
new file mode 100644
index 00000000000..d6d550b2c01
--- /dev/null
+++ b/application/src/main/java/org/thingsboard/server/config/A... | 1 | 1 | 1 | [{"id": "G0", "claim": "The WebSocket handshake should authenticate the API key via the same X-Authorization/Authorization header format used by the REST API instead of a custom X-API-Key header.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thingsboard__thingsboard__15313 | thingsboard/thingsboard | 15,313 | defect | 71233b4ab56f831053a794ac8eb95640ce911422 | cffd2e96cc79185a70a14a4ac0740f3a0411933a | Fixed WS sessions limit handling for public users | ## Pull Request description
Previously, sessions per public user were summarized across the whole server, not tenant-specific. Fixed.
## General checklist
- [x] You have reviewed the guidelines [document](https://docs.google.com/document/d/1wqcOafLx5hth8SAg4dqV_LV3un3m5WYR8RdTJ4MbbUM/edit?usp=sharing).
- [x] ... | diff --git a/application/src/main/java/org/thingsboard/server/controller/plugin/TbWebSocketHandler.java b/application/src/main/java/org/thingsboard/server/controller/plugin/TbWebSocketHandler.java
index 73315be73f8..133584201c7 100644
--- a/application/src/main/java/org/thingsboard/server/controller/plugin/TbWebSocketH... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider adding a test similar to the checkLimits one for DefaultWebSocketService, covering the subscriptions side (processSubscription with publicUserSubscriptionsMap) and its cleanup in processSessionClose, to guard against regressions there too.", "category": "testing", "verdict": "supported"... | null |
thingsboard__thingsboard__15334 | thingsboard/thingsboard | 15,334 | defect | 71233b4ab56f831053a794ac8eb95640ce911422 | 33a46479e5f4be0792bfb05f576e4339a1c03800 | Fixed REST API Call node blocking actor thread and semaphore permit leak | ## Problem
The REST API Call rule node had two issues:
1. **Actor thread blocked**: `semaphore.tryAcquire(timeout, MILLISECONDS)` was called directly on the rule-engine actor thread, parking it for up to the configured timeout on every request when the concurrency limit was reached.
2. **Semaphore permit leak**: an e... | diff --git a/rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java b/rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java
index df9ce0194bc..05781ed7d68 100644
--- a/rule-engine/rule-engine-components/src/main/java/org/thingsbo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The recursive tryProcess() call can cause a StackOverflowError when many queued tasks fail synchronously (e.g. a misconfigured URL pattern making every task throw in buildEncodedUri()); it should be restructured to handle synchronous failures iteratively instead of recursing through the HTTP cal... | null |
thingsboard__thingsboard__15377 | thingsboard/thingsboard | 15,377 | defect | 13825bddead7ea018df1532993dfa94c8f90b964 | fca4f837a26a2cc6963020cc5c5ce29bf8242585 | Fixed CVE-2025-70340: system alarm comments access control | ## Pull Request description
Previously, a normal customer user could post comments as the SYSTEM or edit existing system-generated comments. Although system comments are intended to be generated exclusively by the platform to reflect internal actions (such as alarm acknowledgements or status changes).
## General... | diff --git a/application/src/main/java/org/thingsboard/server/controller/AlarmCommentController.java b/application/src/main/java/org/thingsboard/server/controller/AlarmCommentController.java
index ae8305c0704..937eded7ca0 100644
--- a/application/src/main/java/org/thingsboard/server/controller/AlarmCommentController.ja... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ThingsboardErrorCode import in AlarmCommentController is unused and is a leftover from an earlier iteration and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thirdweb-dev__insight__205 | thirdweb-dev/insight | 205 | defect | 54a6fcdd6646c7eb586c6b0caa9e1325dc1447e1 | 205a0b8e13f5b6a489f84c6540543403d44ab44b | pass context to rpc and worker | ### TL;DR
Added context propagation throughout the codebase to improve cancellation handling and resource management.
### What changed?
This PR adds proper context propagation throughout the codebase by:
1. Adding context parameters to all RPC client interface methods:
- `GetFullBlocks`
- `GetBlocks`
- `Ge... | diff --git a/internal/orchestrator/chain_tracker.go b/internal/orchestrator/chain_tracker.go
index 8e94a50..686b6b5 100644
--- a/internal/orchestrator/chain_tracker.go
+++ b/internal/orchestrator/chain_tracker.go
@@ -35,7 +35,7 @@ func (ct *ChainTracker) Start(ctx context.Context) {
log.Info().Msg("Chain tracker sh... | 10 | 3 | 0 | [{"id": "G0", "claim": "The RPC client's HasCode method still uses context.Background() and should accept and use a context like the other RPC methods, including in the IRPCClient interface definition.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The... | null |
thirdweb-dev__insight__224 | thirdweb-dev/insight | 224 | defect | 15d07b7696bf9a741dd5d9739714c53d4c183b7b | 6a68db369fb7201f185244744941789f1e274d1b | setup workmode determination and update | ### TL;DR
Added a work mode monitor to dynamically switch between backfill and live processing modes.
### What changed?
- Created a new `WorkModeMonitor` component that determines whether the system should operate in "backfill" or "live" mode based on how far behind the indexer is from the chain head
- Added communi... | diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go
index 4a08854..eb20d79 100644
--- a/internal/metrics/metrics.go
+++ b/internal/metrics/metrics.go
@@ -144,3 +144,11 @@ var (
Buckets: prometheus.DefBuckets,
})
)
+
+// Work Mode Metrics
+var (
+ CurrentWorkMode = promauto.NewGauge(prometheus.G... | 6 | 1 | 0 | [{"id": "G0", "claim": "Register the poller's and committer's work mode channels with a defer so the channel is unregistered from the WorkModeMonitor even when the goroutine exits early.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Before the poll... | null |
thirdweb-dev__insight__226 | thirdweb-dev/insight | 226 | defect | 15d07b7696bf9a741dd5d9739714c53d4c183b7b | 055b4124784602441c4c6d479873ac6a5b470e10 | poll new blocks in the committer when in live mode | ### TL;DR
Added support for real-time block committing in addition to backfill mode.
### What changed?
- Added a new `getBlockToCommitUntil` function that determines the end block for committing based on work mode
- In real-time mode, the committer now checks the latest block from RPC and uses that as the upper boun... | diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go
index 4a08854..eb20d79 100644
--- a/internal/metrics/metrics.go
+++ b/internal/metrics/metrics.go
@@ -144,3 +144,11 @@ var (
Buckets: prometheus.DefBuckets,
})
)
+
+// Work Mode Metrics
+var (
+ CurrentWorkMode = promauto.NewGauge(prometheus.G... | 4 | 1 | 1 | [{"id": "G0", "claim": "In live mode `fetchBlockDataToCommit` discards the error returned by `PollWithoutSaving` (`blocksData, _ :=`), so an RPC failure silently yields an empty block-data slice instead of surfacing the error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
thirdweb-dev__insight__228 | thirdweb-dev/insight | 228 | defect | a5ed3607cf8cbfe86bf4942d9444565a6af9971d | ab5f3ed7e5cc8f367e214e25b3c3c30597c5198d | Make staging cleanup async and conditional | ### TL;DR
Make staging data deletion asynchronous and conditional on backfill mode.
### What changed?
- Modified the commit function to run `DeleteStagingData` in a goroutine instead of synchronously
- Added a condition to only delete staging data when in backfill mode
- Added error logging instead of returning an e... | diff --git a/internal/orchestrator/committer.go b/internal/orchestrator/committer.go
index 7cbcf88..e296ecd 100644
--- a/internal/orchestrator/committer.go
+++ b/internal/orchestrator/committer.go
@@ -259,12 +259,16 @@ func (c *Committer) commit(ctx context.Context, blockData []common.BlockData) er
}
}()
- stagi... | 3 | 1 | 1 | [{"id": "G0", "claim": "c.workMode is read inside the goroutine, so it may race with the main thread changing the field and a backfill commit's staging deletion may be silently skipped if the mode flips to live first, leaking staging data; evaluate workMode before launching the goroutine and skip spawning it when not n... | null |
thirdweb-dev__insight__260 | thirdweb-dev/insight | 260 | defect | 0381b9845c4dfb6e60bc826abda48dc1d1a33d3a | 1109c089074cb2575d4c375be7f6a46afc99dc67 | cleanup blocks on committer start |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Automatic cleanup of outdated staging data before starting regular operations, ensuring more efficient storage management.
* Added capability to delete older block data entries from storage fo... | diff --git a/internal/orchestrator/committer.go b/internal/orchestrator/committer.go
index ded24b2..e95978e 100644
--- a/internal/orchestrator/committer.go
+++ b/internal/orchestrator/committer.go
@@ -79,6 +79,10 @@ func (c *Committer) Start(ctx context.Context) {
interval := time.Duration(c.triggerIntervalMs) * time... | 3 | 2 | 1 | [{"id": "G0", "claim": "ClickHouse DeleteOlderThan should use a single INSERT...SELECT instead of the client-side SELECT-plus-batch flow (or at least skip sending an empty batch when no rows match), for simplicity and scalability.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
thirdweb-dev__insight__262 | thirdweb-dev/insight | 262 | defect | 7bfa6deacee22ca1f15be16ef5b1bafe88df8869 | 22592de81f1f5f5d530f1f5f6461cb8bccb1e6af | feat: add parallel publisher mode | ## Summary
- replace old publisher modes with `default` and new `parallel` mode
- run commit and publish loops concurrently when in `parallel` mode and track last published blocks
- only publish during commits when in `default` mode
- initialize parallel publisher cursor from main storage to prevent re-publishing
## T... | diff --git a/cmd/root.go b/cmd/root.go
index 1cce104..6ba9702 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -135,6 +135,7 @@ func init() {
rootCmd.PersistentFlags().Bool("api-contractApiRequest-disableCompression", false, "Disable compression for contract API request")
rootCmd.PersistentFlags().Int("api-contractApi... | 15 | 3 | 1 | [{"id": "G0", "claim": "publisher.mode accepts any string with no validation, so an invalid --publisher-mode value is silently misconfigured; add fast-fail validation against default|parallel (optionally via a typed enum).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.