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
testing-library__jest-dom__141
testing-library/jest-dom
141
defect
83d419f3be3d49e252971b941195126bbb45d6b8
c11215070482237461fa2a78c4a7c2845bfe222c
feat: Add toBeChecked matcher
Closes #107 **What**: Added a `toBeChecked` matcher. **Why**: It was not implemented in https://github.com/testing-library/jest-dom/pull/90 but I thought it would be a nice addition as there currently isn't a matcher to check the value of a checkbox without it being part of a form. **How**: Implemented alo...
diff --git a/README.md b/README.md index 616969e9..954b8736 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ clear to read and to maintain. - [`toHaveStyle`](#tohavestyle) - [`toHaveTextContent`](#tohavetextcontent) - [`toHaveValue`](#tohavevalue) + - [`toBeChecked`](#tobechecked) - [Deprecated match...
3
2
2
[{"id": "G0", "claim": "The README line uses single quotes around the toBeChecked link where backticks or a proper markdown link were intended.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The matcher should also support radio input buttons and ...
null
testing-library__jest-dom__154
testing-library/jest-dom
154
defect
f881e689eb8c8d764f7828d93497bd8ac435108e
e1d26a1b07cc49bf76ba232e2522613ed2339fe2
Fixed issue where `.toHaveStyle` wouldn't match when the case was different.
**What**: Fixed issue where `.toHaveStyle` wouldn't match when the case was different. Closes #148. **Why**: Appears to be a regression in https://github.com/testing-library/jest-dom/pull/81. **How**: Lowercased both the CSS property and value before comparing. **Checklist**: - [ ] Documentation - [x] ...
diff --git a/src/__tests__/to-have-style.js b/src/__tests__/to-have-style.js index 35b77256..bce75f56 100644 --- a/src/__tests__/to-have-style.js +++ b/src/__tests__/to-have-style.js @@ -12,6 +12,7 @@ describe('.toHaveStyle', () => { const style = document.createElement('style') style.innerHTML = ` ...
2
2
2
[{"id": "G0", "claim": "The comparison lowercases the expected value but not the computed value, so `.toHaveStyle` fails when the case differs, e.g. `translateX(0px)` vs `translatex(0px)`; the computed value should be lowercased too (or the lowercasing dropped) so mixed-case values match.", "category": "correctness", "...
null
testing-library__jest-dom__19
testing-library/jest-dom
19
defect
200ee31eae89c0b49f0506ae71df711aeb0018aa
6e75659ebaa88c09cfa838b799da1d620fb7aeca
feat: toBeDisabled custom matcher (#18)
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index 2165cd6c..84a17110 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -137,6 +137,17 @@ "doc", "test" ] + }, + { + "login": "callada", + "name": "Iwona", + "avatar_url": "https://avatars2.githubusercont...
4
4
0
[{"id": "G0", "claim": "The extra nested divs and spans wrapping the buttons in the .toBeDisabled test markup serve no clear purpose and the author agreed to remove them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README's toBeDisabled section h...
null
testing-library__jest-dom__217
testing-library/jest-dom
217
defect
57f03e9996847bcfac7f164c1d0307877f240cf7
a8c57d6948b44b0f291f659b86995f30e8280e39
feat: add exact mode option for toHaveClass (#176)
Added exact mode option for toHaveClass matcher, as discussed in #176 **How** ```html <div data-test-id='test-element' class="hello world foo"></div> ``` ```javascript const testElement = getByTestId('test-element') // toHaveClas is true becose has EXACTLY defined set of classes expect(testElement).toHave...
diff --git a/README.md b/README.md index a0b3b97a..9b34ebd6 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ clear to read and to maintain. <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> + - [Installation](...
2
1
0
[{"id": "G0", "claim": "The PR should add a new matcher `expect(element).toHaveClassList('class1', 'class2', 'class3')` as agreed in issue #176, instead of extending `toHaveClass` with an options argument, leaving `toHaveClass` intact.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduc...
null
testing-library__jest-dom__219
testing-library/jest-dom
219
defect
c80448f758bb90aa84c199fe9d85f7acfc948617
fb89f5f79529dc6076877be8d015680c1432696d
feat(toHaveValue): Enhanced error message with type information on loose equality
**What**: As discussed in #218 the error message of `toHaveValue` was enhanced by type information if the received and expected value have loose equality. **Why**: To improve DX. **How**: The expected and received values are checked for loose equality and enhanced by type information if loose equality is...
diff --git a/src/__tests__/to-have-value.js b/src/__tests__/to-have-value.js index 91621d4f..c604f0b5 100644 --- a/src/__tests__/to-have-value.js +++ b/src/__tests__/to-have-value.js @@ -124,6 +124,48 @@ describe('.toHaveValue', () => { `) }) + test('throws type information when the expected input (type=text...
1
1
0
[{"id": "G0", "claim": "The tests added by this pull request are named as if the error message distinguishes input types (type=text / type=number), but the type information comes only from loose equality between expected and received values, so the names should not reference input types and the separate per-input-type ...
null
testing-library__jest-dom__249
testing-library/jest-dom
249
defect
5c9e8e5a1a18e58c0bf8147baaf568259c3c2a13
bf505616e0dac0279b0737da0ebdf4fa0295f9b8
feat: add toBePartiallyChecked matcher
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/README.md b/README.md index b21a10d9..c3b57bc5 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ clear to read and to maintain. <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> - - [Installation](...
2
1
0
[{"id": "G0", "claim": "The `aria-checked === 'mixed'` check inside `isValidAriaElement` duplicates the check already done in `isPartiallyChecked` and probably should not be there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The matcher shoul...
null
testing-library__jest-dom__284
testing-library/jest-dom
284
defect
51ed5bfddd18c89ece27b659b792f86dc74c43ee
e6ef5af6752da53d495e1cb18b8dda752546bd03
Suggest using toBeEmptyDOMElement instead of toBeEmpty
**What**: Suggest using toBeEmptyDOMElement instead of toBeEmpty. **Why**: Since PR #254 we are deprecating toBeEmpty in favour of toBeEmptyDOMElement, so we should suggest using it instead. **How**: When checking with an empty string using toHaveTextContent, the following error message is displayed: ``...
diff --git a/src/__tests__/to-have-text-content.js b/src/__tests__/to-have-text-content.js index a8d4ef2c..b313256d 100644 --- a/src/__tests__/to-have-text-content.js +++ b/src/__tests__/to-have-text-content.js @@ -83,7 +83,7 @@ describe('.toHaveTextContent', () => { ) }) - test('when matching with empty str...
1
1
1
[{"id": "G0", "claim": "The test's expected-error regular expression `/toBeEmpty()/` should be changed to `/toBeEmptyDOMElement\\(\\)/`, since the unescaped parentheses are interpreted as an empty group rather than matched literally after the matcher rename.", "category": "correctness", "verdict": "supported", "priorit...
null
testing-library__jest-dom__339
testing-library/jest-dom
339
defect
e148894460cd28b8776f8da285785c7ddcfa1a4a
6550b35a286dd402bfceee159c0f7358f004ec11
`toBeVisible` implies `toBeInTheDocument`
**What/Why**: https://github.com/testing-library/jest-dom/issues/338 **Checklist**: - [x] Documentation - [x] Tests - [ ] Updated Type Definitions - The `.d.ts` is not in this repo - [x] Ready to be merged cc @gnapse
diff --git a/README.md b/README.md index 49865515..0fbac949 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ clear to read and to maintain. <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> + - [Installation](...
2
2
0
[{"id": "G0", "claim": "In the README's list of visibility conditions, the newly added 'it is present in the document' bullet should be placed first rather than last.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new 'element not in document'...
null
testing-library__jest-dom__349
testing-library/jest-dom
349
defect
84fe8e05c0802f0c099f25021072254a49472671
1392a1be3897d7f0d4a46b7ce4582191fac415b2
fix: normalize expected value in toContainHTML
**What**: resolve #347 **Why**: Because this is worth fixing **How**: Added `getNormalizedHtml` function, that passes the content to the HTML parser. This caused two changes in the test case with invalid HTML: `<span data-testid="child"></div>` becomes `<span data-testid="child"></span>` **Checkl...
diff --git a/src/__tests__/to-contain-html.js b/src/__tests__/to-contain-html.js index 0c0292be..622898e0 100644 --- a/src/__tests__/to-contain-html.js +++ b/src/__tests__/to-contain-html.js @@ -18,21 +18,23 @@ describe('.toContainHTML', () => { const nonExistantElement = queryByTestId('not-exists') const fak...
2
2
1
[{"id": "G0", "claim": "The pull request should be taken to a valid non-draft, reviewable state by uncommenting or removing the commented-out code, since its content cannot be reviewed while it is commented out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
testing-library__jest-dom__377
testing-library/jest-dom
377
defect
317e31910c8ed5212cae7c743a96b2676549cfd4
d093d18892a24be3bd7dd748734db21436bf7ace
feat: toHaveAccessibleName and toHaveAccessibleDescription
**What**: Add two new custom matchers: `toHaveAccessibleName` and `toHaveAccessibleDescription`. Closes #111. Supersedes #112. **Why**: These enhance the abilities to test a UI with accessibility in mind, and encourage developers to properly label and describe the UI elements in their apps. **How**: ...
diff --git a/README.md b/README.md index d6f1f613..ebd27ae0 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ clear to read and to maintain. - [`toBeVisible`](#tobevisible) - [`toContainElement`](#tocontainelement) - [`toContainHTML`](#tocontainhtml) + - [`toHaveAccessibleDescription`](#tohaveaccessibl...
1
1
0
[{"id": "G0", "claim": "The README's `toHaveAccessibleDescription` section should read \"an element has the expected\" instead of the typo \"an element is has the expected\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
testing-library__jest-dom__42
testing-library/jest-dom
42
defect
c8d29c6fc2901285c38f92829aa5449202f0a68e
2611ee33c5e2610592758529d617f1fe7264d879
feat: assert whether a string Element is in the document OR contained…
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index 7ed553b2..d1adec87 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -179,6 +179,15 @@ "doc", "test" ] + }, + { + "login": "6ewis", + "name": "Lewis", + "avatar_url": "https://avatars0.githubuserconten...
11
9
3
[{"id": "G0", "claim": "Matching the exact string representation of the element may be brittle to markup and whitespace changes and ties tests to DOM implementation details; if the PR is merged, those caveats need to be documented or their effects mitigated.", "category": "design", "verdict": "supported", "priority": "...
null
testing-library__jest-dom__637
testing-library/jest-dom
637
defect
4723de3664d129dfa97a877a4e0a9d171bc4c720
c46a703e963289b8bd8013889c27636ceed14fc6
feat: implement toHaveSelection
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/README.md b/README.md index 776af4da..d012b311 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ clear to read and to maintain. - [`toBePartiallyChecked`](#tobepartiallychecked) - [`toHaveRole`](#tohaverole) - [`toHaveErrorMessage`](#tohaveerrormessage) + - [`toHaveSelection`](#tohaveselec...
1
1
1
[{"id": "G0", "claim": "The README documentation should reflect that the expectedSelection argument can be omitted to test whether there is any selection at all, by declaring the signature as toHaveSelection(expectedSelection?: string).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "...
null
testing-library__jest-dom__65
testing-library/jest-dom
65
defect
86ee9b1a0aa3733472da7219f947a4195bb3218c
f6b45e98d028c3c974a84f775f8b4691fb965519
Initial toHaveFormValues implementation (closes #60)
**What**: Allow tests to assert that a form (or part of it) contains certain elements with certain corresponding values. **Why**: See #60 **How**: By gathering all form values under the given container, and matching it against the expected values. Additional efforts were made to ensure a consistent g...
diff --git a/src/__tests__/to-have-form-values.js b/src/__tests__/to-have-form-values.js new file mode 100644 index 00000000..94d1b1c6 --- /dev/null +++ b/src/__tests__/to-have-form-values.js @@ -0,0 +1,287 @@ +import {render} from './helpers/test-utils' + +const categories = [ + {value: '', label: '–'}, + {value: 'd...
4
2
0
[{"id": "G0", "claim": "The hand-rolled isEqual helper in src/to-have-form-values.js should be replaced with lodash's isEqual.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getAllFormValues should use the form's built-in elements property (form...
null
testing-library__jest-dom__658
testing-library/jest-dom
658
defect
918b6fbcde10d4409ee8f05c6e4eecbe96a72b7a
5a89af4469a0496c49b30f591140ccecc4a9a2b3
feat: add toBePressed matcher (#203)
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/README.md b/README.md index 7a3e06fd..c7df104e 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ clear to read and to maintain. - [`toHaveRole`](#tohaverole) - [`toHaveErrorMessage`](#tohaveerrormessage) - [`toHaveSelection`](#tohaveselection) + - [`toBePressed`](#tobepressed) - [Deprecat...
5
5
1
[{"id": "G0", "claim": "The README wording 'This allows to check whether given element has been pressed' should read 'is pressed', per the attached suggestion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test for a non-button element should...
null
testing-library__jest-dom__702
testing-library/jest-dom
702
defect
779b7125d39fe49e8b674f078c4692c1becdc8b4
efba541c66313180fa973d8f8ba0871f228ead4c
feat: Add .toAppearBefore/.toAppearAfter matcher
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/README.md b/README.md index c2bacceb..7502686a 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ clear to read and to maintain. - [`toHaveErrorMessage`](#tohaveerrormessage) - [`toBePressed`](#tobepressed) - [`toBePartiallyPressed`](#tobepartiallypressed) + - [`toAppearBefore`](#toappearbe...
3
2
1
[{"id": "G0", "claim": "Use function declarations instead of arrow-function consts for makeDocumentPositionErrorString and checkToAppear, to be consistent with the rest of the module and repository.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
testing-library__jest-dom__72
testing-library/jest-dom
72
defect
2293b4c12a3d5facbc3c3becaed25a5b22a4db9f
8118c5deac61523ea21e817c6addb71de1b067cb
Fix toHaveTextContent to be case-sensitive
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index d1adec87..bf091394 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -188,6 +188,15 @@ "contributions": [ "code" ] + }, + { + "login": "lourenci", + "name": "Leandro Lourenci", + "avatar_url": "https://a...
1
1
1
[{"id": "G0", "claim": "Keep `matcher` wrapped in `String()` in `matches` so non-string matchers (such as numbers) still work with `.toHaveTextContent` and the change does not add breakage unrelated to case-sensitiveness.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
testing-library__jest-dom__90
testing-library/jest-dom
90
defect
4d5427b38cd8ea789a590a1a3e9bc1c287d61890
360d132e90b4e9b55473806ec54621b31af5f013
feat: Add toHaveValue matcher #82
**What**: Add `toHaveValue` matcher **Why**: As discussed in #82 **How**: Reused a lot of existing logic from `toHaveFormValue` and moved some internal functions to `utils.js` so that they can be shared between both modules. I had a lot of thoughts on how to implement this matcher for `<input type="checkb...
diff --git a/.all-contributorsrc b/.all-contributorsrc index b7fa1c1c..af86097e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -238,6 +238,15 @@ "bug", "code" ] + }, + { + "login": "lukaszfiszer", + "name": "Łukasz Fiszer", + "avatar_url": "https://avatars3.g...
5
5
3
[{"id": "G0", "claim": "The README's new toHaveValue section misspells the matcher name as `toHaveFromValue` where it should read `toHaveFormValue`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The toHaveValue type declarations in extend-expect....
null
testing-library__pptr-testing-library__27
testing-library/pptr-testing-library
27
defect
7d9b33dd04a0b927b442f1f4d263865356d4659b
229bd7ba69eda2d561a71de8f53bcd742ee7e374
chore(deps): update typescript to v3
- Update tslint and fix some new linting issues - Set some linting that should probably be cleaned up as warnings - Updated `wait-for-expect` to fix resolve import lint complaint
diff --git a/lib/extend.ts b/lib/extend.ts index bd42dff..e499c78 100644 --- a/lib/extend.ts +++ b/lib/extend.ts @@ -1,5 +1,6 @@ -import {getDocument, getQueriesForElement} from '.' import {ElementHandle} from '../node_modules/@types/puppeteer' + +import {getDocument, getQueriesForElement} from '.' import {IScopedQue...
2
2
1
[{"id": "G0", "claim": "The rewrite of the loop counter to `i += 1` in createElementHandleArray is an unnecessary change forced by a tslint rule; the rule should be excepted so the loop can stay `i++`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The wa...
null
testing-library__react-testing-library__13
testing-library/react-testing-library
13
defect
98987c80b277358da42a62296c553f7be39cf32a
96a1a9e0af73da59e3143c3064cd9803bd97dcfd
Improving api
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index 90dd9791..a21d19b1 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -67,6 +67,16 @@ "doc", "test" ] + }, + { + "login": "antoaravinth", + "name": "Anto Aravinth", + "avatar_url": "https://avatars1.git...
9
9
2
[{"id": "G0", "claim": "The fetch test showcases several assertion styles, so either add a comment noting these are optional example assertions or move them to a separate demo file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Disable the import/no-un...
null
testing-library__react-testing-library__25
testing-library/react-testing-library
25
defect
8403e84708154a59f49d423bd29f9933b94b02e0
cef06a88b8ffd0e01b03b62434b6f9df3941e738
added waitForExpect
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index 1dc8d820..b5d27f68 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -85,6 +85,16 @@ "contributions": [ "doc" ] + }, + { + "login": "lgandecki", + "name": "Łukasz Gandecki", + "avatar_url": "https://avat...
7
4
1
[{"id": "G0", "claim": "Add documentation for the newly exported waitForExpect to the README, including a very simple usage example (with a pointer to the package's own docs).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "waitForExpect should ins...
null
testing-library__react-testing-library__290
testing-library/react-testing-library
290
defect
ac58967b314931db3ee745f9d039c0b6d1da9f02
3d92dcc6a9689e12539c0f4498a0f081876b5410
Modifies testHook to return unmount function
This PR solves #289, in which I asked to have a way to test the `useEffect` callback. **What**: Adds a way to test hooks behavior when component unmounts. **Why**: To test `useEffect` callbacks, which are called when component unmounts. **How**: Modifies `testHook` to return an object with an exposed `unmou...
diff --git a/.all-contributorsrc b/.all-contributorsrc index 9edfc26a..dea90e11 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -657,6 +657,17 @@ "bug", "code" ] + }, + { + "login": "Andrewmat", + "name": "André Matulionis dos Santos", + "avatar_url": "https:/...
3
2
1
[{"id": "G0", "claim": "The example files are not formatted per the project's prettier style, so the author should run `npx kcd-scripts format`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "testHook should also return `rerender` in addition to `un...
null
testing-library__react-testing-library__303
testing-library/react-testing-library
303
defect
0abee6f4f28d4bc1d5846da9a886f2a0ca32bd43
f63226e2591fed074f5159c44cd7c5b0ae37fdf4
feat(render): add wrapper component option
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/package.json b/package.json index 67bde194..54f531f1 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,8 @@ }, "devDependencies": { "@reach/router": "^1.2.1", - "@types/react-dom": "^16.0.9", + "@types/react": "^16.8.3", + "@types/react-dom": "^16.8.2", "axios": "^0.18.0", ...
2
1
1
[{"id": "G0", "claim": "The `wrapper` field the pull request adds to `RenderOptions` should be optional (`wrapper?:`) instead of required.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wrapper option should accept a render function (e.g. `({chi...
null
testing-library__react-testing-library__343
testing-library/react-testing-library
343
defect
7e6031f40c572b0a2cf5d285d84487d4e562a36d
b4d3076a47627247157768480a1034b964bf8f85
feat(act): Support async act 🎉
**What**: Add support for async `act` <!-- Why are these changes necessary? --> **Why**: Closes #281 <!-- How were these changes implemented? --> **How**: Unfortunately, we need to do a bit of attempts at polyfilling to ensure we support react-dom@16.8.0 for the foreseeable future. This means that we not on...
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index df54e83c..e3b54b33 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -34,12 +34,11 @@ merge of your pull request! <!-- to check an item, place an "x" in the box like so: "- [x] Documentation" ...
3
2
1
[{"id": "G0", "claim": "The async act polyfill should not flush effects with `act(() => {})` before running the callback, since the React team went back and forth and decided not to flush in the beginning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
testing-library__react-testing-library__407
testing-library/react-testing-library
407
defect
4aa0c56c60ac99f331ac8267428fb92fd89dcd2f
be59aa43456cbe4b8f37aafc2d260c4ebd5f40ce
fix(act): async act detection
The previous version of async act detection left an open hanging act scope, which broke tests and expectations. This PR delays the detection until it's been called at least once. I tested this with 16.8.6, and 0.0.0-b4178af81.
diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1 @@ +{} diff --git a/src/__tests__/old-act.js b/src/__tests__/old-act.js index d21c2bae..d30f71fa 100644 --- a/src/__tests__/old-act.js +++ b/src/__tests__/old-act.js @@ -6,11 +6,12...
6
4
2
[{"id": "G0", "claim": "The polyfill path should wrap the callback in ReactDOM.unstable_batchedUpdates instead of calling it directly.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid adding the new .watchmanconfig file to the repository.", "category...
null
testing-library__react-testing-library__430
testing-library/react-testing-library
430
defect
98b9605cb0b6c5f7e1c91e0e65ca88e1989ed5ea
65ff32bba72b30712fc47bde7b2eda9aab45370f
feat(cleanup): automatically cleanup if afterEach is detected
**What**: automatically call `cleanup` (with async act) if `afterEach` is detected. **Why**: Closes #428 This effectively means that 90% of users wont even have to know about `cleanup` at all. Which is a huge improvement. **How**: You can disable this with the `RTL_SKIP_CLEANUP` environment variable i...
diff --git a/cleanup-after-each.js b/cleanup-after-each.js index 9bbba5ce..b90969de 100644 --- a/cleanup-after-each.js +++ b/cleanup-after-each.js @@ -1,3 +1 @@ -afterEach(() => { - return require('./dist/cleanup-async')() -}) +afterEach(() => require('./dist/cleanup-async').default()) diff --git a/src/__tests__/act.j...
8
1
0
[{"id": "G0", "claim": "Auto-cleanup will confusingly break tests that reuse rendered elements across test cases, so the release needs a very helpful changelog explaining the RTL_SKIP_CLEANUP workaround and why tests should be isolated.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "...
null
testing-library__react-testing-library__44
testing-library/react-testing-library
44
defect
34c974d8090b29096382e4e57784897192c88160
bfeb26aa29e2b36cbf254a6cb8dc6934e32a055e
Add toHaveAttribute custom matcher (closes #43)
Feedback is welcome on the code to build the message for the custom matcher. It got a bit tricky but I think it's worth it to give human-friendly messages of what went wrong, and there are quite a few cases to cover there. Closes #43
diff --git a/.all-contributorsrc b/.all-contributorsrc index 05f6e72f..b61e4c41 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -126,6 +126,17 @@ "contributions": [ "code" ] + }, + { + "login": "gnapse", + "name": "Ernesto García", + "avatar_url": "https://avata...
5
3
1
[{"id": "G0", "claim": "Wondering whether printReceived could be used instead of RECEIVED_COLOR, asking if RECEIVED_COLOR does anything beyond what printReceived does.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks that the new matcher reuse the exi...
null
testing-library__react-testing-library__48
testing-library/react-testing-library
48
defect
6d9c368d921a66a1ed12c2a05372d776e6f236db
108e29569729059f4094525967b0a445103e6112
add fireEvent from dom-testing-library
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contribu...
diff --git a/.all-contributorsrc b/.all-contributorsrc index b61e4c41..7766b25e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -137,6 +137,17 @@ "code", "doc" ] + }, + { + "login": "jomaxx", + "name": "Josef Maxx Blake", + "avatar_url": "https://avatars2.gith...
3
2
1
[{"id": "G0", "claim": "The inline array of synthetic event names should be bound to a named constant instead of being iterated inline, and the listeners should be attached to `document` rather than `window` as React does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
testing-library__react-testing-library__991
testing-library/react-testing-library
991
defect
8f17a2bc4fa9c2c17a623b38ded9ab18b086e457
887d95b84ddbcedb46932bf52fbda4518abb35c8
feat: Add `renderHook`
**What**: Imlement minimal `renderHook` from `@testing-library/react-hooks` **Why**: `@testing-library/react-hooks` is not compatible with React 18 and it's questionable if certain APIs will make sense in React 18. This ensures that the supported version of React that is used with your Testing Library APIs is...
diff --git a/src/__tests__/renderHook.js b/src/__tests__/renderHook.js new file mode 100644 index 00000000..fd6b95a4 --- /dev/null +++ b/src/__tests__/renderHook.js @@ -0,0 +1,62 @@ +import React from 'react' +import {renderHook} from '../pure' + +test('gives comitted result', () => { + const {result} = renderHook(() ...
12
2
0
[{"id": "G0", "claim": "Merging this change does the community a disservice by dropping native (React Native) support for hook testing that people actively use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new renderHook API provides no way to test...
null
testingisdocumenting__znai__264
testingisdocumenting/znai
264
defect
cbb826d1b8eb615393f75a0ea6c047e16bb1829e
dfacf6395234dd10e714af965c990544e3c78197
add list all overloads for a specified java method name
Add option to list of all the method overloads to help with reference documentation. ``` :include-java: HelloWorld.java {entries: "sampleMethod", signatureOnly: true} ``` ``` class HelloWorld { private int numberOfStudents; public String sampleMethod(String p1, int p2) { //... } p...
diff --git a/znai-docs/documentation/snippets/HelloWorld.java b/znai-docs/documentation/snippets/HelloWorld.java index 575e90255..dd8ffe278 100644 --- a/znai-docs/documentation/snippets/HelloWorld.java +++ b/znai-docs/documentation/snippets/HelloWorld.java @@ -35,4 +35,8 @@ public void sampleMethod(Map<String, Integer>...
2
1
0
[{"id": "G0", "claim": "The new isMultipleEntries flag is set to !entries.isEmpty(), but its name and how it is used below suggest it should be entries.size() > 1.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Content of several methods joined ...
null
testingisdocumenting__znai__359
testingisdocumenting/znai
359
defect
70670178113372b347d72facab4890ac8676638b
b8aa0af40da77dbb3d6a869887c5c461559fd62c
Upgrade javaparser to the latest.
The old version can handle @link for a method, but not for a variable.
diff --git a/pom.xml b/pom.xml index b2ef05062..2f2179017 100644 --- a/pom.xml +++ b/pom.xml @@ -134,7 +134,7 @@ <json-path.version>2.4.0</json-path.version> <slf4j-simple.version>1.7.25</slf4j-simple.version> <junit.version>4.12</junit.version> - <javaparser-core.version>3.0.1</javapa...
1
1
0
[{"id": "G0", "claim": "Remove the empty line before the closing brace of the new JavaDocIncludePluginTest class.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
testomatio__reporter__418
testomatio/reporter
418
defect
8204ca5ce51a4c116a404d7338f891716939124f
39bf414d5162674a079acddaaa80ee5aa8d9d26b
add debug pipe
Added a debug channel to save the log in the tmp folder with the data that is sent to the server, for further study. ![image](https://github.com/user-attachments/assets/71842e76-e740-4c8b-87b7-fef9016375de) https://github.com/testomatio/reporter/issues/373
diff --git a/docs/pipes.md b/docs/pipes.md index acb61a3b..91ee9518 100644 --- a/docs/pipes.md +++ b/docs/pipes.md @@ -32,6 +32,7 @@ Pipes Concepts: - [Gitlab](./pipes/gitlab.md) - [CSV](./pipes/csv.md) - [Bitbucket](./pipes/bitbucket.md) +- [Debug](./pipes/debug.md) ## Custom Pipe diff --git a/docs/pipes/csv.m...
21
18
6
[{"id": "G0", "claim": "The debug pipe should not use axios at all.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "prepareRun should only log opts to the file, without making any axios request.", "category": "correctness", "verdict": "supported", "priori...
null
testomatio__reporter__744
testomatio/reporter
744
defect
7ab2bf038b3a931f4750243225a8d36e224e4fa3
041325568c059cc5f8ce9ac949f7054ec9742f1a
Fix XML reader handling for nested testsuite structures
Fix XML reader handling for nested testsuite structures in JUnit-style reports. The parser now recursively traverses nested suites, collects test cases from any depth, preserves suite-level output context, and adds regression coverage based on the XML sample from https://github.com/testomatio/reporter/issues/549 Add...
diff --git a/src/xmlReader.js b/src/xmlReader.js index f30aef69..fd510e92 100644 --- a/src/xmlReader.js +++ b/src/xmlReader.js @@ -651,26 +651,34 @@ class XmlReader { export default XmlReader; -function reduceTestCases(prev, item) { - let testCases = item.testcase; - if (!testCases) testCases = item['test-case']...
1
1
0
[{"id": "G0", "claim": "The parser already handled nested suites recursively, so the PR should propose fewer, smaller changes (checking existing tests and XML examples) instead of the large refactor of the XML reading logic.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
testomatio__reporter__790
testomatio/reporter
790
defect
df96bfdf6d545897ca69c563a8adc96f96cfacf0
0490a29d8080749f84d42fe970106d8dc24ec30f
Add MarkdownPipe for single-file Markdown reports
## Summary - Adds a new `MarkdownPipe` (`src/pipe/markdown.js`) that mirrors `HtmlPipe`'s lifecycle but emits a single, well-structured Markdown document. Activated when `TESTOMATIO_MARKDOWN_REPORT_SAVE` is set. - Configurable via `TESTOMATIO_MARKDOWN_REPORT_FOLDER` (default `md-report`) and `TESTOMATIO_MARKDOWN_FILEN...
diff --git a/src/constants.js b/src/constants.js index c559e745..d4a9a1ca 100644 --- a/src/constants.js +++ b/src/constants.js @@ -35,6 +35,12 @@ const HTML_REPORT = { TEMPLATE_NAME: 'testomatio.hbs', }; +// markdown pipe var +const MARKDOWN_REPORT = { + FOLDER: 'md-report', + REPORT_DEFAULT_NAME: 'testomatio-r...
1
1
1
[{"id": "G0", "claim": "The new /KEY$/ pattern will not match S3_ACCESS_KEY_ID, so that variable's value will not be masked as confidential in the report.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tetratelabs__car__10
tetratelabs/car
10
defect
155fdfd282f5c32d4ba6ca0c23f8d445358d5a8c
3018137e979d4681ef7b018b4a210a2c66ed7241
Adds extract commands
This adds all the commands needed by archive-envoy. Examples below: ## Linux ```bash $ for arch in amd64 arm64; do ./car \ --platform linux/${arch} \ --created-by-pattern 'ADD linux' \ --strip-components 2 \ -C /tmp/envoy-v1.18.3-linux-${arch} \ -qxvvf envoyproxy/envoy:v1.18.3; done https://index.d...
diff --git a/README.md b/README.md index c084c46..6a329e1 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,6 @@ built for. For example, you can extract files from a `windows/amd64` image even ## Experimental! -Right now, only list works: - ```bash $ go build . @@ -28,9 +26,9 @@ $ ./car -tvvf chocolateyfest/...
6
4
2
[{"id": "G0", "claim": "The dirsCreated set should be map[string]struct{} instead of map[string]bool, applied at declaration, lookup and assignment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "newDestinationPath should carry a comment explain...
null
tetratelabs__car__7
tetratelabs/car
7
defect
4933798d0c76a0894dc0fcd83158ef24bd992228
f1355887857792678a8094e761126ac846168bb1
Implements tar-like patterns
This is crucial as we don't want to list, much less extract all files in all layers! Ex. ```bash $ ./car -tf envoyproxy/envoy-alpine:v1.18.3 'Files/Program Files/envoy/envoy.exe' error: Files/Program Files/envoy/envoy.exe not found in layer $ ./car -tf envoyproxy/envoy-windows:v1.18.3 'Files/Program Files/envoy...
diff --git a/.gitignore b/.gitignore index e01222d..c15cf29 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ /dist/ # possible when testing -car +/car diff --git a/README.md b/README.md index da94524..c084c46 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ Right now, only list works: ```bash $ g...
4
1
0
[{"id": "G0", "claim": "The emptyPatternMatcher no-op type seems unnecessary; New could skip the len(patterns)==0 special case and create a patternMatcher with an empty map.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The listFunction helper would be mo...
null
tetratelabs__car__9
tetratelabs/car
9
defect
7b6fc50f46e88df4ff0381c8aa608959e2b2f4d1
f30f385c609bea4e7ca0e217645fdb9f150f976d
Adds --layer-pattern to constrain to dockerfile instructions
This saves bandwidth and time by allowing you to specify the layers likely to contain your data based on Dockerfile instructions (created_by). without ``` $ ./car -qtvvf envoyproxy/envoy-windows:v1.18.3 'Files/Program Files/envoy/envoy.exe' https://index.docker.io/v2/envoyproxy/envoy-windows/manifests/v1.18.3 ...
diff --git a/internal/car/car.go b/internal/car/car.go index 81ecba9..c004041 100644 --- a/internal/car/car.go +++ b/internal/car/car.go @@ -19,6 +19,7 @@ import ( "fmt" "io" "io/fs" + "regexp" "strings" "time" @@ -33,34 +34,37 @@ type Car interface { } type car struct { - registry internal.Registry - o...
1
1
1
[{"id": "G0", "claim": "Since layerPattern is user-provided, the code should use regexp.Compile and return an error to the user instead of MustCompile, which panics.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tetratelabs__getmesh__16
tetratelabs/getmesh
16
defect
5373e07464cae7af520d781def8777a35292d127
9eaf5474352c2c6789bda9299f53f40b45487d8b
getistio fetch: fix flavor behavior on flavor command
resolve https://github.com/tetratelabs/getistio/issues/15
diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index da3f740..6f79d6c 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -250,6 +250,22 @@ istioctl switched to 1.8.1-tetrate-v0 now cmd.Stderr = os.Stderr require.Error(t, cmd.Run()) + // fetch without version + cmd = exec.Command("./getistio", "fetch", "--flavo...
2
1
1
[{"id": "G0", "claim": "please add test cases under Test_processFetchParams, not only e2e.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "This PR should also add an example in the command doc; could you do that in another PR?", "category": "documentatio...
null
tetratelabs__getmesh__38
tetratelabs/getmesh
38
defect
0bab9e16be520fffe6729afe2d61fd65e98309e5
36f4c8b7f974402ee986e9af08e60d1eda8e4352
Add defaut-hub command.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
diff --git a/cmd/default_hub.go b/cmd/default_hub.go new file mode 100644 index 0000000..54ca5c5 --- /dev/null +++ b/cmd/default_hub.go @@ -0,0 +1,76 @@ +// Copyright 2021 Tetrate +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License....
1
1
0
[{"id": "G0", "claim": "The --set flag help text in cmd/default_hub.go should say \"Location\" instead of \"URL\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tetratelabs__getmesh__66
tetratelabs/getmesh
66
defect
2f2d3eac67b23e4a3f653c21a66d7c65b56c9839
137a3b418f279e03c02bf19304285980ba828d08
Fix getmesh fetchistioctl darwin arm64
This PR adds support to fetch the correct `istioctl` binary for darwin-arm64. Solves #64. Although #24 generates `getmesh` darwin-arm64 binaries, the generated binary wasn't fetching the correct `istioctl` for darwin-arm64.
diff --git a/internal/istioctl/istioctl.go b/internal/istioctl/istioctl.go index 94c769c..089057b 100644 --- a/internal/istioctl/istioctl.go +++ b/internal/istioctl/istioctl.go @@ -40,10 +40,8 @@ import ( const IstioVersionNoPodRunningMsg = "no running Istio pods in \"istio-system\"" var ( - istioDirSuffix ...
2
2
0
[{"id": "G0", "claim": "The test should use require.Equal instead of a manual comparison with t.Fatalf, in line with other unit tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The intermediate \"url\" variable in fetchIstioctlURL could be removed ...
null
tetratelabs__getmesh__88
tetratelabs/getmesh
88
defect
48d8bdf57e64a49ed01b89f355646a01b11b89f0
059669bfed54d57b80fb7af612a22f1185c1c969
TID 1.12.4 Release
1. 1.12.4 TID release. 2. Removed EOL istio distributions from getmesh. 3. Removed istio error code ( IST0101 ) which is not getting reported in 1.12 release. 4. Fixed failed assertion in check-upgrade test case. This PR fixes - https://github.com/tetratelabs/getmesh/pull/87/files https://github.com/tetratelabs...
diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 7d127f3..60fb36f 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -113,7 +113,7 @@ istioctl switched to 1.8.6-tetrate-v0 now require.Contains(t, buf.String(), `-tetrate-v0 now`) // fetch another version - cmd = exec.Command("./getmesh", "fetch", "--version...
1
1
1
[{"id": "G0", "claim": "The added EOL string for Istio 1.8 in site/manifest.json reads \"2092-01-18\" and should be checked (it looks like a typo for \"2022-01-18\").", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
texstudio-org__texstudio__4361
texstudio-org/texstudio
4,361
defect
a35fc3225861b56c23b13ef3c6484ad55b210ba8
0c5ef1cf33ea32dee3cb1b3c1fe72dbc3faa6a1e
user macros can be "activated" (checked)
#### Final remarks about results from the comments: Macros are not really deactivated when they are not checked. They are still visible in the Macro menu as well as in the side panel and can be executed from there. You can also execute them in the Macro Editor by pressing the Exec button. While the macro shortcut and ...
diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 6b8b30f73..e40278519 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -1726,7 +1726,8 @@ bool ConfigManager::execConfigDialog(QWidget *parentToDialog) if (replaceQuotes){ foreach (const Macro &m, completerConfig->userMa...
6
4
2
[{"id": "G0", "claim": "The 'Import as active macros' checkbox is superfluous and its default is wrong: imported macros must be active (checked) by default, so the option has to go.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Deactivating a macro shou...
null
texstudio-org__texstudio__922
texstudio-org/texstudio
922
defect
77894aeaa10bc001b43a3119eb1bd60250506e12
cd29592f253ebb1886054cc099ecc82e00f1c5c3
Fix tests that use SyntaxCheck
As mentioned in https://github.com/texstudio-org/texstudio/issues/918 there is a race condition in the `SyntaxCheck::waitForQueueProcess`. This race condition causes any tests that use this method to return prematurely. This happens mostly when the CPU load is high and when it happens tests start failing like this: ...
diff --git a/src/syntaxcheck.cpp b/src/syntaxcheck.cpp index bd3a9dd8a8..48a1239809 100644 --- a/src/syntaxcheck.cpp +++ b/src/syntaxcheck.cpp @@ -20,21 +20,15 @@ * \param parent */ SyntaxCheck::SyntaxCheck(QObject *parent) : - SafeThread(parent), syntaxErrorFormat(-1), ltxCommands(nullptr), newLtxCommandsAvailab...
2
1
0
[{"id": "G0", "claim": "The names of the new methods (run, runControlMessages, runNewLtxCommands, runLines) are confusing because 'run' has a very specific meaning in QThread, so please rename all of them to processSomething.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduce...
null
text-mask__text-mask__207
text-mask/text-mask
207
defect
7d78fb0b9ac7ef448d6c47c62712846559477287
f2ae9a117f4252fac0aaf2d4dce38a1240022077
Adding support for negative numbers in createNumberMask
This PR fixes #205
diff --git a/addons/src/createNumberMask.js b/addons/src/createNumberMask.js index 0973d8a9..36441a67 100644 --- a/addons/src/createNumberMask.js +++ b/addons/src/createNumberMask.js @@ -2,9 +2,11 @@ const dollarSign = '$' const emptyString = '' const comma = ',' const period = '.' +const minus = '-' const nonDigit...
7
7
4
[{"id": "G0", "claim": "The mask places the minus sign after the prefix; it should be placed left-most, i.e. before the prefix.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The prefix is needlessly split into an array to get its length; the string's ow...
null
text-mask__text-mask__485
text-mask/text-mask
485
defect
49dfcb4813e0c5c99ad18c801fef5f499e93c901
025d49472844a29b5f078781d3713307125f9196
#299
Add an option for using mask instead of empty string Closes #299
diff --git a/core/src/createTextMaskInputElement.js b/core/src/createTextMaskInputElement.js index 8268f56f..d9868add 100644 --- a/core/src/createTextMaskInputElement.js +++ b/core/src/createTextMaskInputElement.js @@ -26,7 +26,8 @@ export default function createTextMaskInputElement(config) { guide, pipe,...
2
1
0
[{"id": "G0", "claim": "The `showMask` property is not needed in the `conformToMaskConfig` object passed to `conformToMask`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The difference between `guide` and `showMask` should be documented.", "category": ...
null
textlint__textlint__1067
textlint/textlint
1,067
defect
14692b3f39dbe4c8bcea822acd74d8e4648aef32
9ece360a96118711bdb4cda823252716b50ae254
feat(textlint-tester): add description field
This PR attempts to add the `description` option to textlint-tester. closes: https://github.com/textlint/textlint/issues/1005
diff --git a/packages/textlint-tester/README.md b/packages/textlint-tester/README.md index 482e7c44f..9ffa8aad8 100644 --- a/packages/textlint-tester/README.md +++ b/packages/textlint-tester/README.md @@ -113,6 +113,7 @@ tester.run("rule name", { - `{string} text`: a text to be linted - `{string} ext`...
5
5
4
[{"id": "G0", "claim": "The new valid-case tests in textlint-tester-error-format.ts should use `assert.rejects` (instead of `.catch` with `assert.strictEqual`/`assert.ok`) so the test fails when `testValid` resolves instead of rejecting.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intro...
null
textlint__textlint__1472
textlint/textlint
1,472
defect
846a3eb4382de576c7ec5c1d13018fd940806865
43a9af647b5a9b88c79031c9a781b76cf5b36ccd
feat(config-loader): validate UTF-8 encoding for configuration file
close https://github.com/textlint/textlint/issues/298 This pull request introduces changes to the `@textlint/config-loader` package to enforce UTF-8 encoding for configuration files. ### UTF-8 Encoding Validation: * [`packages/@textlint/config-loader/src/config-loader.ts`](diffhunk://#diff-ad9621f1e6319b581285...
diff --git a/packages/@textlint/config-loader/src/config-loader.ts b/packages/@textlint/config-loader/src/config-loader.ts index 7b85a1190c..9b062ab937 100644 --- a/packages/@textlint/config-loader/src/config-loader.ts +++ b/packages/@textlint/config-loader/src/config-loader.ts @@ -3,6 +3,8 @@ import { TextLintModuleRe...
2
2
1
[{"id": "G0", "claim": "The UTF-8 validation should run on the actual config file path returned by rcFile (results.filePath), e.g. via assertConfigFileIsUtf8(results.filePath), instead of checking options.configFilePath before rcFile resolves the config.", "category": "correctness", "verdict": "supported", "priority": ...
null
textlint__textlint__1497
textlint/textlint
1,497
defect
3329ca33ca56d5fb01dfc1b1d8fe18cb89559898
080ecbcd903a68633b8834e48349f90c1f3c7e8c
feat(kernel): support multi-part extensions in plugin
close https://github.com/textlint/textlint/issues/623 This pull request updates the logic for matching plugin descriptors by file extensions in the `TextlintPluginDescriptors` class and adds new test cases to validate the changes. ### Updates to extension matching logic: * [`packages/@textlint/kernel/src/descr...
diff --git a/packages/@textlint/kernel/src/descriptor/TextlintPluginDescriptors.ts b/packages/@textlint/kernel/src/descriptor/TextlintPluginDescriptors.ts index f2ffacc20..466483ca5 100644 --- a/packages/@textlint/kernel/src/descriptor/TextlintPluginDescriptors.ts +++ b/packages/@textlint/kernel/src/descriptor/Textlint...
2
2
0
[{"id": "G0", "claim": "The new test assertions should use `assert.strictEqual` instead of `assert.deepStrictEqual` where `===` would do.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The original test code's use of deepStrictEqual should be ma...
null
textlint__textlint__1564
textlint/textlint
1,564
defect
13e6ebd69086338dcbe2a457c3287f46fb51bec1
e70af59cd2351ee7a44a91355c45ed7e3a815aea
feat(mcp): implement Phase 1 improvements - structured output, outputSchema, and error handling
## Summary This PR implements Phase 1 of the MCP server improvements for textlint as described in issue #1563, focusing on the 2025-06-18 MCP specification compliance. ## Changes ### 🔧 Core Implementation - **Migrate from deprecated `server.tool()` to `registerTool()`** with proper input/output schema definitions -...
diff --git a/README.md b/README.md index 73180430d..e522f96d9 100644 --- a/README.md +++ b/README.md @@ -620,4 +620,6 @@ textlint website is powered by [Netlify](https://www.netlify.com). <img src="https://www.netlify.com/img/global/badges/netlify-light.svg"/> </a> +[![Ask DeepWiki](https://deepwiki.com/badge.svg...
3
2
0
[{"id": "G0", "claim": "The file-existence check and error-response logic duplicated across the MCP tools should be extracted into a shared helper function to reduce repetition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests that manua...
null
textlint__textlint__1572
textlint/textlint
1,572
defect
5f261e0851ac0060c918b072be28e05d0252f446
a2732d4740e6d6fc8b0a9fc8a3547fdfcf88950e
refactor(textlint): use "read-package-up"
## Migration: Upgrade from read-pkg-up to read-package-up v11 This PR migrates textlint from the deprecated `read-pkg-up` v3 to the modern `read-package-up` v11, while maintaining CommonJS compatibility. ### Changes - **Package Migration**: `read-pkg-up` v3 → `read-package-up` v11 - Updated API usage: `pkg`...
diff --git a/netlify.toml b/netlify.toml index 125a90e3d..b755cd7fa 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] publish = "website/build" - command = "pnpm run website --verbose" + command = "pnpm install && pnpm run website --verbose" [build.environment] NODE_VERSION = "22" diff --gi...
2
1
0
[{"id": "G0", "claim": "Rename the misspelled local variable 'executeFileBackerManger' to 'executeFileBackerManager' in packages/textlint/src/createLinter.ts for clarity and consistency with the class name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
textlint__textlint__1801
textlint/textlint
1,801
defect
f62b2c3463045babce028c603da099bbeaa14c96
600d9f663c365fbc87b0a713d59d27143c6d6817
feat(kernel): add suggestions API
cf. https://github.com/textlint/textlint/issues/1122 This pull request adds support for reporting and handling suggestions in linting results, enabling rules to provide multiple suggested fixes for a single problem. The implementation includes changes to core logic, error handling, and corresponding tests to ensure ...
diff --git a/packages/@textlint/kernel/src/context/TextlintRuleErrorImpl.ts b/packages/@textlint/kernel/src/context/TextlintRuleErrorImpl.ts index cc7e49516..804fa9de5 100644 --- a/packages/@textlint/kernel/src/context/TextlintRuleErrorImpl.ts +++ b/packages/@textlint/kernel/src/context/TextlintRuleErrorImpl.ts @@ -1,7...
3
2
0
[{"id": "G0", "claim": "The import in TextlintRuleSuggestion.ts is missing the `.js` file extension and should read \"./TextlintRuleContextFixCommand.js\" for consistency with other imports in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "...
null
textlint__textlint__1992
textlint/textlint
1,992
defect
a8d178ade36907e598799be9ff35401688122ec6
f891a0009fca9ead11ffaeebca97d714145872ee
chore: migrate from eslint to oxlint
## Summary Migrates the repository's linter from ESLint to oxlint for faster linting. Replaces `eslint.config.js` with `.oxlintrc.json` and updates related scripts and dependencies. ## Changes - Add `.oxlintrc.json` with the project's lint rules - Remove `eslint.config.js` - Update `package.json` scripts and...
diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 000000000..c77309d4c --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,67 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": [ + "typescript" + ], + "categories": { + "correctness": "error" + }, + "rules": { ...
2
1
0
[{"id": "G0", "claim": "pnpm 11 replaces onlyBuiltDependencies with allowBuilds, so pnpm-workspace.yaml should use allowBuilds instead of onlyBuiltDependencies.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "oxlint@1.58.0 requires Node ^20.19.0 || >...
null
textlint__textlint__1994
textlint/textlint
1,994
defect
08a9cdc89811f969c60cb8b90f68c9e36c25c4ca
e9ecb180480d925dae67b4490034841749fdc159
refactor: drop unused/replaceable deps (clone, mkdirp, shelljs)
## Summary Removes unused or easily replaceable dependencies (`clone`, `mkdirp`, `shelljs`) across the monorepo. Replaces their usages with Node.js built-ins (`structuredClone`, `fs.mkdirSync({ recursive: true })`, `fs`/`child_process`) to slim down the dependency graph. ## Changes - Drop `clone`, `mkdirp`, an...
diff --git a/examples/perf/package.json b/examples/perf/package.json index 8dc8f6612..f76432ed6 100644 --- a/examples/perf/package.json +++ b/examples/perf/package.json @@ -15,7 +15,6 @@ "perf": "node perf.js" }, "devDependencies": { - "shelljs": "catalog:", "textlint": "workspace:*", "textlint-...
5
3
1
[{"id": "G0", "claim": "The example loop body always uses the hardcoded exampleDir instead of the example loop variable, so only the first example directory is exercised (three times redundantly) and the eslint-disable suppression should be removed once the loop variable is used.", "category": "correctness", "verdict":...
null
textlint__textlint__412
textlint/textlint
412
defect
6f00b61e4039c34756b48b1aa1c9d0e876ad5442
8de3fef2a4483cbb1813f076eae261434169f190
feat(textlint-fixer-formatter): add getFormatterList function
Hi, could you review my preliminary `getFormatterList` implementation for `textlint-fixer-formatter`(#399)?
diff --git a/packages/textlint-fixer-formatter/src/index.ts b/packages/textlint-fixer-formatter/src/index.ts index 07c5fa880..212c06dda 100644 --- a/packages/textlint-fixer-formatter/src/index.ts +++ b/packages/textlint-fixer-formatter/src/index.ts @@ -45,3 +45,13 @@ ${ex}`); return formatter(results, formatte...
3
3
1
[{"id": "G0", "claim": "The newly added test file should be written in TypeScript rather than JavaScript.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's bare `assert` on the formatter list is not meaningful, so the assertion should ch...
null
textlint__textlint__748
textlint/textlint
748
defect
bb2c2abc8d3d7da69e163d04d8d37ab3f52e204d
067d3fca4f48f57d4a144fc2c16f6308c61e4079
Add .textlintignore support
close #500. This PR contains a trivial breaking change, `node_modules` and `.git` will be ignored by default.
diff --git a/README.md b/README.md index 8c51887064..869b9f1634 100644 --- a/README.md +++ b/README.md @@ -93,40 +93,43 @@ Run `textlint -h` for information on how to use the CLI. $ textlint [options] file.md [file|dir|glob*] Options: - -h, --help Show help. - -c, --config path::String Us...
3
3
1
[{"id": "G0", "claim": "Remove the stray console.log(result.filePath) debugging statement from the new ignoreFile test in textlint-engine-test.ts (M001 asks 'Can you remove it?', M002 is an empty suggestion block deleting the line).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
textlint__textlint__832
textlint/textlint
832
defect
390a0e1bc7a8fb8c2c880e046629b1346fa2e51a
4e5f87a0b2dd1e56c60a5c090780d65090dc19e1
Plugin can return Promise when calling preProcess
## What's changed - Promise type added to type definition of `preProcess`. - The method from which preProcess is called is now an `async` function. Fortunately, it was originally a function that returned a Promise, so the change is minimal. ## Why make this change? In [textlint-plugin-ruby](https://github.com...
diff --git a/packages/@textlint/kernel/src/fixer/fixer-processor.ts b/packages/@textlint/kernel/src/fixer/fixer-processor.ts index a1ab2bb75..9fa6a85a6 100644 --- a/packages/@textlint/kernel/src/fixer/fixer-processor.ts +++ b/packages/@textlint/kernel/src/fixer/fixer-processor.ts @@ -66,9 +66,9 @@ export default class ...
3
3
2
[{"id": "G0", "claim": "The preProcess signature should use a shared type alias: add `TextlintPluginPreProcessResult` and return `TextlintPluginPreProcessResult | Promise<TextlintPluginPreProcessResult>` instead of the inline union.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
textlint__textlint__978
textlint/textlint
978
defect
6497d61122376885e349da9ba98387f74429a0e6
40eecfb4f2658f915c70fb211c9730300545420c
feat(textlint): add fixed-result option to fixer formatter
This PR adds `raw-output` option to the fixer formatter. Closes #967 --- # TEST ```json:.textlintrc.json { "rules": { "period-in-list-item": true } } ``` ```sh >>> npm install /path/to/packages/@textlint/fixer-formatter /path/to/packages/textlint --save-dev >>> cat old.md | npx textlint --s...
diff --git a/README.md b/README.md index 5ccbbec40..49ffad908 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Output: Available formatter : checkstyle, compact, jslint-xml, json, junit, pretty-error, stylish, table, tap, unix - Availabl...
4
4
1
[{"id": "G0", "claim": "The raw-output formatter should not prepend a newline to each result's output, because it changes the file even when there are no changes — if textlint finds no error the output should be identical to the input file.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
tezc__sc__99
tezc/sc
99
defect
611a97d9d957bbe0174ca76a2bf19118fe91370f
ca4ad29f75f1b843b3683ccebac2df4b1589e8cc
sc_sock_poll thread safety
Fixes https://github.com/tezc/sc/issues/98 For all implementations: - replaced `err` with a static thread-local `sc_sock_poll_errstr` to make sure `sc_sock_poll_err()` will return correct error message for different threads; - allocate constant size result buffer for `SC_SOCK_POLL_MAX_EVENTS` events, which is `102...
diff --git a/socket/sc_sock.c b/socket/sc_sock.c index e791cc1..f24b8d2 100644 --- a/socket/sc_sock.c +++ b/socket/sc_sock.c @@ -46,6 +46,10 @@ #define SC_SIZE_MAX INT32_MAX #endif +#ifndef SC_SOCK_POLL_MAX_EVENTS +#define SC_SOCK_POLL_MAX_EVENTS 1024 +#endif + #if defined(_WIN32) || defined(_WIN64) #include <afu...
5
5
1
[{"id": "G0", "claim": "The rollback line after a failed kevent() is indented with spaces instead of a tab, so the indentation should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In sc_sock_poll_wait() on Windows the n == SOCKET_ERRO...
null
tezedge__tezedge__1062
tezedge/tezedge
1,062
defect
3d48c69b5dd6302da0dc906d90fbb39fed7e03a6
fc89d3ad41273361295e8072229dc3555607d90c
Prevalidator rework
This PR switches to a new prevalidator implementation in the protocol runner (based on the current implementation in Octez), and uses a cleaner API.
diff --git a/shell_automaton/src/mempool/mempool_effects.rs b/shell_automaton/src/mempool/mempool_effects.rs index 6d5dc4325d..e87be55122 100644 --- a/shell_automaton/src/mempool/mempool_effects.rs +++ b/shell_automaton/src/mempool/mempool_effects.rs @@ -540,7 +540,7 @@ where .branch_delayed ...
1
1
0
[{"id": "G0", "claim": "The commented-out `context_fitness` fields left in the interop tests should be removed rather than kept as comments, since they will likely never be needed again.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tezedge__tezedge__1089
tezedge/tezedge
1,089
defect
9de85e3807c87772a0dc4d891d09fcc2a2336546
5db7db0d86b13fd24d9bfbec2164113a2b438b7c
Flush database after block application
- Call `rocksdb::DBWithThreadMode::flush_wal` after every block application, this flush the WAL buffer to disk. This requires updating `rockdb` to 0.18 - Use `File::sync_all` on the commit log, instead of `<File as io::Write>::flush`, because flush is a no-op: https://github.com/rust-lang/rust/blob/master/library/s...
diff --git a/Cargo.lock b/Cargo.lock index f33be845d6..5645f53479 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2209,13 +2209,16 @@ dependencies = [ [[package]] name = "librocksdb-sys" -version = "6.20.3" -source = "git+https://github.com/tezedge/rust-rocksdb.git?tag=tezedge-v0.17.0-1#cba1d783f0ff40b433bc89efc136db0...
2
2
0
[{"id": "G0", "claim": "The new test file tezos/interop/tests/integrity_check.rs is missing a copyright notice.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If BlockStorage::flush fails after clog.sync succeeded, the worst outcome is that the co...
null
tezedge__tezedge__137
tezedge/tezedge
137
defect
140e98aaf248fd7cbde8f4bd98b2adcb0a7ded04
89cdaf77b813451f43843e853f6d56f49dc10c18
drone CI/CD integration
This PR adds drone CI integration tests to the checks. To activate the CI: 1. login to https://cloud.drone.io/ as simplestaking 2. activate the repo The pipeline consists of the following steps: 1. Drone automatically clones the repo and mounts it as a volume into all the pipeline steps (each step is a new...
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000000..138a6dccd3 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,50 @@ +kind: pipeline +name: default + +steps: +- name: build-tezedge + image: adonagy/tezedge-ci-builder:latest + user: root + environment: + RUST_BACKTRACE: 1 + SODIUM_USE_PKG_CONF...
2
2
1
[{"id": "G0", "claim": "The new rpc/tests/integration_tests.rs uses pre-Rust-2018 `extern crate` syntax, which should not be used.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reqwest 0.10.0-alpha.2 dev-dependency added for the new integra...
null
tezedge__tezedge__156
tezedge/tezedge
156
defect
8c9cac0465d159810844cb6c58ca04850cfe7496
c4afab8e612f3e42a9b35b55b7ce471522a36ead
TE-89 helpers/endorsing_rights #1
RPC /chains/:chain_id/blocks/:block_id/helpers/endorsing_rights For now it works with first 5 cycles. TODO: 1. verify computation of roll_snapshot - there seems to be different approach for levels 1-5, 6-10, 10 ... 2. verify computation of last_roll
diff --git a/Cargo.lock b/Cargo.lock index cdef4491b1..c08470581f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1948,6 +1948,7 @@ dependencies = [ "getset 0.0.9 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.13.0 (registry+htt...
5
5
1
[{"id": "G0", "claim": "The reviewer asks whether there is a reason the endorsing-rights handler returns an RpcResponseData enum instead of Result<Vec<EndorsingRight>, RpcErrorMsg>.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The level/cycle helpers m...
null
tezedge__tezedge__175
tezedge/tezedge
175
defect
533a5a2f7c5f981eec1da04b1ae954f34eaa4978
65e63f1031d03bc973739866ccf23505e254ce25
Add RPC GET chains/main/blocks/<block_hash>/votes/listings
This PR adds the RPC chains/main/blocks/<block_hash>/votes/listings. The RPC returns the delegates, that are eligible to vote, with their vote's weights in rolls
diff --git a/rpc/src/encoding/conversions.rs b/rpc/src/encoding/conversions.rs index 24b8e6dae8..8231eb76fa 100644 --- a/rpc/src/encoding/conversions.rs +++ b/rpc/src/encoding/conversions.rs @@ -76,6 +76,27 @@ pub fn public_key_to_contract_id(pk: Vec<u8>) -> Result<String, failure::Error> } } +#[inline] +pub fn...
2
2
0
[{"id": "G0", "claim": "Instead of using bail! in the helper functions (e.g. hash_to_contract_id in rpc/src/encoding/conversions.rs), define a custom error through failure::Fail (a simple error enum).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In get...
null
tezedge__tezedge__216
tezedge/tezedge
216
defect
621de341ce762a0141740613954abecf6d58107b
8926be45489cd2387d803a398861feba85f7c522
Receive action values from protocol
After protocol changes (in GitLab) are merged, we will need to change GIT_COMMIT_HASH in interop/build.rs, imho.
diff --git a/light_node/src/main.rs b/light_node/src/main.rs index c06e1bbac2..a6b251a186 100644 --- a/light_node/src/main.rs +++ b/light_node/src/main.rs @@ -38,7 +38,7 @@ mod configuration; mod identity; const EXPECTED_POW: f64 = 26.0; -const DATABASE_VERSION: i64 = 11; +const DATABASE_VERSION: i64 = 12; macro...
3
3
2
[{"id": "G0", "claim": "Refactor the context_raw_set callback to take a keyval tuple (plus time_period) like the other callbacks, as mentioned in the GitLab PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a value_as_json field to the GET ...
null
tezedge__tezedge__262
tezedge/tezedge
262
defect
c2a68394431592361355a376d900975b840e3fac
aea72693d588f839f328adeb99192851994c3844
TE-196 baking with tezos-client in sandbox mode
Contains all the rpc calls required by the tezos-client to use the **_bake for_** command. I will squash the commits after the PR is reviewed.
diff --git a/.drone.yml b/.drone.yml index 3379b66f0f..1b7a501615 100644 --- a/.drone.yml +++ b/.drone.yml @@ -258,7 +258,7 @@ steps: commands: - tezos-admin-client -A `cat /tmp/sandbox/ocaml_ip.txt` -P 8732 connect address `cat /tmp/sandbox/tezedge_ip.txt`:9732 - sleep 1 - - tezos-client --base-dir /tm...
12
12
2
[{"id": "G0", "claim": "The commented-out injection_data_json line in inject_block should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In inject_block, header.message_hash().unwrap() should use ? instead of unwrap.", "category": "c...
null
tezedge__tezedge__332
tezedge/tezedge
332
defect
5f3f6e5efb8cd0bd9892b470106b3bfaea5f5fed
a6cfd6ade4e362839c2dce3f6433cffdec48a59f
Upgrade ocaml interop
NOTE: this was made on top of #383, which should go first (initially it was the other way around). Changes: - Upgraded to newer ocaml-interop - Switched to an exception-less tezos-ffi. Tezos errors are represented by the new `TezosError` and `TezosErrorTrace` types. - Mapping of errors doesn't require any more...
diff --git a/Cargo.lock b/Cargo.lock index 3ca8d8cb9f..2d49de53c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1964,8 +1964,7 @@ checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" [[package]] name = "ocaml-interop" version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.i...
3
1
0
[{"id": "G0", "claim": "Graceful OCaml runtime shutdown is left unimplemented (the shutdown() body is a TODO) and the management of the new runtime handle still needs to be revised.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This branch is slowe...
null
tezedge__tezedge__352
tezedge/tezedge
352
defect
24bee6a4aca43d5925db22af0ce678de5078fd1f
6b56bad49d5fda4dcf4e7dd7dcf873bd5c9b5231
Feature/predecessor algo
Adds the predecessor lookup algorithm from tezos ocaml node
diff --git a/.drone.yml b/.drone.yml index cbcceee423..65d99c1147 100644 --- a/.drone.yml +++ b/.drone.yml @@ -141,6 +141,9 @@ steps: # interop_benchmark - echo "" && echo "" && echo "...interop_benchmark..." && echo "" && echo "" - cargo bench --bench interop_benchmark -- --noplot + # interop_benchma...
2
2
2
[{"id": "G0", "claim": "Remove find_block_at_distance_old from the BlockMetaStorageReader trait and, just for tests, implement it as a standalone function built on get.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Hide access to predecessors_index on B...
null
tezedge__tezedge__377
tezedge/tezedge
377
defect
9dec76710d638da383f0a302f7c3b7521a276389
261626d515161dc0ae0e180cd1d1b1f2feb90a27
[TE-247] Remove path codec recursion
This is quite big PR. It addresses several issues with recursive data structure. **binary_reader/writer**. `Lazy` encoding was used for recursive data structures that implied recursion in runtime. Now `Custom` encoding is used that supplies plain functions for encoding/decoding. **Serde**. Serialization and deseri...
diff --git a/tezos/encoding/src/binary_reader.rs b/tezos/encoding/src/binary_reader.rs index 080a5122b1..6c6b665c5e 100644 --- a/tezos/encoding/src/binary_reader.rs +++ b/tezos/encoding/src/binary_reader.rs @@ -29,6 +29,15 @@ pub enum BinaryReaderError { /// may simply mean that we have not yet defined tag in enco...
1
1
1
[{"id": "G0", "claim": "Add detailed comments explaining why PATH_MAX_DEPTH is 512 (as discussed on Slack) and a TODO with a linked jira where work on it will continue, then rebase and merge.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tezedge__tezedge__426
tezedge/tezedge
426
defect
d02b1890cd7b4720a83c83030bcde3926ce889f2
90b4c24cd3a2e4620a5155674e34bb8ec2ec7c0c
Replace recursive linked list with vector [TE-384,TE-232]
The idea is to get rid of recurstion in `Path` definition so `serde` derived impls are not recursive. Still `compute_path` operation in OCaml generates the old recursive representation, so now `FfiPath` is defined pretty much like `Path` previously. Note that `FfiPath` conversion from OCaml is still recursive. Th...
diff --git a/storage/tests/operations_storage.rs b/storage/tests/operations_storage.rs index aa3da0542e..9eb3bc4e36 100644 --- a/storage/tests/operations_storage.rs +++ b/storage/tests/operations_storage.rs @@ -21,37 +21,37 @@ fn test_get_operations() -> Result<(), Error> { let storage = OperationsStorage::new(tmp...
5
3
2
[{"id": "G0", "claim": "The new Path::op() constructor returning an empty vector is confusing and what it represents (the single-element tree) is not explained.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should get a short des...
null
tezedge__tezedge__431
tezedge/tezedge
431
defect
5606aead692d72dd6709b02f640f6aa1ee87152e
ec92ca177205876ea58a1120610ee446f9204bd8
Introduce encoding limits [TE-301]
- Introduced new bounded encoding primitives - Bounded encoding primitives are used to guard possibly unlimited data structures in P2P messages - Boundaries are taken mostly from Tezos code For reference, see https://simplestakingcom.atlassian.net/l/c/rwb1LGxf.
diff --git a/tezos/encoding/src/binary_reader.rs b/tezos/encoding/src/binary_reader.rs index add0a61f16..a15f5d75fc 100644 --- a/tezos/encoding/src/binary_reader.rs +++ b/tezos/encoding/src/binary_reader.rs @@ -35,6 +35,9 @@ pub enum BinaryReaderError { name, boundary )] EncodingBoundaryExceeded { na...
5
5
0
[{"id": "G0", "claim": "The new Bounded variant in Encoding is missing its doc comment where the other variants have one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper blist should be renamed to the full name bounded_list, since one-le...
null
tezedge__tezedge__495
tezedge/tezedge
495
defect
64eb1df5bd7838e79dcc49c0cc173f469d9f42b3
ebf0329974a56bacc321919350ef5828bb4cd703
Add tests for stream module [TE-414 TE-476]
- Introduced generalized readers and writers - Added tests for them
diff --git a/Cargo.lock b/Cargo.lock index 2adda83710..58db12c980 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,6 +77,156 @@ dependencies = [ "serde_json", ] +[[package]] +name = "async-attributes" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3203e79f4dd9bdda...
8
7
0
[{"id": "G0", "claim": "The commented-out block of copy-pasted test code left in networking/benches/stream_reader.rs is unneeded and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The struct named CryptData is not about data, ...
null
tezedge__tezedge__527
tezedge/tezedge
527
defect
3606a4c2830c2d58c2400fc4c5d6c377ed850450
72553d2d78ad89b8ace2dae8d14939d83014d5c3
Optimize the Staging Area Tree part of Context Storage
This is a draft of my work on [TE-484], it's not finish yet. This PR removes the hashmap `staged` from `MerkleStorage`. Each `Node` now keeps the entry itself and its hash, the hash is computed only when necessary (when serializing). It uses interior mutability to write the hash on the `Node`, let me know if int...
diff --git a/Cargo.lock b/Cargo.lock index af540706f0..cb997f5f25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1409,6 +1409,27 @@ version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" +[[package]] +name = "jem...
5
4
2
[{"id": "G0", "claim": "Use `Arc` instead of `Rc` in the `Tree` type alias for now, because CI requires it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "No panics, unwraps or expects from interior mutability; use try_borrow_mut instead of borrow_mut.",...
null
tezedge__tezedge__557
tezedge/tezedge
557
defect
d746e0205e4c7f057df3967cba88b19802b5fa44
4a0f0bf67e31cc726e715ee27bf53ee550d84875
Make the timing database path configurable
- Add a new parameter to the node: `timing-db-path`, it is the directory of the timing database. - A new function `tezedge_timing_init` should be called from ocaml, before any other hooks, to set the db path - RPC: Return a 404 HTTP response when block is not found
diff --git a/light_node/etc/tezedge/tezedge.config b/light_node/etc/tezedge/tezedge.config index fe4716b986..4a594bac11 100644 --- a/light_node/etc/tezedge/tezedge.config +++ b/light_node/etc/tezedge/tezedge.config @@ -30,6 +30,13 @@ # --bootstrap-db-path <PATH> --bootstrap-db-path=bootstrap_db +# Path to timing da...
7
7
4
[{"id": "G0", "claim": "The comment block above --timing-db-path in tezedge.config names the wrong flag (--bootstrap-db-path) and does not match the one in tezedge_drone.config.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request leave...
null
tezedge__tezedge__645
tezedge/tezedge
645
defect
26aeaa32cb2fdf53187d1e278b541799e233ee83
5e91635bc91152964f8da7e63ffd82106269002b
add -disable-blacklist command line
Adds new `-disable-blacklist` command line option that allows misbehavior from remote-peers. For testing/fuzzing purposes.
diff --git a/light_node/src/configuration.rs b/light_node/src/configuration.rs index 5b814275dd..891fa33ad8 100644 --- a/light_node/src/configuration.rs +++ b/light_node/src/configuration.rs @@ -423,6 +423,10 @@ pub fn tezos_app() -> App<'static, 'static> { .long("disable-mempool") .global(tru...
1
1
0
[{"id": "G0", "claim": "The new command-line option should be named `disable-peer-blacklist` with the description \"Disable peer blacklisting\" instead of `disable-blacklist` / \"Enable or disable blacklist\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tezedge__tezedge__784
tezedge/tezedge
784
defect
cf05668764004ce25196d2509dedb32c2c39821d
e44e4cafd4aa91611d48369d69d7e3363bcb4b5c
Asynchronous IPC
Also reorganizes code to get rid of any dependency from the shell process to libtezos.
diff --git a/Cargo.lock b/Cargo.lock index 1f9f7e7d7b..003eb5b36d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1748,7 +1748,7 @@ dependencies = [ "storage", "strum", "tezos_api", - "tezos_context", + "tezos_context_api", "tezos_identity", "tezos_messages", "tezos_wrapper", @@ -2377,12 +2377,15 @@ dependenci...
1
1
0
[{"id": "G0", "claim": "ProtocolOverrides and enable_testchain are not related to the context and should 'sometime' be moved out of TezosContextConfiguration and the context-api crate.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tezedge__tezedge__830
tezedge/tezedge
830
defect
2305b4fc6d728a4735244bc06dfd38a454700794
0ffd7e68db05664bb3727fe4b977173fc8c216d3
Implement simulation for max connection number
Test that runs connection simulation. Can be run using ``` $ PEERS_NUM=6 MAX_CONNECTIONS=4 cargo test --test connection_threshold -- --nocapture --ignored ``` Also states graph can be generated with help of `Graphviz`: ``` $ GRAPH_FILE_NAME=graph.dot PEERS_NUM=3 MAX_CONNECTIONS=2 cargo test --test connection_...
diff --git a/shell_automaton/src/peer/connection/incoming/peer_connection_incoming_reducer.rs b/shell_automaton/src/peer/connection/incoming/peer_connection_incoming_reducer.rs index ccd0655878..8ca657e638 100644 --- a/shell_automaton/src/peer/connection/incoming/peer_connection_incoming_reducer.rs +++ b/shell_automato...
1
1
1
[{"id": "G0", "claim": "The incoming-connection guard in peer_connection_incoming_reducer.rs must compare `peers_connected <= state.config.peers_connected_max` instead of `<`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tezedge__tezedge__883
tezedge/tezedge
883
defect
c03facb9e195850a3cd6c2168641bb8e94bfb731
05adcdb2057a01760436c9067c4e9c0fc04d19ce
Compute checksums of the context files
Check the integrity of the context at the file level, by computing the checksum of the files. This change the format of `sizes.db` and will make it incompatible with previous version. The integrity check occurs in another thread, so that it doesn't block the main thread when initializing the context: We won't have...
diff --git a/Cargo.lock b/Cargo.lock index d79fe2800c..874c6f0b88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -638,9 +638,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81156fece84ab6a9f2afdb10...
6
6
3
[{"id": "G0", "claim": "The reload messages should use a common prefix such as `[tezedge.context] Reloading`, and the reviewer asks whether output from the separate thread can get mixed with other output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
tezedge__tezedge__889
tezedge/tezedge
889
defect
757f43231eb1a5ee6f340d0866f594c21fa1c30a
b48a02817504cd1593e7c7b5b10bd58306fccc6a
Fix `HashId` with inodes
- Fix HashId created before commit on inodes. They are recomputed with the correct index (index on disk) and by removing the working tree bit - Do not recompute hashes from deserialized inodes
diff --git a/tezos/context/src/hash/mod.rs b/tezos/context/src/hash/mod.rs index b3a6602c71..b8613d10b4 100644 --- a/tezos/context/src/hash/mod.rs +++ b/tezos/context/src/hash/mod.rs @@ -187,7 +187,7 @@ fn hash_long_inode( hasher.update(&[index]); - let hash_id = match pointe...
3
1
0
[{"id": "G0", "claim": "`HashId::try_new` would be a better name than `HashId::new` for the constructor used in the test.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of spending a bit on `is_offset_available`, a sentinel value (`0`) sho...
null
tf-encrypted__moose__1099
tf-encrypted/moose
1,099
defect
e279412daa7618a2d6045045d905cf8668a1e222
4131ec2b871e0fabce54e059d945a96d5a55f46a
Cleaning up LocalMooseRuntime API
Closes #1093 Closes #1094 Removes `role_assignments` from `LocalMooseRuntime.evaluate_computation`. The standard way to construct `LocalMooseRuntime` is now: ```python identities=["alice", "bob", "carole"] runtime = pm.LocalMooseRuntime(identities) ``` For adding storage to the simulated hosts: ```pyth...
diff --git a/moose/benches/runtime.rs b/moose/benches/runtime.rs index dfcfce304..942407e24 100644 --- a/moose/benches/runtime.rs +++ b/moose/benches/runtime.rs @@ -4,8 +4,8 @@ use criterion::{criterion_group, criterion_main, Criterion}; use maplit::hashmap; use moose::{ compilation::{compile, Pass}, - comput...
2
2
1
[{"id": "G0", "claim": "Feeding a computation with placements that have no corresponding identities in the runtime may no longer error out as before and may instead hang, because the error can reach AsyncTestRuntime/AsyncExecutor::run_computation, which silently filters out operations.", "category": "correctness", "ver...
null
tf-encrypted__moose__112
tf-encrypted/moose
112
defect
935a954ca533a4e2607c305db1fa7d1567069fab
7b2c6e84bb376313f7460de14668e100d6cc2db0
Prepare for merging nextgen into main branch
Moving everything into a `rust/` subfolder. I pulled in the README.md from the main branch to make the merge cleaner.
diff --git a/.github/workflows/ci.yaml b/.github/workflows/rust-ci.yaml similarity index 100% rename from .github/workflows/ci.yaml rename to .github/workflows/rust-ci.yaml diff --git a/Cargo.toml b/Cargo.toml index 4b2f57005..f895d0d34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] members = [ ...
1
1
0
[{"id": "G0", "claim": "Leave the workspace Cargo.toml in the /rust folder for now instead of at the repository root, moving it up to the root later once the main build process is managed by cargo.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tf-encrypted__moose__332
tf-encrypted/moose
332
defect
d456f8fc0df0f8f5a8cb3aa670f5132409651a44
ace856360ec016597505bffa711b1c70c39e54c0
Unifying spike: type signatures
Copying the type signatures definition from the `spike.rs` and using them throughout the code. In addition to what we had in the spike I implemented a couple of convenience method. So that it is possible: - to construct signatures as `Signature::binary(arg0Ty, Ty::Ring64TensorTy, Ty::UnitTy)` - to check any operat...
diff --git a/rust/moose/benches/exec.rs b/rust/moose/benches/exec.rs index ce95a3f19..0af772be6 100644 --- a/rust/moose/benches/exec.rs +++ b/rust/moose/benches/exec.rs @@ -68,8 +68,7 @@ fn par_compile(c: &mut Criterion) { use moose::execution::*; let operator = Operator::RingAdd(RingAddOp { - lhs: T...
19
18
11
[{"id": "G0", "claim": "The migration should perhaps also include the Vadiaric (variadic) type, which will be needed for sure but was left out of the spike for simplicity.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A leftover debug `println!` was add...
null
tf-encrypted__moose__490
tf-encrypted/moose
490
defect
2c1cd76145bef66874727017a34fbde3c901a1ef
e7d7b7dff066e1b6454cb694bde2172f4e357098
Fixed length keys (tags)
Closes https://github.com/tf-encrypted/runtime/issues/473 Closes https://github.com/tf-encrypted/runtime/issues/444 Closes https://github.com/tf-encrypted/runtime/issues/436 - [x] fix textual parser (a minor follow up here: https://github.com/tf-encrypted/runtime/issues/495) - [ ] ~update worker~: https://github....
diff --git a/moose/Cargo.toml b/moose/Cargo.toml index b67ae62ae..9f5f10bf3 100644 --- a/moose/Cargo.toml +++ b/moose/Cargo.toml @@ -44,6 +44,7 @@ serde = { version="~1.0", features=["derive"] } serde_bytes="~0.11" smallvec = "~1.6" sodiumoxide = "~0.2" +static_assertions = "~1.1" thiserror = "~1.0" tokio = { vers...
6
5
2
[{"id": "G0", "claim": "The rendezvous-key generation in the networking pass needlessly round-trips through a string and can probably be simplified to build the key directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be add...
null
tg123__go-htpasswd__8
tg123/go-htpasswd
8
defect
e7868d5df37c7131b673eee98cab1e340dd85663
6f54981b3068ce2cb756d2938ac18463974bf238
Adding support for non-default number of rounds
In SHA-512 password algorithm the number of rounds that the algorithm supports is between 1000 and 1B rounds. The current implementation only supports the default 5000 rounds though the underlying library supports the full range. This PR fixes the issue #9 and allows a "rounds=<N>" component
diff --git a/cryptsha.go b/cryptsha.go index 84dbb83..e45bbff 100644 --- a/cryptsha.go +++ b/cryptsha.go @@ -10,14 +10,16 @@ import ( ) type cryptPassword struct { + prefix string + rounds string salt string hashed string - prefix string } // Prefixes const PrefixCryptSha256 = "$5$" const PrefixCryptSha...
1
1
0
[{"id": "G0", "claim": "The second, duplicated user200 entry in the test fixtures should be renamed to user201 to make the test data less confusing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
thand-io__agent__205
thand-io/agent
205
defect
f8a461e651696ea83b4913bb4d7c67d316563b2e
e692459df580238faedf270fea4116b9be2689a0
Provide raw bytes to cookie writer
Sending b64 to the cookie writer was causing it to get double wrapped
diff --git a/go.mod b/go.mod index 1757b7e2..86c665ce 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,6 @@ require ( github.com/itchyny/gojq v0.12.17 github.com/kardianos/service v1.2.4 github.com/microsoftgraph/msgraph-sdk-go v1.91.0 - github.com/mitchellh/mapstructure v1.5.0 github.com/okta/okta-sdk-golang/v2 v...
7
3
2
[{"id": "G0", "claim": "The public EncodeBase64() calls itself instead of the private encodeBase64(), causing infinite recursion and a stack overflow at runtime.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new byte-based EncodingWrapper metho...
null
thand-io__agent__22
thand-io/agent
22
defect
e2d6284bc6c48f8f20dd574b43b15bfe4428a1b8
d9687238aa6db3e457521a4e9efafa8f9aa0926c
Store state for rbac
- Migrated from single Provider field to Providers array and single Workflow field to Workflows array in role definitions - Updated search attributes to store workflow state including user, role, providers, and workflow information - Added new updateTemporalSearchAttributes method to store RBAC state in workflow meta...
diff --git a/cmd/cli/access.go b/cmd/cli/access.go index afc8a7bc..e668d3c2 100644 --- a/cmd/cli/access.go +++ b/cmd/cli/access.go @@ -42,8 +42,9 @@ var accessCmd = &cobra.Command{ } err = MakeElevationRequest(&models.ElevateRequest{ - Role: foundRole, - Provider: resource, + Role: foundRole, + ...
5
4
0
[{"id": "G0", "claim": "The function comment says `updateSearchAttributes` while the function is named `updateTemporalSearchAttributes`, so the comment is incorrect and should name the function correctly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
thand-io__agent__223
thand-io/agent
223
defect
3ee89b1b7c8bd7b2f909ae46f1608bad9fccc93f
d579249f4fa6a5ae994f029c857509e70cfc131d
fix: use URL-safe base64 encoding in common models
## Summary Switch from standard base64 encoding to URL-safe base64 encoding in the EncodingWrapper methods. ## Changes - Changed `base64.StdEncoding` to `base64.URLEncoding` in `encodeBase64()` and `decode()` methods - Added comments explaining the use of URL-safe encoding ## Rationale Standard base64 encoding uses `...
diff --git a/internal/models/common.go b/internal/models/common.go index 008d0257..abd679bf 100644 --- a/internal/models/common.go +++ b/internal/models/common.go @@ -37,8 +37,8 @@ func (e EncodingWrapper) EncodeBytes() []byte { func (e EncodingWrapper) encodeBase64(modifiers ...EncryptionImpl) string { finalData ...
2
2
2
[{"id": "G0", "claim": "The new URL-safe Base64 behavior is not specifically verified by tests, and tests should be added asserting EncodeBase64 never emits '+' or '/' and that Decode correctly handles strings containing '-' and '_'.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
thand-io__agent__243
thand-io/agent
243
defect
8cf8b64ca7f8b221fce9bb73b7ab7d0e6e0f6e45
6c99655b54094da6714a8707a0e20d1663a91db2
Add the Agent endpoint to pre sync
This PR adds the endpoint for the server to help the primary service router
diff --git a/internal/config/config.go b/internal/config/config.go index 11bfa921..fe871e60 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -630,6 +630,7 @@ func (c *Config) syncWithEndpoint(loginUrl string, authentication *model.Referen Version: version, Commit: commit, Identi...
3
2
2
[{"id": "G0", "claim": "TestMergePatchLogic_OutgoingPatchCapturesLocalExtras should call jsonpatch.CreateMergePatch (what production sync.go uses) instead of jsonpatch.MergePatch, and the surrounding comment should be corrected since the test currently can pass while the real diff logic is broken.", "category": "testin...
null
thand-io__agent__272
thand-io/agent
272
defect
18d5c0e788ee779a84c590c74d90bf950d877620
eaf5df5e24727e497221e77a1652c53aa7bf7b30
Hugh/agt 9 slack roles list alphabetically
## Summary > Briefly describe what this PR does and why. Link to the relevant issue or context. Order roles/permissions for emails and slack messages --- ## Type of Change <!-- Check all that apply --> - [ ] `feat` – New feature (minor version bump) - [x] `fix` – Bug fix (patch version bump) - [ ] ...
diff --git a/internal/workflows/tasks/providers/thand/approvals_email.go b/internal/workflows/tasks/providers/thand/approvals_email.go index c429143a..d6e7e0f0 100644 --- a/internal/workflows/tasks/providers/thand/approvals_email.go +++ b/internal/workflows/tasks/providers/thand/approvals_email.go @@ -20,17 +20,17 @@ f...
2
2
1
[{"id": "G0", "claim": "sortedStatementsWithSortedFields takes models.RoleStatements but returns []models.Statement, which is surprising and inconsistent; consider returning models.RoleStatements so input and output types match.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
thand-io__agent__273
thand-io/agent
273
defect
11771ae37d9614ec0bd71971ec22190aa0132369
452ccd8792c961d96165a8115bdd6ac8c491e836
Hugh/agt 14 highlighting in search
## Summary > Briefly describe what this PR does and why. Link to the relevant issue or context. Adds search highlighting for keywords when searching in the UI --- ## Type of Change <!-- Check all that apply --> - [ ] `feat` – New feature (minor version bump) - [x] `fix` – Bug fix (patch version bump)...
diff --git a/internal/config/identities.go b/internal/config/identities.go index f7e6bb91..d119f7a4 100644 --- a/internal/config/identities.go +++ b/internal/config/identities.go @@ -417,10 +417,11 @@ func (c *Config) GetIdentitiesWithFilter( } identityMap[mappableIdentifier] = models.SearchResult[models....
3
1
1
[{"id": "G0", "claim": "Because the pull request enables allowHTML: true, Choices.js renders option labels as HTML while dynamic text is concatenated into them without escaping — role?.name/key in the roles dropdown and identity.label/title/identity.id in the identities dropdown — which could become an injection/XSS ve...
null
thand-io__agent__277
thand-io/agent
277
defect
befae30eb23f762befbf338f585b69dd0f836690
38d42c5165cd18327233c0778c9a55125a57f6e0
fix: preserve kebab-case format for workflow identifiers
## Problem The thand agent Docker container was experiencing workflow hydration errors: ``` "failed to hydrate resumed workflow task: failed to load workflow" ``` This caused the container to remain in an unhealthy state. ## Root Cause When workflows are loaded from YAML configuration files, they are stored in the ...
diff --git a/internal/config/workflows.go b/internal/config/workflows.go index e2cca826..aba67961 100644 --- a/internal/config/workflows.go +++ b/internal/config/workflows.go @@ -5,7 +5,6 @@ import ( "github.com/hashicorp/go-version" "github.com/sirupsen/logrus" - "github.com/thand-io/agent/internal/common" "gi...
2
2
0
[{"id": "G0", "claim": "The comment block added above `w.Identifier = workflowKey` in internal/config/workflows.go is mis-indented and needs gofmt, and its text is misleading because YAML does allow both \"auto-approve\" and \"auto_approve\" as distinct keys, so it should be reworded to describe collisions from the map...
null
thand-io__agent__278
thand-io/agent
278
defect
20ec89cb16933ebdd4920ecc3d9b0220fc4e68c6
c323bfb6788bcd41f5c688495e9a6b232bd3c641
UI e2e fixes
## Summary > Briefly describe what this PR does and why. Link to the relevant issue or context. Fix e2e tests and update workflows to not fetch identity during execution --- ## Type of Change <!-- Check all that apply --> - [ ] `feat` – New feature (minor version bump) - [x] `fix` – Bug fix (patch ve...
diff --git a/docs/configuration/providers/gcp/index.md b/docs/configuration/providers/gcp/index.md index 12fe374c..34719b48 100644 --- a/docs/configuration/providers/gcp/index.md +++ b/docs/configuration/providers/gcp/index.md @@ -85,14 +85,15 @@ gcloud organizations add-iam-policy-binding $ORG_ID \ --role="roles/...
4
2
1
[{"id": "G0", "claim": "The test container sets THAND_LOG_LEVEL, which is not a recognized env var (logging level is bound to THAND_LOGGING_LEVEL), so the intended debug logging likely has no effect; use the canonical THAND_LOGGING_LEVEL so E2E exercises the same config path as production.", "category": "correctness", ...
null
thand-io__agent__308
thand-io/agent
308
defect
b8af027cc83de3914410b4cea195baeced985084
ef00c1ee4f0538586559106a114311ac1d74285c
fix: prioritize inline definitions over defaults in Apply* functions
Inline provider/role/workflow definitions were being appended after external/default sources, causing processProviderDefinitions to treat the inline entry as a duplicate and skip it. This meant inline config values (e.g. thand provider endpoint) were silently lost. Prepend inline definitions so they are processed fi...
diff --git a/internal/config/inline_config_test.go b/internal/config/inline_config_test.go new file mode 100644 index 00000000..b99cab76 --- /dev/null +++ b/internal/config/inline_config_test.go @@ -0,0 +1,1018 @@ +package config + +import ( + "os" + "path/filepath" + "testing" + + "github.com/go-viper/mapstructure/v2"...
4
2
1
[{"id": "G0", "claim": "originalProviderDefs is built but never used, which fails go vet/go test compilation due to an unused local variable; remove it or use it in an assertion/log.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test YAML uses ...
null
thand-io__agent__311
thand-io/agent
311
defect
4fbce5de2c1df62f39d49a9330ca9f11186d5218
4a5b480ef63b91701768746889071ff1e46925f6
fix: tighten provider cookie shard handling
## Summary Follow-up to #310 to address the two merged review comments on the provider-cookie sharding change. --- ## Type of Change - [x] `fix` – Bug fix (patch version bump) - [x] `test` – Adding or updating tests --- ## What Changed - Expire only stale v2 provider-cookie shard names during rewrites instead of...
diff --git a/internal/daemon/cookies.go b/internal/daemon/cookies.go index bcbc820d..680aa902 100644 --- a/internal/daemon/cookies.go +++ b/internal/daemon/cookies.go @@ -230,7 +230,9 @@ func (s *Server) writeProviderCookie(c *gin.Context, provider string, localSessi return fmt.Errorf("signed provider session exceed...
1
1
0
[{"id": "G0", "claim": "Update mergeCookies to call isExpiredCookie so all expiry decisions in the test file use the same centralized heuristic instead of duplicating the old inline MaxAge/Expires check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
thand-io__agent__314
thand-io/agent
314
defect
44cdc8867d1cb2125e7f60f3490ef806fe4a3642
49d49fff2d3193cb64c74c032970a054d771f8fa
[codex] Fix Temporal bootstrap binding in testinfra
## Summary - bind the Temporal auto-setup container on `0.0.0.0` instead of the image default loopback-only bind - keep namespace registration fail-fast - narrow retries so they only cover the short namespace-visibility lag before `AddSearchAttributes` ## Why this was needed on my setup The frontend integrat...
diff --git a/test/integration/testinfra/infrastructure.go b/test/integration/testinfra/infrastructure.go index d20097c1..fe74507e 100644 --- a/test/integration/testinfra/infrastructure.go +++ b/test/integration/testinfra/infrastructure.go @@ -22,7 +22,9 @@ import ( "github.com/thand-io/agent/internal/common" sdkCon...
1
1
1
[{"id": "G0", "claim": "isNamespaceNotVisibleError's fallback of matching substrings in err.Error() is brittle (message text can change across Temporal/server versions, locales, or be wrapped); prefer relying solely on the gRPC status code or a typed Temporal error via errors.As to avoid false positives/negatives.", "c...
null
thand-io__agent__319
thand-io/agent
319
defect
7d84b6eebffdd1728ca2d63957e13deb781bf91f
d8a8f34c00f575e8d46646f6ac78d29648f75bdf
Fix Temporal worker startup order
## Summary > Briefly describe what this PR does and why. Link to the relevant issue or context. Closes #<!-- issue number --> --- ## Type of Change <!-- Check all that apply --> - [ ] `feat` – New feature (minor version bump) - [ ] `fix` – Bug fix (patch version bump) - [ ] `refactor` – Code refacto...
diff --git a/internal/config/providers.go b/internal/config/providers.go index d07358df..9eb84e50 100644 --- a/internal/config/providers.go +++ b/internal/config/providers.go @@ -187,6 +187,9 @@ type initResult struct { // InitializeProviders initializes all providers in parallel using channels func (c *Config) Ini...
2
2
1
[{"id": "G0", "claim": "Calling SetupTemporal() synchronously inside the sync.Once in GetServices() means it can fail the IsServer() check when initialization happens before ModeServer is set and will never be retried, so Temporal workflows/activities may be left unregistered; the fix should guard the call and/or move ...
null
thand-io__agent__32
thand-io/agent
32
defect
96e79acaa6c1636eb3ea46346f6a1e211d1731bb
12ab9ff43f6a75ec443ad458e6d0484970b78598
Add the provider into the session
- Replaced Provider field in User model with Source field - Added ExportableSession wrapper that contains provider information alongside session data - Updated session encoding/decoding logic to handle provider tracking
diff --git a/internal/daemon/auth.go b/internal/daemon/auth.go index cb62a2ca..f698fca7 100644 --- a/internal/daemon/auth.go +++ b/internal/daemon/auth.go @@ -160,7 +160,7 @@ func (s *Server) getAuthCallbackPage(c *gin.Context, auth models.AuthWrapper) { state := c.Query("state") code := c.Query("code") - session...
3
2
1
[{"id": "G0", "claim": "The local variable `exportalbeSession` is misspelled and should be renamed to `exportableSession`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If `request.Providers` is empty, `request.Workflow` remains empty and `GetW...
null
thand-io__agent__320
thand-io/agent
320
defect
7d84b6eebffdd1728ca2d63957e13deb781bf91f
2c6f12c6e7768d330c2b1fe00d8042d741c5cc18
fix: replace time.Now() with workflow.Now() in Temporal execution paths
Non-deterministic time.Now() calls inside workflow coroutines cause replay failures under Temporal. Replace them with workflow.Now() so that the event-history-sourced timestamp is used during replay. - Add runner.WorkflowTimeNow() helper that dispatches to workflow.Now when a Temporal context is present, falls back ...
diff --git a/go.sum b/go.sum index ac6b9c97..adb63f2e 100644 --- a/go.sum +++ b/go.sum @@ -411,8 +411,6 @@ github.com/hashicorp/jsonapi v1.5.0 h1:toO1EpzVl1b3xTjC/Tw4XMIlHgJreeTnyb1a1sHnl github.com/hashicorp/jsonapi v1.5.0/go.mod h1:kWfdn49yCjQvbpnvY1dxxAuAFzISwrrMDQOcu6NsFoM= github.com/hashicorp/vault/api v1.23.0 ...
2
2
1
[{"id": "G0", "claim": "buildBasicModelOutput ignores the error from elevateRequest.AsDuration(), so a parse failure silently yields a zero duration and an incorrect revocation_at; the error should be handled and returned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, ...
null
thand-io__agent__321
thand-io/agent
321
defect
7d84b6eebffdd1728ca2d63957e13deb781bf91f
8a073610062490d45806f24457aebe880b9c61ec
fix(workflows): set Temporal activity options for HTTP tasks
## Summary > Briefly describe what this PR does and why. Link to the relevant issue or context. Closes #<!-- issue number --> --- ## Type of Change <!-- Check all that apply --> - [ ] `feat` – New feature (minor version bump) - [ ] `fix` – Bug fix (patch version bump) - [ ] `refactor` – Code refacto...
diff --git a/sdk/workflows/runner/http.go b/sdk/workflows/runner/http.go index c7e15e33..13e9e2e3 100644 --- a/sdk/workflows/runner/http.go +++ b/sdk/workflows/runner/http.go @@ -5,6 +5,7 @@ import ( "fmt" "regexp" "strings" + "time" "github.com/go-resty/resty/v2" "github.com/serverlessworkflow/sdk-go/v3/mo...
2
2
2
[{"id": "G0", "claim": "The new ActivityOptions override doesn't set TaskQueue, so the HTTP activity ignores the workflowTask.taskQueue routing used by ExecuteCallFunction and runs on the workflow's default task queue; set TaskQueue: workflowTask.GetTaskQueue() alongside the timeout/retry options.", "category": "correc...
null
thand-io__agent__323
thand-io/agent
323
defect
332f8cbfd44e980ca90fc371ce2dfe23086bdf30
20901cd947335afa48b44bc76379d53a88be09b9
test: add Temporal replay tests and workflowcheck static analysis
## Summary Adds the two determinism guardrails flagged in the PR review: `WorkflowReplayer` replay tests and `workflowcheck` static analysis. > Addresses review feedback #7: "Replay/static determinism guardrails are missing — I found no workflowcheck CI/script usage and no WorkflowReplayer replay tests. Given the dyn...
diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 6afaed54..3d9156a3 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -52,6 +52,29 @@ jobs: # Run all tests except functional and integration tests go test -v -...
7
6
3
[{"id": "G0", "claim": "TestReplayElevationWorkflow builds the workflow manager from the hard-coded aws-elevation test case but replays every testdata/*/history.json, so histories captured from other test cases may fail replay for reasons unrelated to code changes; build the manager per history file or restrict the glo...
null
thand-io__agent__35
thand-io/agent
35
defect
dfea3172d7edce89ecaee95909649074fc2c4ae0
dfd0835add4dc8d765088523b0f55ff2fe4f7f52
validate account ids
- Validate aws account ids - pass activity context through to workflow task
diff --git a/internal/common/validator.go b/internal/common/validator.go index d8db5938..c8fa5c32 100644 --- a/internal/common/validator.go +++ b/internal/common/validator.go @@ -9,3 +9,19 @@ func IsValidLoginServer(hostname string) bool { return err == nil } + +// IsAllDigits checks if a string contains only digi...
5
3
1
[{"id": "G0", "claim": "GetAuthCallbackUrl should return an error instead of calling logrus.Fatalf, which terminates the whole process and is unsafe for a library-style API, with call sites updated to handle the error.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
thand-io__agent__87
thand-io/agent
87
defect
a558e9df1238ba02b8c41adb6e4bcb3fb2d725bf
572834801f35201fd598ff5097b2b3fae5801550
make thand notifiers support multiple providers
- Refactored NotifyRequest struct to ApprovalsTask and ApprovalNotifier with better separation of concerns - Changed ThandAuthorizeCallTask to AuthorizeTask with support for multiple notifiers via a notifiers map - Introduced processNotificationResults helper function to standardize notification result handling - Up...
diff --git a/docs/configuration/workflows/index.md b/docs/configuration/workflows/index.md index 7df01a98..c0d8125a 100644 --- a/docs/configuration/workflows/index.md +++ b/docs/configuration/workflows/index.md @@ -121,12 +121,13 @@ workflows: thand: approvals with: approvals: 1...
2
1
0
[{"id": "G0", "claim": "ApprovalsTask.IsValid() no longer validates the notifier configuration, unlike the original NotifyRequest.IsValid() which checked Notifier.IsValid(); it asks to add validation of the Notifiers map so invalid notifiers are caught, or alternatively to document that notifiers are optional.", "categ...
null