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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wix__Detox__4535 | wix/Detox | 4,535 | defect | c2f31e81bb3562d587aa8226051b858a91ecf084 | 378359d59f9be84514c3f14ae831ea9602e31c9e | Detox butler integration | ## Description
<!--
Thank you for contributing!
Step 1: Before submitting a pull request that introduces a new functionality or fixes a bug,
please open an issue where we could discuss the suggestion, problem - and potential ways to fix.
-->
- This pull request addresses the issue described here: #<?>
<!... | diff --git a/detox/test/android/app/build.gradle b/detox/test/android/app/build.gradle
index 8eba840a8a..260ea18339 100644
--- a/detox/test/android/app/build.gradle
+++ b/detox/test/android/app/build.gradle
@@ -32,7 +32,7 @@ android {
defaultConfig {
applicationId 'com.wix.detox.test'
- minSdkVer... | 4 | 3 | 0 | [{"id": "G0", "claim": "If there is no special reason for it, restore minSdkVersion rootProject.ext.minSdkVersion instead of the hard-coded 26 in the test app's defaultConfig.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Apply the suggested ch... | null |
wix__Detox__4556 | wix/Detox | 4,556 | defect | 32cc7b350941193caea9eb50f9d888a6bc7695c2 | 27be781f9c6b5c83c5f72877eaceae71da5c4809 | feat: Add Get UI Hierarchy action | ## Description
<!--
Thank you for contributing!
Step 1: Before submitting a pull request that introduces a new functionality or fixes a bug,
please open an issue where we could discuss the suggestion, problem - and potential ways to fix.
-->
- This pull request addresses the issue described here: #<?>
<!... | diff --git a/detox/android/detox/src/full/java/com/wix/detox/Detox.java b/detox/android/detox/src/full/java/com/wix/detox/Detox.java
index 93769a11c4..c0c52c64eb 100644
--- a/detox/android/detox/src/full/java/com/wix/detox/Detox.java
+++ b/detox/android/detox/src/full/java/com/wix/detox/Detox.java
@@ -7,6 +7,7 @@
impo... | 11 | 7 | 3 | [{"id": "G0", "claim": "Add documentation for the newly added getViewHierarchyXml method in detox.d.ts.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If DTXTouchVisualizerWindow is accessible here, check `window is DTXTouchVisualizerWindow` inste... | null |
wix__Detox__4758 | wix/Detox | 4,758 | defect | 1ead1eebcfdae16167a6af6aa5b9ebed3f3ecb20 | a704534973c10cf4878d602f227e1fcfcd78ec32 | WIP] Update react native 0.77.2 | While working on my screenshot PR I wanted to also somewhat test the ios build
If found out, that apple just broke react native < 0.77, see:
https://expo.dev/changelog/xcode-16-3-patches
For this reason I tried upgrading the demo/example apps to react native 0.77.2. I did not check everything yet. But so far it se... | diff --git a/.buildkite/jobs/pipeline.android_demo_app_rn_76.yml b/.buildkite/jobs/pipeline.android_demo_app_rn_77.yml
similarity index 92%
rename from .buildkite/jobs/pipeline.android_demo_app_rn_76.yml
rename to .buildkite/jobs/pipeline.android_demo_app_rn_77.yml
index 905d2648ee..65d75223bb 100644
--- a/.buildkite/j... | 6 | 4 | 4 | [{"id": "G0", "claim": "The react native version and the name in .buildkite/jobs/pipeline.android_rn_77_old_arch.yml were forgotten and still say 76 after the file was renamed to 77.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the job file... | null |
wix__Detox__4789 | wix/Detox | 4,789 | defect | 56b807e2f1d8f66904cad1ad60e9638ae68daec8 | f8729943d8907fd8dc1260347518972c18a4f9b0 | Fix handling of ambiguous genymotion recipe matching | ## Description
<!--
Thank you for contributing!
Step 1: Before submitting a pull request that introduces a new functionality or fixes a bug,
please open an issue where we could discuss the suggestion, problem - and potential ways to fix.
-->
- Fixes #4784
<!--
Step 2: Provide an overview of how your fix... | diff --git a/detox/src/devices/allocation/drivers/android/genycloud/GenyRecipeQuerying.js b/detox/src/devices/allocation/drivers/android/genycloud/GenyRecipeQuerying.js
index 6ecd1582bd..9a03ccdd3f 100644
--- a/detox/src/devices/allocation/drivers/android/genycloud/GenyRecipeQuerying.js
+++ b/detox/src/devices/allocati... | 1 | 1 | 0 | [{"id": "G0", "claim": "The JSDoc comment annotating the constructor parameter should be moved one line down from above the class to just above the constructor it documents.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wix__Detox__4868 | wix/Detox | 4,868 | defect | 72de00157b5ac3a1ed238d10fc755e003185853a | 5d623f52c977d0aff826455f5564a4c0d8b6ec36 | Run the tests on latest android emulators | ## Description
<!--
Thank you for contributing!
Step 1: Before submitting a pull request that introduces a new functionality or fixes a bug,
please open an issue where we could discuss the suggestion, problem - and potential ways to fix.
-->
- This pull request addresses the issue described here: #4867
-
... | diff --git a/detox/android/detox/build.gradle b/detox/android/detox/build.gradle
index 0f034c6002..50e4920418 100644
--- a/detox/android/detox/build.gradle
+++ b/detox/android/detox/build.gradle
@@ -123,31 +123,31 @@ dependencies {
// Versions are in-sync with the 'androidx-test-1.4.0' release/tag of the android-t... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use the project's existing Reflect.on() (joor) reflection utility instead of hand-rolled Class.forName/getDeclaredField reflection in clearLooperHandlerCache.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of reve... | null |
wix__react-native-ui-lib__2478 | wix/react-native-ui-lib | 2,478 | defect | 1493474d3d61dededb610b28cc75a3f5eb5a31d4 | afed8e043bfc29166b1f1e8159fae74c20e5b078 | v7_Picker | ## Description
- Picker value now only supports string or number (not objects)
- replace `useNativePicker` support with `useWheelPicker`
- remove `renderNativePicker` support
## Changelog
- Picker value now only supports string or number (not objects)
- replace useNativePicker support with useWheelPicker
- rem... | diff --git a/demo/src/screens/componentScreens/PickerScreen.tsx b/demo/src/screens/componentScreens/PickerScreen.tsx
index db6216c871..bd99b6b877 100644
--- a/demo/src/screens/componentScreens/PickerScreen.tsx
+++ b/demo/src/screens/componentScreens/PickerScreen.tsx
@@ -51,11 +51,11 @@ export default class PickerScreen... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the commented-out 'Omit<TextFieldProps, ...>' fragment from the PickerBaseProps type instead of leaving it inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__2663 | wix/react-native-ui-lib | 2,663 | defect | e7541328558a3ffdf859ed10d795acc5224ce77c | 151682035b46ffc417ab1439b99fd73fed19c917 | feat/enhance text highlight string | ## Description
extended the `Text` component `highlightString` prop, to allow it to also receive a `HighlightStringProps` object (or an array of such objects) that enables the user to handle a highlight string `onPress` event, provide a `style` per highlight string and give it a `testID` for testing.
If a the `styl... | diff --git a/demo/src/screens/componentScreens/TextScreen.tsx b/demo/src/screens/componentScreens/TextScreen.tsx
index c82e7398c5..cccdd92ca6 100644
--- a/demo/src/screens/componentScreens/TextScreen.tsx
+++ b/demo/src/screens/componentScreens/TextScreen.tsx
@@ -1,5 +1,5 @@
import React, {Component} from 'react';
-imp... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new JSDoc for `highlightString` has a typo: 'Can be a simple string of a HighlightStringProps object' should read 'or a HighlightStringProps object'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The component tests ad... | null |
wix__react-native-ui-lib__2672 | wix/react-native-ui-lib | 2,672 | defect | 4b9f11b6fccf6efcd3db031f1158002cb930c6a5 | 9bc8b6ee0674afa14505018cd2f7ec3745fe65d6 | Checkbox - add validation state invoked by validate() | ## Description
Checkbox - add validation state invoked by validate() - see example in screen
## Changelog
Checkbox - add validation state invoked by validate()
## Additional info
#3662
| diff --git a/demo/src/screens/componentScreens/CheckboxScreen.tsx b/demo/src/screens/componentScreens/CheckboxScreen.tsx
index b07a9891a8..9c260ac62f 100644
--- a/demo/src/screens/componentScreens/CheckboxScreen.tsx
+++ b/demo/src/screens/componentScreens/CheckboxScreen.tsx
@@ -1,6 +1,6 @@
import React, {Component} fr... | 6 | 3 | 1 | [{"id": "G0", "claim": "The validation state uses the wrong color tokens: the border should use `$outlineDanger` and the label `$textDangerLight`, not the single `$textDanger` the code applies.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `val... | null |
wix__react-native-ui-lib__2713 | wix/react-native-ui-lib | 2,713 | defect | 559f9d76b5c11e5c79b4876dabce41cb77e8ac13 | c491cc8d70727906011ee264b121313c5cb2584e | testkit new useScrollabe driver, new Carousel driver for testings | ## Description
`useScrollable` - a new driver to the testKit to support testing lists and lists-based components.
## Changelog
`useScrollable` - a new driver to the testKit to support testing lists and lists-based components.
## Additional info
| diff --git a/src/components/carousel/Carousel.driver.new.ts b/src/components/carousel/Carousel.driver.new.ts
new file mode 100644
index 0000000000..f91dce8bba
--- /dev/null
+++ b/src/components/carousel/Carousel.driver.new.ts
@@ -0,0 +1,16 @@
+import {CarouselProps} from './types';
+import {useComponentDriver, Componen... | 3 | 3 | 1 | [{"id": "G0", "claim": "The ScrollProps type should live in the shared scrollable driver rather than locally in Carousel.driver.new.ts, since most usages will need it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked why 'y: 0' is needed... | null |
wix__react-native-ui-lib__2890 | wix/react-native-ui-lib | 2,890 | defect | b193b801ef97c763c594ccc1f080b35962a25b4b | 21fc2831ddc8eba389fcd395cc0100a057ec6861 | TextField - create new driver and refactor tests to it | ## Description
TextField - create new driver and refactor tests to it
## Changelog
TextField - create new driver and refactor tests to it
## Additional info
None | diff --git a/src/components/text/Text.driver.new.ts b/src/components/text/Text.driver.new.ts
index e8da152f1d..8605142eef 100644
--- a/src/components/text/Text.driver.new.ts
+++ b/src/components/text/Text.driver.new.ts
@@ -5,7 +5,7 @@ import {usePressableDriver} from '../../testkit/new/usePressable.driver';
export con... | 5 | 2 | 0 | [{"id": "G0", "claim": "The new Text driver's getText should be typed to return a string rather than React.ReactNode | undefined.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new TextField driver should import the TextFieldProps typings from the Te... | null |
wix__react-native-ui-lib__2891 | wix/react-native-ui-lib | 2,891 | defect | f9a039874d3a7a6d3d7f84b7df13782dd5f4d3f3 | 8d76add196514112528ef70298c647d5c80da28f | Switch - refactor driver to use new implementation | ## Description
Switch - refactor driver to use new implementation
## Changelog
Switch - refactor driver to use new implementation
## Additional info
| diff --git a/src/components/switch/__tests__/index.spec.tsx b/src/components/switch/__tests__/index.spec.tsx
index 6c0616de02..095bb84f5a 100644
--- a/src/components/switch/__tests__/index.spec.tsx
+++ b/src/components/switch/__tests__/index.spec.tsx
@@ -1,115 +1,97 @@
import React from 'react';
+import {render} from ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover console.log debug statement from the new SwitchDriver in src/components/switch/switch.driver.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__2894 | wix/react-native-ui-lib | 2,894 | defect | 88b06e74d7b29a95d9ae6949e4eea14cfa52060e | fef3fa0067afe690b615239b05faa12775622dbc | new button driver, image driver, testing | ## Description
Button - create new driver and refactor tests to it
## Changelog
Button - create new driver and refactor tests to it
## Additional info
| diff --git a/src/components/button/Button.new.driver.ts b/src/components/button/Button.new.driver.ts
new file mode 100644
index 0000000000..daaccf14b6
--- /dev/null
+++ b/src/components/button/Button.new.driver.ts
@@ -0,0 +1,33 @@
+import {ButtonProps} from './ButtonTypes';
+import {useComponentDriver, ComponentProps} ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The button driver should expose sub-drivers through getLabel/getIcon-style accessors per the established driver convention, instead of spreading drivers and adding isLabelExist/getIconElement/isIconExist helpers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
wix__react-native-ui-lib__2901 | wix/react-native-ui-lib | 2,901 | defect | 090e2365daca8ec0e8760c01440ed9b152b27f1f | 9c6eb5ea5e65cc45a1167239cfc2f3c63bbd6f0e | Toast testkit driver | ## Description
Toast testkit driver
## Changelog
None
## Additional info
None
| diff --git a/src/incubator/toast/Toast.driver.new.ts b/src/incubator/toast/Toast.driver.new.ts
new file mode 100644
index 0000000000..5bef71605d
--- /dev/null
+++ b/src/incubator/toast/Toast.driver.new.ts
@@ -0,0 +1,18 @@
+import {ToastProps} from '../index';
+import {useComponentDriver, ComponentProps} from '../../tes... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'Should dismiss after time' test should use Jest fake timers instead of a real setTimeout wait, if that works.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__2902 | wix/react-native-ui-lib | 2,902 | defect | 090e2365daca8ec0e8760c01440ed9b152b27f1f | f6dbf82208e9874226d8f957ad5137483ec9886c | Automation gap - WOAUILIB-3704 | ## Description
Added automation gap for text alignment on rtl.
## Changelog
N/A
## Additional info
WOAUILIB-3704
| diff --git a/src/components/text/__tests__/index.driver.spec.tsx b/src/components/text/__tests__/index.driver.spec.tsx
index 0d63a47a2e..eb9c9d98e4 100644
--- a/src/components/text/__tests__/index.driver.spec.tsx
+++ b/src/components/text/__tests__/index.driver.spec.tsx
@@ -3,6 +3,7 @@ import {render} from '@testing-li... | 4 | 3 | 0 | [{"id": "G0", "claim": "Instead of mocking react-native, it might be simpler to override/mock the library's own Constants.isRTL value in the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a getDriver helper to factor out the repeated r... | null |
wix__react-native-ui-lib__2903 | wix/react-native-ui-lib | 2,903 | defect | 068b4d00174bbc13f1ef33dfcb811d9ab7dee369 | 9daa05db36fc537b51d7a1d8c0eb40c96510a09e | WheelPicker - add driver | ## Description
WheelPicker - add driver
## Changelog
WheelPicker - add driver
SectionsWheelPicker - add driver
## Additional info
| diff --git a/src/components/WheelPicker/WheelPicker.driver.tsx b/src/components/WheelPicker/WheelPicker.driver.tsx
new file mode 100644
index 0000000000..1cf127c0c7
--- /dev/null
+++ b/src/components/WheelPicker/WheelPicker.driver.tsx
@@ -0,0 +1,38 @@
+import {FlatListProps} from 'react-native';
+import {WheelPickerPro... | 4 | 4 | 0 | [{"id": "G0", "claim": "Add a TODO comment marking the commented-out tests as needing to be fixed using AnimatedStyle mocking.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G3", "claim": "Remove the commented-out '// initialValue: selectedDays' placeholder li... | null |
wix__react-native-ui-lib__2905 | wix/react-native-ui-lib | 2,905 | defect | 068b4d00174bbc13f1ef33dfcb811d9ab7dee369 | 0ff1d02e1fa936928a61e4d427d7ebd7ac9b9193 | Picker - add driver (initial) | ## Description
Picker - add driver (initial)
*It includes some changes to other drivers (mostly relevant to this change).
**It is only partially working and some is work in progress (see TODOs and skip)
## Changelog
None
## Additional info
None
| diff --git a/src/components/modal/Modal.driver.new.ts b/src/components/modal/Modal.driver.new.ts
index 65f26a2676..ead5ce5c1d 100644
--- a/src/components/modal/Modal.driver.new.ts
+++ b/src/components/modal/Modal.driver.new.ts
@@ -1,12 +1,12 @@
import {ModalProps} from './index';
import {useComponentDriver, Component... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commented-out line '// const driver = useComponentDriver<PickerProps>(props);' was left in the new Picker.driver.new.ts and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__2916 | wix/react-native-ui-lib | 2,916 | defect | 383cec2321998b4ab5f6b36175b9297bd293b650 | ec719260ee1faf5baab3cff6d2808a7b46f84f24 | setitem height, number of visible rows as defaults | ## Description
WheelPicker driver set default values
## Changelog
WheelPicker driver set default values
## Additional info
| diff --git a/src/components/WheelPicker/WheelPicker.driver.tsx b/src/components/WheelPicker/WheelPicker.driver.tsx
index 1cf127c0c7..5d74e22905 100644
--- a/src/components/WheelPicker/WheelPicker.driver.tsx
+++ b/src/components/WheelPicker/WheelPicker.driver.tsx
@@ -1,5 +1,5 @@
import {FlatListProps} from 'react-nativ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The default value given to numberOfRows is not the number of visible rows, it should be the number of rows, i.e. props.items.length.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests should exercise the defaults instea... | null |
wix__react-native-ui-lib__2917 | wix/react-native-ui-lib | 2,917 | defect | 25432ec3b9e74f5b6e1e4385b3d98e713822005a | c41305480dc510050376f892341356d35cfee2e9 | ExpandableOverlay testkit driver | ## Description
Testkit driver for the ExpandableOverlay.
## Changelog
None
## Additional info
None
| diff --git a/src/incubator/expandableOverlay/ExpandableOverlay.driver.ts b/src/incubator/expandableOverlay/ExpandableOverlay.driver.ts
new file mode 100644
index 0000000000..36ab519e37
--- /dev/null
+++ b/src/incubator/expandableOverlay/ExpandableOverlay.driver.ts
@@ -0,0 +1,26 @@
+import {DialogDriver, ModalDriver, us... | 6 | 6 | 2 | [{"id": "G0", "claim": "The test asserting the Modal exists while the Overlay does not feels implementation-based; it should test for visibility instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OverlayDriverType conditional type keyed on the ... | null |
wix__react-native-ui-lib__2974 | wix/react-native-ui-lib | 2,974 | defect | e94e56e8b1e2a9aada1cda64e8178c0c6ece8f45 | a864fe48decbb0ed351cd9907381d4d2721d337c | FloatingButton - add 'fullWidth' prop | ## Description
FloatingButton - add 'fullWidth' prop
## Changelog
FloatingButton - add 'fullWidth' prop
## Additional info
ticket 4057
| diff --git a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
index 87482545a8..573da8dc28 100644
--- a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
+++ b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
@@ -13,7 +13,8 @@ exp... | 3 | 2 | 1 | [{"id": "G0", "claim": "The note 'Relevant to a vertical layout with secondary button' is wrong: the fullWidth prop is relevant to vertical layout only, not specifically with a secondary button.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Apply... | null |
wix__react-native-ui-lib__3153 | wix/react-native-ui-lib | 3,153 | defect | 4232371e0b2fcb36ff3b798ecec5b79544dfbe77 | 72c421dce84349b20c39acee28c775097d60b5c6 | SortableList - Pass from and to indexes of changed item | ## Description
Adding option for onChange to send the indexes the item moved from and to.
## Changelog
SortableList - onOrderChange now sends the old and new index of the changed item.
## Additional info
MADS-4312
| diff --git a/src/components/sortableList/SortableList.api.json b/src/components/sortableList/SortableList.api.json
index 8e213d1f03..3d6e05f917 100644
--- a/src/components/sortableList/SortableList.api.json
+++ b/src/components/sortableList/SortableList.api.json
@@ -16,8 +16,8 @@
},
{
"name": "onOrderC... | 2 | 1 | 0 | [{"id": "G0", "claim": "The onOrderChange callback should wrap the from and to indexes in an object instead of passing them as separate arguments, to keep the argument list small if more info has to be passed in the future.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
wix__react-native-ui-lib__3162 | wix/react-native-ui-lib | 3,162 | defect | 243d328231b405bce394e64bc0be878441d6599e | 6fe37c8bcd9ed3f20114bd85826cba90b70b5298 | Picker - fix usePickerLabel | ## Description
Picker - usePickerLabel - fix picker label is empty if the 'value' prop is a string and no 'items' passed.
usacase: `<Picker value={'Picker Value'}/>`
## Changelog
⚠️ Picker - usePickerLabel - fix picker label is empty if the 'value' prop is a string and no 'items' passed.
## Additional info
... | diff --git a/demo/src/screens/componentScreens/PickerScreen.tsx b/demo/src/screens/componentScreens/PickerScreen.tsx
index 24aebfe70b..7b0c03172f 100644
--- a/demo/src/screens/componentScreens/PickerScreen.tsx
+++ b/demo/src/screens/componentScreens/PickerScreen.tsx
@@ -82,6 +82,7 @@ const dialogOptions = [
{label: ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Test coverage should be added for the usePickerLabel case fixed by this pull request.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__3171 | wix/react-native-ui-lib | 3,171 | defect | 3f964a277adda4cbee679c427fcb05bd8327ac31 | 49f6c70b829611fca81be15483a21b8700db41de | SortableGridList - Order items by index | ## Description
Added option for SortableGridList to reorder the items by their index (instead of by replacing locations).
## Changelog
SortableGridList - New prop orderByIndex. adds support for reordering by index.
## Additional info
MADS-4277
| diff --git a/demo/src/screens/componentScreens/SortableGridListScreen.tsx b/demo/src/screens/componentScreens/SortableGridListScreen.tsx
index c68f51d42f..fbbdec1075 100644
--- a/demo/src/screens/componentScreens/SortableGridListScreen.tsx
+++ b/demo/src/screens/componentScreens/SortableGridListScreen.tsx
@@ -10,20 +10... | 7 | 5 | 0 | [{"id": "G0", "claim": "Using the existing `renderBooleanOption` helper in the demo screen could save some code instead of the hand-rolled Switch row.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test helper component should be named `Test... | null |
wix__react-native-ui-lib__3227 | wix/react-native-ui-lib | 3,227 | defect | 4b6d8f311239a5cc5e68dc06f3a0593c1c0b64d7 | 5a0617d0f4e79720423f9b9a11ef0ab6c134ca89 | DateTimePicker - invoke value change only on real change | ## Description
Added handling to invoke onChange only when the value really change.
## Changelog
DateTimePicker - onChange fixes. Only calls onChange when value really changes.
## Additional info
MADS-4209
MADS-4210
MADS-4211
| diff --git a/src/components/dateTimePicker/__tests__/index.spec.tsx b/src/components/dateTimePicker/__tests__/index.spec.tsx
new file mode 100644
index 0000000000..09a8f9ee36
--- /dev/null
+++ b/src/components/dateTimePicker/__tests__/index.spec.tsx
@@ -0,0 +1,51 @@
+import React from 'react';
+import {fireEvent, rende... | 7 | 6 | 0 | [{"id": "G0", "claim": "The time and date comparison logic should be moved to a public util.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test date variable names should be clearer, e.g. sameTime/sameDate, nextDay, nextHour.", "category": "maintain... | null |
wix__react-native-ui-lib__3672 | wix/react-native-ui-lib | 3,672 | defect | 5b876ed6163d07f5fd60c29095ad8a9834f59bd2 | d777e08c46cbad1de3c30f03a85455bb5917c133 | Checkbox - validate to return validity | ## Description
Fixed `CheckBox` validate function to return validity.
## Changelog
Checkbox - Fixed validate function not returning validity
## Additional info
Action item of MADS-4643 | diff --git a/src/components/checkbox/__tests__/index.spec.tsx b/src/components/checkbox/__tests__/index.spec.tsx
index 411e137771..d0dc27e92e 100644
--- a/src/components/checkbox/__tests__/index.spec.tsx
+++ b/src/components/checkbox/__tests__/index.spec.tsx
@@ -158,6 +158,19 @@ describe('Checkbox renderer test', () =>... | 1 | 1 | 0 | [{"id": "G0", "claim": "The validate function would read better if `const isValid = !error;` were introduced above and used in the setState and return lines instead of repeating `!error` — a suggestion the reviewer explicitly leaves to the author's discretion.", "category": "maintainability", "verdict": "supported", "p... | null |
wix__react-native-ui-lib__3737 | wix/react-native-ui-lib | 3,737 | defect | 8669cedde24dc0f26d3b5ed2a71b3bd114b782f4 | 67c7fb89596b5af58df298abdb6aa46c0aec79dd | Picker - migrate prop deprecation end | ## Description
Picker - `migrate, getItemLabel, getItemLabel` prop deprecation end, remove the `migrate, getItemLabel, getItemLabel` prop from component usage.
Based on #3718
## Changelog
Picker - `migrate, getItemLabel, getItemLabel` prop deprecation end.
## Additional info
MADS-4195
| diff --git a/src/components/picker/PickerItem.tsx b/src/components/picker/PickerItem.tsx
index 2b4405258d..2982362beb 100644
--- a/src/components/picker/PickerItem.tsx
+++ b/src/components/picker/PickerItem.tsx
@@ -11,7 +11,7 @@ import Image from '../image';
import Text from '../text';
import {getItemLabel, isItemSel... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks to remove the redundant `itemValue` variable (a plain alias of `value`) that the pull request added to PickerItem.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should document the `mig... | null |
wix__react-native-ui-lib__3795 | wix/react-native-ui-lib | 3,795 | defect | 8ffd3cd167721d49fbb250e6e4aed380fcb75292 | 55c819f831f26148472280c857ffc1287b4d9a2e | Incubator.Gradient - new component | ## Description
Incubator.Gradient - new component
Ideally this would be using something other than `react-native-linear-gradient`, however I did not manage to get all the features to work consistently.
## Changelog
Incubator.Gradient - new component
## Additional info
None
| diff --git a/demo/src/index.js b/demo/src/index.js
index bc0c42b433..95788454be 100644
--- a/demo/src/index.js
+++ b/demo/src/index.js
@@ -263,6 +263,9 @@ module.exports = {
get IncubatorCalendarScreen() {
return require('./screens/incubatorScreens/IncubatorCalendarScreen').default;
},
+ get... | 6 | 2 | 2 | [{"id": "G0", "claim": "The commented-out `// type GradientType = 'rectangle' | 'circle' | 'border';` line in types.ts should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CommonGradientProps should also expose the `start`/`end` pro... | null |
wix__react-native-ui-lib__3815 | wix/react-native-ui-lib | 3,815 | defect | b5ce91d37763a6d63c1a4894dfc8b5a67fc8561b | adcb4f61da922f11e6efc9edb68fff7e24aae6e0 | Text - fix text default alignment | ## Description
Text - fix text default alignment
This fixes Android alignment with nested text
This fixes iOS default alignment
This **breaks** iOS alignment with nested text
Workaround: the user will have to pass the `textAlign` to the nested text
Code example:
```
<View bg-grey80 flex padding-20>
<Text>D... | diff --git a/demo/src/screens/__tests__/__snapshots__/AvatarScreen.spec.js.snap b/demo/src/screens/__tests__/__snapshots__/AvatarScreen.spec.js.snap
index b416eb5cff..e8c61d0706 100644
--- a/demo/src/screens/__tests__/__snapshots__/AvatarScreen.spec.js.snap
+++ b/demo/src/screens/__tests__/__snapshots__/AvatarScreen.sp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new migration note in docs/getting-started/v8.md about nested Text and textAlign should mention that the behaviour only applies on iOS.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wix__react-native-ui-lib__3862 | wix/react-native-ui-lib | 3,862 | defect | 08ed21638515fbaa9b215665d82d69bf887f3f93 | 2bbc7504337910b779fd7f08919ec0e23b6c397b | Add support for rendering FloatingButton secondary button standalone | ## Description
Adds support for rendering FloatingButton component with only the secondary button. When `secondaryButton` is provided without `button` prop, the component renders the secondary button with horizontal layout styling and outline stroke.
**Logic Changes:**
- Secondary-only mode automatically uses hori... | diff --git a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
index 573da8dc28..654c25e945 100644
--- a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
+++ b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
@@ -7,6 +7,7 @@ inter... | 9 | 7 | 0 | [{"id": "G0", "claim": "The demo screen should show a 'Show Primary Button' toggle directly above the 'Show Secondary Button' toggle instead of the single 'Render Only Secondary' option added by the PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Chan... | null |
wix__react-native-ui-lib__3948 | wix/react-native-ui-lib | 3,948 | defect | e77eb956394d23eed55c08cbd974270f67772d24 | d6d1d8aabff14a4d88f8c2c2e1da698fce9d56b0 | Migrate FloatingButton to use new ScreenFooter component internally | ## Description
- Rewrote FloatingButton component to a function component that renders ScreenFooter internally, while keeping the same external API and visual behavior.
- All existing props work as before, mapped to their ScreenFooter equivalents.
- Added hoisted prop (default: true) that gives FloatingButton buil... | diff --git a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
index 528f79be53..2d3d51b0c5 100644
--- a/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
+++ b/demo/src/screens/componentScreens/FloatingButtonScreen.tsx
@@ -1,6 +1,7 @@
impo... | 7 | 6 | 4 | [{"id": "G0", "claim": "When the footer is used indirectly via FloatingButton the app may lack a SafeAreaProvider, and the ask is to add a LogService warning telling users to wrap their app with one.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Af... | null |
wjakob__nanobind__1012 | wjakob/nanobind | 1,012 | defect | 54db85c1b31c577a9ea2bd9fedecd659fbd38e5d | 606356e55bea93f2625bffb05fadb4df912eefee | Support easier construction of nb::typed forms | Currently, if you have a function where you want to specify the types manually, you have to write it sort of like this:
```c++
T someFunction();
m.def("f", []() -> nb::typed<nb::object, T> {
return nb::borrow<nb::typed<nb::object, T>>(nb::cast(someFunction()));
});
```
This example is obviously contriv... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index afb329176..0083898ca 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -54,6 +54,10 @@ Version TBD (unreleased)
with unsorted indices. (PR `#981
<https://github.com/wjakob/nanobind/pull/981>`__).
+- Functions that return ``nb::typed<nb::object... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changelog entry should be reworded to say that ``nb::typed<T, ...>`` now supports construction from ``T``, making it more ergonomic to return values with type annotations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wjakob__nanobind__1175 | wjakob/nanobind | 1,175 | defect | db637dadcbff8c35bfe41983b889d81c308d7116 | e65c393e110b11a2e7577df271c058c864f162e6 | Add support to ndarray for DLPack version 1 | This PR adds support for DLPack version 1 and adds the ndarray framework `nb::arrayapi`, which returns an object that provides the buffer interface and has the two DLPack methods `__dlpack__()` and `__dlpack_device__()`.
Given the following:
```
using array_t = nb::ndarray<float, nb::ndim<1>, nb::c_contig>;
us... | diff --git a/include/nanobind/nb_lib.h b/include/nanobind/nb_lib.h
index f618befe3..1a7f5230d 100644
--- a/include/nanobind/nb_lib.h
+++ b/include/nanobind/nb_lib.h
@@ -277,7 +277,7 @@ NB_CORE PyObject *capsule_new(const void *ptr, const char *name,
struct func_data_prelim_base;
/// Create a Python function object ... | 12 | 10 | 0 | [{"id": "G0", "claim": "The framework name strings deserve another look before merge - e.g. changing no_framework's \"ndarray\" to \"capsule\" and arrayapi's \"object\" to \"ndarray\", or finding other better names.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "... | null |
wjakob__nanobind__1184 | wjakob/nanobind | 1,184 | defect | d442daad5e3fb0ff14e9f52929cdd5c642934f69 | c46d604dcf0f8aaa8d12b7e8cf5992b9d424f896 | Improve performance of casting enums from python | I measure performance as follows:
| test | old | new | ratio |
| ----------------------- | ------- | ------- | ------- |
| t.from_enum(t.Flag.B) | 120 ns | 80 ns | 1.50 |
using Python 3.14 and
```
python -m timeit -n 10000000 -r 10 -s "import test_enum_ext as t" "t.from_e... | diff --git a/include/nanobind/nb_defs.h b/include/nanobind/nb_defs.h
index 5dc1361bb..8efa23d5a 100644
--- a/include/nanobind/nb_defs.h
+++ b/include/nanobind/nb_defs.h
@@ -28,6 +28,7 @@
# define NB_INLINE __forceinline
# define NB_NOINLINE __declspec(noinline)
# define NB_INLINE_LAMBDA
+# define... | 11 | 8 | 1 | [{"id": "G0", "claim": "Calling Python C-API such as internals_cleanup from the Py_AtExit routine may be undefined behavior because Python is dead at that point, and the pull request's interned strings must be kept referenced and cleaned up somewhere so they do not leak.", "category": "correctness", "verdict": "support... | null |
wjakob__nanobind__1299 | wjakob/nanobind | 1,299 | defect | 7d13bfc2581b9a34be2f3ab32c035fd182ffe407 | b9b4a97b3d13efb72ccab063757f78b528c59531 | Fix capsule and ndarray crash when data pointer is nullptr | Fixes #1298
`PyCapsule_New` rejects nullptr, causing `capsule_new()` to abort. This makes it impossible to return size-0 ndarrays using the standard capsule ownership pattern.
## Approach
Introduce `detail::placeholder_ptr()` - a static non-null address substituted for nullptr in both `capsule_new()` and `ndar... | diff --git a/include/nanobind/nb_lib.h b/include/nanobind/nb_lib.h
index fc3e6d39e..536549267 100644
--- a/include/nanobind/nb_lib.h
+++ b/include/nanobind/nb_lib.h
@@ -280,6 +280,9 @@ NB_CORE PyObject **seq_get(PyObject *seq, size_t *size,
// ========================================================================
... | 4 | 4 | 2 | [{"id": "G0", "claim": "nb::capsule should stay a plain wrapper for a Python capsule without changed functionality; since Python does not allow nullptr, nb::capsule need not allow it (no placeholder substitution).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
wjakob__nanobind__1320 | wjakob/nanobind | 1,320 | defect | cf6629012e24ec9b6e431e85b03b43cfab1a3751 | 2dee06279528f5d4fef8ae6452c19b49d5dbd942 | Add support for Eigen's Tensor module | This PR adds support for the types in Eigen's "unsupported" Tensor module, from the header `<unsupported/Eigen/CXX11/Tensor>` (we keep `CXX11/` in the include to support Eigen3).
## To-do list
- [x] Plain `Eigen::Tensor` types
- [x] `Eigen::TensorMap<T>`
- [x] `Eigen::TensorRef<T>`
- [x] Tests
- [x] Add/mul... | diff --git a/cmake/nanobind-config.cmake b/cmake/nanobind-config.cmake
index 84298c82e..e59ec89ce 100644
--- a/cmake/nanobind-config.cmake
+++ b/cmake/nanobind-config.cmake
@@ -192,6 +192,7 @@ function (nanobind_build_library TARGET_NAME)
${NB_DIR}/include/nanobind/stl/vector.h
${NB_DIR}/include/nanobind/eige... | 9 | 9 | 1 | [{"id": "G0", "claim": "The member_ro_copy property should not need an explicit rv_policy::automatic: since the getter returns by value, the default reference_internal policy is invalid and produced uninitialized memory, so the caster should infer the policy from the value type like the rest of nanobind (the test line ... | null |
wjakob__nanobind__138 | wjakob/nanobind | 138 | defect | 1ffbfe836c9dac599496a170274ee0075094a607 | b5e9444e6c3efa1f2358270bdf4b3c7a45010d03 | Add filesystem support | Summary:
* Add type caster for `std::filesystem::path` ~~or `std::experimental::filesystem::path`~~ to `pathlib.Path` based on [pybind11's counterpart](https://github.com/pybind/pybind11/blob/master/include/pybind11/stl/filesystem.h).
* Add unit test and update doc. | diff --git a/cmake/nanobind-config.cmake b/cmake/nanobind-config.cmake
index ed4368576..b11fe5bd3 100644
--- a/cmake/nanobind-config.cmake
+++ b/cmake/nanobind-config.cmake
@@ -97,6 +97,7 @@ function (nanobind_build_library TARGET_NAME)
${NB_DIR}/include/nanobind/stl/detail/nb_list.h
${NB_DIR}/include/nanobin... | 9 | 8 | 3 | [{"id": "G0", "claim": "The type-caster table in docs/exchanging.rst lists ``std::filesystem``, which is a namespace; it should list the supported type(s) instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since full C++17 support is a requir... | null |
wjakob__nanobind__215 | wjakob/nanobind | 215 | defect | 936bfa54acab0d8ad06682d45758402121f8eacf | 2ccba0b6542b3010586a8ff3faf9b5ba201453c4 | Eigen type caster improvements | - new: `is_ndarray_scalar_v`, used to limit `type_caster<Eigen>` to those scalars that it can actually handle. This gives users the chance to add their own specializations for other scalars.
- de-bug: correct handling of Eigen/ndarray strides
- enhanced: fully support Eigen's dynamic strides; request contiguous memor... | diff --git a/include/nanobind/eigen/dense.h b/include/nanobind/eigen/dense.h
index 412ad4f76..8ae105e45 100644
--- a/include/nanobind/eigen/dense.h
+++ b/include/nanobind/eigen/dense.h
@@ -28,6 +28,28 @@ NAMESPACE_BEGIN(detail)
template <typename T>
constexpr int NumDimensions = bool(T::IsVectorAtCompileTime) ? 1 : 2... | 10 | 10 | 5 | [{"id": "G0", "claim": "The newly added StrideExtr structs in dense.h put their opening braces on their own line, whereas nanobind style puts opening braces on the same line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The top-level constexpr... | null |
wjakob__nanobind__386 | wjakob/nanobind | 386 | defect | 90dfbaf4c8c410d819cb9be44a3455898c8c2638 | b46c92bf38c1fc6c0024fb915e320b7623b93c03 | Avoid a crash in nb::try_cast<T>(nb::none()) | Previously it could raise an exception from the `type_caster`'s conversion operator, which would then crash the program due to `try_cast` being `noexcept`. | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 719fdb8bd..3a173bf63 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -18,7 +18,12 @@ below inherit that of the preceding release.
Version 1.9.0 (TBA)
-------------------
-* Nothing yet
+* :cpp:func:`nb::try_cast() <try_cast>` no longer crashes t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new catch in try_cast should catch a specific exception type (suggested nb::next_overload) instead of catch (...).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wjakob__nanobind__469 | wjakob/nanobind | 469 | defect | e80edb194fd94dab002bfdc6bea896355abe2521 | 2f68e1e8c78ca3712bc5180b55d624849cd685b0 | Properly handle non-interned keyword argument names | Fixes #468.
Size impact on my laptop: nb_func.cpp.o grows by 368 bytes (text size 22565 before, 22933 after).
Performance impact based on some timeit microbenchmarks (run twice in each configuration):
* `test_functions_ext.test_02(3, 5)` goes from 32.4/32.3 ns to 32.0/31.8 ns
* `test_functions_ext.test_02(down=... | diff --git a/include/nanobind/nb_cast.h b/include/nanobind/nb_cast.h
index d592bd08c..fe532ba09 100644
--- a/include/nanobind/nb_cast.h
+++ b/include/nanobind/nb_cast.h
@@ -42,7 +42,11 @@ enum cast_flags : uint8_t {
none_disallowed = (1 << 2),
// Indicates that this cast is performed by nb::cast or nb::try_... | 4 | 3 | 0 | [{"id": "G0", "claim": "Duplicating the double loop over parameters to handle non-interned keywords makes the already complicated nb_func_vectorcall_complex too complex; the author should explore simpler alternatives (comparing contents with PyUnicode_Compare, or interning the keyword argument names upfront) and benchm... | null |
wjakob__nanobind__471 | wjakob/nanobind | 471 | defect | e80edb194fd94dab002bfdc6bea896355abe2521 | 5f632d6f4fd4490647c40d65b865dbe7c7d264f7 | Cast member pointer arguments of class_<T>::def() to member-of-T | Fixes #470; see that issue for a more detailed explanation of the problem. This ports over pybind's solution with some C++ modernization. | diff --git a/include/nanobind/nb_class.h b/include/nanobind/nb_class.h
index 68b9c516a..eee8e2a67 100644
--- a/include/nanobind/nb_class.h
+++ b/include/nanobind/nb_class.h
@@ -262,6 +262,37 @@ struct is_copy_constructible : std::is_copy_constructible<T> { };
template <typename T>
constexpr bool is_copy_constructible... | 3 | 3 | 1 | [{"id": "G0", "claim": "The return type `decltype(std::forward<F>(f))` of the new with_self forwarding overload may not be the right thing, since the desired behaviour is to move when F is an rvalue reference and copy otherwise.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced... | null |
wjakob__nanobind__473 | wjakob/nanobind | 473 | defect | e80edb194fd94dab002bfdc6bea896355abe2521 | 3298f8adadd246d2cb78d90531837202dda151ea | Support customizing __new__ | This was sort of already possible, but quite cumbersome, because:
* One needed to combine `.def_static("__new__", ...)` and `.def("__init__", ...)` with the same signature, and add a passthrough lambda for `__new__` that would discard the Python type object argument.
* Unpickling would break, since the custom `__new_... | diff --git a/docs/api_core.rst b/docs/api_core.rst
index c1fe8384e..9be0ac8c8 100644
--- a/docs/api_core.rst
+++ b/docs/api_core.rst
@@ -1989,6 +1989,13 @@ Class binding
This constructor generates more compact code than a separate call to
:cpp:func:`implicitly_convertible`, but is otherwise equivalent.
... | 10 | 8 | 1 | [{"id": "G0", "claim": "The wording \"duck down a layer\" sounds odd (it invites confusion with duck typing) and should be rephrased, e.g. \"go down one level\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The phrase \"such as because\" should ... | null |
wjakob__nanobind__491 | wjakob/nanobind | 491 | defect | bcd936089989f11a0f76f28face7d8ca780ef137 | edd115473e1affa184fb5b5b00577e6ff5563cae | Separate const of ndarray from const of its data. | My understanding is that the following should succeed because `a` references a writable array, and it does not matter that `a` itself is const qualified. I have immutable metadata, but the data of the actual array is mutable.
```
m.def("write_should_succeed",
[](const nb::ndarray<>& a) {
... | diff --git a/docs/api_extra.rst b/docs/api_extra.rst
index 977dde684..e2c8c53ea 100644
--- a/docs/api_extra.rst
+++ b/docs/api_extra.rst
@@ -549,6 +549,12 @@ section <ndarrays>`.
.. cpp:class:: template <typename... Args> ndarray
+ .. cpp:var:: is_ro
+
+ A constant static boolean that is true if the array's... | 4 | 3 | 1 | [{"id": "G0", "claim": "The tests' static_assert(a.is_ro); does not compile with the macOS C++ compiler, and the author asks whether a mac-specific idiom should be used or whether the check should instead be &&-ed into the runtime return value.", "category": "correctness", "verdict": "supported", "priority": "P0", "sco... | null |
wjakob__nanobind__5 | wjakob/nanobind | 5 | defect | 9e786e56dac2dda160513a54453d5840c80d68cd | fd74dc2595b20ab98be8c8522bf3788bde36933a | Apply clang-tidy fixes | Applies various clang-tidy fixes that either follows best practices (ie. initializes pointers to nullptr) or uses modern C++ constructs (like using member initializers that can, reduce the amount of code, increase readability and make some constructors trivial. This also initializes some trivial types likes raw pointer... | diff --git a/include/nanobind/nb_attr.h b/include/nanobind/nb_attr.h
index 44d63f8b8..de867ae13 100644
--- a/include/nanobind/nb_attr.h
+++ b/include/nanobind/nb_attr.h
@@ -21,14 +21,14 @@ struct name {
struct arg_v;
struct arg {
- NB_INLINE constexpr explicit arg(const char *name = nullptr) : name(name), conver... | 4 | 2 | 0 | [{"id": "G0", "claim": "The added `PyObject *key = nullptr, *entry = nullptr;` initialization in call_init is unnecessary (PyDict_Next's loop is only entered when key and entry are correctly initialized) and has a small cost, so the change should be dropped.", "category": "maintainability", "verdict": "supported", "pri... | null |
wjakob__nanobind__632 | wjakob/nanobind | 632 | defect | a6427f7c0722eb92e30225a02e3298f2fd142299 | a8f6c3c6038b6e62882af34574b5b64343c4fb40 | Handle nested class names in stubgen | Correct `stubgen`'s handling of nested types (e.g. a class defined inside another class).
Previously, `stubgen` generated `import` statements in the .pyi file which includes the outer type.
I fix this by testing that the module name in the generated `import` is a module by using `importlib.util.find_spec`. This i... | diff --git a/src/stubgen.py b/src/stubgen.py
index 6d20b7b82..35675285c 100755
--- a/src/stubgen.py
+++ b/src/stubgen.py
@@ -638,6 +638,12 @@ def process_ndarray(m: Match[str]) -> str:
# Process other type names and add suitable import statements
def process_general(m: Match[str]) -> str:
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The three lines importing the nested Python class, constructing an instance, incrementing its refcount and returning it can be shortened to `return py_class().release()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wjakob__nanobind__67 | wjakob/nanobind | 67 | defect | ead6eaa7a716e27db034020003eaf9ce65570697 | 4909e9eae694619ad1456c3d2d1ea27cdeef1f21 | std::optional and std::variant casters | The `std::optional` and `std::variant` casters are implemented. This makes it easy to handle overloading of some types that contain `None` as an argument or return value, and also simplifies function signatures. I would be grateful if this would be accepted.
### std::optional
```cpp
m.def("optional_copyable", []... | diff --git a/include/nanobind/nanobind.h b/include/nanobind/nanobind.h
index 75b7d8028..c35e1a262 100644
--- a/include/nanobind/nanobind.h
+++ b/include/nanobind/nanobind.h
@@ -32,6 +32,8 @@
#include <typeinfo>
#include <utility>
#include <new>
+#include <optional>
+#include <variant>
// Implementation. The nb_*.... | 3 | 3 | 2 | [{"id": "G0", "claim": "nanobind.h must not include the heavy STL headers <optional> and <variant>; nanobind deliberately minimizes STL usage so type casters require an explicit opt-in header.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In stl/optiona... | null |
wjakob__nanobind__68 | wjakob/nanobind | 68 | defect | ead6eaa7a716e27db034020003eaf9ce65570697 | fab1d9d653d5a5a4459a407ba84a5438d0251f16 | Add type caster for string_view. | A small update to automatically type cast `std::string_view`. | diff --git a/cmake/nanobind-config.cmake b/cmake/nanobind-config.cmake
index 49499c110..f60cefd79 100644
--- a/cmake/nanobind-config.cmake
+++ b/cmake/nanobind-config.cmake
@@ -74,6 +74,7 @@ function (nanobuild_build_library TARGET_NAME TARGET_TYPE)
${NB_DIR}/include/nanobind/stl/shared_ptr.h
${NB_DIR}/includ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR is missing a testcase; the author should add one covering both directions of the string_view conversion.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Something may be wrong with the parentheses on the Arabic string test ... | null |
wjakob__nanobind__688 | wjakob/nanobind | 688 | defect | 8a65e0e39ca1621fdf20130e94bccb5850ca0f81 | 77f7dfcd1cffc3ed990b49d123e357f4c4b6e42a | Add support for Flag enums, continued | Continuation of #599, as discussed.
I'm interested in how to fix the tests - I added extra logic on which metaclass and ` __str__` method to use as per https://github.com/wjakob/nanobind/pull/599#discussion_r1689110819, but this breaks more tests than before. | diff --git a/docs/api_core.rst b/docs/api_core.rst
index 43e7462d1..e9d51632e 100644
--- a/docs/api_core.rst
+++ b/docs/api_core.rst
@@ -1971,6 +1971,14 @@ The following annotations can be specified using the variable-length
mixed enum types (such as ``Shape.Circle + Color.Red``) are
permissible.
+ .. cpp:s... | 16 | 12 | 4 | [{"id": "G0", "claim": "After the switch of arithmetic enums to IntEnum, repr/str prints the plain number ('0') instead of the associated member name ('SEnum.A'), breaking test02_signed_enum, and wjakob wants arithmetic enums to keep printing the associated member.", "category": "correctness", "verdict": "supported", "... | null |
wjakob__nanobind__704 | wjakob/nanobind | 704 | defect | b2724eb86c81ec4854165795505df8498bdda0f7 | 290a8cf9c29e16549266884f616dcc75419a068b | Fix extraction of class name with new parameter syntax | I found that a compilation error occurs when the [new parameter syntax for generics](https://docs.python.org/3.12/reference/compound_stmts.html#type-params) is used as a signature.
This fix adds the searching for `[` to the `extract_name` function. | diff --git a/src/nb_type.cpp b/src/nb_type.cpp
index a30454ccf..47fd13e0a 100644
--- a/src/nb_type.cpp
+++ b/src/nb_type.cpp
@@ -810,11 +810,20 @@ NB_NOINLINE char *extract_name(const char *cmd, const char *prefix, const char *
cmd, s, prefix);
p += prefix_len;
- // Find the opening parenthesis
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Have just one version of this code instead of a PY_VERSION_HEX-conditional dual implementation in extract_name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Write the ternary expression picking between '(' and '[' as an... | null |
wjakob__nanobind__705 | wjakob/nanobind | 705 | defect | b2724eb86c81ec4854165795505df8498bdda0f7 | 17df1aab75640696ab92ecda79b4f1c6263ab26e | Print `...` for ellipsis type in type parameters | I want to print `...` as a parameter of `nb::typed`, e.g. `tuple[int, ...]`, but using `nb::ellipsis` shows its type, `EllipsisType`.
In this PR change, I have changed the type string to `...` only when `nb::ellipsis` is in `nb::typed`.
Is this acceptable? | diff --git a/include/nanobind/nb_cast.h b/include/nanobind/nb_cast.h
index 8fcbad673..39afd1373 100644
--- a/include/nanobind/nb_cast.h
+++ b/include/nanobind/nb_cast.h
@@ -354,12 +354,21 @@ NB_TYPED_NAME_PYTHON38(type_object, NB_TYPING_TYPE)
#endif
template <typename T, typename... Ts> struct type_caster<typed<T, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "No need to create a new `constexpr` `param_name` helper; `nb_descr.h` already defines the ternary `const_name<B>` that should be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs a test f... | null |
wjakob__nanobind__73 | wjakob/nanobind | 73 | defect | 526e2c798547185e37f66f77e3876311157eca95 | 944e58ac0038c18f80eafcb9af5e516bba4a844e | Add std::map and std::unordered_map type casters | I've implemented a `std::map` and `std::unordered_map` type caster that converts to/from a Python `dict`. I've extracted the common logic into `detail/nb_dict.h` similar to the current implementation for `std::list` and `std::vector` in `detail/nb_list.h`. | diff --git a/include/nanobind/stl/detail/nb_dict.h b/include/nanobind/stl/detail/nb_dict.h
new file mode 100644
index 000000000..c77bc00bb
--- /dev/null
+++ b/include/nanobind/stl/detail/nb_dict.h
@@ -0,0 +1,66 @@
+#pragma once
+
+#include <nanobind/nanobind.h>
+
+NAMESPACE_BEGIN(NB_NAMESPACE)
+NAMESPACE_BEGIN(detail)
... | 6 | 6 | 1 | [{"id": "G0", "claim": "Use the NB_LIST_GET_ITEM macro instead of raw PyList_GetItem when reading list items.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the NB_TUPLE_GET_ITEM macro instead of raw PyTuple_GetItem when reading the key from... | null |
wjakob__nanobind__732 | wjakob/nanobind | 732 | defect | 8dc834c5fdaf412251732e7dde21b305ce5756be | 6440b122a2282aa78fd73f808293bd6adeb17920 | Fix enum flag from cpp conversion | - Use `__str__` from the underlying flag factory class (allows printing flags like `Flag.A|B|C`)
- Fix conversion from cpp -> python of enum flags that contain a combination of flags.
| diff --git a/src/nb_enum.cpp b/src/nb_enum.cpp
index 425008c8a..d6c643d4b 100644
--- a/src/nb_enum.cpp
+++ b/src/nb_enum.cpp
@@ -71,7 +71,7 @@ PyObject *enum_create(enum_init_data *ed) noexcept {
scope.attr(name) = result;
result.attr("__doc__") = ed->docstr ? str(ed->docstr) : none();
- result.attr("__s... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `__str__` routine should be looked up from `factory_name` (and otherwise `Enum`) only when the enum is a flag, rather than from `factory_name` for every enum.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test case che... | null |
wjakob__nanobind__767 | wjakob/nanobind | 767 | defect | 3528abf664e4385b083843729b79d351118f11e9 | e04a6377081ee87f66b5cf11722950bf1801275b | Add support for custom call policies | This PR adds a new function annotation, `nb::call_policy<Policy>()`, which causes static methods of the user-provided `Policy` to be invoked before and after the bound C++ function. Unlike `call_guard`, the call policy methods operate on the Python object level and have access to the function arguments (precall can eve... | diff --git a/docs/api_core.rst b/docs/api_core.rst
index 3ef279672..a21db8059 100644
--- a/docs/api_core.rst
+++ b/docs/api_core.rst
@@ -1895,6 +1895,113 @@ parameter of :cpp:func:`module_::def`, :cpp:func:`class_::def`,
Analogous to :cpp:struct:`for_getter`, but for setters.
+.. cpp:struct:: template <typename... | 4 | 3 | 0 | [{"id": "G0", "claim": "The change may add run-time overhead in binary size or runtime cost to existing extensions that do not use the new feature.", "category": "performance", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a brief comment to tests/test_functions.cpp explaini... | null |
wjakob__nanobind__789 | wjakob/nanobind | 789 | defect | 4d55fbb40d7e352766d0e36d467b7eec66cf4284 | dcb77ac6c55c30eb5fd483b0621e0b1b0cf37eda | Fix handling of overloaded __new__ that takes no arguments | Fixes #786. We now consider whether it's possible to invoke the overload with no arguments, rather than just whether it is declared with no parameters; the difference is relevant in the presence of `nb::args`/`nb::kwargs` and default values. The previous logic didn't work anyway - it checked whether there was an overlo... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index d5ffba746..11562bcbb 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -23,6 +23,11 @@ Version TBD (unreleased)
``std::variant<U, T>`` might cast a Python object wrapping a ``T`` to a ``U`` if
there is an implicit conversion available from ``T``... | 2 | 1 | 0 | [{"id": "G0", "claim": "The loop could also use `i < fc->nargs - has_var_kwargs - has_var_args` as stopping criterion.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The braces around the single statement under `if (noargs_ok)` can be omitted.", "cate... | null |
wjakob__nanobind__805 | wjakob/nanobind | 805 | defect | f33465c1294c68224d0fd6330c3fc61f6bde06b8 | 421b91cf124b6f2975cdbe4a7606ab35162ed296 | Add an API isinstance(inst, cls) that mirrors the Python isinstance. | The current `isinstance<T>(inst)` tests if a Python object is an instance of a bound C++ class. This new overload tests if a Python object is an instance of a Python class. I have needed this helper in several nanobind-using codebases, and the same API exists in pybind11. | diff --git a/docs/api_core.rst b/docs/api_core.rst
index 2b9d2d70f..730f841f0 100644
--- a/docs/api_core.rst
+++ b/docs/api_core.rst
@@ -635,6 +635,10 @@ Type queries
to convert the object to C++. It may be more efficient to just perform the
conversion using :cpp:func:`cast` and catch potential raised exception... | 2 | 2 | 0 | [{"id": "G0", "claim": "The indentation of the newly added isinstance function in include/nanobind/nb_misc.h is different from the surrounding code.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A changelog entry should be added for the new isinstance AP... | null |
wjakob__nanobind__829 | wjakob/nanobind | 829 | defect | b7c4f1abfcab9cc5a8f0ef758926d92ff5eac3a3 | 1e008be6918b6560fc8307d8d5cc0a00facf66ee | Improve type_caster for floating-point types. | I would like to propose that `nb::arg().noconvert()` not allow value-changing conversions of floating-point arguments.
Given
```
NB_MODULE(my_extension, m) {
m.def("d", [](double d) { printf("%.8f\n", d); });
m.def("dnc", [](double d) { printf("%.8f\n", d); },
nb::arg().noconvert());
... | diff --git a/include/nanobind/nb_cast.h b/include/nanobind/nb_cast.h
index 74ad6cefc..3e0dc8941 100644
--- a/include/nanobind/nb_cast.h
+++ b/include/nanobind/nb_cast.h
@@ -126,10 +126,22 @@ template <typename T>
struct type_caster<T, enable_if_t<std::is_arithmetic_v<T> && !is_std_char_v<T>>> {
NB_INLINE bool fro... | 4 | 3 | 0 | [{"id": "G0", "claim": "Asks what `result != result && d != d` accomplishes that `result != result` alone does not, questioning whether the extra `d != d` check is redundant.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The narrowing-conversion logi... | null |
wjwwood__serial__45 | wjwwood/serial | 45 | defect | 22f5e302beda9b7285a7a410b2bdc445aa5d7000 | 566e00a7c20d0c27ab7bcacf699833ce29a3e12c | Timespec refactor (again) | A simpler, gentler take on what was previously discussed in #42 and #43.
- Everything is handled in ms, with a timespec_from_ms function providing last-minute conversion to timespecs for use in pselect.
- A MillisecondTimer class is provided which handles the total_timeout functionality in read and write. Its set/remai... | diff --git a/include/serial/impl/unix.h b/include/serial/impl/unix.h
index 3e45ec45..12e693b3 100644
--- a/include/serial/impl/unix.h
+++ b/include/serial/impl/unix.h
@@ -50,6 +50,18 @@ using std::invalid_argument;
using serial::SerialException;
using serial::IOException;
+class TimerExpiredException : public std::... | 8 | 8 | 3 | [{"id": "G0", "claim": "If the larger change that eliminates diff_timespec is not accepted, the existing diff_timespec has a bug: when result.tv_nsec is negative it should be set to 1e9 + result.tv_nsec (the field is already negative), not 1e9 - result.tv_nsec.", "category": "correctness", "verdict": "supported", "prio... | null |
wkentaro__labelme__1689 | wkentaro/labelme | 1,689 | defect | 8a486ea04e312571b8892253d3783752f1b2c337 | 150c9f3c3c4528edaf6899e2b071831725906cb4 | test: isolate QSettings in test_app.py to prevent side effects | so that we can reproduce issue like https://github.com/wkentaro/labelme/actions/runs/19033063583/job/54351030710 easily. | diff --git a/tests/labelme_tests/test_app.py b/tests/labelme_tests/test_app.py
index 5221b99d71..4336ad4ea7 100644
--- a/tests/labelme_tests/test_app.py
+++ b/tests/labelme_tests/test_app.py
@@ -1,9 +1,11 @@
import os.path as osp
+import pathlib
import shutil
import tempfile
import pytest
from PyQt5.QtCore impor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The fixture name 'isolatedt_qtsettings' is misspelled and should be 'isolated_qtsettings'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wkentaro__labelme__1693 | wkentaro/labelme | 1,693 | defect | e77d721f61ca8feb25aa4f0b2ad028a11b1cd35b | a78c999954f263a98a8dfee0eecb2e5aa3a7ed5a | fix(app): fix redundant mayContinue reusing fileSelectionChanged | ## Why?
duplicate popup of mayContinue if go with opennext/prev
1 call: in `_open_(prev|next)_image`
2 call: in `loadFile` and `fileSelectionChanged`
| diff --git a/labelme/app.py b/labelme/app.py
index ccbdc281d0..2ea3ab7ea2 100644
--- a/labelme/app.py
+++ b/labelme/app.py
@@ -65,6 +65,8 @@
class MainWindow(QtWidgets.QMainWindow):
FIT_WINDOW, FIT_WIDTH, MANUAL_ZOOM = 0, 1, 2
+ filename: str | None
+
# NB: this tells Mypy etc. that `actions` here
... | 4 | 2 | 1 | [{"id": "G0", "claim": "Add `if not self.mayContinue(): return` at the start of `_open_prev_image` and `_open_next_image`, as the replaced `openPrevImg`/`openNextImg` had, because otherwise a cancelled save prompt can leave the selected row changed while the file is not loaded.", "category": "correctness", "verdict": "... | null |
wkentaro__labelme__1717 | wkentaro/labelme | 1,717 | defect | e7e9eff4c296b4bf215be77a70b8665ef64029b8 | 47630ee4214682832946acd3396e6a6ae85a89d1 | fix(canvas): clear selectedShapes to avoid crash | to reproduce:
- open dir with multiple images
- click a polygon
- select current image in file list
- press down arrow
- press up arrow
Close https://github.com/wkentaro/labelme/pull/1716
Close https://github.com/wkentaro/labelme/pull/1710
Thank you for report and investigation @Erotemic @XuKang371322 | diff --git a/labelme/widgets/canvas.py b/labelme/widgets/canvas.py
index 5b28eacf15..7994feb12b 100644
--- a/labelme/widgets/canvas.py
+++ b/labelme/widgets/canvas.py
@@ -1130,10 +1130,14 @@ def restoreCursor(self):
QtWidgets.QApplication.restoreOverrideCursor()
def resetState(self):
+ # TODO: co... | 3 | 3 | 2 | [{"id": "G0", "claim": "resetState should also reset self.current, self.hShape, self.hVertex and self.hEdge so stale references to shapes that no longer exist cannot persist.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The crash fix clearing movi... | null |
wkentaro__labelme__1720 | wkentaro/labelme | 1,720 | defect | 116c3fe42143f4d8bbc233ba17f969954a9bc7ec | a3860888f4894676a3dfee4855f59c79043cf8e0 | Migrate to ty (replacing mypy) | Close #1719 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c470a27512..a542a4c88b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,7 +19,9 @@ jobs:
packages: qttools5-dev
version: 1.0
- run: make setup
- - run: make check
+ - run: |
+ make check... | 5 | 2 | 2 | [{"id": "G0", "claim": "The _isolated_qtsettings fixture's return annotation types.GeneratorType is incorrect and should be typing.Generator[None, None, None] or collections.abc.Generator[None, None, None] since the fixture yields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
wkentaro__labelme__388 | wkentaro/labelme | 388 | defect | 4ec682f9f15983fb9f2b10d9426007b77a2e5fc6 | a7407d5d1f90f64dfc0ac961ecbdd3eec58613e0 | Added label specific flags | Implementation of label specific flags where all labels share the same flag names. | diff --git a/labelme/app.py b/labelme/app.py
index 64cbf080c..84cb6707f 100644
--- a/labelme/app.py
+++ b/labelme/app.py
@@ -81,6 +81,7 @@ def __init__(
show_text_field=self._config['show_label_text_field'],
completion=self._config['label_completion'],
fit_to_content=self._config[... | 4 | 4 | 1 | [{"id": "G0", "claim": "The flags UI should be included in the existing LabelDialog so that flags are shown when a polygon is created, instead of living in another dock widget.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "label_flags should be able to ... | null |
wmayner__pyemd__26 | wmayner/pyemd | 26 | defect | 67accba47b6318df71fd3c77ec70560cb2b09ab2 | ef57b4fba7ed45a411f42e573ce48c4995c3a35c | Add array_emd function | As discussed in https://github.com/wmayner/pyemd/issues/25 | diff --git a/README.rst b/README.rst
index f482b7b..9ca6468 100644
--- a/README.rst
+++ b/README.rst
@@ -51,6 +51,15 @@ You can also get the associated minimum-cost flow:
>>> emd_with_flow(first_histogram, second_histogram, distance_matrix)
(3.5, [[0.0, 0.0], [0.0, 1.0]])
+You can also calculate the EMD dir... | 7 | 7 | 3 | [{"id": "G0", "claim": "Trailing whitespace in the added code and docstrings should be stripped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "There should be two blank lines before top-level function definitions.", "category": "maintainability... | null |
wmixvideo__nfe__376 | wmixvideo/nfe | 376 | defect | 529c3a5b51e9066df401cddd5a129b1c8af9e87e | 09fe8dca14cd0cb257ea99036f49120cf4774164 | Cria a classe Encerrante em combustível e retorna Java 7 | Retornei para o Java 7 e coloquei uma nova classe utilizada em posto de combustíveis. | diff --git a/pom.xml b/pom.xml
index 804c50354..15555948f 100755
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
<groupId>com.github.wmixvideo</groupId>
<artifactId>nfe</artifactId>
<packaging>jar</packaging>
- <version>3.0.0-SNAPSHOT</version>
+ <version>3.0.1-SNAPSHOT</version>
<name>nfe</name>
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Restore the pom version to 3.0.0-SNAPSHOT (the pull request bumped it to 3.0.1-SNAPSHOT, but the 3.0.0-RELEASE has not been launched yet).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wmixvideo__nfe__567 | wmixvideo/nfe | 567 | defect | 5c8f343fa0588f62caf5cd63efdb743f6609404b | f55a467e553fb2aca890d88d30a57000080045f1 | Ajustes de ICMSST conforme NT 2018.005 | Adicionando ajustes na classe NFNotaInfoItemImpostoICMSST e na classe de teste conforme NT 2018.005 | diff --git a/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoICMSST.java b/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoICMSST.java
index 60ae60262..940ff82a5 100755
--- a/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Accented characters in the code without unicode escapes can cause problems depending on the user's server encoding; the accents should be removed or escaped with unicode.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wmnsk__go-pfcp__109 | wmnsk/go-pfcp | 109 | defect | 36112307f93a7399473856eab56d2eb2c55408aa | 4309b567c2f9aefc4df7690788c6156512e31b03 | fix: apply-action IE length should be variable to be backward-compatible with Release 15 | Let users specify apply-action IE length by themselves, ex: implementation with Release 15.
Note: it is an API breaking change:
NewApplyAction must provide multiple uint8 parameter instead of uint16.
ApplyAction return a byte slice instead of uint16. | diff --git a/ie/apply-action.go b/ie/apply-action.go
index 053a35d8..539a507a 100644
--- a/ie/apply-action.go
+++ b/ie/apply-action.go
@@ -7,48 +7,43 @@ package ie
import "io"
// NewApplyAction creates a new ApplyAction IE.
-func NewApplyAction(flags uint16) *IE {
- return newUint16ValIE(ApplyAction, flags)
+func N... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the specific release the ApplyAction value could be one octet instead of two, and a test case covering that one-octet case should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wmnsk__go-pfcp__110 | wmnsk/go-pfcp | 110 | defect | 4d22d709e5504a1c5cf503423badc2dd2fef39b3 | 1ea79d7b31fef6f0b1ee38fa62b90b51439d9f7a | PFCP: Wrong Bridge ID format in TSN Bridge ID attribute | Modify tsn-bridge-id and related test files to follow 29.244 v16
The TSN Bridge ID is defined in IEEE 802.1Q [30] clause 14.2.5 and **the value shall be encoded as an Unsigned64 binary integer.**
Please check the following Wireshark issue:
https://gitlab.com/wireshark/wireshark/-/issues/18760 | diff --git a/ie/tsn-bridge-id.go b/ie/tsn-bridge-id.go
index 9f7b930a..c272afb5 100644
--- a/ie/tsn-bridge-id.go
+++ b/ie/tsn-bridge-id.go
@@ -15,9 +15,9 @@ func NewTSNBridgeID(mac net.HardwareAddr) *IE {
return New(TSNBridgeID, []byte{0x00})
}
- b := make([]byte, 7)
+ b := make([]byte, 9)
b[0] = 0x01
- copy(b... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test variable `tsn_bridge_mac` added in message_test.go should not use snake case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NewTSNBridgeID and IE.TSNBridgeID should keep supporting 6-byte MAC addresses instead o... | null |
wmnsk__go-pfcp__65 | wmnsk/go-pfcp | 65 | defect | 73401f105edc751e880d0c7fa01a971224aeabd1 | e6cd648f071743f68e7ae7df66691359e62648b0 | Update pfd-context.go | 1. Support PFD context with multiple content IEs
2. Support parsing PFDcontext from ApplicationIDPFDs | diff --git a/ie/pfd-context.go b/ie/pfd-context.go
index f1ab95da..0f796ad0 100644
--- a/ie/pfd-context.go
+++ b/ie/pfd-context.go
@@ -5,15 +5,27 @@
package ie
// NewPFDContext creates a new PFDContext IE.
-func NewPFDContext(contents *IE) *IE {
- return newGroupedIE(PFDContext, 0, contents)
+func NewPFDContext(con... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a unit test for PFDContext with multiple PFD contents (like the provided example) below the existing \"PFDContext\" case in ie_test.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
woblerr__pgbackrest_exporter__114 | woblerr/pgbackrest_exporter | 114 | defect | 47719e384e5d40b10e229603adade1dd93e135b8 | cbd7f5af1ec95baa024d8b97bd3bbd50ef35dfee | Add pgBackRest version metric and collector.pgbackrest flag. | 1. Added `pgbackrest_version_info` metric to expose pgBackRest version.
The value is pgBackRest version in numeric format (e.g., `2057000` for version `2.57.0`). Returns `0` if version information is unavailable.
The metric uses the `pgbackrest version --output num` command introduced in pgBackRest `v2.55.0`. For old... | diff --git a/Dockerfile b/Dockerfile
index 88a6827..42bfc51 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -28,7 +28,8 @@ ENV EXPORTER_TELEMETRY_PATH="/metrics" \
VERBOSE_WAL="false" \
DATABASE_COUNT="false" \
DATABASE_PARALLEL_PROCESSES="1" \
- DATABASE_COUNT_LATEST="false"
+ DATABASE_COUNT_LATEST="f... | 2 | 1 | 0 | [{"id": "G0", "claim": "In the getBackrestVersionMetrics test the t.Errorf message prints the actual and expected error/debug counts swapped; the arguments should be errorsOutputCount, debugsOutputCount, then tt.args.errorsCount, tt.args.debugsCount.", "category": "testing", "verdict": "uncertain", "priority": "P2", "s... | null |
woboq__qmetaobject-rs__185 | woboq/qmetaobject-rs | 185 | defect | b81438cbf56acb0bb8d6a17aa5299bdcae87a2e7 | 8dd29f483f862c142d7d88cbbca4d6556c20c0bb | Add wrappers around public static getters & setters of QCoreApplication | To be honest, I'm a bit concerned about the name of this new module, because core is also a part of rustc std.
---
Closes #113 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66149eb3..a8dacbab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Tutorial on adding Rust wrappers #171.
+- QCoreApplication: wrappers around public static getter... | 2 | 2 | 1 | [{"id": "G0", "claim": "The QCoreApplication setter wrappers should take QString instead of &str, since the value is taken by ownership as a QString anyway.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new module should not be named `core` because ... | null |
woboq__qmetaobject-rs__57 | woboq/qmetaobject-rs | 57 | defect | 1e230ee4c359a9674918131a6cde27ad3186695a | d44b32d23c4febdff8e6102d94ed5b9522c49afc | Create a wrapper around QQmlComponent | Support setData and loadUrl methods
Fix SignalCppRepresentation to support classes other than QObject | diff --git a/qmetaobject/qmetaobject_rust.hpp b/qmetaobject/qmetaobject_rust.hpp
index d5270780..d4d75872 100644
--- a/qmetaobject/qmetaobject_rust.hpp
+++ b/qmetaobject/qmetaobject_rust.hpp
@@ -29,8 +29,8 @@ union SignalCppRepresentation {
// Construct the object from an arbirary signal.
// (there is a dou... | 5 | 5 | 1 | [{"id": "G0", "claim": "Please add documentation to the CompilationMode enum.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add documentation to the ComponentStatus enum.", "category": "documentation", "verdict": "supported", "priority": "... | null |
woboq__qmetaobject-rs__80 | woboq/qmetaobject-rs | 80 | defect | 9d60d82a65c153ed80b2b04af0c7b51ce9993609 | 7e03df479406f15b686ebaaa9fd7cf573b36c8e1 | Fixes, typos and docs | Hi!
First of all, thanks for your wonderful work. I appreciate how ambitious this project is.
Still, I can see, there is much to be done, and a lot to consider in terms of future directions.
I would love to see more Qt bindings (both low- and high-level) in Rust, although I've read articles on this topic, thus I... | diff --git a/qmetaobject/qmetaobject_rust.hpp b/qmetaobject/qmetaobject_rust.hpp
index d4d75872..dd9cf04f 100644
--- a/qmetaobject/qmetaobject_rust.hpp
+++ b/qmetaobject/qmetaobject_rust.hpp
@@ -27,7 +27,7 @@ union SignalCppRepresentation {
SignalCppRepresentation() = default;
- // Construct the object from... | 1 | 1 | 0 | [{"id": "G0", "claim": "The C++ macro `#define QtJambi_EventType_DeleteOnMainThread 513` should be avoided and a `static constexpr int` used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
woboq__qmetaobject-rs__89 | woboq/qmetaobject-rs | 89 | defect | 260d03d21d0fb99e75dde87f2bd47b74354b301d | 2d027cdf26f47c4ac235db4b646dfba9adf5885f | qt_doc: Groundwork and showcase | OMG, I'm yet to learn to rebase stuff, sorry for "merge xxx" commits. | diff --git a/Cargo.toml b/Cargo.toml
index f2b3e6ab..9c68f650 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,6 +2,7 @@
members = [
'qmetaobject_impl',
'qmetaobject',
+ 'qmetaobject_doc_comment_test',
'examples/todos',
'examples/graph',
'examples/qmlextensionplugins',
diff --git a/qmetaobjec... | 4 | 3 | 0 | [{"id": "G0", "claim": "The license header should have two plain \"Copyright\" lines instead of \"Original work Copyright\" / \"Modified work Copyright\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `extern crate darling;` (an... | null |
wokwi__rp2040js__27 | wokwi/rp2040js | 27 | defect | 6581e2d32e7a1915e9df45f2b38456c84aea17fe | b0b6093c03d44c83745d07891308c53039f4798a | feat(gdbdiff): print less and more readable output | reworked a bit gdbdiff to produce less output:
Successfully compared 0 instructions
Successfully compared 500 instructions
Successfully compared 1000 instructions
Successfully compared 1500 instructions
Successfully compared 2000 instructions
Successfully compared 2500 instructions
Successfully compared 3000 i... | diff --git a/debug/gdbdiff.ts b/debug/gdbdiff.ts
index 2a9e1ccd53..389d4273c1 100644
--- a/debug/gdbdiff.ts
+++ b/debug/gdbdiff.ts
@@ -7,13 +7,27 @@
* Copyright (C) 2021, Uri Shaked.
**/
-import { GDBClient } from '../src/utils/gdbclient';
+import { GDBClient, dumpUint32, registerNames } from '../src/utils/gdbcli... | 12 | 11 | 0 | [{"id": "G0", "claim": "The progress message should use a template string, e.g. `Successfully compared ${counter} instructions`, instead of string concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The mismatch output should be labell... | null |
wokwi__rp2040js__31 | wokwi/rp2040js | 31 | defect | 8ef2ee822932fad14086e1d6602eee85c2e24b8c | 0cdd227bb48a42295488047a61e610ddbf7ea34f | fix(rp2040): Fix CMP reg T1 | found a specific test where CMPregT1 wrongly set the carry | diff --git a/src/instructions.spec.ts b/src/instructions.spec.ts
index 4db2e22aeb..0fca339372 100644
--- a/src/instructions.spec.ts
+++ b/src/instructions.spec.ts
@@ -469,6 +469,19 @@ describe('Cortex-M0+ Instruction Set', () => {
expect(registers.V).toEqual(false);
});
+ it('should execute an `cmp r2, r0` i... | 4 | 4 | 0 | [{"id": "G0", "claim": "Add an empty line after the end of the new `cmp r2, r0` test case.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the new cmp test, set the specific flags instead of writing xPSR directly.", "category": "testing", "ver... | null |
wokwi__rp2040js__37 | wokwi/rp2040js | 37 | defect | 9387184b9fd43595f68049f3ccdcdb1a5668d8a0 | c968ed855f31a2d98a9d2c1b843817f2729b9847 | feat(sio): fix implemented Hardware Divider | thanks @Kilograham for pointing me in the right direction | diff --git a/src/peripherals/reset.ts b/src/peripherals/reset.ts
new file mode 100644
index 0000000000..9e60d1c83c
--- /dev/null
+++ b/src/peripherals/reset.ts
@@ -0,0 +1,37 @@
+import { BasePeripheral, Peripheral } from './peripheral';
+
+const RESET = 0x0; //Reset control.
+const WDSEL = 0x4; //Watchdog select.
+cons... | 6 | 6 | 0 | [{"id": "G0", "claim": "Remove the leading underscore from the divider test constants so the naming stays consistent with the rest of the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Move the repetitive division code in the DIV_UDIVIDEND... | null |
wokwi__rp2040js__40 | wokwi/rp2040js | 40 | defect | 36f2e7c5158a4ab2a4d954077e9f1d77632c60d5 | 4e50e92d22847da4e5608a01e85dc47ac14b0a16 | feat(sio):implemented Spinlocks | I choose to avoid 32 spinlocks cases by inserting if statements in both read/writeUint32 | diff --git a/src/sio.spec.ts b/src/sio.spec.ts
index 84f5640f40..e22ccd06cf 100644
--- a/src/sio.spec.ts
+++ b/src/sio.spec.ts
@@ -13,6 +13,10 @@ const SIO_DIV_QUOTIENT = SIO_START_ADDRESS + 0x070; // Divider result quotient
const SIO_DIV_REMAINDER = SIO_START_ADDRESS + 0x074; //Divider result remainder
const SIO_DI... | 4 | 4 | 0 | [{"id": "G0", "claim": "The `>>> 0` unsigned conversion on the spinlock bit computation in readUint32 is unnecessary and should be dropped, since the bitwise `|` operation below makes the value signed anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
wolfSSL__wolfBoot__119 | wolfSSL/wolfBoot | 119 | defect | 75a7e57279b1c70ca741111705e98aff6307c333 | a2d390869376df629d26fd87d105d93627403124 | make: PPC/Big Endian support | Add `bin-assemble` tool instead of `dd` for more flexible assembly of factory image.
Add Big Endian support for header and trailer
makefile clean up
* remove unused targets
* distclean - cleans all tools
* remove use of some temp files | diff --git a/Makefile b/Makefile
index 8631531ff9..6000ee8f77 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ include tools/config.mk
## Initializers
WOLFBOOT_ROOT?=$(PWD)
-CFLAGS:=-D__WOLFBOOT -DWOLFBOOT_VERSION=$(WOLFBOOT_VERSION)UL -ffunction-sections -fdata-sections
+CFLAGS+=-D__WOLFBOOT -DWOLFBOOT_VERSION... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using objcopy to build factory.bin breaks the cortex-M build, and danielinux asks to go back to merging the files with cat (or an equivalent) instead, questioning why the vma address is needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wolfSSL__wolfBoot__124 | wolfSSL/wolfBoot | 124 | defect | 736103c56179bbcaa8c09e24bc2cee6ec86aa6d5 | 8f24d767f74a6eea137c2e07a85390c62d9ee221 | Add support for TMS570LC43xx |
- [X] README
- [X] Link with TI compiler
- [X] Simple test image
- [X] Verify image
- [X] Authenticate image
- [X] Link F021 flash library and load in RAM
- [X] IDE project files
- [x] Jump to app
| diff --git a/.gitignore b/.gitignore
index 2535f35010..d751ddd650 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,6 +51,7 @@
*.sig
# automatically generated source files
+**_pub_key.c
src/ed25519_pub_key.c
src/ecc256_pub_key.c
src/rsa2048_pub_key.c
diff --git a/IDE/CCS/TMS570LC43xx/.ccsproject b/IDE/CCS/TMS570LC... | 14 | 12 | 5 | [{"id": "G0", "claim": "The Python version of the keygen tool may also need updating so that keygen.c and keygen.py keep the same interface and do the same thing.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new **_pub_key.c entry in .gitignor... | null |
wolfSSL__wolfBoot__139 | wolfSSL/wolfBoot | 139 | defect | 736103c56179bbcaa8c09e24bc2cee6ec86aa6d5 | 70f4ca353d4c8a4ce43a625c8b7d5f4ca7b26cf2 | Added support for STM32L4 | I've added support for stm32l4 devices. It is tested for stm32l4a6 and stm32l4r5 MCUs. | diff --git a/hal/stm32l4.c b/hal/stm32l4.c
new file mode 100644
index 0000000000..58b428ef1f
--- /dev/null
+++ b/hal/stm32l4.c
@@ -0,0 +1,255 @@
+/* STM32L4 hal for wolfBoot
+Using NVM_FLASH_WRITEONCE is required for the update to happen
+*/
+
+#include <stdint.h>
+#include <image.h>
+#include "stm32l4xx_hal.h"
+
+/* ... | 16 | 15 | 4 | [{"id": "G0", "claim": "hal/stm32l4.c is missing the Copyright/license header and should import the header used by the other files in hal/.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The module-level variables Address and PAGEError should be d... | null |
wolfSSL__wolfBoot__15 | wolfSSL/wolfBoot | 15 | defect | 63eb744a6217096d3e058aee0490bfe91b2cf7d0 | 27669522a2eae6aa0f9ce83fe8371346a1bc6358 | Added support for STM32L0X3 | (firmware update successfully tested on STM32L073) | diff --git a/Makefile b/Makefile
index 939643b9fb..7d26fd3f12 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ RAM_CODE?=0
## Initializers
CFLAGS:=-D__WOLFBOOT -DWOLFBOOT_VERSION=$(WOLFBOOT_VERSION)UL
LSCRIPT:=hal/$(TARGET).ld
-LDFLAGS:=-T $(LSCRIPT) -Wl,-gc-sections -Wl,-Map=wolfboot.map -ffreestanding -nost... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add documentation for the new stm32l0 target in Targets.md, noting the switch()/case errors that occur when building without DEBUG=1.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wolfSSL__wolfBoot__176 | wolfSSL/wolfBoot | 176 | defect | 4b3eb8e6fe43595ade9b60f0e363767b7626fc87 | a0fc28db511104808a9c29baf81e1e656ec96aed | Added basic test cases with renode | - Added renode test script
- Added `renode-factory-*` test targets and `renode-factory-all` to test secure boot on emulated STM32F40x
- Update tests not yet possible (looks like flash write is not yet suppored on this platform) | diff --git a/Makefile b/Makefile
index a39afe4597..4a69630513 100644
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,7 @@ standalone:
include tools/test.mk
include tools/test-enc.mk
include tools/test-delta.mk
+include tools/test-renode.mk
ed25519.der:
$(Q)$(KEYGEN_TOOL) $(KEYGEN_OPTIONS) src/ed25519_pub_key.c
dif... | 8 | 6 | 2 | [{"id": "G0", "claim": "The renode-test-all.sh script keeps running after a failed `make`; it should stop on the first error, via `set -e` (with a cleanup trap) or by breaking and setting an exit code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
wolfSSL__wolfBoot__214 | wolfSSL/wolfBoot | 214 | defect | 9c592447261591d9b7d352fd1842804b449edc56 | 778105ceef0bee3f59bb8a5df95c3e5c4221018a | support software simulated target for testing and debugging | This PR introduces a new target `sim`. This creates an executable ELF wolfboot image `wolfboot.elf`. Internal and optionally and external flash are simulated and backed by regular files. This can be useful for testing and debugging without an actual hardware board.
Example:
```
cp ./config/examples/sim.config .co... | diff --git a/Makefile b/Makefile
index b860b566a8..d62378a415 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,10 @@ ifeq ($(TARGET),library)
MAIN_TARGET:=test-lib
endif
+ifeq ($(TARGET),sim)
+ MAIN_TARGET:=wolfboot.elf test-app/image_v1_signed.bin internal_flash.dd
+endif
+
ASFLAGS:=$(CFLAGS)
BOOTLOADER_PARTIT... | 5 | 5 | 0 | [{"id": "G0", "claim": "Update the filename in the opening comment of hal/sim.c, which still reads 'dummy.c' although the file is sim.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update the filename in the opening comment of test-app/app_si... | null |
wolfSSL__wolfBoot__238 | wolfSSL/wolfBoot | 238 | defect | 1a3195a63b8d2434402b172c3920cc221a721eab | 15c9827e83e5effcf7a35be9dda7b3f3d8caaff3 | Encrypted self-update | Fixed encrypted self-update (bootloader update).
The combination between `ENCRYPT` and `RAM_CODE` requires some architecture specific changes. This PR introduces a custom linker script for l0 `hal/stm32l0_chacha_ram.ld` that moves the symbols from chacha into RAM.
A description of the procedure along with instruct... | diff --git a/Makefile b/Makefile
index c68db7830f..5ae320ff06 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,8 @@ LSCRIPT:=config/target.ld
LDFLAGS:=
LD_START_GROUP:=-Wl,--start-group
LD_END_GROUP:=-Wl,--end-group
-
V?=0
+LSCRIPT_IN:=hal/$(TARGET).ld
OBJS:= \
./hal/$(TARGET).o \
@@ -31,8 +31,6 @@ else
OB... | 3 | 2 | 1 | [{"id": "G0", "claim": "The commented-out '//updv = wolfBoot_update_firmware_version();' line (and the unused 'updv' variable it relies on) serves no purpose and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test app no l... | null |
wolfSSL__wolfBoot__276 | wolfSSL/wolfBoot | 276 | defect | 47e9d7a591df429f318b2be371c6f614c55a9fc9 | 42822cd1d86f621996cfef3047f21f99500b2b40 | NVM_FLASH_WRITEONCE refactoring | - Using two sectors to keep partition/sector flags
- Keep two redundant set of flags, update one at a time
- Erase is done when the sector is old
- Flags update is faster because Erase is done in advance
- Accessing trailer information (including encryption keys) is done by selecting the newest information
Teste... | diff --git a/include/wolfboot/wolfboot.h b/include/wolfboot/wolfboot.h
index 488739115e..a6f80618f3 100644
--- a/include/wolfboot/wolfboot.h
+++ b/include/wolfboot/wolfboot.h
@@ -210,11 +210,15 @@ extern "C" {
#define IMG_STATE_UPDATING 0x70
#define IMG_STATE_TESTING 0x10
#define IMG_STATE_SUCCESS 0x00
+#define... | 8 | 5 | 0 | [{"id": "G0", "claim": "The triple negation `!!!` on the sector selector (in the addr_align line of nvm_select_fresh_sector and on nvm_cached_sector in trailer_write and partition_magic_write) should be replaced with the clearer single logical not.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
wolfSSL__wolfBoot__286 | wolfSSL/wolfBoot | 286 | defect | 51e6a1a28c0cb1e08c55ee3087659d7fc8096733 | fb61bd3c8148561406f523df4c5d48aeebfc9770 | Add support for STM32C0 | Supports STM32C0x0/STM32C0x1.
Tested build configurations:
* With RSA2048 and SHA2-256 the code size is 9724 and it boots in under 1 second.
* With ED25519 and SHA2-384 the code size is 10024 and takes about 10 seconds for the LED to turn on. | diff --git a/arch.mk b/arch.mk
index 4f231bab29..712377e42b 100644
--- a/arch.mk
+++ b/arch.mk
@@ -55,6 +55,16 @@ ifeq ($(ARCH),ARM)
SPI_TARGET=stm32
endif
+ ifeq ($(TARGET),stm32c0)
+ CORTEX_M0=1
+ ARCH_FLASH_OFFSET=0x08000000
+
+ # Enable this feature for secure memory support
+ # Makes the fla... | 17 | 17 | 1 | [{"id": "G0", "claim": "Remove the `xxx` placeholder lines left in the new STM32C0 Building, Programming and Debugging sections of docs/Targets.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace `stm32g0` with `stm32c0` throughout the new ... | null |
wolfSSL__wolfBoot__288 | wolfSSL/wolfBoot | 288 | defect | 51e6a1a28c0cb1e08c55ee3087659d7fc8096733 | 0b06efd34706adee46fc3d796bf8a3581d95585f | Encryption unit tests | - Added unit tests for encrypt/decrypt functions with EXT_ENCRYPTED + EXT_FLASH
- Fixed two issues detected | diff --git a/.github/workflows/test-units.yml b/.github/workflows/test-units.yml
new file mode 100644
index 0000000000..7944380ca2
--- /dev/null
+++ b/.github/workflows/test-units.yml
@@ -0,0 +1,33 @@
+name: Unit tests
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ footprin... | 2 | 1 | 1 | [{"id": "G0", "claim": "ext_flash_erase should additionally check that both address and len are aligned to WOLFBOOT_SECTOR_SIZE, otherwise the memset loop below should be modified to also erase the last partial block.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
wolfSSL__wolfBoot__296 | wolfSSL/wolfBoot | 296 | defect | 27c079b04ced7870c36fdf4800849fe4c8c4105a | 76fb8feac249b7b52caccbb24077fb96d5c1d6a0 | wolfTPM pubkey storage with policy based access restriction | this update uses the tpm to retreive the public key used to validate the image that will boot and restricts access to that key by tpm policy. when the image is updated it's signature is used to extend the PCR and when the image is loaded it's signature must match what was sealed in order to get the public key from the ... | diff --git a/include/image.h b/include/image.h
index 8f2563bf58..968483f4b7 100644
--- a/include/image.h
+++ b/include/image.h
@@ -555,6 +555,12 @@ uint8_t* wolfBoot_peek_image(struct wolfBoot_image *img, uint32_t offset,
/* Defined in libwolfboot */
uint16_t wolfBoot_find_header(uint8_t *haystack, uint16_t type, uin... | 8 | 8 | 0 | [{"id": "G0", "claim": "The PCR array should be an array of uint8_t rather than uint32_t.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded TPM values (keystore NV index, policy digest NV index and PCR index) should be overridable build-time m... | null |
wolfSSL__wolfBoot__299 | wolfSSL/wolfBoot | 299 | defect | 5e9e33d1363d7e1946050570d825a240d3bc9c8e | 446bbdc5ce6447f84b94983e3482ae6bbc2bb064 | Support Renesas RA6M4 with SCE use | This PR needs wolfSSL submodule which gets [PR#6301](https://github.com/wolfSSL/wolfssl/pull/6301) merged. | diff --git a/IDE/Renesas/e2studio/RA6M4/Readme.md b/IDE/Renesas/e2studio/RA6M4/Readme.md
index d584738be1..cb141744d8 100644
--- a/IDE/Renesas/e2studio/RA6M4/Readme.md
+++ b/IDE/Renesas/e2studio/RA6M4/Readme.md
@@ -10,6 +10,8 @@ In this demo, you may download two versions of application binary file by Renesa
You can d... | 3 | 3 | 0 | [{"id": "G0", "claim": "The word 'partition' is misspelled as 'pertition' in the sentence 'We are going to generate and download V2 application into \"Update pertition\".' and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
wolfSSL__wolfBoot__302 | wolfSSL/wolfBoot | 302 | defect | ef35f473c97106c16f308bfc461698e0852cc30b | fd8349e952d87f437c782f62be5166d41e739785 | Support for NXP P1021 eSPI and TPM (and fixes for eLBC NAND) | * Fix for P1021 to disable XIP support. This enables `PART_BOOT_EXT` to correctly load the boot partition from external flash.
* Fix the eLBC NAND flash driver issues with page/col selection.
* Allow override of the `WOLFBOOT_SHA_BLOCK_SIZE`.
* Refactor the TPM SPI interface to enable full transfers.
* Update the ... | diff --git a/arch.mk b/arch.mk
index d001f7c2d7..4436093b5a 100644
--- a/arch.mk
+++ b/arch.mk
@@ -331,6 +331,7 @@ ifeq ($(TARGET),nxp_p1021)
# Use the SP math all assembly accelerations
CFLAGS+=-DWOLFSSL_SP_PPC
endif
+ SPI_TARGET=nxp
endif
ifeq ($(TARGET),ti_hercules)
diff --git a/config/examples/nxp... | 4 | 3 | 2 | [{"id": "G0", "claim": "The udelay calculation should use a macro for the chip's clock speed instead of the hardcoded 400000000 constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hal_espi_xfer cannot ensure transactions are multiples of 4,... | null |
wolfSSL__wolfBoot__334 | wolfSSL/wolfBoot | 334 | defect | 7638bfb4796cb7d3ab22c357f9bb88efb08d4e06 | 0aa41b86ca7a551cf7f63308ed1ccad090c9a1fe | Simulator fixes and support for using MacOS | * Added simulator support for Mac.
* Fix for simulator to properly assemble wolfboot.bin + signedtestapp + update + swap.
* Fixes for handling 64-bit assigned mmap virtual addresses. Added hal_flash_write and hal_flash_erase support for 64-bit using `ARCH_64BIT` and added haladdr_t for address type.
* Fix simulator ... | diff --git a/Makefile b/Makefile
index 0d9948a491..36190591a3 100644
--- a/Makefile
+++ b/Makefile
@@ -175,12 +175,14 @@ test-app/image.elf: wolfboot.elf
$(Q)$(MAKE) -C test-app WOLFBOOT_ROOT="$(WOLFBOOT_ROOT)" image.elf
$(Q)$(SIZE) test-app/image.elf
-internal_flash.dd: $(BINASSEMBLE) wolfboot.elf test-app/image... | 2 | 1 | 1 | [{"id": "G0", "claim": "The blanket switch of the hal_flash API signatures to uintptr_t (removing the 32-bit variant) could break some platforms; dgarske proposed adding a HAL build option to support 64-bit addresses explicitly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
wolfSSL__wolfBoot__43 | wolfSSL/wolfBoot | 43 | defect | 46058f0437a30e8a5df2662c2dd849e8242298b5 | 7ffcdca098ecc0e67baef3a2e398c2d07ba9a87b | External, emulated non-volatile memory over UART | Using the ext_flash interface, this uart driver allows to access an emulated partition hosted on a different machine than the target.
A binary file on the host machine is used to emulate the `UPDATE` and the `SWAP` partition on the target.
Updates can be made available on the host machine via the [uart-flash-serv... | diff --git a/Makefile b/Makefile
index 7e3c10c65c..a174f5da67 100644
--- a/Makefile
+++ b/Makefile
@@ -118,13 +118,24 @@ ifeq ($(SPI_FLASH),1)
WOLFCRYPT_OBJS+=hal/spi/spi_drv_$(SPI_TARGET).o
endif
+ifeq ($(UART_FLASH),1)
+ EXT_FLASH=1
+endif
+
ifeq ($(EXT_FLASH),1)
CFLAGS+= -DEXT_FLASH=1 -DPART_UPDATE_EXT=1... | 5 | 5 | 2 | [{"id": "G0", "claim": "The generic loader.c should not hard-code the '4 *' bitrate multiplier in its uart_init call; it should pass the plain rate and let the porting implementation handle the scaling.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Buil... | null |
wolfSSL__wolfBoot__463 | wolfSSL/wolfBoot | 463 | defect | 918fdc57fd0b163d9d90f088376941c7c4152f52 | fecf3d6436a5fc853c8136f37066f90e74b47b94 | add emergency fallback test, currently fails due to | the sector flags needing to be reset by update trigger | diff --git a/.github/workflows/test-powerfail-simulator.yml b/.github/workflows/test-powerfail-simulator.yml
index 4442abf850..aff7812754 100644
--- a/.github/workflows/test-powerfail-simulator.yml
+++ b/.github/workflows/test-powerfail-simulator.yml
@@ -51,6 +51,14 @@ jobs:
run: |
tools/scripts/sim... | 4 | 3 | 1 | [{"id": "G0", "claim": "The choice to write zeros (memset with 0) for the forced emergency write in the simulated hal_flash_write is unexplained.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "hal_flash_write in the simulator should be modified ... | null |
wolfSSL__wolfBoot__473 | wolfSSL/wolfBoot | 473 | defect | f0c4252bce07a055be780a98cb8a6c4a49647328 | 8b954d4a6c76faf6f172ba2980dc0b0c457c14a7 | Fix for error dereferencing type-punned pointer in update_flash.c `wolfBoot_swap_and_final_erase` | Fix for update_flash.c `error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]`. Cleanup the swap logic for EXT_ENCRYPTED. Switch to using a uint32_t directly for checking tail magic.
```
src/update_flash.c: In function 'wolfBoot_swap_and_final_erase':
src/update_flash.... | diff --git a/src/update_flash.c b/src/update_flash.c
index f728004562..7734c5a04c 100644
--- a/src/update_flash.c
+++ b/src/update_flash.c
@@ -195,27 +195,30 @@ static int RAMFUNCTION wolfBoot_copy_sector(struct wolfBoot_image *src,
}
#ifndef DISABLE_BACKUP
+
+#ifdef EXT_ENCRYPTED
+# define TAIL_OFFSET_WORDS \
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new 'tail' naming (TAIL_OFFSET_WORDS and the 'read tail' comment) should use 'trail'/'trailer' terminology to match WOLFBOOT_MAGIC_TRAIL, per the reviewer's note that it is not a functional problem.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
wolfSSL__wolfBoot__48 | wolfSSL/wolfBoot | 48 | defect | a48bc603d6d41df4e54ed0e29ea29e35069347f7 | 5b08c9606be3fd00a54e84f13c38069eb723e627 | Fixes/improvements: psoc6 test application | - fixed linker script
- linking with cy_gpio/cy_device for testing boot leds/pins | diff --git a/test-app/ARM-psoc6.ld b/test-app/ARM-psoc6.ld
index 9bd6efad94..c92ce8d83f 100644
--- a/test-app/ARM-psoc6.ld
+++ b/test-app/ARM-psoc6.ld
@@ -10,7 +10,9 @@ SECTIONS
.text :
{
_start_text = .;
+ __Vectors = .;
KEEP(*(.isr_vector))
+ KEEP(*(.vectors))
. = AL... | 2 | 2 | 1 | [{"id": "G0", "claim": "The indentation in the new psoc6 conditional block of test-app/Makefile should be checked, since some Makefiles require tabs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Building with ./config/examples/cypsoc6.config a... | null |
wolfSSL__wolfBoot__5 | wolfSSL/wolfBoot | 5 | defect | e7863ca95f123832bd1251abb3e3307e5cc2d9c4 | 97a88ff76cbcd961e1dcc3d6681d9f255b2ddac8 | Support for multiple architectures, new build system | * Makefile refactored to support RISC-V architecture
* Risc-V bootvector and startup files
* Per-target test application
* hifive1 HAL stub + test application
| diff --git a/Makefile b/Makefile
index dc9b95d42f..7d329a4293 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,18 @@
-CROSS_COMPILE:=arm-none-eabi-
-CC:=$(CROSS_COMPILE)gcc
-LD:=$(CROSS_COMPILE)gcc
-AS:=$(CROSS_COMPILE)gcc
-OBJCOPY:=$(CROSS_COMPILE)objcopy
-SIZE:=$(CROSS_COMPILE)size
-BOOT0_OFFSET?=`cat include/target.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test-app/hifive1.c carries a SiFive copyright that is not wolfSSL's, and the example should be rewritten as original wolf code (or otherwise not include third-party copyrighted code).", "category": "legal", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfBoot__513 | wolfSSL/wolfBoot | 513 | defect | 518909ee183573f5fee850084c291c4b6fde465d | 72a0aa3853370ed5ec918895d322a998743bd04e | Added benchmark script, enabled ARMASM for Cortex-M3,4,7,33 | Adds a `benchmark.sh` script to compare ciphers & options over footprint, runtime memory, boot time.
Example output (in .md format): STM32H7 at 320MHz with ~100KB application image:
| Name | Configuration | Bootloader size | Stack size | Image header size | Boot time |
|------|---------------|-----------------|-... | diff --git a/.github/workflows/test-configs.yml b/.github/workflows/test-configs.yml
index b34ba299df..4bd44470ba 100644
--- a/.github/workflows/test-configs.yml
+++ b/.github/workflows/test-configs.yml
@@ -70,28 +70,28 @@ jobs:
with:
arch: arm
config-file: ./config/examples/imx-rt1040.config
- ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new arch.mk continuation lines mix tabs and spaces; use consistent indentation (spaces) there.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reword the docs sentence \"On a number of targets, algorithm may be optimiz... | null |
wolfSSL__wolfBoot__562 | wolfSSL/wolfBoot | 562 | defect | fec31c5cf667bad4c1307f53effa516e83b45848 | d1424263924904ab6ccb77509756dbdbffa4b86b | Scatter/gather ELF files according to segments `paddr` | This PR adds the option `ELF_SCATTERED`, which allows for an ELF file to be stored in different partitions on the target flash memory.
Before starting, wolfboot will check all the scattered fragments for integreity, by calculating the digest to match the one in the header.
Also added: simulator config files to test... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13272bd7f7..4190bb990b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,6 +45,9 @@ project(wolfBoot)
include(cmake/utils.cmake)
include(cmake/functions.cmake)
+include_directories(include)
+include_directories(lib/wolfssl)
+
if(NOT DEFINED WOLFBOOT_TARGET)
... | 15 | 14 | 6 | [{"id": "G0", "claim": "The else-branch comment '/* 32 bit ELF */' is misleading because that branch handles 64-bit ELF images; it should read '/* 64 bit ELF */'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ELF_SCATTERED preprocessor ma... | null |
wolfSSL__wolfBoot__571 | wolfSSL/wolfBoot | 571 | defect | 2b996f828038c7a3d119df755f7c91f0f7bfba69 | f01ad4338cafae0002ce668cb3d3728e0f447acb | add support for Microchip PIC32CZ and PIC32CK | Know limitation:
- gcc support only
- limited TZ support for PIC32CK
- No data/code cache support
| Board | Config | Bootloader (bytes) | Image (bytes) | Boot Time (s) |
|-------|--------|--------------------|---------------|---------------|
| PIC32CK | SHA2 only | 7,848 | 512,000 | 0.3... | diff --git a/.github/workflows/test-build-pic32cx.yml b/.github/workflows/test-build-pic32cx.yml
new file mode 100644
index 0000000000..0ca44a6046
--- /dev/null
+++ b/.github/workflows/test-build-pic32cx.yml
@@ -0,0 +1,21 @@
+name: Test PIC32CZ and PIC32CK Build
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ ... | 14 | 14 | 2 | [{"id": "G0", "claim": "hal_flash_test_dualbank prints bankA[0]/bankB[0], subscripting plain uint32_t address variables, which does not compile and does not print the checked bytes.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The header comment o... | null |
wolfSSL__wolfBoot__572 | wolfSSL/wolfBoot | 572 | defect | 60b208e5e136efee6baad409e4f78a46d1d95b2d | 8369f31ed40ba1d592fb335bb03fe9e2bf1c8d92 | Implement clock and uart configuration macros for the stm32f4 | Working on making the stm32f4 platform more configurable to allow easier porting to other boards. Right now this is just specific to the stm32f4 platform but can be easily implemented on all supported stm32 platforms | diff --git a/config/examples/stm32f4.config b/config/examples/stm32f407-discovery.config
similarity index 76%
rename from config/examples/stm32f4.config
rename to config/examples/stm32f407-discovery.config
index d70b922996..d10b192b2f 100644
--- a/config/examples/stm32f4.config
+++ b/config/examples/stm32f407-discovery... | 1 | 1 | 1 | [{"id": "G0", "claim": "The rename of config/examples/stm32f4.config to stm32f407-discovery.config will need to be adjusted in several places (docs and test scripts) to resolve build errors.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
wolfSSL__wolfBoot__619 | wolfSSL/wolfBoot | 619 | defect | c6776bc09711de8584015d8ced59e9ac87e96402 | 07bb1e1d88221451c3ee9c6496c1a47576df818c | Fix STM32H5 dualbank update | Also adds a `stm32h5-tz-dualbank.config` which is the same as `stm32h5-tz-dualbank-otp.config` but without OTP. | diff --git a/config/examples/stm32h5-tz-dualbank.config b/config/examples/stm32h5-tz-dualbank.config
new file mode 100644
index 0000000000..3eaf2f16ad
--- /dev/null
+++ b/config/examples/stm32h5-tz-dualbank.config
@@ -0,0 +1,31 @@
+ARCH?=ARM
+TZEN?=1
+TARGET?=stm32h5
+SIGN?=ECC256
+HASH?=SHA256
+DEBUG?=0
+VTOR?=1
+CORT... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add the new config (config/examples/stm32h5-tz-dualbank.config) to the build test workflow .github/workflows/test-configs.yml.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wolfSSL__wolfBoot__62 | wolfSSL/wolfBoot | 62 | defect | 938919e5cef8fa1998bb3eab7475e72b6de77116 | 9d83b2f277d08d32fad7ae375729295c4d5433d6 | External flash encryption | External partitions content can now be encrypted using ChaCha20.
Keytools can generate 'signed_and_encrypted.bin' version of the updates to be stored on external devices.
Details in [the manual page](https://github.com/wolfSSL/wolfBoot/blob/master/docs/encrypted_partitions.md).
Depends on [wolfcrypt-py PR #14 ... | diff --git a/.gdbinit b/.gdbinit
deleted file mode 100644
index 431accba8f..0000000000
--- a/.gdbinit
+++ /dev/null
@@ -1,3 +0,0 @@
-tar rem:3333
-file wolfboot.elf
-foc c
diff --git a/Makefile b/Makefile
index 52272b8e80..220f7ce090 100644
--- a/Makefile
+++ b/Makefile
@@ -125,6 +125,11 @@ ifeq ($(UART_FLASH),1)
EX... | 11 | 10 | 2 | [{"id": "G0", "claim": "The test app includes \"update.c\", which does not exist as a header in the include path and breaks the build with a fatal error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The encryption loop in sign.c prints \"pos: %lu\... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.