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
trezor__trezor-firmware__6175
trezor/trezor-firmware
6,175
defect
d5e3bbdfd74bb451c40a6caf0e874735eb368e65
36970cbe4893c0ebdab6978577d1e3fb5dbe8dda
bootloader refactor: extract fw check from main.c
[no changelog] <!-- For core developers: - Assign yourself to the PR. - Set the priority to match the original issue. - Add the PR to the current sprint. - If it's a draft PR, mark it as "In Progress." - If it's a final PR, mark it as "Needs Review." - If needed, add a `Notes for QA` section. For external ...
diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader index 9f6c2d62831..f3a54067705 100644 --- a/core/SConscript.bootloader +++ b/core/SConscript.bootloader @@ -156,6 +156,7 @@ SOURCE_BOOTLOADER = [ 'embed/projects/bootloader/wire/wire_iface_ble.c', 'embed/projects/bootloader/protob/protob.c',...
3
3
2
[{"id": "G0", "claim": "send_msg_features should also check the fw->header_present field when deciding whether to report the firmware as present.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The header_present/firmware_present flags in fw_info_t s...
null
trezor__trezor-firmware__6223
trezor/trezor-firmware
6,223
defect
4a12681776fabbebe7bb76d1ddb70f6865d67cb6
4442210e2335aa5193847fcba3ded52e7d4a7ade
Consistent error handling II
This pull request revives the earlier discussion regarding consistent error handling and is based on the unmerged pull request #4008 (please see the discussion for background here). In comparison to the earlier proposal, this PR introduces a simplified approach: - It avoids extending the error-handling mechanism ...
diff --git a/core/SConscript.boardloader b/core/SConscript.boardloader index 70d59573ae4..5e9e8edeab0 100644 --- a/core/SConscript.boardloader +++ b/core/SConscript.boardloader @@ -95,6 +95,7 @@ SOURCE_MOD += [ 'embed/util/flash/flash_utils.c', 'embed/util/image/image.c', 'embed/util/rsod/rsod.c', + '...
4
3
0
[{"id": "G0", "claim": "The documentation comments in core/embed/rtl/inc/rtl/error_handling.h should be regenerated in doxygen style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Status-code constants (TS_OK, TS_EINVAL) and helper macros (TS_RET...
null
trezor__trezor-firmware__6244
trezor/trezor-firmware
6,244
defect
936250625bcac16408acfc991583095a26b1b64a
1919856e8ebc5b292113539b500c058b14f6ba7f
introduce basic telemetry
This PR introduces basic telemetry for trezor devices. Telemetry data is stored in backup ram, so with caveat that total battery loss or disconnection causes data loss, which is deemed acceptable. To prevent unauthorized modification of the data, we limit kernel access to backup ram to only allow modification of ...
diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader index cbc70211e54..b85086eefe2 100644 --- a/core/SConscript.bootloader +++ b/core/SConscript.bootloader @@ -27,6 +27,7 @@ FEATURES_WANTED = [ "secure_domain", "secure_mode", "suspend", + "telemetry", "usb", "usb_iface_wire"...
4
3
0
[{"id": "G0", "claim": "The new ensure_secmon_min_version uses the error message \"Firmware downgrade protection\" where it should say \"Secmon downgrade protection\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ensure_firmware_min_version(...
null
trezor__trezor-firmware__6299
trezor/trezor-firmware
6,299
defect
fc2b18dad12edc774ad49faca2d2d7e4e3e30772
588279ae1e89ecd7f0391e2b0443d6d4358528c7
Remove circular dependencies / introduce layers in the embed folder
This PR introduces another restructuring of the embed folder that better represents the firmware architecture and prepares the repository for further build system improvements. The code in the embed folder is now organized into four directories - `rtl`, `sys`, `sec`, and `io`. Each directory represents one firmware...
diff --git a/core/SConscript.boardloader b/core/SConscript.boardloader index b3c70d7920a..cef10163221 100644 --- a/core/SConscript.boardloader +++ b/core/SConscript.boardloader @@ -84,22 +84,22 @@ CPPPATH_MOD += [ 'vendor/micropython/lib/uzlib', ] SOURCE_MOD += [ - 'embed/gfx/bitblt/gfx_bitblt.c', - 'e...
3
3
0
[{"id": "G0", "claim": "Reformat the old-style comment above rsod_panic_handler in rsod.h to the doxygen comment style used for the other declarations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The declarations in the new sysexit.h, startin...
null
trezor__trezor-firmware__6308
trezor/trezor-firmware
6,308
defect
fc2b18dad12edc774ad49faca2d2d7e4e3e30772
72283503f65732d72b8cce39f2fb990d35293b6e
add CRC to prodtest command line interface
This PR adds optional CRC check to prodtest command line interface. Two ways of enabling the CRC are introduced: - crc-enable / crc-disable command pair - using command&crc format of the command In the second case, the crc is applied only to that single command. New prodtest commnads for testing generic read...
diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest index 50359b49536..cfb401c2c1f 100644 --- a/core/SConscript.prodtest +++ b/core/SConscript.prodtest @@ -197,6 +197,7 @@ SOURCE_PRODTEST = [ 'embed/projects/prodtest/cmd/prodtest_ble.c', 'embed/projects/prodtest/cmd/prodtest_bootloader.c', '...
5
5
1
[{"id": "G0", "claim": "Use the cli_error_arg() helper instead of a generic cli_error() for the failed-hexdata-parsing error in prodtest_mem_write.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "prodtest_crc_enable and prodtest_crc_disable should test th...
null
trezor__trezor-firmware__6331
trezor/trezor-firmware
6,331
defect
258a828676fc893723b30160c0c4c1f3239a95ed
f85f249ae0d01bafd976b49f493755f784166b34
Improve DER in trezor-crypto
trezor-crypto: - added `der_equal` and `der_read_item_expected` - added (defined) DER_OID tag - added const qualifiers to BUFFER_READER read-only functions prodtest: - added checks of expected der tags using `der_item_read_expected` - replaced existing tag checks by `der_item_read_expected`
diff --git a/crypto/buffer.c b/crypto/buffer.c index 1306224aacf..dbad030ca65 100644 --- a/crypto/buffer.c +++ b/crypto/buffer.c @@ -38,7 +38,7 @@ void buffer_writer_init(BUFFER_WRITER *writer, uint8_t *data, size_t size) { writer->pos = 0; } -size_t buffer_remaining(BUFFER_READER *buf) { +size_t buffer_remaining...
3
2
1
[{"id": "G0", "claim": "The copyright header year was updated to 2025 although the current year is 2026, so it should say 2026.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear whether der_equal should compare only the remaining (unrea...
null
trezor__trezor-firmware__6333
trezor/trezor-firmware
6,333
defect
258a828676fc893723b30160c0c4c1f3239a95ed
45a7ab16b475782ebbb8be4ac094b621f1aca842
add pm-battery-test command to prodtest.
Add prodtest pm-battery-test command to improve final tester regression in production. Test acquire 10 measurements from power manager and evaluate if battery voltage and NTC temperature is within given range. This command should replace original `pm-report` call to increase the chance to catch incorrectly attached...
diff --git a/core/embed/projects/prodtest/cmd/prodtest_power_manager.c b/core/embed/projects/prodtest/cmd/prodtest_power_manager.c index 4e7cc8f219a..9d610ad8b9c 100644 --- a/core/embed/projects/prodtest/cmd/prodtest_power_manager.c +++ b/core/embed/projects/prodtest/cmd/prodtest_power_manager.c @@ -375,6 +375,60 @@ vo...
3
3
1
[{"id": "G0", "claim": "The voltage-out-of-range and temperature-out-of-range branches are almost identical and should be extracted, and when both voltage and temperature are out of bounds only the voltage is marked invalid.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
trezor__trezor-firmware__6334
trezor/trezor-firmware
6,334
defect
258a828676fc893723b30160c0c4c1f3239a95ed
8a0c11fbbc22d88d8772dec582b0d50e19bf7585
Add optiga-metadata-read command to prodtest
Adds a new debugging command to prodtest, which retrieves the metadata of the specified data object in Optiga. The metadata is returned both in human-readable and binary form. Only simple access condition expressions are interpreted in human-readable form. Complex access conditions involving logical `&&` and `||` are n...
diff --git a/core/embed/projects/prodtest/.changelog.d/6334.added b/core/embed/projects/prodtest/.changelog.d/6334.added new file mode 100644 index 00000000000..ed9c1fb3d4d --- /dev/null +++ b/core/embed/projects/prodtest/.changelog.d/6334.added @@ -0,0 +1 @@ +Add `optiga-metadata-read` command. diff --git a/core/embed...
4
2
0
[{"id": "G0", "claim": "When one of the three access-condition symbols (lcs, qual, state) comes out NULL, the whole condition is traced as UNRECOGNIZED instead of tracing the values that could be resolved — the reviewer asks whether the resolvable state should still be traced.", "category": "design", "verdict": "oppose...
null
trezor__trezor-firmware__6363
trezor/trezor-firmware
6,363
defect
04691ffc3539247d9f61f538dd4326d90d7205eb
8a285373427ec648fc9f647e6641d1b18c4200d8
feat(prodtest): enable disabling Tropic sensors in prodtest
add prodtest cli commands to read and set the reversible configuration of the sensors (0x08) also add a command to read the whole configurations to get a better clarity of what is set and what is not set note: the PR is missing a README entry as I am not sure if the function not present in production firmware sho...
diff --git a/core/embed/projects/prodtest/cmd/prodtest_tropic.c b/core/embed/projects/prodtest/cmd/prodtest_tropic.c index 0adba5725c2..6ae22dddf84 100644 --- a/core/embed/projects/prodtest/cmd/prodtest_tropic.c +++ b/core/embed/projects/prodtest/cmd/prodtest_tropic.c @@ -44,6 +44,9 @@ #include "secure_channel.h" ...
11
11
3
[{"id": "G0", "claim": "The prodtest commands should also work on devices that have not been paired yet, by starting the privileged session with TROPIC_PRIVILEGED_PAIRING_KEY_SLOT and falling back to TROPIC_FACTORY_PAIRING_KEY_SLOT via a shared helper used in prodtest_tropic_erase_all_slots() and prodtest_tropic_read_a...
null
trezor__trezor-firmware__6381
trezor/trezor-firmware
6,381
defect
34f26ab7c0b0b6984b835430da590e4c7040e7f2
4c8edad69b866552f7f46fc9d80a57629391ad4b
allow resetting the secret storage from prodtest
This PR introduces a new prodtest command for non-PRODUCTION builds that allows resetting the secret storage. This is useful for testing sometimes. No readme record is intended for debug-only command. To enable adding this function seamlessly, some refactoring was necessary: - secret module was split into `s...
diff --git a/core/embed/projects/boardloader/main.c b/core/embed/projects/boardloader/main.c index 606f589f93c..5fadb535874 100644 --- a/core/embed/projects/boardloader/main.c +++ b/core/embed/projects/boardloader/main.c @@ -24,7 +24,6 @@ #include <io/rsod.h> #include <sec/board_capabilities.h> #include <sec/option_...
11
7
3
[{"id": "G0", "claim": "Builds with USE_NRF_AUTH enabled and USE_SECRET disabled fail with an undefined secret_is_locked(), because secret_key_nrf_pairing() calls it while <sec/secret.h> is only included under USE_SECRET; the usage should be gated.", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
trezor__trezor-firmware__6443
trezor/trezor-firmware
6,443
defect
fa6c5108e22d4368453d0a3ecf9ccd494945ce9d
18898fcb92e7c04edcf3ad96e8e86b4ed73daf4b
prodtest crc adjustments
This PR makes small adjustments in prodtest crc checks: - space before crc value is excluded from its calculation - new command to check crc enable/disable status is added
diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md index a68df3a24f2..afb702feeb0 100644 --- a/core/embed/projects/prodtest/README.md +++ b/core/embed/projects/prodtest/README.md @@ -323,6 +323,15 @@ crc-disable @939BC008 OK ``` +### crc-status +Returns the current CRC chec...
1
1
0
[{"id": "G0", "claim": "The documented CRC example values for the `checked-` prefix in core/embed/projects/prodtest/README.md are incorrect and should be updated to the actual computed values (`checked-ping 25D53DFD` and `checked-ping ABC 3240F7DC`).", "category": "documentation", "verdict": "supported", "priority": "P...
null
trezor__trezor-firmware__6453
trezor/trezor-firmware
6,453
defect
c6564b0110cc6f01768e1386580e3ba859551639
eb42d888f86869828f6ca1bfc1756b04a55b766f
telemetry in prodtest
This PR enables reading out telemetry data in prodtest, as a way to check whether some errors or out-of-bounds conditions occurred. Prodtest is also allowed to reset the telemetry until manufacturing mode is exited. Additionally, problem with storing battery errors is fixed: the errors were repeatedly added after...
diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest index 0c0973dafb6..315cfd7d4d0 100644 --- a/core/SConscript.prodtest +++ b/core/SConscript.prodtest @@ -42,6 +42,7 @@ FEATURES_WANTED = [ "secure_mode", "smp", "suspend", + 'telemetry', "tropic", "usb", "usb_iface_vcp", @@...
1
1
0
[{"id": "G0", "claim": "The telemetry-read output in milidegrees and milicycles is inconvenient from the command line, so the reviewer asks to print a classic float-style format (splitting integer and fractional parts) or to add cli_trace printouts in classical units.", "category": "design", "verdict": "supported", "pr...
null
trezor__trezor-firmware__6492
trezor/trezor-firmware
6,492
defect
817ea6b91ae47e58ece860d71d76bbbaee4b7eef
e94a96a93f9e029393948df6b7e2e7973c949a8c
simplify flash area api
Flash area API is simplified: namely the quadword function is removed from it and left internal to ll driver. As a result, secret driver was refactored too and quadword usage was replace by writing data. Flash burst size is moved to MCU sconscript instead of the driver as it can variate on different MCUs <!-- ...
diff --git a/core/embed/sec/secret/stm32u5/secret.c b/core/embed/sec/secret/stm32u5/secret.c index 8c2a712648d..b3f343ad1d0 100644 --- a/core/embed/sec/secret/stm32u5/secret.c +++ b/core/embed/sec/secret/stm32u5/secret.c @@ -144,17 +144,10 @@ static secbool secret_ensure_initialized(void) { secbool secret_write(const ...
7
2
0
[{"id": "G0", "claim": "secret_write passes a possibly unaligned const uint8_t *data to flash_area_write_data, which casts it to const uint32_t * while flash_area.h documents block-size alignment, and secret_write neither enforces nor documents that contract to its callers, so alignment documentation should be added to...
null
trezor__trezor-firmware__6586
trezor/trezor-firmware
6,586
defect
601e7cf1382f80d4a2c9edab76870f4994122aa8
788bcd57617dc34ebb95d2d2240bbb6e3afdf282
feat(prodtest): Add Tropic random value and Tropic initialize to Trop…
Add Tropic random value and Tropic initialize to Tropic stress test
diff --git a/core/embed/projects/prodtest/cmd/prodtest_tropic.c b/core/embed/projects/prodtest/cmd/prodtest_tropic.c index 36570ad471d..afbea26ee12 100644 --- a/core/embed/projects/prodtest/cmd/prodtest_tropic.c +++ b/core/embed/projects/prodtest/cmd/prodtest_tropic.c @@ -1633,17 +1633,23 @@ static void prodtest_tropic...
5
3
1
[{"id": "G0", "claim": "The `tropic-stress-test` command registration's `.args` usage string still lists only the four legacy arguments and must be updated to document the new `init-iterations` and `rng-iterations` parameters.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
trezor__trezor-firmware__6613
trezor/trezor-firmware
6,613
defect
575a0e345bb4f84daf92dc6fd0f8d2deaee0ac42
230815e7328ddba8d027745a7a642652a0179d46
introduce explicit manufacturing mode exit
This PR introduces an explicit way to exit manufacturing mode, for improved robustness. Flag is written into separate OTP block. On T3W1, for smooth transition, another flag in unit variant is added to distinguish devices with and without the manufacturing lock. Unit properties contents and OTP layouts are m...
diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest index 315cfd7d4d0..bf0c9af1a97 100644 --- a/core/SConscript.prodtest +++ b/core/SConscript.prodtest @@ -200,6 +200,7 @@ SOURCE_PRODTEST = [ 'embed/projects/prodtest/cmd/prodtest_button.c', 'embed/projects/prodtest/cmd/prodtest_crc.c', 'embe...
7
2
2
[{"id": "G0", "claim": "The T3W1 header defines the manufacturing-lock macro with a typo and a different name (UNIT_PROPERTIES_OTP_MANUFACTURIING_LOCK_PRESENT) than the UNIT_PROPERTIES_MANUFACTURING_LOCK_PRESENT that the consumer checks, which breaks the presence check and array indexing and silently bypasses manufactu...
null
trezor__trezor-suite__19704
trezor/trezor-suite
19,704
defect
4e4dd3af356a9024207683151571ec77773bbdf9
0267cd1db6e299ec413d64f7fd1abdbecb2eb7d0
feat: support BIP 329 style labeling export
<!--- Provide a general summary of your changes in the Title above --> ## Description Add functionality to export labels to BIP 329 format. Adding new package `metadata-utils` that handles conversion of format from [SLIP-0015](https://github.com/satoshilabs/slips/blob/master/slip-0015.md) to [BIP 329](https://...
diff --git a/packages/suite/package.json b/packages/suite/package.json index f271bd763e0b..704c7a19f1c6 100644 --- a/packages/suite/package.json +++ b/packages/suite/package.json @@ -45,6 +45,7 @@ "@suite-common/logger": "workspace:*", "@suite-common/message-system": "workspace:*", "@suite-co...
10
8
2
[{"id": "G0", "claim": "The BIP 329 export section in the account details should be shown only when some labeling is enabled, not for every bitcoin account.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new file should be named the same as the ...
null
trezor__trezor-suite__23702
trezor/trezor-suite
23,702
defect
270debf33da362e3725a4999fca3af7a8a492cb5
4d20e4c87bf3177f67b9a712ec1d7cdb29b59e94
feat(e2e-suite): adds sol staking test for rewards
last test to Solana staking section - rewards. 🔍🖥️ **Suite web test results:** [View in Currents](https://app.currents.dev/projects/Og0NOQ/runs?branch=feat-e2e-staking-rewards&lookback=7) 🔍🖥️ **Suite desktop test results:** [View in Currents](https://app.currents.dev/projects/4ytF0E/runs?branch=feat-e2e-staking...
diff --git a/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx b/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation.tsx index 5730f1b28f2f..c59daf69269b 100644 --- a/packages/suite/src/components/wallet/WalletLayout/AccountTopPanel/AccountNavigation...
6
6
0
[{"id": "G0", "claim": "The test annotation says 'Verifies that a user can stake more from his Solana account' while the test actually verifies the display of stake rewards, so the annotation should be updated to describe rewards verification.", "category": "documentation", "verdict": "supported", "priority": "P2", "sc...
null
trezor__trezor-suite__23764
trezor/trezor-suite
23,764
defect
110b01a27a799a1efa2b0bbfe953b1ccf8c9999f
27ef5b1289f1bef67014457f74a43c9db25a019d
23653 mobile trade wrong ordering of quotes
<!--- Provide a general summary of your changes in the Title above --> ## Description - Never reorder quotes on frontend. - Removed unused trading selectors. - <!--- Describe your changes in detail --> ## Notes for QA <!--- Unless already specified in a linked issue, please specify any relevant informat...
diff --git a/suite-common/trading/src/selectors/__tests__/tradingSelectors.test.ts b/suite-common/trading/src/selectors/__tests__/tradingSelectors.test.ts index c95acea53e14..622aa06a5180 100644 --- a/suite-common/trading/src/selectors/__tests__/tradingSelectors.test.ts +++ b/suite-common/trading/src/selectors/__tests_...
4
2
0
[{"id": "G0", "claim": "As a follow-up, add a dedicated test that, for each exchange quotes group, compares the sequence of quoteIds to the order obtained by filtering exchangeQuotes for that group type, to guard against a future regression reintroducing local re-sorting.", "category": "testing", "verdict": "uncertain"...
null
trezor__trezor-suite__23773
trezor/trezor-suite
23,773
defect
a4c42c34d55859efef5435cd2e08f83b653b1f57
8abff49556ffd02b5c1a605d97e2ddba88ee49f1
feat(e2e-suite): new pagination test
## Description New pagination test and new fixture for paginationControl 🔍🖥️ **Suite web test results:** [View in Currents](https://app.currents.dev/projects/Og0NOQ/runs?branch=feat-e2e-pagination-test&lookback=7) 🔍🖥️ **Suite desktop test results:** [View in Currents](https://app.currents.dev/projects/4ytF0E/r...
diff --git a/packages/suite-desktop-core/e2e/support/fixtures.ts b/packages/suite-desktop-core/e2e/support/fixtures.ts index b6627e9b6cef..001103d8ba81 100644 --- a/packages/suite-desktop-core/e2e/support/fixtures.ts +++ b/packages/suite-desktop-core/e2e/support/fixtures.ts @@ -14,6 +14,7 @@ import { DevicePrompt } fro...
8
8
0
[{"id": "G0", "claim": "The data-testid attribute on the go-to-page button should use double quotes instead of single quotes for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extra blank line after...
null
trezor__trezor-suite__23996
trezor/trezor-suite
23,996
defect
abd1e62b17f58ef9da9389506f49c82e5b86bd54
3698426159d90b1f741109f1fcedf0d76bc5cd25
feat(e2e): Instrumented code for code coverage by E2E tests
<!--- Provide a general summary of your changes in the Title above --> ## Description Added a Istanbul plugin for babel to gather code coverage from E2E tests. The Instrumentation is disabled by default and needs to be enabled via env. var INSTRUMENT_CODE. The code coverage currently will only work for web Suite...
diff --git a/.github/actions/build-web/action.yml b/.github/actions/build-web/action.yml index 082f43b586f1..75b5e86fde47 100644 --- a/.github/actions/build-web/action.yml +++ b/.github/actions/build-web/action.yml @@ -1,6 +1,10 @@ name: "Build and Upload Suite Web app" description: "Builds the Trezor Suite Web app a...
6
1
0
[{"id": "G0", "claim": "Removing webTeardown may have eliminated attaching web-test video recordings to test results; verify videos are still attached or restore the attachment logic.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The undocumented `...
null
trezor__trezor-suite__24225
trezor/trezor-suite
24,225
defect
e5ac697073a7d08c5bc1605b428d77c692322e35
e40b03b0f968deb78f2f53cbbc0f384b1bd44c61
Fix/23928 asset picker to field
<!--- Provide a general summary of your changes in the Title above --> ## Description * fix: exclude tokens match in search in asset picker of To field Before: <img width="516" height="707" alt="Snímek obrazovky 2026-01-08 v 9 21 00" src="https://github.com/user-attachments/assets/1e244e77-aeda-48f6-...
diff --git a/packages/product-components/src/components/SelectAssetModal/NetworkTabs.tsx b/packages/product-components/src/components/SelectAssetModal/NetworkTabs.tsx deleted file mode 100644 index 0cfec824f388..000000000000 --- a/packages/product-components/src/components/SelectAssetModal/NetworkTabs.tsx +++ /dev/null...
3
2
1
[{"id": "G0", "claim": "Changing TR_ALL_NETWORKS in messages.ts without updating en.json and the other language-specific json files leaves the UI showing a broken/stale string until the Crowdin sync is done.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
trezor__trezor-suite__24351
trezor/trezor-suite
24,351
defect
89c4179160804aea244c66028a4490c5c8b2eb21
55839a85d8e10fe68b8263465821374deddf1484
fix(e2e-suite): stabilize send-base test
More stabilization - the wrapping of emu display assert needs to be dynamic. Fees sometimes have many decimals and sometimes only few - calculation of the final fee must use out localizeNumber. That way we control max number of decimals but if there is less we do not keep trailing zeros. That was failing the test som...
diff --git a/suite/e2e/support/pageObjects/devicePrompt.ts b/suite/e2e/support/pageObjects/devicePrompt.ts index 99fd5ec84418..8ad631e32e64 100644 --- a/suite/e2e/support/pageObjects/devicePrompt.ts +++ b/suite/e2e/support/pageObjects/devicePrompt.ts @@ -262,7 +262,37 @@ export class DevicePrompt { ); }; ...
2
1
1
[{"id": "G0", "claim": "The wrapByWords branch for the T3T1 device should use T3T1_EXACT_LINE_LENGTH (18) instead of T3W1_EXACT_LINE_LENGTH (14) to correctly wrap text for T3T1 displays.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "wrapTextByWords...
null
trezor__trezor-suite__24489
trezor/trezor-suite
24,489
defect
15edd1741c74ccbdb21fe2003c2c26bb91fb43a7
6ca64207bb867b2c82d7ae63e57b94ff3792dfae
fix: handle exception error from fetch
This PR fixes a bug when Quota Manager URL is not working (offline, localhost-offline, ...) Fetch throws error in this case, which was not handled. ## Test Before: getting keys was o completed, after delegated key, the process topped with error in console After: - invalid URL (non-existing / offline) - Get ...
diff --git a/suite-common/suite-sync-quota-manager/src/ensureOwnerHasAllocatedQuotaThunk.ts b/suite-common/suite-sync-quota-manager/src/ensureOwnerHasAllocatedQuotaThunk.ts index 4b6a7f2cffca..29bd4e868aec 100644 --- a/suite-common/suite-sync-quota-manager/src/ensureOwnerHasAllocatedQuotaThunk.ts +++ b/suite-common/sui...
2
1
0
[{"id": "G0", "claim": "The `!hasOwnerStorage.success` check in the owner-storage error condition is unnecessary because there is already an early return for `hasOwnerStorage.success` above.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Renam...
null
trezor__trezor-suite__24814
trezor/trezor-suite
24,814
defect
6fa68b8a91a7188c7c01bdefd42475010f502679
0bf91a7be04ee85312691fa9cd7b2e90ee22a66d
feat:(e2e) Introduce live swap test
## Description This PR introduces a new live E2E test for the Swap feature, specifically focusing on coin-to-token exchanges. **Changes:** - **New Test:** Added `live-swap-coin-to-token.test.ts` which performs a live swap of **SOL (Solana)** to **USDC (Base network)**. - **Cleanup Logic:** Included an `afterEac...
diff --git a/.github/actions/run-e2e-tests/action.yml b/.github/actions/run-e2e-tests/action.yml index 96326e39e5b6..53b3b0fae3d5 100644 --- a/.github/actions/run-e2e-tests/action.yml +++ b/.github/actions/run-e2e-tests/action.yml @@ -39,6 +39,9 @@ inputs: e2e-passphrase: description: "Passphrase for E2E tests"...
2
2
0
[{"id": "G0", "claim": "Use curly braces around the single-statement early return in the afterEach balance check (`if (usdcBalanceValue < 25) { return; }`) for improved readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the comme...
null
trezor__trezor-suite__24834
trezor/trezor-suite
24,834
defect
4ebd913d43d6a16bbeae4d62ab51a40cf64147a4
3de25dfeff25cb2578ae7c5e3589d3285f01c1e6
Suite Sync feature flag moved from Debug to Experimental Features on desktop
<!--- Provide a general summary of your changes in the Title above --> ## Description Moved the Suite Sync toggle from Debug settings to Experimental Features settings. Users can show the Suite Sync feature in Settings > General > Experimental features. It still does exactly the same as the original debug set...
diff --git a/packages/suite/src/actions/suite/storageActions.ts b/packages/suite/src/actions/suite/storageActions.ts index 62be5c5ec735..12205b709a90 100644 --- a/packages/suite/src/actions/suite/storageActions.ts +++ b/packages/suite/src/actions/suite/storageActions.ts @@ -475,7 +475,6 @@ export const saveSuiteSyncSet...
5
2
0
[{"id": "G0", "claim": "The explicit `boolean` annotation on the new `isSuiteSyncFeatureEnabled` parameter of `createMockState` is redundant given its `false` default and could be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Turning S...
null
trezor__trezor-suite__24928
trezor/trezor-suite
24,928
defect
54e62844c5a03971e3e307062f59cbf39e7e6ffb
91a201843858bd90434674f215ab7bbd00ec1932
Test suite sync server local
We want to vastly expand our coverage of Suite sync. For that we need to be able to control the env to have reliable and isolated tests. Introduces minimal POC evolu client that is possible to initialized and use in Playwright tests. Client - parametrized by userId and UserSecret, so we can have good test isolatio...
diff --git a/.yarn/patches/@evolu-common-npm-7.3.0-dc4f142770.patch b/.yarn/patches/@evolu-common-npm-7.3.0-dc4f142770.patch new file mode 100644 index 000000000000..7ee197bbe462 --- /dev/null +++ b/.yarn/patches/@evolu-common-npm-7.3.0-dc4f142770.patch @@ -0,0 +1,20 @@ +diff --git a/package.json b/package.json +index ...
6
2
0
[{"id": "G0", "claim": "Exporting Schema and createEvoluAppOwnerFromTrezorData from the package's app-facing index.ts just so tests can use them may need a different convention (e.g. separate test exports).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
trezor__trezor-suite__25060
trezor/trezor-suite
25,060
defect
2af20802918d309111b68042fc64c35c88277979
a827901f88a4ca517019acd2a8f8c30611da6c0a
test(e2e): add connect popup web tests
Part of #24471 lets start merging tests that are still missing and after that the actual changes Add E2E tests for Suite Web popup integration with Connect: - connectPopupWeb.test.ts: tests web based integration between connect-web and suite-web - connect now builds under suite-web workflow files. This was discuss...
diff --git a/.github/workflows/test-connect-popup.yml b/.github/workflows/test-connect-popup.yml deleted file mode 100644 index 2c2a990eaf11..000000000000 --- a/.github/workflows/test-connect-popup.yml +++ /dev/null @@ -1,62 +0,0 @@ -# todo: at the moment it is build only. I don't want to change the name not to mess wi...
2
2
1
[{"id": "G0", "claim": "The confirm-button click in the 'call cancellation' test is not awaited, so the click may not complete before the following assertions, causing a race condition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The BASE_URL reg...
null
trezor__trezor-suite__25212
trezor/trezor-suite
25,212
defect
d67a25a3def181b1269ec3540f39c322ae0998ef
573aa4de8f15bff77a10c75a4d52573490ea5f9e
25106 standard recovery backup disable model one
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Notes for QA As describe in the issue. I did it so that 8 and 12 words backups directly go to advanced mode and 24 words puts you to the selection of the standard / advanced. ...
diff --git a/packages/suite/src/components/recovery/SelectRecoveryType.tsx b/packages/suite/src/components/recovery/SelectRecoveryType.tsx index bc69833daa49..87aa2fe6d2a5 100644 --- a/packages/suite/src/components/recovery/SelectRecoveryType.tsx +++ b/packages/suite/src/components/recovery/SelectRecoveryType.tsx @@ -1...
3
2
0
[{"id": "G0", "claim": "Questions whether the basic <WordInput> (standard-recovery word input) will ever be used, given the PR sends T1B1 12/18-word recovery straight to advanced recovery.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The numeric keypad i...
null
trezor__trezor-suite__25662
trezor/trezor-suite
25,662
defect
09eae3f8eae50d7be31406931b7552d2c53bff20
5694b9f9e9eba155ebda73bef5bfc3ee15eb85b5
Enable SLIP-24 also on solana and stellar
- **Connect:** Add `payment_req` to sign-transaction flows for Cardano, Solana, Ripple, and Stellar (params + API wiring). - **Wallet-core:** Pass `paymentRequests` through send/sign for Ada, Solana, XRP, and XLM so trading can attach a payment request when signing. - **Protobuf:** In `bytes` encoding, pass through `...
diff --git a/packages/connect/src/api/cardano/api/cardanoSignTransaction.ts b/packages/connect/src/api/cardano/api/cardanoSignTransaction.ts index 02ce21e0b94a..d320b1bd345c 100644 --- a/packages/connect/src/api/cardano/api/cardanoSignTransaction.ts +++ b/packages/connect/src/api/cardano/api/cardanoSignTransaction.ts @...
5
3
3
[{"id": "G0", "claim": "Add explicit tests for the newly supported 'solana' and 'stellar' network types in the selectTradingIsSlip24Allowed tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do not import getAssociatedTokenAccountAddress from @trezor...
null
trezor__trezor-suite__25794
trezor/trezor-suite
25,794
defect
f75fc13db550ca60b8bc2139f51d4da7c21a0b76
700720852dfe6993128cc5094420292cfb28fec1
fix(suite): connect to relay even when read mode
We need to try to connect to the Evolu relay even tho we are not in write mode. Why? Because users might be trying to search for his lost passphrase and we don't want to let him waste quota on this. Thus, we are allocating quota on-demand, but we also need to try and connect to the relay to check if user has any da...
diff --git a/suite-common/suite-sync/src/storage/createEnsureStorage.ts b/suite-common/suite-sync/src/storage/createEnsureStorage.ts index 661bf7a82d4c..91cb945b9834 100644 --- a/suite-common/suite-sync/src/storage/createEnsureStorage.ts +++ b/suite-common/suite-sync/src/storage/createEnsureStorage.ts @@ -80,8 +80,9 @@...
1
1
0
[{"id": "G0", "claim": "The extended comment added above the relay-URL condition should be consolidated, as it is currently not clear.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trezor__trezor-suite__25798
trezor/trezor-suite
25,798
defect
00eec4542636c295c0200e59e234fb7d00782d98
f2cb25f51647946dca9ff00afc414b2437c2f07f
24612 price quote for each payment mobile
<!--- Provide a general summary of your changes in the Title above --> ## Description - displays rates on sheet with payment methods - displays rates on sheet with providers - sorts payment methods by rate <!--- Describe your changes in detail --> ## Notes for QA <!--- Unless already specified in a linke...
diff --git a/suite-native/module-trading/src/components/general/PaymentMethodSheet/PaymentMethodListItem.tsx b/suite-native/module-trading/src/components/general/PaymentMethodSheet/PaymentMethodListItem.tsx index b87b588084b0..39a3b5ab77d3 100644 --- a/suite-native/module-trading/src/components/general/PaymentMethodShe...
7
3
3
[{"id": "G0", "claim": "The PR description's Notes for QA section is empty despite significant UI/UX changes, so it should be expanded with testing guidance for the rate display, sorting behavior, edge cases and visual regression testing.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope":...
null
trezor__trezor-suite__26113
trezor/trezor-suite
26,113
defect
b14962d01c6624730d6833eee226c5b8aaa27b62
a22dc92ef1666216b30f53d5c762f742424cb84e
refactor(e2e-suite): rework test data for suite-sync
Test data was all over the place. Multiple definitions and duplicity. Moreover one specific data was used with wrong ID and test was asserting incorrect results. more over it promotes readability on test level. <!-- CURRENTS-LINKS:SECTION:START --> ## 🔍 Currents Test Results <!-- CURRENTS-LINK:DESKTOP:START --> 🔍...
diff --git a/suite-common/e2e-evolu-client/src/createEvoluRowIds.ts b/suite-common/e2e-evolu-client/src/createEvoluRowIds.ts new file mode 100644 index 000000000000..9da762c9976c --- /dev/null +++ b/suite-common/e2e-evolu-client/src/createEvoluRowIds.ts @@ -0,0 +1,47 @@ +import { createIdFromString, getOrThrow } from '...
3
1
0
[{"id": "G0", "claim": "Exporting AccountEvoluId/AddressEvoluId/OutputEvoluId/WalletLabelId from suite-sync-evolu's index violates the file's documented rule not to leak Evolu implementation details; keep them unexported or expose higher-level row-id helpers instead.", "category": "design", "verdict": "opposed", "prior...
null
trezor__trezor-suite__26176
trezor/trezor-suite
26,176
defect
b00e01c9b96d0637a4ac279e5af82fd2b8cf13ed
f9e213464bc9d48a418534b6f374ae3587aa1909
Mobile Trade: Update UI of revoke and approve buttons in ExchangeConfirmation
<!--- Provide a general summary of your changes in the Title above --> ## Description - Display `Continue` when user can continue with swap or approval flow. - Display `Revoke approval` when user has already approved any amount. <!--- Describe your changes in detail --> ## Notes for QA <!--- Unless already ...
diff --git a/suite-native/intl/src/messages.ts b/suite-native/intl/src/messages.ts index 9b1b0aeef4c1..5ce6ccfae3ed 100644 --- a/suite-native/intl/src/messages.ts +++ b/suite-native/intl/src/messages.ts @@ -2497,6 +2497,7 @@ export const messages = { continue: 'Continue', swap: 'Swap',...
2
2
2
[{"id": "G0", "claim": "The approval-status logic should also take tokenSupportsIncreasingAllowance into account: for a token that cannot increase allowance and whose status is not approved, the increase/continue button should not be shown, and this can probably be added directly to getApprovalStatus.", "category": "co...
null
trezor__trezor-suite__26182
trezor/trezor-suite
26,182
defect
a876928db364c3578cc08ccd3506edc3633854c9
17348a9203b50b8e476fa5d7113479926ebdd5e4
feat(e2e): Live swap spl token test
- Add live E2E test for swapping SPL token (USDT) to SOL via CEX, including teardown that swaps back to preserve balance - Add data-testid attributes to TradingInfoItem for swap detail sidebar assertions - Add toHaveValidAddress custom matcher for address validation in device prompts - Extend TradingPage page object...
diff --git a/packages/suite/src/views/wallet/trading/common/TradingSelectedOffer/TradingInfo/TradingInfoItem.tsx b/packages/suite/src/views/wallet/trading/common/TradingSelectedOffer/TradingInfo/TradingInfoItem.tsx index e13c06e7e4b6..8c467c12035b 100644 --- a/packages/suite/src/views/wallet/trading/common/TradingSelec...
1
1
0
[{"id": "G0", "claim": "The sidebar-related locators added to TradingPage could be extracted into their own section class, as the page is already split into sections.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trezor__trezor-suite__26242
trezor/trezor-suite
26,242
defect
46b197b89c4cabe84c46b41c4b18b3c2d1b8d9cc
791deaff378f17ef787fb0a6a7703f6055cdab98
refactor(node-utils): replace deprecated url.parse with WHATWG URL API
## Description Replaces the deprecated `url.parse()` / `url.format()` internals in `parseRequestUrl` and `formatRequestUrl`, eliminating the `[DEP0169]` deprecation warning. - `parseRequestUrl`: uses `new URL(requestUrl, dummyBase)` for URL splitting (pathname/search/hash) and `querystring.parse` for query-string...
diff --git a/packages/node-utils/src/parseRequestUrl.ts b/packages/node-utils/src/parseRequestUrl.ts index ef56ef793bc6..501633ce573a 100644 --- a/packages/node-utils/src/parseRequestUrl.ts +++ b/packages/node-utils/src/parseRequestUrl.ts @@ -1,5 +1,4 @@ import type { ParsedUrlQuery } from 'querystring'; -import * as ...
6
4
2
[{"id": "G0", "claim": "Parsing the query with URLSearchParams treats '+' as a space, so inputs like '?code=a+b' decode to different query values than the legacy url.parse(requestUrl, true) behaviour; parse with querystring.parse (keeping WHATWG URL for splitting only) and add unit tests for this.", "category": "correc...
null
trezor__trezor-suite__26256
trezor/trezor-suite
26,256
defect
194490c03b3940f1e66376ceb8e0a10fd9b407d4
91bdc370346c20ae6dc9fed1d00889c1715f97bb
fix(trading): prevent sell input resets on percentage clicks
## Description Fixes flaky sell percentage behavior where crypto amount could reset when switching repeatedly between MAX and other percentage buttons. The change stabilizes amount synchronization during compose and prevents stale quote state from influencing follow-up compose runs. ## Notes for QA MAX button...
diff --git a/packages/suite/src/hooks/wallet/trading/form/common/useTradingComposeTransaction.ts b/packages/suite/src/hooks/wallet/trading/form/common/useTradingComposeTransaction.ts index c7e53ca5cfdb..1a471a4c4547 100644 --- a/packages/suite/src/hooks/wallet/trading/form/common/useTradingComposeTransaction.ts +++ b/p...
3
2
2
[{"id": "G0", "claim": "clearErrors(TRADING_FORM_OUTPUT_AMOUNT) should run on every successful MAX compose, not only when the amount changes, because a compose error set at line 145 otherwise survives when a later compose returns the same composed.max and keeps the form invalid.", "category": "correctness", "verdict": ...
null
trezor__trezor-suite__26262
trezor/trezor-suite
26,262
defect
a50eabd6136d282ae6eb403e3184ef8fa449999a
c291bbb2e6bc10d55876e85f162be64349e3cc14
fix(ci): Match T3T1 without smoke tag when it's the only device
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Notes for QA <!--- Unless already specified in a linked issue, please specify any relevant information or steps for the QA team to focus on during testing (e.g., areas most affe...
diff --git a/packages/e2e-utils/package.json b/packages/e2e-utils/package.json index ffc71b967fba..4a657420504e 100644 --- a/packages/e2e-utils/package.json +++ b/packages/e2e-utils/package.json @@ -14,6 +14,7 @@ }, "dependencies": { "@octokit/rest": "^21.1.1", + "@trezor/trezor-user-env-link"...
2
1
1
[{"id": "G0", "claim": "The grep patterns built with noOtherDevice() are unanchored, so Playwright's unanchored RegExp matching can start the negative lookaheads after an earlier disallowed device tag and may still wrongly match a title like '@T3B1 ... @T3T1' as T3T1-only; anchor the patterns at '^' (or anchor/document...
null
trezor__trezor-suite__26453
trezor/trezor-suite
26,453
defect
2fb2bfbabe324001a5ea29e20ca4f7ee99f9c201
89365cc214b4c5e322bab69789b01be79540d26f
fix(suite): avoid app restart when changing Trade API debug server
## Summary - Removes the `reloadApp(100)` call that caused a full desktop app restart when switching the Invity server environment in **Settings > Debug > Trade API** - Adds `invityAPI.resetCurrentAccount()` which clears the cached account descriptor — this causes `loadInitialDataThunk` to see `isDifferentAccount = tr...
diff --git a/packages/suite/src/views/settings/SettingsDebug/TradeApi.tsx b/packages/suite/src/views/settings/SettingsDebug/TradeApi.tsx index 8dbc7d2f386f..e3726b19ed64 100644 --- a/packages/suite/src/views/settings/SettingsDebug/TradeApi.tsx +++ b/packages/suite/src/views/settings/SettingsDebug/TradeApi.tsx @@ -3,7 +...
3
3
2
[{"id": "G0", "claim": "resetCurrentAccount() clears apiKey even though only accountDescriptor needs clearing, which can cause subsequent Invity requests to fail with 'apiKey not created' until createInvityAPIKey() runs again; keep apiKey intact or recreate it immediately.", "category": "correctness", "verdict": "suppo...
null
trezor__trezor-suite__26455
trezor/trezor-suite
26,455
defect
40c1f3878a1b521c5f428a76ab0403507601db2c
aabd89424f620abd7aa3d0754896a8f576d0799e
feat(connect): return transaction bytes from tronComposeTransaction
<!--- Provide a general summary of your changes in the Title above --> ## Description Tron fee estimation was silently failing in the desktop app. The root cause was Electron's renderer CSP (script-src 'self', no unsafe-eval) blocking protobufjs, which uses eval internally at module load time. So all protobuf...
diff --git a/packages/connect-common/src/types/api/tron/index.ts b/packages/connect-common/src/types/api/tron/index.ts index a7e17709cbf0..4103cb24db2b 100644 --- a/packages/connect-common/src/types/api/tron/index.ts +++ b/packages/connect-common/src/types/api/tron/index.ts @@ -74,22 +74,15 @@ export const TronSignTran...
1
1
0
[{"id": "G0", "claim": "The bandwidth-estimate branch in composeTronTransactionFeeLevelsThunk could be simplified and deduplicated by reusing the `const contract` object that is defined below instead of building the contract inline again.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
triSYCL__triSYCL__10
triSYCL/triSYCL
10
defect
6b065d7fc864262bcdcde041fb6093d1d05be130
3882dd3e4a268d9ed0e974d9e7abba2f2b4279a8
set_final_data(nullptr | pointer | iterator)
compile and satisfy tests for triSYCL and PSTL (except inner_product and exclusive_scan which are yet to be updated)
diff --git a/include/CL/sycl/buffer.hpp b/include/CL/sycl/buffer.hpp index d943d2119..69a4f2f85 100644 --- a/include/CL/sycl/buffer.hpp +++ b/include/CL/sycl/buffer.hpp @@ -291,8 +291,7 @@ class buffer InputIterator end_iterator, Allocator allocator = {}) : implementation_t { detail::waiter(new...
26
22
6
[{"id": "G0", "claim": "The method that records a potential write through an accessor should be renamed (e.g. track_access) instead of keeping the misleading get_access name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new set_final_data ...
null
triSYCL__triSYCL__153
triSYCL/triSYCL
153
defect
f6d185fe8a42f24c8e1cffdd583d8c36de5bddcc
01ae0d7f23df887358b32ac53d64667d9ff6b568
start implementing device get_info
This is more of a feedback request than a pull request. I know you've indicated you had some ideas for better get_info, and I'm not sure I'm C++ enough to get to boost::hana just yet. But I've started doing the get_info for devices and have something that starts to pass the CTS test_device test. the patch device:...
diff --git a/include/CL/sycl.hpp b/include/CL/sycl.hpp index a3da2e5bb..5cc4970e6 100644 --- a/include/CL/sycl.hpp +++ b/include/CL/sycl.hpp @@ -70,6 +70,9 @@ #include "CL/sycl/device_selector/detail/device_selector_tail.hpp" #include "CL/sycl/context/detail/context_tail.hpp" #include "CL/sycl/device/detail/device_t...
7
7
1
[{"id": "G0", "claim": "Remove the spurious space on the blank line after the TRISYCL_DEFINE_DEVICE_INFO_CL_TEMPLATE macro definition in opencl_device_tail.hpp.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Drop the unnecessary parentheses arou...
null
triSYCL__triSYCL__160
triSYCL/triSYCL
160
defect
fc565ed58325df1448c655fad46b2da037abc83f
7b9cd499221f1b1213270f450d0ca95e137c2e5c
types: fix non-opencl scalar types to not be vectors
This is my first (maybe 20th I did locally) go at fixing the scalar types when we aren't using OPENCL. When I moved some of the size_t to cl_ulong in the later patches, the local tests start failing (when built without OPENCL) because it couldn't cast vec<cl_ulong,1> to size_t when it really should have been cl_ulon...
diff --git a/include/CL/sycl/opencl_types.hpp b/include/CL/sycl/opencl_types.hpp index a74ac0c5c..1f8fe6247 100644 --- a/include/CL/sycl/opencl_types.hpp +++ b/include/CL/sycl/opencl_types.hpp @@ -68,7 +68,8 @@ namespace sycl { */ #define TRISYCL_DEFINE_TYPES(scalar, i) \ usi...
4
2
0
[{"id": "G0", "claim": "The macro invocation line the pull request added to tests/vector/cl_types.cpp should be reflowed to stay within 80 characters so it remains readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vector tests should ...
null
triSYCL__triSYCL__165
triSYCL/triSYCL
165
defect
aa1064d8caf918252ba68349c9d551a0de850264
956b28ccc33f96d535e67441f464aa7b43aa01c0
get test_queue to build and run some of the tests
This is just a WIP of the queue work I've been doing, (it's on top of the vec fixes). The big thing is the attempt at property_list support. I'm not really comfortable with C++ variadic stuff yet. Any suggestions on how this should look would be welcome!
diff --git a/include/CL/sycl.hpp b/include/CL/sycl.hpp index 5cc4970e6..f6c5da5b8 100644 --- a/include/CL/sycl.hpp +++ b/include/CL/sycl.hpp @@ -70,6 +70,7 @@ #include "CL/sycl/device_selector/detail/device_selector_tail.hpp" #include "CL/sycl/context/detail/context_tail.hpp" #include "CL/sycl/device/detail/device_t...
19
15
0
[{"id": "G0", "claim": "The file header comment of include/CL/sycl/event/detail/event.hpp looks like a wrong copy-paste: it describes the abstract platform, but this file is not the abstract platform.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
triSYCL__triSYCL__176
triSYCL/triSYCL
176
defect
01c91703563efc6372c5ba76ef9cfc7fba49955f
38f3ab9e639aa89cb5ee2915f8cec98a5aa13eea
range: fix get_count->size rename.
The spec seems to have fixed size to mean get_count, and there is no get_count. Update the implementation/tests.
diff --git a/include/CL/sycl/accessor/detail/local_accessor.hpp b/include/CL/sycl/accessor/detail/local_accessor.hpp index c8aeb2c05..90b9a885c 100644 --- a/include/CL/sycl/accessor/detail/local_accessor.hpp +++ b/include/CL/sycl/accessor/detail/local_accessor.hpp @@ -362,7 +362,7 @@ class accessor<T, Dimensions, Mode,...
1
1
0
[{"id": "G0", "claim": "The trailing backslashes of the renamed BOOST_CHECK lines added to the test macros are misaligned and should be realigned.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
triSYCL__triSYCL__185
triSYCL/triSYCL
185
defect
011424ee573937a63fa4ecc064b4b8be86d6df79
9722541d9c07b29724ac0a9f05b9189512f32bf0
Add missing group/item comparison operators
These are all defined in the spec, so add == and != for nd_range, group, item, nd_item and h_item. This is based on the id operators #177 so should be applied after that one is sorted out.
diff --git a/include/CL/sycl/group.hpp b/include/CL/sycl/group.hpp index 1382e18c3..1a4b58ea6 100644 --- a/include/CL/sycl/group.hpp +++ b/include/CL/sycl/group.hpp @@ -182,6 +182,16 @@ struct group { detail::parallel_for_workitem_in_group(*this, f); } + /* Comparison operators for group object. + */ + bo...
1
1
0
[{"id": "G0", "claim": "The hand-written operator==/operator!= pairs duplicated across group, h_item, item, nd_item and nd_range are a mess since C++20 defaulted comparisons are not available, and should be factorized, e.g. by inheriting from a Boost.Operators equality_comparable<T> mixin.", "category": "maintainabilit...
null
triSYCL__triSYCL__195
triSYCL/triSYCL
195
defect
3c2e62cef99d11968b763eadc8f73becbe7e6f76
e3f00c8dd735fd70317258380900d37b32486a2c
initial implentation of vector swizzles
This adds some missing vector APIs and adds an initial implementation of swizzled vectors on top. This implementation is not spec compliant (it passes CTS tests). But the spec is quite clear on how __swizzled_vec__ should operate, and this clearly doesn't do that yet.
diff --git a/include/CL/sycl/vec.hpp b/include/CL/sycl/vec.hpp index 18afb21e1..0ff62de64 100644 --- a/include/CL/sycl/vec.hpp +++ b/include/CL/sycl/vec.hpp @@ -57,8 +57,13 @@ struct elem { */ template<typename, int> class vec; + +template <typename DataType, int numElements> +using __swizzled_vec__ = vec<DataType,...
6
5
1
[{"id": "G0", "claim": "The recursive do_swizzle helper pair should be replaced by a single non-recursive variadic swizzle template that expands (*this)[swizzleIndexes]... directly, removing the helper indirection.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
triSYCL__triSYCL__198
triSYCL/triSYCL
198
defect
dacc419091b6b31819f149c0cce739545c7f5b4b
b20da094ac2c00d5bc863c0e81ca088f8c5ff3fc
item: update to align with spec
Lookd like items got a with_offset parameter in the spec, just add it and a test.
diff --git a/include/CL/sycl/id.hpp b/include/CL/sycl/id.hpp index e15d957cf..0beaea541 100644 --- a/include/CL/sycl/id.hpp +++ b/include/CL/sycl/id.hpp @@ -18,7 +18,7 @@ namespace cl { namespace sycl { -template <int Dimensions> class item; +template <int Dimensions, bool with_offset> class item; /** \addtogrou...
1
1
0
[{"id": "G0", "claim": "The new conversion operator can be simplified by writing 'return { this->get_range(), this->get_id(), 0 };' instead of constructing a named intermediate item.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
triSYCL__triSYCL__215
triSYCL/triSYCL
215
defect
591847decfa4ce6ad0f81b3107ffadc6fbd4a6c9
a900883e831e8c79a4da2f710d733ec2f848e74d
Refactored `parallel_for_workitem()` implementation
I replaced the older OpenMP modulo/divison loop with a suggested newer implementation that uses OpenMP to collapse nested loops of different dimensions and uses constexpr to compile the appropriate one. I think constexpr is cleaner than having several template specializations for each loop in this case. R...
diff --git a/include/CL/sycl/parallelism/detail/parallelism.hpp b/include/CL/sycl/parallelism/detail/parallelism.hpp index 8904edb05..6d43fabe4 100644 --- a/include/CL/sycl/parallelism/detail/parallelism.hpp +++ b/include/CL/sycl/parallelism/detail/parallelism.hpp @@ -239,35 +239,37 @@ void parallel_for_workitem(const ...
4
3
1
[{"id": "G0", "claim": "An added line in parallelism.hpp carries parasitic trailing spaces that should be removed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G4", "claim": "The OpenMP pragma set used for the work-item loops is not expected to work per the OpenMP spe...
null
triSYCL__triSYCL__224
triSYCL/triSYCL
224
defect
7e5b7ec977c74579f850cc0248967ac35e258284
ee880d46136940113d39d33ef032e91ddacce3e4
First implementation of an extension to have storage scope for SYCL runtime objects
The idea is to extend scopes such as global, local, private, etc. to platform scope, device scope and queue scope to address features of some modern architectures. The main idea is to replace concrete SYCL types with conceptual types that can encapsulate the storage scope.
diff --git a/include/CL/sycl.hpp b/include/CL/sycl.hpp index 5cc4970e6..5762dd8f9 100644 --- a/include/CL/sycl.hpp +++ b/include/CL/sycl.hpp @@ -85,6 +85,9 @@ #include "CL/sycl/vendor/Xilinx/opt_decorate_func.hpp" #include "CL/sycl/vendor/Xilinx/partition_array.hpp" +// An extension about constexpr host introspecti...
2
2
0
[{"id": "G0", "claim": "The commented-out alternative implementation line in ce/platform.hpp should not be committed (asks whether it needs to be).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The todo comment in device.hpp says 'devils' where...
null
triSYCL__triSYCL__225
triSYCL/triSYCL
225
defect
7f160f45f41ce70ec7d4a0628bad8a6164186432
ad81ed6c7aa7258dd5ccb99a95e0cd428d493a56
parallel_for ND_RANGE_KERNEL support
Adding support for OpenCL nd_range_kernel launches using parallel_for when TRISYCL_USE_OPENCL_ND_RANGE is specified. Related to issue: https://github.com/triSYCL/triSYCL/issues/146 Modifications: parallelism.hpp: new parallel_for implementation that is conditionally compiled in place of the normal parallel_for...
diff --git a/doc/architecture.rst b/doc/architecture.rst index 78febefd8..3caba3e8a 100644 --- a/doc/architecture.rst +++ b/doc/architecture.rst @@ -263,6 +263,9 @@ Set up the environment:: export BOOST_COMPUTE_DEFAULT_PLATFORM='Portable Computing Language' # Do not use another OpenCL stack if the one requested i...
24
20
1
[{"id": "G0", "claim": "The architecture.rst comment about TRISYCL_USE_OPENCL_ND_RANGE should add wording like \"instead of enqueuing a single work-item task and loop on the range in it\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documen...
null
triSYCL__triSYCL__231
triSYCL/triSYCL
231
defect
437b906d787b4ec532dc61ad161c818637885350
28cbb4048fe7156c3d26fe19b28fcbbc29ff989a
Empty base class fix to small_array
Related to: https://github.com/triSYCL/triSYCL/issues/230 small_array's empty base class optimization was not working correctly causing the vec class (and possibly others) to bloat by a few extra bytes. A large problem for cl::sycl::vec as alignas gets invoked so that it's correctly aligned to the data it cont...
diff --git a/include/CL/sycl/detail/alignment_helper.hpp b/include/CL/sycl/detail/alignment_helper.hpp new file mode 100644 index 000000000..6692f5358 --- /dev/null +++ b/include/CL/sycl/detail/alignment_helper.hpp @@ -0,0 +1,36 @@ +#ifndef TRISYCL_SYCL_DETAIL_ALIGNMENT_HELPER_HPP +#define TRISYCL_SYCL_DETAIL_ALIGNMENT...
7
6
0
[{"id": "G0", "claim": "In the new alignment helper, 'sycl' should be capitalised to 'SYCL', the vec3-as-vec4 comment likewise, and a 'using alignment_v = alignment<T>::value' alias should be added to simplify the use-cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
triSYCL__triSYCL__299
triSYCL/triSYCL
299
defect
d092e455ab06064249a9df2454b12eadaa4c4dc2
95db17345f4814f1dce29db6c0ee5259fc48159b
Generalize mathematical functions on sycl::vec
Test that sycl::abs now works for sycl::vec. This should be tested quite more... This is adds a little bit to https://github.com/triSYCL/triSYCL/issues/40
diff --git a/include/triSYCL/math.hpp b/include/triSYCL/math.hpp index 624dc5ef1..89354fc88 100644 --- a/include/triSYCL/math.hpp +++ b/include/triSYCL/math.hpp @@ -26,35 +26,100 @@ namespace trisycl { +/// Declare a FUN unary function for scalar and vector types #define TRISYCL_MATH_WRAP(FUN) template<typename T...
1
1
1
[{"id": "G0", "claim": "The new apply_ternary_functor is suspicious: its z parameter is never used and it calls apply_binary_functor_impl instead of a ternary implementation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
triSYCL__triSYCL__42
triSYCL/triSYCL
42
defect
62807664d3346e7c92ecf5ab1e6b6736fc2a4a67
12af655ff08b1d2e69ca9bb9991d684346047c1d
triSYCL with Eigen compatibility
When trying to make the Eigen tests work with triSYCL I encountered several problems, in this pull request are the changes required to (mostly) fix those problems. I also updated the Eigen build files to be able to use triSYCL instead of ComputeCPP as the SYCL implementation. The [branch](https://bitbucket.org/a-doumou...
diff --git a/include/CL/sycl/accessor/detail/local_accessor.hpp b/include/CL/sycl/accessor/detail/local_accessor.hpp index 1d258b6b8..c8aeb2c05 100644 --- a/include/CL/sycl/accessor/detail/local_accessor.hpp +++ b/include/CL/sycl/accessor/detail/local_accessor.hpp @@ -58,7 +58,7 @@ class accessor<T, Dimensions, Mode, a...
4
4
2
[{"id": "G0", "claim": "Instead of moving the allocate_buffer/deallocate_buffer code around, just add a `public:` access specifier at the right place so the change history stays simple to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
triSYCL__triSYCL__45
triSYCL/triSYCL
45
defect
060cbc42643d13ef746ddb85eaa5953768836e48
4d8ee6976665083cb518084571270e41ef3bd42a
Eigen and Tensorflow Compatibility
Here are some more changes to make triSYCL work with Eigen and Tensorflow. (follow-up to #42) The main changes are : - Implementation of the ```get_devices``` method for the ```platform``` class - A fix in *task.hpp* to prevent a task from adding himself to the producer list - Add ```device::get_info<info::device...
diff --git a/include/CL/sycl.hpp b/include/CL/sycl.hpp index 1a351b83d..f033840ef 100644 --- a/include/CL/sycl.hpp +++ b/include/CL/sycl.hpp @@ -65,6 +65,7 @@ // Some includes at the end to break some dependencies #include "CL/sycl/device_selector/detail/device_selector_tail.hpp" #include "CL/sycl/device/detail/devi...
5
5
1
[{"id": "G0", "claim": "The task.hpp deadlock fix (not waiting on itself as latest producer) deserves an explanation and a test to be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_devices doc comment in platform.hpp should say \\c ...
null
triSYCL__triSYCL__49
triSYCL/triSYCL
49
defect
fd59e482112754240b94199ed652fc351e68395c
2dce314b01c7e67b3e49ebb63d9e4c4bfe282140
Implementation of the OpenCL types
This pull request fixes in full or in part issues #41 #40 #16 Here are the changes : - Implementation of the ```&&``` and ```||``` operations for ```small_array``` and all types inheriting from ```small_array``` - Implementation with Boost Preprocessor of most cl_types (```cl_char, cl_uchar, cl_short, cl_usho...
diff --git a/include/CL/sycl/detail/small_array.hpp b/include/CL/sycl/detail/small_array.hpp index 7b6d7ac95..9c5207d08 100644 --- a/include/CL/sycl/detail/small_array.hpp +++ b/include/CL/sycl/detail/small_array.hpp @@ -38,6 +38,15 @@ namespace detail { } +#define TRISYCL_LOGICAL_OPERATOR_VECTOR_OP(op) ...
5
5
2
[{"id": "G0", "claim": "Even though almost everything in opencl_type.hpp changed, the previous file header comment (author and license notice) should have been kept.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The preprocessor names defined in ...
null
triSYCL__triSYCL__56
triSYCL/triSYCL
56
defect
12197573db3ad38c56f189e746269f85ff26141c
db6410c87e4c2b6d97fa75672bba2518b67b0d04
Fix platform.get_device method
- Fix platform.get_device to return the device associated to the platform instead of all the devices - Add get_info<info::device::max_mem_alloc_size> required by tensorflow
diff --git a/include/CL/sycl/device.hpp b/include/CL/sycl/device.hpp index 0733c689f..941ef0b02 100644 --- a/include/CL/sycl/device.hpp +++ b/include/CL/sycl/device.hpp @@ -276,6 +276,11 @@ inline auto device::get_info<info::device::local_mem_size>() const { return size_t { 32000 }; } +template <> +inline auto de...
4
4
1
[{"id": "G0", "claim": "The `{` `}` around the value returned by opencl_device::get_platform (`return { d.platform() };`) are not useful.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "platform::get_devices should compare the platforms themselves rather t...
null
triSYCL__triSYCL__61
triSYCL/triSYCL
61
defect
4a27ed2528bcc064ff716c88179f005ca4e01712
1b06715d07262195698bd1cf9402f6746544694a
Combination hls
Update Makefile Add test cases for HLS in SDAccel
diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..3a337d9fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.csv +*.dir +*.xclbin +*.swp diff --git a/include/CL/sycl/detail/global_config.hpp b/include/CL/sycl/detail/global_config.hpp index ffa1ef646..4d2c5112f 100644 --- a/include/CL/sycl/deta...
29
29
0
[{"id": "G0", "claim": "The commented-out `//int main(int argc, char *argv[]) {` line should not be added to tests/SDAccel/opencl_kernel_vector_add_args.cpp.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `#To use Xilinx OpenCL` comment ...
null
triSYCL__triSYCL__8
triSYCL/triSYCL
8
defect
e64d0a277de7ab0f15a3d519ffbb4a9aa5160b5e
35d0c00c8acdcfbd13acba85643090d290b4a95a
add accessors x, y, z to small_array
accessors x and y are needed by the SyclParallelSTL accessors x, y and z are necessary if we use vec to implement cl_float3
diff --git a/include/CL/sycl/detail/small_array.hpp b/include/CL/sycl/detail/small_array.hpp index 104eb78cd..69508109d 100644 --- a/include/CL/sycl/detail/small_array.hpp +++ b/include/CL/sycl/detail/small_array.hpp @@ -95,8 +95,20 @@ struct small_array : std::array<BasicType, Dims>, // (*this)[0] is the first el...
3
3
1
[{"id": "G0", "claim": "Add two blank lines between each new function declaration and a Doxygen-style description (starting with /** or ///) so the Doxygen documentation can be built.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite Dims>=1 ...
null
triboelectric__statick__102
triboelectric/statick
102
defect
9e203ba3c3e3ab56cda26d54143a456defd719c1
e2ebaf57ef6d1173a3538997fcebad619fe3c303
Convert Findbugs to Spotbugs and make it run in Maven
This removes the previous issues with Findbugs needing external commands to compile the Java files, but does mean that it will only work on Maven. Gradle and Ant integrations are also available, and I can add them in the future if needed.
diff --git a/docs/source/statick_tool.plugins.tool.rst b/docs/source/statick_tool.plugins.tool.rst index 197d938b..3bda5bd4 100644 --- a/docs/source/statick_tool.plugins.tool.rst +++ b/docs/source/statick_tool.plugins.tool.rst @@ -76,14 +76,6 @@ statick_tool.plugins.tool.cpplint_tool_plugin module :undoc-members: ...
3
2
1
[{"id": "G0", "claim": "The scan returns [] when the mvn command is not found at the top of the method but None when the subprocess call raises OSError, and the reviewer asks whether there is a reason for the different return value (recommending the extra command-existence check be kept).", "category": "design", "verdi...
null
triboelectric__statick__179
triboelectric/statick
179
defect
1d0725f801878755553ad374d7ed1628d00922b8
bf9a661c47b500be0bf0e1251cafafe18bbb11ca
Add support for Jenkins Warnings Next Generation plugin
The Jenkins Warnings plugin has been deprecated and replaced with the Jenkins Warnings Next Generation Plugin. This change renames the write_file plugin to better represent what it does (write output compatible with the Jenkins Warnings plugin) and adds a new reporting plugin that supports the Jenkins Warnings Next Gen...
diff --git a/docs/source/statick_tool.plugins.reporting.rst b/docs/source/statick_tool.plugins.reporting.rst index 8b872f55..1c67d764 100644 --- a/docs/source/statick_tool.plugins.reporting.rst +++ b/docs/source/statick_tool.plugins.reporting.rst @@ -20,10 +20,18 @@ statick_tool.plugins.reporting.print_to_console_repor...
5
4
1
[{"id": "G0", "claim": "The write_jenkins_warnings_ng reporting plugin should not be enabled for the tex level because no known Jenkins jobs use this level with Jenkins.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The write_jenkins_warnings_ng reporti...
null
triboelectric__statick__287
triboelectric/statick
287
defect
59012cca37c9196b4558c25b280e32198a14b157
ef9e0ccfc50c6c1c5b7578ab7bbc7e01d4c5d995
Swap order of checks in cpplint for package information. This will ca…
…use saner output for users when there are no C/C++ files found.
diff --git a/statick_tool/plugins/tool/cpplint_tool_plugin.py b/statick_tool/plugins/tool/cpplint_tool_plugin.py index 3b998541..95cba5a4 100644 --- a/statick_tool/plugins/tool/cpplint_tool_plugin.py +++ b/statick_tool/plugins/tool/cpplint_tool_plugin.py @@ -18,13 +18,13 @@ def get_name(self) -> str: def scan(se...
1
1
1
[{"id": "G0", "claim": "The guard added at the top of scan() only checks that the make_targets and headers keys are absent, so when either key exists but holds an empty list (a case the reviewer hit testing locally) the scan does not return an empty list of issues.", "category": "correctness", "verdict": "supported", "...
null
triboelectric__statick__316
triboelectric/statick
316
defect
014bd2969ba90fd0623c3cd587c86b95380c05c7
033ffa193752b225983478b83633b62e0f25c70b
Adding print_json_reporting_plugin and unit tests.
Signed-off-by: Alexander Xydes <alexander.xydes@navy.mil> Fixes #281
diff --git a/statick_tool/plugins/reporting/print_json_reporting_plugin.py b/statick_tool/plugins/reporting/print_json_reporting_plugin.py new file mode 100644 index 00000000..788e2dd9 --- /dev/null +++ b/statick_tool/plugins/reporting/print_json_reporting_plugin.py @@ -0,0 +1,49 @@ +"""Prints the Statick reports out t...
3
3
0
[{"id": "G0", "claim": "Set certReference to \"\" unconditionally before conditionally overwriting it with the cert reference, instead of assigning it only in the else branch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test module docstring says ...
null
triboelectric__statick__434
triboelectric/statick
434
defect
dd0f6a49b13901736afa6b028fb9f63569a5be94
048aefd8c4c1f23849c27355a9c956ada27af739
Add support to CMake discovery and cmakelint tool plugins to handle files with .cmake extension.
I tested by installing only statick in a venv with `pip install -e .`. Then I ran against a ROS workspace using a level that had the `make` and `cmakelint` tools configured to run. I also tested against a repository that had subdirectories with multiple `.cmake` files. All of the `.cmake` files were discovered, and...
diff --git a/statick_tool/discovery_plugin.py b/statick_tool/discovery_plugin.py index 795698c4..5051429d 100644 --- a/statick_tool/discovery_plugin.py +++ b/statick_tool/discovery_plugin.py @@ -63,7 +63,7 @@ def get_file_cmd_output(self, full_path: str) -> str: There are two recommended ways to check it: ...
1
1
1
[{"id": "G0", "claim": "The cmakelint tool plugin could append package.path/CMakeLists.txt to cmake_files twice, since it is added both when the is_cmake flag is true and when the same file appears in cmake_src.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
triboelectric__statick__435
triboelectric/statick
435
defect
33f736f75604a20246d459589e3ccad51c1cfe93
410648af7924f2d81633a430d3ca5f0944df413f
By default auto discover files of any type, and run any applicable tools on them. (#432)
Also only output to terminal by default. Adding do_nothing tool plugin. #432
diff --git a/CHANGELOG.md b/CHANGELOG.md index 389869df..c3f8aa6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added +### Changed + +- Default behavior for statick will now run all available discovery plugins, and ...
6
6
0
[{"id": "G0", "claim": "The README sentence should read 'With the built-in configuration files another useful _profile_ uses the `sei_cert` _level_.' instead of the ungrammatical 'the another useful _profile_'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
triboelectric__statick__481
triboelectric/statick
481
defect
ef2539a2eca5e309e83e8ceacfed54b7062502d2
fda71090c12feaa464c478d048558c597696a2c8
Add support for multi-line yaml syntax.
* Use multi-line yaml for tool flags in default configuration file. * Tool flags are now put on a single line with leading/trailing quotes and whitespace removed. This change is required for the flags passed to the make tool. Make requires more stringent formatting for flags. A single-line string i...
diff --git a/CHANGELOG.md b/CHANGELOG.md index caf05e32..c2cb2098 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,18 +8,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added -- Unit tests were added to the `exceptions` module with troublesome file to check for `Unicode...
2
1
1
[{"id": "G0", "claim": "The reviewer asks why removing double-quote characters (`.strip('\"')`) is now required on the tool flags, and the code should either have that stripping justified or dropped.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Si...
null
trickle-labs__pg-trickle__708
trickle-labs/pg-trickle
708
defect
d1c94ddf719addf6a6e8afacf887284fce606180
a46ae0e0276457a2ffa661b4c79a13360034a05a
fix(ivm): clear IMMEDIATE_SKIP_ALLOWLIST via EC-01 multiset reconciliation
## Summary Clears the `IMMEDIATE_SKIP_ALLOWLIST` entirely by implementing EC-01 phantom-row cleanup for IMMEDIATE mode and fixing a recursive-CTE depth-guard regression introduced while doing so. **Background — EC-01 (join-key change phantom rows):** when a row's JOIN key changes, the DIFFERENTIAL path already correc...
diff --git a/src/dvm/mod.rs b/src/dvm/mod.rs index 959e1ff16..787ad366b 100644 --- a/src/dvm/mod.rs +++ b/src/dvm/mod.rs @@ -271,6 +271,18 @@ pub fn query_total_scan_count(query: &str) -> Result<usize, PgTrickleError> { Ok(operators::join_common::total_scan_count(&result.tree)) } +/// EC-01 / EC-01b: Returns `t...
2
2
0
[{"id": "G0", "claim": "The dynamically formatted SQL passed to Spi::run() at line 104 (DROP TABLE IF EXISTS with an interpolated recon_table name) should be reviewed for quoting, privilege context, and user-controlled interpolation, or the identifier/literal should be escaped with the repo's quoting helpers.", "catego...
null
trifectatechfoundation__sudo-rs__1000
trifectatechfoundation/sudo-rs
1,000
defect
08d02fb2ed00a0297dd86ab82a2ea27b5f74e897
59263b48ae9b0cd921972ac64362afee7982c6cf
Specific defaults compatibility 🎈
Tracked item number ***1000*** 🎆 🥳 🎉 Closes #998, extends #997 (which must be merged first). This brings sudo-rs into compliance with ogsudo per correspondence with Todd. The exact precedence of specific-defaults is a bit "evolved" behaviour (I'd either prefer strict ordering, or the thing the current man sudoer...
diff --git a/src/sudoers/mod.rs b/src/sudoers/mod.rs index 482272c73..3e9da083f 100644 --- a/src/sudoers/mod.rs +++ b/src/sudoers/mod.rs @@ -40,7 +40,7 @@ pub struct Error { /// /// I.e. the Setting modifications in the second part of the tuple only apply for /// items explicitly matched by the first part of the tup...
1
1
0
[{"id": "G0", "claim": "Drop the default type parameter from the Customiser alias and spell out Customiser<ConfigScope> at the one place plain Customiser is used.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__101
trifectatechfoundation/sudo-rs
101
defect
fe7ff6385491bb8c67eaedf39858f384ef605195
765a7aab570594503e54599c59fce69e7d8536a2
Better signal handling
This PR introduces the following changes: - Handle SIGWINCH as a regular signal as we are not doing any I/O logging. - Handle SIGALRM by sending SIGHUP, SIGTERM and SIGKILL to the command to match ogsudo's behavior. - Only overwrite the same signal handlers that ogsudo overwrites. - If the command was terminated ...
diff --git a/lib/sudo-common/src/context.rs b/lib/sudo-common/src/context.rs index e625ef49d..11586b0fe 100644 --- a/lib/sudo-common/src/context.rs +++ b/lib/sudo-common/src/context.rs @@ -68,6 +68,7 @@ pub struct Context<'a> { // system pub hostname: String, pub current_user: User, + pub pid: i32, }...
7
4
1
[{"id": "G0", "claim": "A comment should explain why the SIGALRM branch needs special handling, and the hardcoded 2-second sleep before SIGKILL is an arbitrary delay that should be justified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the...
null
trifectatechfoundation__sudo-rs__1027
trifectatechfoundation/sudo-rs
1,027
defect
57a46995e7b1818ffea2fe541c451c3b71487605
b2ed49f453b33505f481d6e2ac0761d44b52c131
Touchups and fixes for `--prompt` / `SUDO_PROMPT`
This was missed in the PR #1003 Also, %H and %h can be treated differently quite easily. Also adds `SUDO_PROMPT`.
diff --git a/docs/man/sudo.8.md b/docs/man/sudo.8.md index 86d931007..3d6d2354a 100644 --- a/docs/man/sudo.8.md +++ b/docs/man/sudo.8.md @@ -68,6 +68,24 @@ even if that process runs in its own pseudo terminal. : Avoid prompting the user for input of any kind. If any input is required for the *command* to run, s...
1
1
1
[{"id": "G0", "claim": "The newly documented list of supported `--prompt` percent escape sequences is incomplete: `%H` is also accepted by the implementation (as equivalent to `%h`) but is not documented.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__105
trifectatechfoundation/sudo-rs
105
defect
218d0a6a0901a25ba4424b59deb65568c3e4d173
43c76966d2d31e48bab0e207baa1c965a5a08776
Add a must-set environment variable in order to run sudo-rs
Fixes #104 The produced binary will now only continue running if the environment variable `SUDO_RS_IS_UNSTABLE` is set to `I accept that my system may break unexpectedly`. I chose the explicit value here to make sure that people really understand what they are doing, and explicitly chose not to give the syntax for ...
diff --git a/sudo/src/main.rs b/sudo/src/main.rs index dae6882db..ec424871f 100644 --- a/sudo/src/main.rs +++ b/sudo/src/main.rs @@ -43,6 +43,24 @@ fn main() -> Result<(), Error> { // parse cli options let sudo_options = SudoOptions::parse(); + let check_var = std::env::var("SUDO_RS_IS_UNSTABLE").unwrap_...
3
3
2
[{"id": "G0", "claim": "The compliance tests will not work against sudo-rs unless the new SUDO_RS_IS_UNSTABLE variable is set in the test docker image, so an `ENV key=value` line should be added to test-framework/sudo-test/src/ours.Dockerfile.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": ...
null
trifectatechfoundation__sudo-rs__1124
trifectatechfoundation/sudo-rs
1,124
defect
efea09b855b9449e5a3ddad6e46c26a42ff6b364
04d735600c550bdc4e3fe6a83ee0212f8808427a
Implement support for NOEXEC (take 2)
This is using seccomp syscall filtering of the execve and execveat syscalls. Unlike the original sudo this does not depend on using LD_PRELOAD. Instead SECCOMP_RET_USER_NOTIF is used combined with a thread which allows the first exec (as done by sudo itself) and denies all further execs. This makes it robust against bo...
diff --git a/Cargo.toml b/Cargo.toml index e91c2354b..1047a34e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ name = "visudo" path = "bin/visudo.rs" [dependencies] -libc = "0.2.149" +libc = "0.2.152" glob = "0.3.0" log = { version = "0.4.11", features = ["std"] } diff --git a/src/common/context.rs ...
1
1
1
[{"id": "G0", "claim": "squell asks bjorn3 to confirm that a child process that hits the seccomp filter before the unotify handler thread has spawned will simply block until the thread comes online, so deferring the handler thread spawn past fork causes no race condition.", "category": "correctness", "verdict": "suppor...
null
trifectatechfoundation__sudo-rs__1140
trifectatechfoundation/sudo-rs
1,140
defect
65576dd2db0c22b5678f527e66c310f308e63aff
e47d13fe34a7757c4a2de3bf86e42448e2fe155a
Dlopen apparmor
This still needs a test that LD_LIBRARY_PATH can't be used to load arbitrary code into the sudo process. Fixes https://github.com/trifectatechfoundation/sudo-rs/issues/1113
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 71cbb9f77..d34ce3b00 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,7 +42,7 @@ jobs: - name: Run all E2E tests working-directory: test-framework - run: cargo test -p e2e-tests + run: c...
1
1
0
[{"id": "G0", "claim": "The reviewer asks for confirmation that a NULL pointer really converts to None when dlsym's void pointer is transmuted into Option<fn()>, since C does not guarantee NULL is all-zero bits and *mut c_void may have several bit representations for NULL.", "category": "correctness", "verdict": "suppo...
null
trifectatechfoundation__sudo-rs__1165
trifectatechfoundation/sudo-rs
1,165
defect
5d2435bf6912b824d623cdde2edda3af40b00269
ed913a17a4fd376b2d331d0725c6be7e7aad9889
Implement `passwd_timeout`
Fixes #1033 This uses [`poll(2)`](https://man7.org/linux/man-pages/man2/poll.2.html) to implement timeouts; this is simpler (and likely easier to use correctly) than [`select(2)`](https://man7.org/linux/man-pages/man2/select.2.html) or [`epoll(7)`](https://man7.org/linux/man-pages/man7/epoll.7.html). It's worth not...
diff --git a/src/pam/mod.rs b/src/pam/mod.rs index 6bb225c9c..542a14b61 100644 --- a/src/pam/mod.rs +++ b/src/pam/mod.rs @@ -151,12 +151,14 @@ impl PamContext { flags |= self.disallow_null_auth_token_flag(); // SAFETY: `self.pamh` contains a correct handle (obtained from `pam_start`) - pam_er...
2
1
0
[{"id": "G0", "claim": "Rename `authenticate_rslt` to something like `auth_res` and propagate the error with `if let Err(err) = auth_res { return Err(err); }` instead of the bare `authenticate_rslt?`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G7", "claim"...
null
trifectatechfoundation__sudo-rs__1213
trifectatechfoundation/sudo-rs
1,213
defect
2145696e45b926f4a4fe16eaef1d7e2b626fdb08
b86eb3cbf4b1b0b62c8e28db4f13cae0aa44aa7f
Sudoedit compliance tests (batch 1)
These are adapted from the visudo tests (basically, exchange visudo for "sudoedit /etc/sudoers") and merely test the functionality for an ordinary user that has full sudoedit permissions. Two issues worthy of fixing were found and this PR fixes those as well. For batch 2, I propose: * tests for editing files a...
diff --git a/src/sudo/edit.rs b/src/sudo/edit.rs index c552ded7f..37f17f840 100644 --- a/src/sudo/edit.rs +++ b/src/sudo/edit.rs @@ -3,13 +3,14 @@ use std::fs::File; use std::io::{Read, Seek, Write}; use std::net::Shutdown; -use std::os::unix::{net::UnixStream, process::ExitStatusExt}; +use std::os::unix::{fs::OpenO...
10
8
0
[{"id": "G0", "claim": "Move the DEFAULT_EDITOR constants to sudo-compliance-tests/src/lib.rs so they can be reused between the visudo and sudoedit tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test name creates_sudoers_file_with_def...
null
trifectatechfoundation__sudo-rs__1268
trifectatechfoundation/sudo-rs
1,268
defect
58d17b91b05d13b095d9f3fcccfd286b71cb9adf
b8ac26915f3bb8ab9fbf76410de304254507a70b
Update test-framework to Debian trixie
Note: two bugs were found in ogsudo by this change; addressed in b8ac269; they have been reported to Todd and will be corrected in an upcoming sudo
diff --git a/test-framework/sudo-compliance-tests/src/sudo/flag_chdir.rs b/test-framework/sudo-compliance-tests/src/sudo/flag_chdir.rs index 063bac2c5..e14c25bbe 100644 --- a/test-framework/sudo-compliance-tests/src/sudo/flag_chdir.rs +++ b/test-framework/sudo-compliance-tests/src/sudo/flag_chdir.rs @@ -115,22 +115,6 @...
1
1
1
[{"id": "G0", "claim": "The version guard compares versions as strings, so sudo 1.10.0 would not be skipped by `version >= \"1.9.16\"` and would fail this test; the reviewer asks whether that is intended.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__1296
trifectatechfoundation/sudo-rs
1,296
defect
bbe2bf62443e915320737f4c7c6eb0862a31971c
a2f23d03325c24f8753bf6dc6896efc7e832e719
Add fix for escaped equal argument in sudoers file
This fix will allow a sudoers file to contain an escaped equal sign in command arguments. More specifically, it will make both of these lines valid in a sudoers file: ``` Cmd_Alias FOO_CMD = /bin/foo --bar=1 Cmd_Alias FOO_CMD = /bin/foo --bar\=1 ``` Whereas only the un-escaped version is currently allowed. Cl...
diff --git a/src/sudoers/test/mod.rs b/src/sudoers/test/mod.rs index 4fe96bc9d..10f9b3792 100644 --- a/src/sudoers/test/mod.rs +++ b/src/sudoers/test/mod.rs @@ -470,6 +470,12 @@ fn gh676_percent_h_escape_unsupported() { ); } +#[test] +fn gh1295_escaped_equal_argument_ok() { + assert!(try_parse_line("Cmd_Alia...
1
1
0
[{"id": "G0", "claim": "Rewrite the SimpleCommand::accept condition in src/sudoers/tokens.rs as `(!Self::escaped(c) && !c.is_control()) || c == '='` because that grouping reads clearer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__1380
trifectatechfoundation/sudo-rs
1,380
defect
6f6c909a178478b00f3cf783254887ca7636ac29
fd8b9733a4d743d1387c7f1824fd0e6d56e2d91b
Check if stdio tty pgrp matches for exec_bg
This way redirecting stdio to another tty won't be treated as if stdio isn't redirected at all. This matches newer ogsudo versions. Also introduced a `SafeTty` trait to ensure a bunch of methods that invoke ioctls only get called on known real ttys. Fixes https://github.com/trifectatechfoundation/sudo-rs/issu...
diff --git a/src/exec/use_pty/parent.rs b/src/exec/use_pty/parent.rs index 4e515b16d..8b9bac33b 100644 --- a/src/exec/use_pty/parent.rs +++ b/src/exec/use_pty/parent.rs @@ -94,8 +94,6 @@ pub(in crate::exec) fn exec_pty( // FIXME: maybe all these boolean flags should be on a dedicated type. - // Whether we'r...
2
2
1
[{"id": "G3", "claim": "The `matches_pgrp` function can be slightly better named (something like `is_terminal_for_pgrp`), though it is not a blocker for merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "An integration test demonstrating th...
null
trifectatechfoundation__sudo-rs__1403
trifectatechfoundation/sudo-rs
1,403
defect
c861be2b5fa63b7aba44bef2756e6294e774eb91
dcce33c0e18845b5006fea0a71ee641874ddb1be
Update compliance tests to use NLS support on FreeBSD
This was rather easy. Closes #1384
diff --git a/test-framework/sudo-test/src/docker.rs b/test-framework/sudo-test/src/docker.rs index 9f4c47fcc..ba7e9543a 100644 --- a/test-framework/sudo-test/src/docker.rs +++ b/test-framework/sudo-test/src/docker.rs @@ -184,15 +184,14 @@ pub fn build_base_image() { #[allow(clippy::vec_init_then_push)] ...
1
1
0
[{"id": "G0", "claim": "The `-lintl` linker flag should be handled with a `#[link(name = \"intl\")]` attribute on the `extern \"C\"` block importing the gettext functions instead of being injected via RUSTFLAGS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__1427
trifectatechfoundation/sudo-rs
1,427
defect
08bf4affb71f4c14fb319703964c333bbd429273
4a6eef3669bbd2ce08b1b6f521645c54dff5e13a
Remove obsoleted bash script
It was only used for generating / combining coverage data from the test framework. But that cannot be done "in production mode"; please see the [compliance-coverage](https://github.com/trifectatechfoundation/sudo-rs/tree/compliance-coverage) branch for an updated and improved version of this script (and the associated ...
diff --git a/make-lcov-info.bash b/make-lcov-info.bash deleted file mode 100755 index 49ac7c53c..000000000 --- a/make-lcov-info.bash +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -rustup component add llvm-tools - -llvm_profdata=$(find "$(rustc --print sysroot)" -name llvm-profdata) -profdata="$SUD...
1
1
1
[{"id": "G0", "claim": "The new test's process-wide std::env::set_current_dir, restored only by an in-test Drop guard, is probably going to cause issues in the future when another test also uses the working directory.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__1469
trifectatechfoundation/sudo-rs
1,469
defect
8cd32daa982ac7675c314fbd87daf37bf48b57f7
f3fe04aa086c892cfc9bb633250f389afd7f736e
Hack hostname Defaults
An interesting aside: ``` Defaults@host1,host2 secure_path=/bin/sh ``` Can clearly be parsed as: 1. On `host1` and `host2`, set the `secure_path` to `/bin/sh`. 2. Give users `Defaults@host1` and `host2` the permission to run `/bin/sh` as root on the host named `secure_path`.
diff --git a/src/sudoers/ast.rs b/src/sudoers/ast.rs index beabcb158..c970ff0b1 100644 --- a/src/sudoers/ast.rs +++ b/src/sudoers/ast.rs @@ -1,6 +1,5 @@ use super::ast_names::UserFriendly; use super::basic_parser::*; -use super::char_stream::advance; use super::tokens::*; use crate::common::SudoString; use crate::...
2
1
0
[{"id": "G0", "claim": "The new comment should have a space after '//' for consistent formatting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A debug assert against newlines could be added to the new advance() helper, which trusts the caller ...
null
trifectatechfoundation__sudo-rs__1470
trifectatechfoundation/sudo-rs
1,470
defect
668c682dc63fe27cf753ff43106b7296e067344f
df853b993a9eaf9f8c4895158d1bf49badd03ee8
Faster copying of files into containers
Previously each file would result in a docker cp and two docker exec (chown and chmod). By instead building a tarball for all files, this can be reduced to a single docker cp for all files followed by one chown for each file. The latter is still necessary because docker doesn't support user names for tarball imports, o...
diff --git a/test-framework/Cargo.lock b/test-framework/Cargo.lock index 9dac93cca..062e6f4f4 100644 --- a/test-framework/Cargo.lock +++ b/test-framework/Cargo.lock @@ -70,6 +70,17 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062...
1
1
0
[{"id": "G0", "claim": "cp_many should take impl IntoIterator instead of impl Iterator so the test call site can be simplified from Some(path).into_iter() to [path].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__1473
trifectatechfoundation/sudo-rs
1,473
defect
1efaa3a07b3ef8e0f1549177443cf07ab102efd7
caa94407df8a305682405a6a66fb02f4d78c92dd
Add explicit rejection of IPv4-like hostnames
Closes #1466
diff --git a/src/sudoers/test/mod.rs b/src/sudoers/test/mod.rs index 1608e88a5..f33cbba3a 100644 --- a/src/sudoers/test/mod.rs +++ b/src/sudoers/test/mod.rs @@ -542,6 +542,15 @@ fn gh1295_escaped_equal_argument_ok() { assert!(try_parse_line(r"Cmd_Alias FOO_CMD = /bin/foo --bar\=1").is_some()); } +#[test] +fn gh...
3
1
1
[{"id": "G0", "claim": "IPv4 addresses written in octal notation, e.g. 00177.0000.0000.0001 which ping resolves to 127.0.0.1, are not rejected by the new check because their parts exceed the part.len() <= 3 limit, and detecting octal parts would simplify the code by removing that condition.", "category": "correctness",...
null
trifectatechfoundation__sudo-rs__1493
trifectatechfoundation/sudo-rs
1,493
defect
05a8e447fd821ddeb9c8bc4d00a2d93c37247ab3
a615ec0961fe3417e5e98a95561e56eaba3f4d57
sudoedit: support arguments in SUDO_EDITOR
When SUDO_EDITOR is set to a value containing arguments (e.g. 'echo -n 1 2 3'), sudo-rs ignores the arguments and falls back to the default editor instead of splitting the value on whitespace and invoking the correct editor with the given arguments. Add a failing test to capture this behaviour. The test is marked #[...
diff --git a/src/sudo/edit.rs b/src/sudo/edit.rs index 9fbfc5523..68905463e 100644 --- a/src/sudo/edit.rs +++ b/src/sudo/edit.rs @@ -1,5 +1,6 @@ #![allow(unsafe_code)] +use std::ffi::OsString; use std::fs::File; use std::io::{Read, Seek, Write}; use std::net::Shutdown; @@ -32,7 +33,7 @@ struct ChildFileInfo<'a> {...
1
1
0
[{"id": "G0", "claim": "The two separate `use super::Sudoers;` and `use super::Judgement;` imports at the top of src/sudoers/policy.rs should be merged into a single `use super::{Judgement, Sudoers};`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
trifectatechfoundation__sudo-rs__1539
trifectatechfoundation/sudo-rs
1,539
defect
4e9418043f6acb482009fb3dbc97fbd257de1dbf
b335e100a46b42415b26512d0fc2828dfaf404af
Add support for remote sudoers
This PR addresses https://github.com/trifectatechfoundation/sudo-rs/issues/1421. I include four commits in the PR: - The support for the `@socket` directive (done by @squell) - The logics for reading the sudoers rules from the socket, and - A test for this case. - The documentation for `@socket`. ### Some int...
diff --git a/src/common/mod.rs b/src/common/mod.rs index e30dbcc92..8db90bc07 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -25,6 +25,7 @@ pub const HARDENED_ENUM_VALUE_1: u32 = 0xad5d6da; // 101011010101110101101101101 pub const HARDENED_ENUM_VALUE_2: u32 = 0x69d61fc8; // 1101001110101100001111111001000 ...
4
4
1
[{"id": "G0", "claim": "Inline and remove the single-use `is_allowed` helper on IncludeState.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Push the forbidden-include diagnostics into include() and combine them with the limit-reached check in a...
null
trifectatechfoundation__sudo-rs__207
trifectatechfoundation/sudo-rs
207
defect
a8ad0b9b3723ad5b9e3cf5777c951b1fe38e2b96
eba343ac88e482f2a6c3deac497c301daafafc83
Refactor resolve user / group
Moved business logic related to resolving a user / group to `resolve.rs` The groups of a user are now always resolved Correct target user / group are set in the environment Fixes #140
diff --git a/lib/sudo-common/src/context.rs b/lib/sudo-common/src/context.rs index 693abfec3..6daa7bd7a 100644 --- a/lib/sudo-common/src/context.rs +++ b/lib/sudo-common/src/context.rs @@ -4,7 +4,7 @@ use sudo_system::{hostname, Group, User}; use crate::{ command::CommandAndArguments, - resolve::{resolve_cur...
1
1
1
[{"id": "G0", "claim": "The buffer should be padded via `resize_with` with a panic closure instead of `resize` with 0, so that an incorrect group count would panic loudly rather than silently produce a zero group.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__536
trifectatechfoundation/sudo-rs
536
defect
4c76e338d69b733d7b9f6d35b880030381af1ebe
82c42761470d2e993b800831596f839b4da3ce2a
Implement `timestamp_timeout`
~~Note: if it passed the compliance test, it can be merged already, except that to close #394 we also need to support the fractional notation (for other timeouts sudo uses a different, probably more recent syntax)~~ This PR adds support for timestamp_timeout, and slightly extends the defaults DSL with support for "a...
diff --git a/src/defaults/mod.rs b/src/defaults/mod.rs index 2c2781e02..f512cd6f1 100644 --- a/src/defaults/mod.rs +++ b/src/defaults/mod.rs @@ -4,7 +4,7 @@ // "verifypw" and "logfile" pub enum SudoDefault { Flag(bool), - Integer(OptTuple<i128>, fn(&str) -> Option<i128>), + Integer(OptTuple<i64>, fn(&str) ...
1
1
0
[{"id": "G0", "claim": "The 'pass' scenario in the timestamp_timeout compliance test should be moved into a separate test function named \"credential caching works with custom timeout\".", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__738
trifectatechfoundation/sudo-rs
738
defect
e83fc6106f0f8f6645e3b4fdc74b114b15c9f716
325b465655159a35071365d927f5a8e63fc3c74e
switch from `print!` macros to `write!`
fixes #737 note that there is now a divergence between ogvisudo and visudo-rs. ogvisudo ignores IO errors when printing; as it is an interactive tool that results in confusing scenarios: for example, `visudo | true` does not print the prompt asking what to do next (press 'x', 'e', etc.) and then blocks waiting for ...
diff --git a/src/lib.rs b/src/lib.rs index 0004d1872..80acceb21 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#[macro_use] +mod macros; pub(crate) mod cli; pub(crate) mod common; pub(crate) mod cutils; diff --git a/src/macros.rs b/src/macros.rs new file mode 100644 index 000000000..0aae59977 --- /dev/nul...
1
1
0
[{"id": "G0", "claim": "Accidental uses of the PR's re-defined `println!`/`print!`-family macros should be flagged at compile time rather than only panicking at run time under the test suite (and ideally also in release builds).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trifectatechfoundation__sudo-rs__879
trifectatechfoundation/sudo-rs
879
defect
55ec501dca6cde616ccd4ee7d8a8f1d2977fc055
29ebf011efc24c4659e950ba5e6804c476701e60
Interface newtypes
Implementation for #769. Throughout the code, `id.get()` is called. We could implement `Deref` so we can `*id` into the libc type. [deref coercion](https://doc.rust-lang.org/std/ops/trait.Deref.html#deref-coercion) makes this nice to work with.
diff --git a/src/common/context.rs b/src/common/context.rs index 278aa9a95..1510e734a 100644 --- a/src/common/context.rs +++ b/src/common/context.rs @@ -121,6 +121,6 @@ mod tests { } assert_eq!(context.command.arguments, ["hello"]); assert_eq!(context.hostname, Hostname::resolve()); - ...
10
10
1
[{"id": "G0", "claim": "The pid() accessors should return ProcessId rather than unwrapping the newtype to i32 and re-wrapping it at every call site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A UserId::ROOT constant would be nicer to compare against ...
null
trifectatechfoundation__sudo-rs__897
trifectatechfoundation/sudo-rs
897
defect
1feff85221c112f31b55783f050f29513e4b7db0
58de9eafd5d42aeb32a98204567d884e74fe67b9
Specific Defaults
This closes #61. Remaining missing functionality is tracked by #986, missing compliance tests by #987
diff --git a/src/sudoers/ast.rs b/src/sudoers/ast.rs index 719ccef1c..359c9648c 100644 --- a/src/sudoers/ast.rs +++ b/src/sudoers/ast.rs @@ -134,7 +134,19 @@ pub enum Directive { HostAlias(Defs<Hostname>) = HARDENED_ENUM_VALUE_1, CmndAlias(Defs<Command>) = HARDENED_ENUM_VALUE_2, RunasAlias(Defs<UserSpeci...
2
1
0
[{"id": "G0", "claim": "The new ConfigScope enum carries a #[repr(u32)] without the hardened-enum discriminants that normally justify it.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using stream.get_pos() (in allow_scope_modifier) for something other ...
null
trifectatechfoundation__sudo-rs__934
trifectatechfoundation/sudo-rs
934
defect
491e66787913801bb2b132853fd2d5cc8c4f1eff
21585ee020a3cbc5cc8ef8ae20f253e508d5a015
Reimplement DSL
Closes #933 This also isolates all the 'Defaults'-behaviour in the defaults crate, making the exact behaviour of each individual `Defaults` setting irrelevant to the way the parser and semantic analysis handles them. This simplifies those parts. The DSL definition itself also feels a little less magical (althoug...
diff --git a/src/defaults/mod.rs b/src/defaults/mod.rs index d9ad04441..7fc36d3ed 100644 --- a/src/defaults/mod.rs +++ b/src/defaults/mod.rs @@ -1,23 +1,19 @@ #![forbid(unsafe_code)] -// FUTURE IDEA: use a representation that allows for more Rust-type structure rather than passing -// strings around; some settings in ...
2
2
0
[{"id": "G0", "claim": "The List branch of modifier_of! should be formatted the way rustfmt would format it outside of a macro, which significantly reduces indentation (M002 re-raises that the code is still not formatted that way).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
trifectatechfoundation__sudo-rs__947
trifectatechfoundation/sudo-rs
947
defect
e0fff403da522f31c54395c615bbb4486fed4e79
d03f8a2560b0bfcd8537a16b9afcff4a24d17602
Implement the rootpw option
Fixes https://github.com/trifectatechfoundation/sudo-rs/issues/868
diff --git a/src/common/context.rs b/src/common/context.rs index ec34c096d..b6c543741 100644 --- a/src/common/context.rs +++ b/src/common/context.rs @@ -1,3 +1,4 @@ +use crate::common::resolve::AuthUser; use crate::common::{HARDENED_ENUM_VALUE_0, HARDENED_ENUM_VALUE_1, HARDENED_ENUM_VALUE_2}; use crate::system::{Grou...
2
2
0
[{"id": "G0", "claim": "Replace the boolean `rootpw` method on `PreJudgementPolicy` with a more explicit, forward-compatible API such as `authenticate_as() -> AuthenticatingUser` (a hardened enum of InvokingUser/Root), so future options like `targetpw` can be added without changing the shape again.", "category": "desig...
null
trifectatechfoundation__sudo-rs__98
trifectatechfoundation/sudo-rs
98
defect
fe7ff6385491bb8c67eaedf39858f384ef605195
f28f7e675334cbcdab2175218ef262e26335de55
compliance tests: password auth & sudoers' user_list
I ended doing a U turn towards the end of the commit history but I think focusing on the orthogonality of the tests is a change for the better. this is best reviewed commit by commit cc #96 closes #99
diff --git a/test-framework/sudo-compliance-tests/src/nopasswd.rs b/test-framework/sudo-compliance-tests/src/nopasswd.rs index 163edd0cf..587d2db5b 100644 --- a/test-framework/sudo-compliance-tests/src/nopasswd.rs +++ b/test-framework/sudo-compliance-tests/src/nopasswd.rs @@ -4,11 +4,13 @@ use sudo_test::{As, EnvBuilde...
3
1
0
[{"id": "G0", "claim": "EnvBuilder::build has gotten quite gnarly and the sudo-test crate should be refactored in follow-up work (intermediate representation, more builder-like API avoiding None/&[] arguments).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
trifectatechfoundation__zlib-rs__113
trifectatechfoundation/zlib-rs
113
defect
939f52c9bef53c25baf6d792258cca4687937efa
340aa9cba17cfa81e88dc26658a7ca5c414084d0
Fix inflate() flush modes and implement state.data_type
This PR address the following issues: - `state.data_type` is always 0 - https://github.com/memorysafety/zlib-rs/issues/114 - Add logic to advance from `TYPE` state to `TYPE_DO` state
diff --git a/zlib-rs/src/inflate.rs b/zlib-rs/src/inflate.rs index 2e417506..63a77fd4 100644 --- a/zlib-rs/src/inflate.rs +++ b/zlib-rs/src/inflate.rs @@ -1880,6 +1880,11 @@ pub unsafe fn inflate(stream: &mut InflateStream, flush: InflateFlush) -> Return let dest_slice = core::slice::from_raw_parts_mut(stream.next...
3
3
2
[{"id": "G0", "claim": "The chain of ifs computing stream.data_type should be rewritten as a single match, since only one mode applies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added that verify the new data_type behavior a...
null
trifectatechfoundation__zlib-rs__45
trifectatechfoundation/zlib-rs
45
defect
40c5958f05ea3d1af0b713d4d51731258cea4eb0
0f81d2b4c8ac382265b1b7258b1552012d2e95ca
gzip chunked
bunch of fixes/improvements based on a test that only feeds a little bit of gzip input at a time.
diff --git a/fuzz/fuzz_targets/crc32.rs b/fuzz/fuzz_targets/crc32.rs index 4c165f04..5542c436 100644 --- a/fuzz/fuzz_targets/crc32.rs +++ b/fuzz/fuzz_targets/crc32.rs @@ -27,18 +27,19 @@ fuzz_target!(|input: (Vec<u8>, u32)| { } { - let mut dst = [0; 1 << 16]; - let expected = { ...
1
1
0
[{"id": "G0", "claim": "The imports listed in fuzz/fuzz_targets/crc32.rs (DeflateConfig, InflateConfig, Flush, ReturnCode, c_char, c_int, c_uint) are unused and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
triggerdotdev__jsonhero-web__93
triggerdotdev/jsonhero-web
93
defect
278f8790dad0212e3b7d05ba7464d8d5bb306cc2
89f6abdecdbf2d78bc77d7aadba3a84a4234b4ca
Infer XML string from homepage's input box and convert to JSON
https://user-images.githubusercontent.com/8944795/189931018-2d319e9c-91c9-4b99-90ea-d737a4ec6fa7.mov ### **TEST CLOUDFLARE WORKER FOR THIS PR**: https://jsonhero-io-production.kvooak.workers.dev ### **CURRENT STATE** - Users do not have an option to use our tool if their data is in XML format instead of JSON....
diff --git a/app/jsonDoc.server.ts b/app/jsonDoc.server.ts index 0c3d5c55f..aa3c91fb2 100644 --- a/app/jsonDoc.server.ts +++ b/app/jsonDoc.server.ts @@ -1,5 +1,7 @@ import { customRandom } from "nanoid"; import safeFetch from "./utilities/safeFetch"; +import createFromRawXml from "./utilities/xml/createFromRawXml"; +...
2
2
1
[{"id": "G0", "claim": "Restore the session secret to read the Cloudflare-provided `SESSION_SECRET` global instead of the hard-coded string literal 'SESSION_SECRET'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wrangler.toml.dev file is not ne...
null
triggerdotdev__trigger.dev__1432
triggerdotdev/trigger.dev
1,432
defect
7f9091f205dafa2c3ad95cec3dd5f8e7dbc3fbff
653e0b5997502d2611e9ab06f5fdcb7279555d7e
Unflattening array fix for very large arrays
If JSON like this existed: ```json { "akey.with.a.large.number.1234567890123": "foo" ``` When this gets unflattened it creates a massive array. An array should not be created in this situation, it should be a string key. ```json { "akey.with.a.large.number.[0]": "foo" ``` This is what an array item ...
diff --git a/packages/core/src/v3/utils/flattenAttributes.ts b/packages/core/src/v3/utils/flattenAttributes.ts index 71fd691ecb2..6d4d10ab432 100644 --- a/packages/core/src/v3/utils/flattenAttributes.ts +++ b/packages/core/src/v3/utils/flattenAttributes.ts @@ -95,16 +95,26 @@ export function unflattenAttributes( con...
4
1
0
[{"id": "G0", "claim": "Add a comment on the key-splitting code explaining how different types of numeric keys are handled (array indices vs large numeric keys).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Add a numeric bounds check on parsed a...
null
triggerdotdev__trigger.dev__1433
triggerdotdev/trigger.dev
1,433
defect
1c80a74885f68ff935a073ccd3e95859033fbbaf
6915d9e9e7b2fb7de611914ea952eb170300ab5e
Fix: Handle circular references in flattenAttributes function
Closes #<issue> ## ✅ Checklist - [x] I have followed every step in the [contributing guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md) - [x] The PR title follows the convention. - [ ] I ran and tested the code works --- ## Problem -The flattenAttributes function was unable to...
diff --git a/packages/core/src/v3/utils/flattenAttributes.ts b/packages/core/src/v3/utils/flattenAttributes.ts index 71fd691ecb2..5d3bd5c1c9d 100644 --- a/packages/core/src/v3/utils/flattenAttributes.ts +++ b/packages/core/src/v3/utils/flattenAttributes.ts @@ -1,10 +1,12 @@ import { Attributes } from "@opentelemetry/a...
5
2
1
[{"id": "G0", "claim": "User data could contain the exact CIRCULAR_REFERENCE_SENTINEL string and be misinterpreted during unflattening; consider a unique symbol or less common string to minimize the risk of conflicts.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
triggerdotdev__trigger.dev__1522
triggerdotdev/trigger.dev
1,522
defect
f7bf7bc2687e984655436592dd65a154e0c56dc5
c5d67b5e641999d31961e27032fbc4711fe0342a
Multiple streams can now be consumed at the same time
Previously subscribing to a single realtime stream would block other run updates and streams from being consumed, this update fixes it so multiple streams can be consumed at once and they don't block the run updates from being consumed.
diff --git a/.changeset/modern-nails-refuse.md b/.changeset/modern-nails-refuse.md new file mode 100644 index 00000000000..f311a19b0e6 --- /dev/null +++ b/.changeset/modern-nails-refuse.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/core": patch +--- + +Multiple streams can now be consumed simultaneously diff --git a/packages/...
7
1
1
[{"id": "G0", "claim": "In SSEStreamSubscription.subscribe the fetch response is not checked for success (response.ok), so HTTP 4xx/5xx error responses could lead to unexpected behavior.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Errors caught i...
null
triggerdotdev__trigger.dev__1782
triggerdotdev/trigger.dev
1,782
defect
6cf86d59166ae915e0b268ce13b6fdb86896f6f6
5fa361b341c1d5219a8a31e5f4c4dc459f559eb4
Enhance RunTag parsing with robust key-value tag splitting
Here's a filled-out PR description based on the changes: --- ## ✅ Checklist - [x] I have followed every step in the [[contributing guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md)](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md) - [x] The PR title foll...
diff --git a/apps/webapp/app/components/runs/v3/RunTag.tsx b/apps/webapp/app/components/runs/v3/RunTag.tsx index 014bb15fa2f..7e377979d10 100644 --- a/apps/webapp/app/components/runs/v3/RunTag.tsx +++ b/apps/webapp/app/components/runs/v3/RunTag.tsx @@ -34,15 +34,32 @@ export function RunTag({ tag }: { tag: string }) { ...
18
1
0
[{"id": "G0", "claim": "The doc comment on splitTag should clarify how multiple separators lead to either a split or a fallback to the entire string.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The likely-ID detection conditions in splitTag sho...
null
triggerdotdev__trigger.dev__2010
triggerdotdev/trigger.dev
2,010
defect
aacec569d0d49ff4323f046cd178cc3d4a9212e1
5cf6fdf335a3725f141dabb3077b5d288782b27c
formatDateTimeISO() fix
We use the `formatDateTimeISO()` function to format dates in our new date tooltip which lets you copy ISO dates. They need to be in this format: ``` 2025-01-15T06:01:19.000-08:00 2025-04-29T14:01:19.123Z ``` Previously they weren't respecting the timezone correctly and were in the wrong format too. I've ad...
diff --git a/apps/webapp/app/components/primitives/DateTime.tsx b/apps/webapp/app/components/primitives/DateTime.tsx index 11a7ab990e1..d34dcb4dabd 100644 --- a/apps/webapp/app/components/primitives/DateTime.tsx +++ b/apps/webapp/app/components/primitives/DateTime.tsx @@ -98,7 +98,43 @@ export function formatDateTime( ...
3
2
2
[{"id": "G0", "claim": "formatDateTimeISO hardcodes milliseconds to .000 for non-UTC timezones, losing the input date's milliseconds, so the fractional part should be emitted from date.getMilliseconds(); the comment also asks for graceful handling (fall back to UTC) of an invalid timeZone parameter.", "category": "corr...
null