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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
thirdweb-dev__insight__282 | thirdweb-dev/insight | 282 | defect | e9f7efc0ea3f15a3272c86a40c8dfec23a660d4f | a10d7b04735e608d4266ad782a00499b63a87d51 | Fix worker stall |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Public diagnostics for poller status, processing and queued ranges.
- Worker shutdown now supports graceful close.
- Automatic cleanup of processed staging data.
- Improvements
- Publisher an... | diff --git a/internal/orchestrator/committer.go b/internal/orchestrator/committer.go
index a485bae..7b75374 100644
--- a/internal/orchestrator/committer.go
+++ b/internal/orchestrator/committer.go
@@ -19,11 +19,9 @@ import (
"github.com/thirdweb-dev/indexer/internal/worker"
)
-const DEFAULT_COMMITTER_TRIGGER_INTER... | 21 | 1 | 1 | [{"id": "G0", "claim": "processChunkWithRetry stores errored retry results in successMap, so failed fetches end up in finalResults and Poller.convertPollResultsToBlockData can dereference nil Data and panic.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "c... | null |
thisdot__starter.dev__1171 | thisdot/starter.dev | 1,171 | defect | 10ab295e3042e95ab4919afd4c95ba84fc62c50f | 5380016ecfd2ff5102d19dbbbb55df0d7a37edaa | [Vue-XState] Create fetch example | ## Summary of change
Adds the greeting fetch example view with related components / functions / state machine, the storybook story for this component, and the Cypress unit test for it. Also includes a few minor detail fixes I noticed while creating the fetch example.
## Checklist
- [x] These changes follow the... | diff --git a/starters/vue3-xstate-css/.gitignore b/starters/vue3-xstate-css/.gitignore
index 38adffa64..251bbda42 100644
--- a/starters/vue3-xstate-css/.gitignore
+++ b/starters/vue3-xstate-css/.gitignore
@@ -7,7 +7,8 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
-node_modules
+node_modules/
+package-lock.jso... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover WIP comment at the end of GreetView.cy.ts proposing to move the fetch service call out of the machine into GreetView, or confirm it will be handled in a future ticket.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thisdot__starter.dev__1196 | thisdot/starter.dev | 1,196 | defect | 4a676b4dc359a31e74fc8dee32317ed15b5124d9 | ca9038f599b898a404d565f451d64501fa4ee0ee | [Vue3-XState] README documentation | ## Type of change
- [x] Documentation change
- [ ] Bug fix
## Summary of change
Updates the README to include relevant info about this kit. Also moves the component tests into their own folder for better consistency in how the project is structured (decided while writing the readme).
## Checklist
- [x] ... | diff --git a/starters/vue3-xstate-css/README.md b/starters/vue3-xstate-css/README.md
index d212a536c..85ae115ea 100644
--- a/starters/vue3-xstate-css/README.md
+++ b/starters/vue3-xstate-css/README.md
@@ -1,68 +1,204 @@
-# vue3-xstate-css
+# Vue 3, XState, and CSS Starter Kit
-This template should help get you starte... | 2 | 1 | 0 | [{"id": "G0", "claim": "The manual-installation instructions (which clone the entire repository) waste the README's above-the-fold space and should be removed and replaced with a link to a wiki entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
thisdot__starter.dev__1310 | thisdot/starter.dev | 1,310 | defect | d77dfedd1c71796e0194764338f4bd46a544fa8b | d7c376e05e597dbe6fc435ba82b932b15d97d3f7 | Upgrade next-react-query-tailwind kit to latest Next version | ## Type of change
<!-- Add an x to the categories that apply -->
- [ ] Documentation change
- [ ] Bug fix
- [x] Update packages
## Summary of change
<!-- Please include a brief summary of the changes made in this PR. You should also include any screenshots or videos when applicable -->
- `npm install -g npm-check... | diff --git a/starters/next-react-query-tailwind/.storybook/main.js b/starters/next-react-query-tailwind/.storybook/main.js
deleted file mode 100644
index 9811f8b6e..000000000
--- a/starters/next-react-query-tailwind/.storybook/main.js
+++ /dev/null
@@ -1,21 +0,0 @@
-module.exports = {
- stories: ['../src/**/*.stories.... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Greeting tests this PR commented out (the positive-flow 'should see the data after the data loads' test and the whole 'negative flow' describe block) should work rather than sit disabled — the reviewer asks why they are commented out and whether they work.", "category": "testing", "verdict":... | null |
thisdot__starter.dev__1311 | thisdot/starter.dev | 1,311 | defect | d77dfedd1c71796e0194764338f4bd46a544fa8b | f27edd0877c09ededbf56e443aa85e5562c1f7bb | Upgrade next-chakra-ui to Next 13 | ## Type of change
<!-- Add an x to the categories that apply -->
- [ ] Documentation change
- [ ] Bug fix
- [x] Upgrade dependecies
## Summary of change
<!-- Please include a brief summary of the changes made in this PR. You should also include any screenshots or videos when applicable -->
## Checklist
<!-- Delet... | diff --git a/starters/next-chakra-ui/.storybook/main.js b/starters/next-chakra-ui/.storybook/main.js
deleted file mode 100644
index ef949c695..000000000
--- a/starters/next-chakra-ui/.storybook/main.js
+++ /dev/null
@@ -1,32 +0,0 @@
-module.exports = {
- stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|j... | 2 | 2 | 2 | [{"id": "G0", "claim": "The Greeting.test.tsx expectations must be updated to match the new heading text because the test is currently failing.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The index.test.tsx expectations must be updated to match the n... | null |
thisdot__starter.dev__158 | thisdot/starter.dev | 158 | defect | e4d2ff247375bb34f3fd9ffaa621381d0f7df23b | b997803e00d274a2aada6db22f91792efe46eb65 | [Angular-Apollo-Tailwind] Counter component | Resolves #84 | diff --git a/starters/angular-apollo-tailwind/documentation.json b/starters/angular-apollo-tailwind/documentation.json
index 2e6985772..5750fe0f1 100644
--- a/starters/angular-apollo-tailwind/documentation.json
+++ b/starters/angular-apollo-tailwind/documentation.json
@@ -195,9 +195,71 @@
}
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commented-out 'should display the counter value' test block left in counter.component.spec.ts is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thisdot__starter.dev__286 | thisdot/starter.dev | 286 | defect | ae86eb6d85166a25c616552b4928aaf00cf2d78d | 5cacfa5cca7e62fcafd8faa058eee33fe9bcd863 | [Core] - Commit hooks implementation | ## Starters
- [x] angular-ngrx-scss
- [x] angular-apollo-tailwind
- [x] next-react-query-tailwind
- [x] remix-graphql-tailwind
- [x] cra-rxjs-styled-components
- [x] vue3-apollo-tailwind
Closes #285 | diff --git a/.github/workflows/ci-angular-apollo-tailwind.yml b/.github/workflows/ci-angular-apollo-tailwind.yml
new file mode 100644
index 000000000..f47d0d8cf
--- /dev/null
+++ b/.github/workflows/ci-angular-apollo-tailwind.yml
@@ -0,0 +1,97 @@
+# This workflow will do a clean install of node dependencies, build the ... | 9 | 9 | 2 | [{"id": "G0", "claim": "Dependencies added by this PR should be version-locked instead of using caret ranges (e.g. husky ^8.0.1, pretty-quick ^3.1.3, eslint-config-react-app ^7.0.1, graphql ^16.5.0).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
thisdot__starter.dev__481 | thisdot/starter.dev | 481 | defect | 97b98633b33fec7740d7968acf5ada7347907d47 | 1237bc0b846be63f3836f9f8d6d4f53f9deeae09 | Create project scaffolding | ### Changes
- install Nuxt3 with TypeScript
- Install and Setup Vuetify
- Install and Setup Pinia
- Added Vitest
closes #477
### Notes
- This PR also add progress to issues #478, #479 and #641 but do not close them
| diff --git a/.gitignore b/.gitignore
index d4a76473a..ced2beb39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,6 @@ yarn-error.log*
.env.production.local
dist/
+
+# nuxt
+.nuxt/
\ No newline at end of file
diff --git a/starters/nuxt3-pinia-vuetify/.eslintignore b/starters/nuxt3-pinia-vuetify/.eslintignore
ne... | 8 | 7 | 0 | [{"id": "G0", "claim": "The component's styles should be scoped (or otherwise isolated) so that nested components cannot affect parent components.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A skeleton placeholder should be added while the me... | null |
thisdot__starter.dev__613 | thisdot/starter.dev | 613 | defect | 2e6e070e2fe4970aa057b5207a95e9a7d52bcf25 | 58cf56c2a208788a897013d12f47ff2684af39d5 | [NODE] Feat/595 add cache to starter kit | ## Type of change
<!-- Add an x to the categories that apply -->
- [ ] Documentation change
- [ ] Bug fix
- [x] Feature
## Summary of change
<!-- Please include a brief summary of the changes made in this PR. You should also include any screenshots or videos when applicable -->
- Moved docker setup to ... | diff --git a/starters/express-typescript-typeorm-postgres/.env.example b/starters/express-typescript-typeorm-postgres/.env.example
index 7791c5958..411dbb76d 100644
--- a/starters/express-typescript-typeorm-postgres/.env.example
+++ b/starters/express-typescript-typeorm-postgres/.env.example
@@ -9,7 +9,12 @@ DATABASE_P... | 8 | 4 | 1 | [{"id": "G0", "claim": "The README step telling users to make sure docker & docker-compose are installed should come before the step telling them to run `npm run dev`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Returning HTTP 206 for a failing... | null |
thlorenz__doctoc__232 | thlorenz/doctoc | 232 | defect | 2ed48a38f9cfec13dda6858b676f1d5c8aa71875 | 6460f13e3fc434c5baf2c0a0289a78a2676c4e83 | Upgrade `anchor-markdown-header` to fix emoji-titled headers | ### Add test for emoji-titled headers
This provides an example of the problem described in https://github.com/thlorenz/doctoc/issues/191.
~~### Add launch.json to enable test debugging~~
~~For codespaces/VS Code. This was very helpful in diagnosing https://github.com/thlorenz/doctoc/issues/191.~~
~~Based on... | diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..1ca028ea
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,20 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: ht... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should also fix the emoji-titled-header bug itself, not just reproduce it in a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove .vscode/launch.json from the repository (keeping a local copy is fi... | null |
thlorenz__doctoc__283 | thlorenz/doctoc | 283 | defect | 020446129bb6d0cd5613096977b4e3bdcc651826 | a28b7bdc925c781b6487dde9da5b6d72b9238b9d | User definable Min heading | Progresses #140
Closes #278
This adds new functionality which enables the min heading level to be specified. This functionality is particularly useful when you are using h1 for page headers etc.
Have created this as an early pr to get feedback on cli options and what else needs to be done. | diff --git a/doctoc.js b/doctoc.js
index f5c81db6..3fb9525f 100755
--- a/doctoc.js
+++ b/doctoc.js
@@ -15,7 +15,7 @@ function cleanPath(path) {
return homeExpanded;
}
-function transformAndSave(files, mode, maxHeaderLevel, title, notitle, entryPrefix, processAll, stdOut, updateOnly) {
+function transformAndSave(f... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new CLI option should be named `minlevel` instead of camelCase `minHeaderLevel`, to be symmetric with the existing `maxlevel` and consistent with the kebab-case pattern of other multi-word options.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
thlorenz__doctoc__288 | thlorenz/doctoc | 288 | defect | a38ed70d84bda2d7ec5d276f5e081f092d316947 | f76c3322df3ae09e74666f8f8f75ac7cb4c93c2b | feat: Add support for a dry run option for ci environments #188 | Closes #188
Closes #169
This introduces a dry run option which rather than writing changes to the files instead returns an exit code of 1. This exit code can then be used in ci environments to fail a release/build due to out of date documentation.
Note this corrects the check to see if a TOC needs to be transformed a... | diff --git a/README.md b/README.md
index 332f7675..b0bea46c 100644
--- a/README.md
+++ b/README.md
@@ -137,6 +137,11 @@ By default,
- no limit is placed on Markdown-formatted headings,
- whereas headings from embedded HTML are limited to 4 levels.
+### Performing a dry run
+
+Use the `--dryrun` option to not write ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new README paragraph should read \"This is useful CI environments where you want to check if your docs are up to date as part of your build process.\" (fix \"ci\" -> \"CI\" and \"upto\" -> \"up to\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
thlorenz__doctoc__292 | thlorenz/doctoc | 292 | defect | a38ed70d84bda2d7ec5d276f5e081f092d316947 | 695e87232d6de73bae200c6380590766ae3c29dc | fix: Add in checks for line breaks around skip tag #291 | Closes #291
This improves the robustness of the skip tag so that it is ensured that only the intended files are being skipped.
This ensures that the project readme toc is kept upto date.
This issue was introduced with #143 and observed when working on #293 | diff --git a/README.md b/README.md
index 332f7675..335719c7 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ by github or other sites via a command line flag.
- [Installation](#installation)
- [Usage](#usage)
- [Adding toc to all files in a directory and sub directories](#adding-toc-to-all-files-in-a-direc... | 3 | 1 | 0 | [{"id": "G0", "claim": "Use the strict equality operator (===) instead of loose equality (==) for the newline check on the skip-tag comparison in lib/transform.js.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Adding a trailing newline to the s... | null |
thlorenz__doctoc__297 | thlorenz/doctoc | 297 | defect | d713d623c0c0e80b3084ee2f09d4eb83aa7298e9 | 2e474b38fcee1dcd638f47ff70cbdb7ab55065f0 | Reduce stdout edge cases | This ensures that the stdout option is only being used when a single file is being processed. If not a single file, switch to dryrun and log the switch.
Closes #112
Further adjustments to stdout will be handled via #296 | diff --git a/.gitignore b/.gitignore
index b32672d1..a6f192e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ node_modules
npm-debug.log
samples
tmp_samples
+!test/fixtures/*.log
diff --git a/README.md b/README.md
index 1e70dec8..b60d90cd 100644
--- a/README.md
+++ b/README.md
@@ -180,6 +180,8 @@ This is ... | 10 | 9 | 3 | [{"id": "G0", "claim": "The README sentence about --stdout being limited to a single filename should be reworded into two grammatical sentences as suggested.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The multi-files validation message should ... | null |
thlorenz__doctoc__300 | thlorenz/doctoc | 300 | defect | d713d623c0c0e80b3084ee2f09d4eb83aa7298e9 | 19f5b127596e0553f5fdd22b62de4ed5fdde56e2 | fix: add in special character tests | This ensures that special characters are being correctly handled and producing the expected results. The examples from the below issues have been added to a markdown file and a test added to compared it to the link generated by the github website.
Closes: #79
Closes: #92
Closes: #96
Closes: #97
Closes: #122
C... | diff --git a/test/fixtures/readme-with-special-characters.md b/test/fixtures/readme-with-special-characters.md
new file mode 100644
index 00000000..19c7f1d0
--- /dev/null
+++ b/test/fixtures/readme-with-special-characters.md
@@ -0,0 +1,62 @@
+## Title with backslash `\`
+test
+
+## 4 § Toimielimet
+Special char
+
+## У... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new test mixes semicolon-terminated statements with the file's existing ASI/no-semicolon style; remove the semicolons (or update the style consistently).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion me... | null |
thlorenz__doctoc__303 | thlorenz/doctoc | 303 | defect | d713d623c0c0e80b3084ee2f09d4eb83aa7298e9 | 3eefa6b3dfb037c0d9f5bae041aebb6ba4c8f793 | feat: Ability to define min number of items in a toc #141 | Closes #141
Closes #142
Introduces that the required number of headers can be optionally specified and if not meet the toc is left out.
For instance adding a table of contents when you only have 1 or a couple of items is often un-necessary hence desirable to hide it. | diff --git a/README.md b/README.md
index 1e70dec8..8397470b 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,7 @@ by github or other sites via a command line flag.
- [Min. heading level](#min-heading-level)
- [Max. heading level](#max-heading-level)
- [Include all headings](#include-all-headings)
+ - [Requ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The setting could be called `minNumHeaders` instead of `requiredHeaders`, because \"required headers\" could be ambiguous and mean other things like \"certain types of headers are required\"; update the variable names throughout.", "category": "design", "verdict": "supported", "priority": "P2", ... | null |
thlorenz__doctoc__313 | thlorenz/doctoc | 313 | defect | 77a2814aaf11311e2464b1da7f2288cc72f66a3c | f057fd0dba5a0480bf967585e00a26482912baa5 | Use log level to manage logging verbosity #261 | Closes #261
This makes the logging level configurable to reduce verbosity at low levels | diff --git a/README.md b/README.md
index f4aa46f3..49776005 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ by github or other sites via a command line flag.
- [Min. ToC items](#min-toc-items)
- [Pad table of contents title](#pad-table-of-contents-title)
- [Usage](#usage)
+ - [Configuring logging level... | 7 | 5 | 3 | [{"id": "G0", "claim": "The updated usage string contains a double space after [--all] and does not document the -l shorthand; fix the spacing and document both flags so the CLI help stays accurate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
thlorenz__doctoc__327 | thlorenz/doctoc | 327 | defect | 0eeadd4993ead2d62c606e5cbe5e2ee7c1231ade | ad8a82fd56e231114368ad0f7cd924976aed7c12 | fix: Handle headings where only symbols differs | Closes: #135
Prior to this change the test would generate:
```
"- [foo _bar_](#foo-bar)",
"- [foo _bar_](#foo-bar-1)",
"- [foo **bar**](#foo-bar)",
"- [foo ~bar~](#foo-bar)",
"- [_foo bar_](#foo-bar)",
```
And after the change we end up with
```
"- [foo _bar_](#foo-bar)",... | diff --git a/lib/transform.js b/lib/transform.js
index 3ef2b827..9bb0ed24 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -96,12 +96,12 @@ function getMarkdownHeaders (lines, maxHeaderLevel, minHeaderLevel) {
.filter(notNull);
}
-function countHeaders(headers) {
+function countHeaders(headers, mode) {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test title contains a duplicated word and should be changed from 'duplicate titles but but different symbols' to 'duplicate titles but with different symbols', as the attached suggestion proposes.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introd... | null |
thlorenz__doctoc__328 | thlorenz/doctoc | 328 | defect | 0eeadd4993ead2d62c606e5cbe5e2ee7c1231ade | d57a0ff2ee379b9b0b0e9218cee19603209fb19d | fix: Improve handling for invalid html | Closes #120
Require hX tags to be open and closed on the same line to be considered valid | diff --git a/lib/get-html-headers.js b/lib/get-html-headers.js
index 0c1077be..5e30754c 100644
--- a/lib/get-html-headers.js
+++ b/lib/get-html-headers.js
@@ -48,7 +48,8 @@ var go = (module.exports = function (lines, maxHeaderLevel, minHeaderLevel) {
.join("\n");
//var headers = [], grabbing = null, text = []... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test title 'in content or different line' is ambiguous — clarify what 'in content' means.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR should demonstrate with a test how a line containing embedded <h2> and </... | null |
thoas__go-funk__118 | thoas/go-funk | 118 | defect | 6d0684bc5239f21ff63ae9eb79d21deee99f872d | 4d824a7058bcbcbd01337b2297f3bf7e469e17bb | Feature: allow retrieve with zero values | Add a GetAllowZero function to retrievers
Some struct values such as boolean false will return as nil if we use the normal Get function.
`
foo := struct {
X bool
}{false}
funk.Get(foo, "X") // -> nil, although it was set on purpose to false
funkGetAllowZero(foo, "X") // -> false
`
The same is... | diff --git a/funk_test.go b/funk_test.go
index d388148..da03564 100644
--- a/funk_test.go
+++ b/funk_test.go
@@ -30,6 +30,10 @@ type Foo struct {
BarInterface interface{}
BarPointer interface{}
GeneralInterface interface{}
+
+ ZeroBoolValue bool
+ ZeroIntValue int
+ ZeroIntPtrValue *int
}
func ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Avoid adding a separate GetAllowZero method and instead support zero values through a functional option on Get.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thoas__go-funk__63 | thoas/go-funk | 63 | defect | 04658fbef46e5c7f975fee2d292989a43257c9b0 | 3038404bfa50bf648d6b8d3b5c3018d40f39e9a1 | Implement Max method | Implements #28
`Max` checks for the type of input, validates the input, compares the elements and returns the maximum element in an array/slice
- It accepts []int, []int8, []int16, []int32, []int64, []float32, []float64, []string
- It returns the max item from the input or nil
- It returns nil for the following ... | diff --git a/max.go b/max.go
new file mode 100644
index 0000000..3a4853f
--- /dev/null
+++ b/max.go
@@ -0,0 +1,116 @@
+package funk
+
+import (
+ "reflect"
+ "strings"
+)
+
+// Max checks for the type of input, validates the input, compares the elements and returns the maximum element in an array/slice.
+// It accepts ... | 5 | 4 | 1 | [{"id": "G0", "claim": "Max should be variadic (Max(input ...interface{})) so that calls like funk.Max(1, 2, 3) work.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the empty lines in max_test.go.", "category": "maintainability", "verdict": "supported... | null |
thoas__picfit__59 | thoas/picfit | 59 | defect | 22161483cb6083f9c56a9919c2db8320c7515369 | e461c4931b146e4bbd617fa0ee8b5b439ea78446 | Add 'allowed_sizes' configuration option | This fixes #20.
Provides a new configuration option for restricting the number of sizes:
A few things about this PR I wasn't completely sure on:
1. [**No longer a question**] I opted to go with an actual type for the `AvailableSize` configurations. I also considered using a `[]map[string]int`, but wasn't sure what yo... | diff --git a/README.rst b/README.rst
index f0c82c2f..c0e7b8bf 100644
--- a/README.rst
+++ b/README.rst
@@ -509,6 +509,9 @@ You will retrieve the uploaded image information in ``JSON`` format.
Security
========
+Request signing
+---------------
+
In order to secure requests and avoid unknown third parties to
use t... | 3 | 3 | 3 | [{"id": "G0", "claim": "The allowed_sizes configuration keys should be `width` and `height` instead of `w` and `h`, because configuration needs to be explicit enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The allowed-sizes check should be perfor... | null |
thom311__libnl__441 | thom311/libnl | 441 | defect | 92cc31a6ad61fe61834042d6172c632aa53e6d81 | 87c7af13483ce1f86357c1db9724c7ccbe294bbf | Add rtnl_nh_add() API | The goal of this PR is to support pushing a rtnl_nh down to the kernel through netlink, similar to what `ip nexthop add` does.
A few additional things in this PR (1 bugfix, some more tests for getters/setters and adding support for ENETDOWN). Let me know if I should split it in separate PRs - I don't want to create ... | diff --git a/lib/route/nh.c b/lib/route/nh.c
index 5adf3849e..24fe7709a 100644
--- a/lib/route/nh.c
+++ b/lib/route/nh.c
@@ -430,6 +430,8 @@ int rtnl_nh_set_group(struct rtnl_nh *nexthop,
if (size == 0) {
/* size is 0, thus we want to remove the nh group */
+ if (entries)
+ return -NLE_INVAL;
rtnl_nh_grp... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new check in rtnl_nh_set_group() that returns -NLE_INVAL when size is 0 but entries is non-NULL is more cumbersome than helpful and this commit should be dropped, since both a NULL and a non-NULL entries buffer are valid for a size of 0.", "category": "design", "verdict": "supported", "prior... | null |
thom311__libnl__443 | thom311/libnl | 443 | defect | b4a6d1e6c19a85cd53d146ffb18679b483b86ec0 | a6a808b121a973af0d16b7ce8882a21aa3300a40 | Allow adding nh_encap to rtnl_nh | The goal is to allow setting a nexthop encapsulation on a nexthop object (and passing it down to the kernel). There already is an API to manipulate mpls encap on a route object. However, that API is exclusive to using `rtnl_nexthop`, while internally it is actually using a `nh_encap`.
Ideally, adding nexthop encaps... | diff --git a/Makefile.am b/Makefile.am
index 95a225509..4a13d3a4c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1066,6 +1066,7 @@ tests_check_all_SOURCES = \
tests/cksuite-all-netns.c \
tests/cksuite-link-ip6tnl.c \
tests/cksuite-route-nh.c \
+ tests/cksuite-route-nexthop.c \
tests/cksuite-all.h \
$(NULL)
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The tests source list in Makefile.am should be sorted alphabetically.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The <linux/if.h> system header should be moved to the earlier system-include group, separate from the ne... | null |
thom4parisot__tld.js__108 | thom4parisot/tld.js | 108 | defect | 9a7a3f25b90c2861814b91c6b6dc88a031aab581 | becdb661c78820262db579dca765411afae8c31d | Add ip validation | This PR addresses #104. Changes:
- Introduce a fast ip validation to check if a `hostname` is also an IP, and return consistent results.
- Extend `benchmark.js` to show performance when a *valid hostname* is directly given as input (no URL parsing necessary) vs. when a *URL* is given (parsing necessary).
Here is... | diff --git a/bin/benchmark.js b/bin/benchmark.js
index c9fc970..65f01ad 100755
--- a/bin/benchmark.js
+++ b/bin/benchmark.js
@@ -6,7 +6,7 @@ var tld = require('../index.js');
var Benchmark = require('benchmark');
-var DOMAINS = [
+var HOSTNAMES = [
// No public suffix
'example.foo.edu.au', // null
'exampl... | 2 | 1 | 1 | [{"id": "G0", "claim": "The URL parser should be configurable as done for the hostname extraction, so that the strictness (ES6-only whatwg-url) cost is taken only by people who need id.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Having a port in the IP ... | null |
thom4parisot__tld.js__97 | thom4parisot/tld.js | 97 | defect | cf851bbcc4ad982e1ff6e9f8539eb194dbedc67e | c0a7904af11ed11e29b68a71b4a9c5e6cb5e549c | Implement rules using a trie data structure. | Hi there,
I spent some time this week-end implementing a different representation for the rules: replacing the regex by a more efficient Trie data structure. This changes a lot of code, so I would understand that it might require more work to make "production-ready". Also, comments are pretty sparse at the moment, b... | diff --git a/index.js b/index.js
index 325903e..8586bd5 100644
--- a/index.js
+++ b/index.js
@@ -1,10 +1,10 @@
"use strict";
-var allRules = require('./rules.json');
+// Load rules
+var Trie = require('./lib/suffix-trie.js');
+var allRules = Trie.fromJson(require('./rules.json'));
var cleanHostValue = require('./... | 8 | 3 | 1 | [{"id": "G0", "claim": "The two failing tests are wrong per the public suffix spec: for www.freedom.nsa the prevailing rule '*' should make the public suffix 'nsa' (not null), and for www.www.ck the exception rule !www.ck should make it 'ck' (not 'www.ck').", "category": "correctness", "verdict": "supported", "priority... | null |
thomasnordquist__MQTT-Explorer__1004 | thomasnordquist/MQTT-Explorer | 1,004 | defect | a3de71d939ccc3e9252499f97c0a529f5560315b | f9648a91508be2d6e336e2f6335b4fee395d784f | Add UI tests for clipboard copy and file download in Electron and browser modes | Adds automated tests verifying clipboard copy and file save/download operations work correctly in both Electron and browser environments.
## Changes
### Test Infrastructure
- Added 3 new UI tests to `ui-tests.spec.ts`:
- Copy topic path to clipboard with content verification
- Copy message value to clipboard with... | diff --git a/app/src/components/helper/ClearAdornment.tsx b/app/src/components/helper/ClearAdornment.tsx
index 38741371f..533c8e045 100644
--- a/app/src/components/helper/ClearAdornment.tsx
+++ b/app/src/components/helper/ClearAdornment.tsx
@@ -15,7 +15,7 @@ interface Props {
*/
function ClearAdornment(props: Props)... | 4 | 1 | 1 | [{"id": "G0", "claim": "The copy tests should assert what is currently in the clipboard instead of only checking that the copy button is visible.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The Electron-mode download test only verifies the save butto... | null |
thomasnordquist__MQTT-Explorer__934 | thomasnordquist/MQTT-Explorer | 934 | defect | 26ed0aadd2230cf59435ed61c9bf3db97609aa04 | 4695488847310797127ae1276338c37318275b97 | Add Docker build for browser mode with optimized 3-stage build, multi-platform support, comprehensive UI testing, one-click deployment, enterprise SSO integration, and biweekly CI pipeline | ## Docker Build for Browser Solution
This PR creates a Docker build for the browser solution (MQTT Explorer server mode).
### Completed:
- [x] Create a production Dockerfile for the browser solution (`Dockerfile.browser`)
- **NEW**: 3-stage build for maximum optimization
- **NEW**: Clean production dependency ins... | diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..a34560a4c
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,65 @@
+# Git
+.git
+.gitignore
+.github
+
+# Dependencies
+node_modules
+app/node_modules
+backend/node_modules
+
+# Build artifacts
+build
+dist
+app/dist
+
+# Testing
+coverage
+.nyc... | 15 | 13 | 7 | [{"id": "G0", "claim": "Rename the image to ghcr.io/thomasnordquist/mqtt-explorer and build Docker images for Raspberry Pis (ARM) as well.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Check the webpack build errors and update the Dockerfile so only the... | null |
thombashi__pathvalidate__48 | thombashi/pathvalidate | 48 | defect | d65373cfabf901ec8203d5012c0eb4183eed3c91 | a734a63bd3f124d7098591bc1c80feab483ff158 | Fix sanitize_filename truncation | Fixes #47 | diff --git a/pathvalidate/_common.py b/pathvalidate/_common.py
index 950640e..c8424fc 100644
--- a/pathvalidate/_common.py
+++ b/pathvalidate/_common.py
@@ -138,3 +138,10 @@ def normalize_platform(name: Optional[PlatformType]) -> Platform:
def findall_to_str(match: List[Any]) -> str:
return ", ".join([repr(text... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added truncate_str function should have a type annotation for its return value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thomcc__arcstr__50 | thomcc/arcstr | 50 | defect | 72d9d0b0fd202018060c77c9123a7aae28423626 | 5736d11a181ce0c17324399398ca6cb02744d165 | Added `ArcStr::repeat` and `ArcStr::try_repeat` | Adds the `ArcStr::repeat` and `ArcStr::try_repeat` functions which are morally equivalent to [`String::repeat`](https://doc.rust-lang.org/std/string/struct.String.html#method.repeat), allows users to avoid an intermediate `String` allocation in some circumstances | diff --git a/src/arc_str.rs b/src/arc_str.rs
index 8c14fc4..f78e71a 100644
--- a/src/arc_str.rs
+++ b/src/arc_str.rs
@@ -644,6 +644,72 @@ impl ArcStr {
pub fn substr_using(&self, f: impl FnOnce(&str) -> &str) -> Substr {
self.substr_from(f(self.as_str()))
}
+
+ /// Creates an `ArcStr` by repeating... | 5 | 5 | 3 | [{"id": "G0", "claim": "The inline comment in `try_repeat` should be wrapped sooner to match the surrounding comment style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`try_allocate` should be implemented in terms of `try_allocate_uninit` instead of du... | null |
thomiceli__opengist__171 | thomiceli/opengist | 171 | defect | 3444fb9b75a7f98d765dabdd22ae7886e46fc4ec | 5c187403a4c77e496ebc36c0bac0da24e3782767 | Add config for default branch name | Hi! First, thanks so much for this awesome project, it's exactly what I was looking for :)
Using `main` as the default branch is more common now days, so I thought I would change it here.
**Testing:**
- Built docker image
- Deployed
- Created gist
- Cloned and confirmed the branch is `main` | diff --git a/docs/configuration/cheat-sheet.md b/docs/configuration/cheat-sheet.md
index 54005700..c6498da9 100644
--- a/docs/configuration/cheat-sheet.md
+++ b/docs/configuration/cheat-sheet.md
@@ -6,6 +6,7 @@
| external-url | OG_EXTERNAL_URL | none | Public URL for the Git HTTP/SSH ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a configuration variable to define the default branch name, like Gitea's DEFAULT_BRANCH setting.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove or relax the new regex restriction, since it excludes branch names Git it... | null |
thomiceli__opengist__229 | thomiceli/opengist | 229 | defect | 2fd053a077e0502956b188dc3e3e4a3828b8b103 | cedba85ff0cf4cfe04d002ba2d5b078d58043f8b | Add a setting to allow anonymous access to individual gists while still RequireLogin everywhere else | This is a middle ground between the existing setting "Require Login",
which requires login to do anything at all, and having it off, which
shows a public list of gists and more generally allows discovering info
about the users/gists of the instance without login.
The idea of this setting is that it is "require lo... | diff --git a/internal/auth/auth.go b/internal/auth/auth.go
new file mode 100644
index 00000000..a13622e2
--- /dev/null
+++ b/internal/auth/auth.go
@@ -0,0 +1,18 @@
+package auth
+
+type AuthInfoProvider interface {
+ RequireLogin() (bool, error)
+ AllowGistsWithoutLogin() (bool, error)
+}
+
+func ShouldAllowUnauthentic... | 2 | 1 | 1 | [{"id": "G0", "claim": "The FIXME in runGitCommand says the new anonymous-access check may not actually work for clones because the auth process fails before any metadata is acquired, and the maintainer asks the author to confirm whether and when that bug occurs.", "category": "correctness", "verdict": "supported", "pr... | null |
thomseddon__traefik-forward-auth__138 | thomseddon/traefik-forward-auth | 138 | defect | 529e28d83bca652720db72906b24e6e41a3dbf82 | d1e96fee7acac43b08d31ca05a1dd3ad12fb62f0 | Add Generic OAuth Provider | As discussed in #91
TODO:
- [x] Test with gitea
- [x] Test with github | diff --git a/internal/provider/generic_oauth.go b/internal/provider/generic_oauth.go
new file mode 100644
index 00000000..21c5948e
--- /dev/null
+++ b/internal/provider/generic_oauth.go
@@ -0,0 +1,96 @@
+package provider
+
+import (
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "net/http"
+
+ "golang.org/x/oauth2"... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add some examples for the new GenericOAuth config values (auth-url, token-url, user-url), because it is confusing what is needed there.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thomseddon__traefik-forward-auth__230 | thomseddon/traefik-forward-auth | 230 | defect | 8be8244b13ed695e8bf3749c05780cbe48e8a248 | 35b96816ca27cc7bdb5a2df94fc848bf976504f0 | Add port config | I liked to configure the port the server is running on. This mr add this options.
Please let me know if there are any changes required. | diff --git a/README.md b/README.md
index b71709db..c947673b 100644
--- a/README.md
+++ b/README.md
@@ -163,6 +163,7 @@ Application Options:
--secret= Secret used for signing (required) [$SECRET]
--whitelist= Only allow given emai... | 1 | 1 | 0 | [{"id": "G0", "claim": "The port option description text should be changed from \"port the server is running on\" to \"port to listen on\", and the text in the README should exactly match the output of --help.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thonny__thonny__1709 | thonny/thonny | 1,709 | defect | 29c19f22a7d90f3bd9fcfb53aeeb219580baf5b2 | b41599879bfb181a400e98ec065234c2dd446a74 | Hide extra dependencies in plugin manager | This patch hides the dependencies of a plug-in which refer to
`extra == *`.
These dependencies can be confusing for the user as they are actually
not installed. For example, a plug-in might use `black` to format the
code and mark it as `dev` dependency, but Thonny will not install it
when acquiring the plug-in.
... | diff --git a/requirements.txt b/requirements.txt
index 28f30d74c..51d3be080 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,3 +6,4 @@ docutils>=0.14
mypy>=0.670
asttokens>=1.1
Send2Trash>=1.4
+packaging>=20.9
diff --git a/thonny/plugins/pip_gui.py b/thonny/plugins/pip_gui.py
index 863dabe3d..89fe85444 100... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR author asks the maintainer to say whether he does not want the newly added runtime type-safety assertions (assert isinstance on requires_dist) enforced, offering to drop them if so.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim... | null |
thorn-oss__perception__97 | thorn-oss/perception | 97 | defect | 286c9dce0d72b5764b7a8eaff3741f1233ce9464 | 5e4ffd3536c5f2dfa3ae4e258f044f710ded04ed | Move Heavy Dependencies into Extras | Move heavyweight dependencies to optional extras and update documentation. This makes it easier to add Perception in more places. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a51891..d5ffd2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Vers... | 4 | 3 | 2 | [{"id": "G0", "claim": "In perception/approximate_deduplication/index.py the `import pandas as pd` is left unconditional while faiss is wrapped in a guarded import, so a user who has faiss but not pandas gets a raw pandas ImportError instead of the actionable extra-install hint; wrap it the same way (or centralize the ... | null |
thoth-station__adviser__1416 | thoth-station/adviser | 1,416 | defect | f00a777afdaf3d01667876e91f691064de0aafc4 | dddd7b742f409674a14a37fc9410cc55c45dba13 | exclude hc hs if type is secure | ## Related Issues and Dependencies
Fixes: https://github.com/thoth-station/adviser/issues/1410
## This introduces a breaking change
- [ ] Yes
- [x] No
<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->
## This Pull Request implem... | diff --git a/thoth/adviser/steps/security_indicators.py b/thoth/adviser/steps/security_indicators.py
index 174e2021e..733c0cb30 100644
--- a/thoth/adviser/steps/security_indicators.py
+++ b/thoth/adviser/steps/security_indicators.py
@@ -97,9 +97,10 @@ def run(
index_url=package_version.index.url,
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The testsuite needs adjustment because tests/steps/test_security_indicators.py::test_security_indicator_scoring fails with the PR's new NotAcceptable check in place.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
thoth-station__adviser__1903 | thoth-station/adviser | 1,903 | defect | b553b5772d67c0682c9011171dd66aca332c6d73 | e7a3932117a7d96398dc87feb267fe1059dc8e9a | Add update sieve responsible for package updates | ## Related Issues and Dependencies
Fixes: https://github.com/thoth-station/adviser/issues/1886
## This introduces a breaking change
- [x] No
## Description
With this pipeline unit, we will be able to perform updates of application stacks as triggered by the internal trigger.
| diff --git a/tests/sieves/test_update.py b/tests/sieves/test_update.py
new file mode 100644
index 000000000..1dac81f73
--- /dev/null
+++ b/tests/sieves/test_update.py
@@ -0,0 +1,113 @@
+#!/usr/bin/env python3
+# thoth-adviser
+# Copyright(C) 2021 Fridolin Pokorny
+#
+# This program is free software: you can redistribut... | 2 | 2 | 0 | [{"id": "G0", "claim": "Asks whether, when the update type is not latest and the newly released package makes the stack score worse than the original, the sieve still results in the original stack being advised.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
thoth-station__adviser__2022 | thoth-station/adviser | 2,022 | defect | 7e99f73c8e64fcc393cf6926667b3a9ca20451c8 | f28ce538f4ce97ef6c7d89eb645976860cf60ef0 | Make wraps more lazy | ## Related Issues and Dependencies
Fixes: https://github.com/thoth-station/adviser/issues/2014
## This introduces a breaking change
- [x] No
| diff --git a/docs/source/prescription.rst b/docs/source/prescription.rst
index da8861043..580476c65 100644
--- a/docs/source/prescription.rst
+++ b/docs/source/prescription.rst
@@ -1639,11 +1639,6 @@ semantically):
index_url: 'https://pypi.org/simple'
run:
- not_acceptable: "Bad package inclusion" ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a small inline comment clarifying that item[0] (the first element of the tuple) is used only for sorting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thoth-station__adviser__2252 | thoth-station/adviser | 2,252 | defect | b61b12256b9aedc0d591a1848ab45509c4e85e7a | 0a935abf10c5ae6010c7b0994d79e3935ab0e00a | Respect also runtime environment when linking packages in Search | ## Related Issues and Dependencies
Fixes: https://github.com/thoth-station/adviser/issues/2223
## This introduces a breaking change
- [x] No
| diff --git a/tests/wraps/test_thoth_search_package.py b/tests/wraps/test_thoth_search_package.py
index d5fb1a94d..94985ad5d 100644
--- a/tests/wraps/test_thoth_search_package.py
+++ b/tests/wraps/test_thoth_search_package.py
@@ -36,7 +36,14 @@ def test_verify_multiple_should_include(self, builder_context: PipelineBuild... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use `urllib.parse.quote(package_version_tuple[2], safe=\"\")` to encode the index_url so the generated Thoth Search UI URL is properly formatted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thoth-station__adviser__2253 | thoth-station/adviser | 2,253 | defect | b61b12256b9aedc0d591a1848ab45509c4e85e7a | ba025d1f09a961a702fc88bf9d9d57c8fa1ef79f | Get environments from solvers configmap and fix tests for solved software environments | ## Related Issues and Dependencies
Related to #2245
## This introduces a breaking change
- [x] No
## This Pull Request implements
Get environments from solvers configmap instead of the database and adjust tests to match the suggested implementation
| diff --git a/tests/boots/test_solved_software_environment.py b/tests/boots/test_solved_software_environment.py
index 70906e3e7..0637f0570 100644
--- a/tests/boots/test_solved_software_environment.py
+++ b/tests/boots/test_solved_software_environment.py
@@ -26,6 +26,8 @@
from thoth.adviser.pipeline_builder import Pipel... | 4 | 4 | 2 | [{"id": "G0", "claim": "The test suite fails because removing the solved_software_environment_exists graph mock leaves the query still used in the pipeline unit code, so the adapter tries to connect to a database that is not there, here and below.", "category": "correctness", "verdict": "supported", "priority": "P0", "... | null |
thought-machine__please__1016 | thought-machine/please | 1,016 | defect | 3a7d03c3642be9424fd520b6be0840d35b773c93 | a041bdc3b1f8ed14f60dca3853162860bf08b366 | Only upload results if all runs have completed | We were getting the occasional concurrent map access in serialising the xml because each parallel run was attempting to upload the same results. This PR makes it so only the last run uploads the XML. | diff --git a/src/core/build_target.go b/src/core/build_target.go
index ad9125ed40..a364a88efd 100644
--- a/src/core/build_target.go
+++ b/src/core/build_target.go
@@ -141,6 +141,8 @@ type BuildTarget struct {
Progress float32 `print:"false"`
// The results of this test target, if it is one.
Results TestSuite `pri... | 1 | 1 | 1 | [{"id": "G0", "claim": "CompleteRun should still be reached even if the worker gets killed or there is an error (asking whether the upload/complete-run logic is guaranteed to always run).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thought-machine__please__1029 | thought-machine/please | 1,029 | defect | b0d035a09372b7aa4b8b512f1bd89f2d115d4ef7 | e83c018d54a4c3ef85a9d333ca018447b43310ef | Implement hash_filegroup in the build language | Gets rid of a lot of internal specialisation nonsense and makes it work for remote execution. | diff --git a/ChangeLog b/ChangeLog
index 651e43c028..2a4cd0fa93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,9 @@ Version 15.0.0
with `lib` where appropriate.
* SHA256 is now the default hash function. SHA1 hashes specified in
BUILD files will continue to work.
+ * `hash_filegroup` is now i... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a second file to the hashed filegroup test so the bash loop over multiple srcs is exercised.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__1107 | thought-machine/please | 1,107 | defect | 1eb7d6554d6c4da35583a9f04c8af4994541243b | 59fcb4198b8fa7c06018fb144b4e79df5ce5efe3 | Implement metadata store for rex instead of using the cache | Mainly just getting this out there so I can get some feedback. Probs needs some tests. | diff --git a/src/build/build_step.go b/src/build/build_step.go
index da3d9f2aa4..7fa02e00cc 100644
--- a/src/build/build_step.go
+++ b/src/build/build_step.go
@@ -192,7 +192,7 @@ func buildTarget(tid int, state *core.BuildState, target *core.BuildTarget, runR
// changes from the build metadata and check if we need ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use log.Panicf or log.Fatalf instead of panic(fmt.Errorf(...)) when finding the user cache dir fails.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an extra directory layer (e.g. a two-letter prefix) to the metadata stor... | null |
thought-machine__please__1265 | thought-machine/please | 1,265 | defect | 339edaddaac92ad4698bd5cf102557aafecd56dc | bd317e0e1ff2ce02d267f7ab6a3dd2d6886b1a90 | Adds plz fmt | This is still based on buildifier, although with a smol modification to support f-strings. Seems nicer to (1) support them and (2) have it all in the same tool rather than pointing to a totally different repo to get the canonical formatter. | diff --git a/.plzconfig b/.plzconfig
index 1177dc10bd..a45503a51c 100644
--- a/.plzconfig
+++ b/.plzconfig
@@ -56,10 +56,6 @@ subcommand = test
subcommand = build
positionallabels = true
-[alias "buildify"]
-desc = Runs buildifier, a BUILD file autoformatter.
-cmd = run //tools/misc:buildify -p -- --mode=fix
-
[al... | 3 | 1 | 0 | [{"id": "G0", "claim": "The channel fan-out around the explicit filenames seems purposeless since only one thread does the formatting — asks whether goroutines were intended.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to get annotati... | null |
thought-machine__please__1607 | thought-machine/please | 1,607 | defect | ccaf15ff3f29fad81b7de3857a295c475c222118 | 54c24645ddbac07489180cfe6ec76ed182ee28d2 | levels introduced to changes | This allows the user to specify a level for query changes.
-1 is for all transitive dependencies. -2 implies not set. This is important to be able to distinguish between not set and 0 for compatibility reasons.
For backwards compatibility we continue allowing the `--include_dependees` and level to be specified h... | diff --git a/src/please.go b/src/please.go
index 4c3d07a83c..0667fd87d2 100644
--- a/src/please.go
+++ b/src/please.go
@@ -350,6 +350,7 @@ var opts struct {
Changes struct {
Since string `short:"s" long:"since" default:"origin/master" description:"Revision to compare against"`
IncludeDependees str... | 2 | 1 | 0 | [{"id": "G0", "claim": "Document in the new level flag's description that -1 means unlimited.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer not to ship two flags that do basically the same thing: keep include_dependees but have it do nothi... | null |
thought-machine__please__1635 | thought-machine/please | 1,635 | defect | c4ff379b1e76823d770c11fa943c5f56bdf77a50 | 4d45e6a2a3703828f2bd3e4b0a4fc73898c57bac | Fix some bugs with format() | If it's called with just positional arguments (as in the test) it blows up. | diff --git a/src/parse/asp/builtins.go b/src/parse/asp/builtins.go
index 1e51537c2b..f0949d4075 100644
--- a/src/parse/asp/builtins.go
+++ b/src/parse/asp/builtins.go
@@ -442,6 +442,9 @@ func strFormat(s *scope, args []pyObject) pyObject {
for k, v := range s.locals {
self = strings.ReplaceAll(self, "{"+k+"}", v.S... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a second `{}` to the format test so the case of two positional arguments (e.g. '{}_{}'.format('foo', 'bar') producing 'foo_bar') is covered.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__1816 | thought-machine/please | 1,816 | defect | 988803d2ecb95cebbdafcac56e34788fc03b0fb2 | 76258b653f08ce747a3a9ead2fcf2f297bf6ff0e | Prevent certain package output combinations that can cause nondeterministic behaviour | This PR prevents certain package output combinations that can cause nondeterministic behaviour.
- A genrule outputing the same filename as a filegroup will error out now - behind a FF.
- Targets outputting a file into a directory that's output by another target will will error out now - behind a FF.
- Fix issue wh... | diff --git a/src/core/package.go b/src/core/package.go
index 8f26d6e8a9..6ebb667851 100644
--- a/src/core/package.go
+++ b/src/core/package.go
@@ -209,10 +209,10 @@ func (pkg *Package) Label() BuildLabel {
// VerifyOutputs checks all files output from this package and verifies that they're all OK;
// notably it check... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request needs to appease the linter (fix the lint failure) before it can merge.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The issues detected by verifyOutputs should become Go errors that stop the build (log an erro... | null |
thought-machine__please__1883 | thought-machine/please | 1,883 | defect | 06a6cb128e4bbfe59cf9c95d7c8c03225b12e191 | 45b859eb8d713b5ec3493995fbe9efb88c3d21e0 | Streamline & simplify grammar a bit | Now we've got rid of the gobbing, we don't need the layer of struct indirection (although in a slightly ugly fashion we need a sentinel to check if we really have an int). Also mark the boolean singletons explicitly rather than using their string representation. | diff --git a/src/parse/asp/grammar.go b/src/parse/asp/grammar.go
index 33222fda20..7d2fdb4520 100644
--- a/src/parse/asp/grammar.go
+++ b/src/parse/asp/grammar.go
@@ -131,9 +131,13 @@ type OpExpression struct {
type ValueExpression struct {
String string
FString *FString
- Int *struct {
- Int int
- } // Shou... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Bool string field on ValueExpression in src/parse/asp/grammar.go appears to no longer be needed now that the new True/False/None fields cover it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__1946 | thought-machine/please | 1,946 | defect | 9032bb0a13e06d02dad76502dcdd5ac396db54e7 | 4a4649ffc12d06b976b78ca21475bcbdedfa2b12 | Do cycle checking asynchronously | This moves cycle checking from happening always to only at a point where we have no active work happening for a few seconds. That means there's a little pause before it'll find the cycle but I don't think that's a big problem.
Most of the guts of it is in `forwardResults()` which intercepts all the parse/build/test ... | diff --git a/src/build/build_step.go b/src/build/build_step.go
index 88e5a27b28..c711b75c88 100644
--- a/src/build/build_step.go
+++ b/src/build/build_step.go
@@ -48,7 +48,7 @@ func Build(tid int, state *core.BuildState, label core.BuildLabel, remote bool)
if err := buildTarget(tid, state, target, remote); err != nil... | 5 | 2 | 0 | [{"id": "G0", "claim": "The 2-second loop could repeatedly re-trigger cycle checks and bring the system to its knees if checking for cycles takes more than 2 seconds; it might be worth limiting to 1 cycle checker thread.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id":... | null |
thought-machine__please__2006 | thought-machine/please | 2,006 | defect | aebd08e292eb8ff5731dd48931b3087735672d6b | 555e31cd697f41917cb64e1bb87944cbdd520c0f | Remove all the modified targets and rescan stuff | I don't think this is necessary any more. With the newer dependency setup they should be triggered as needed.
Haven't been able to test much locally due to my machine basically just refusing to do things (Eset really is a horrible piece of shit...) but we'll see what CircleCI says. | diff --git a/src/build/build_step_stress_test.go b/src/build/build_step_stress_test.go
index 9008b51da2..7cd028b9ef 100644
--- a/src/build/build_step_stress_test.go
+++ b/src/build/build_step_stress_test.go
@@ -68,7 +68,7 @@ func addTarget(state *core.BuildState, i int) *core.BuildTarget {
}
} else {
// Thes... | 2 | 1 | 0 | [{"id": "G0", "claim": "The skipped TestAddDepRescan test body is no longer needed now that rescan is gone and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Without the rescan mechanism, targets may be built in the wrong orde... | null |
thought-machine__please__2111 | thought-machine/please | 2,111 | defect | 890e97127d8ab263b80e8a831bcdda247129b5c7 | 2f415a0036ae0079f9bb84f281afb8541ca70ff8 | Fix issue with loading plugin config on subinclude | This fixes a few issues with loading config from subrepos.
1. We were doing a shallow copy of the Plugin map. This PR makes sure that we have new Plugin structs when loading in the subrepo config into it's config.
2. We were applying the config values from the subrepos state when loading plugin config for the hos... | diff --git a/src/core/state.go b/src/core/state.go
index ce83a0c2e6..98200372dc 100644
--- a/src/core/state.go
+++ b/src/core/state.go
@@ -1020,14 +1020,31 @@ func (state *BuildState) findArch(arch cli.Arch) *BuildState {
return nil
}
+func copyPlugin(plugin Plugin) *Plugin {
+ values := map[string][]string{}
+ fo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The package-level copyPlugin helper might be nicer as a member function on Plugin.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__2174 | thought-machine/please | 2,174 | defect | 5ff789844fc9f0721fb5f99b9bce21aeccc21d45 | a1c94e4aa038ecf6abf9105bc8799e34339fa1b8 | Fixes named fields not showing up when using 'plz query print --field=srcs' | This was happening because only the first field (ie. unnamed sources) was being considered. | diff --git a/src/query/print.go b/src/query/print.go
index aa833d94f1..8c6fe481ef 100644
--- a/src/query/print.go
+++ b/src/query/print.go
@@ -182,20 +182,37 @@ func (p *printer) PrintFields(fields []string) bool {
// This isn't as simple as using reflect.Value.FieldByName since the print names
// are different to th... | 1 | 1 | 0 | [{"id": "G0", "claim": "The loop should return early with a non-zero field instead of only remembering a fallback index and re-checking the previous match on the next line.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__2232 | thought-machine/please | 2,232 | defect | 9f4e557a69673f3420bdad31e66e2e0aa41a09c1 | cebc42218c95c9552be17dcceef8e1fe92b12446 | Align the please go tool more with how the toolchain builds things | This shuffles a few things around. The work dir is now solely used for generated source files and objects. Original source files aren't copied into it anymore. Compiling directly from the original source code location allows for relative imports (such as c header files) to be resolved and not freak out.
Both third_p... | diff --git a/tools/please_go/install/install.go b/tools/please_go/install/install.go
index f1bbf24476..f89c142b18 100644
--- a/tools/please_go/install/install.go
+++ b/tools/please_go/install/install.go
@@ -16,7 +16,7 @@ import (
"github.com/thought-machine/please/tools/please_go_embed/embed"
)
-const baseWorkDir ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The removed `additionalLDFlags` field seemed meant to store any linker flags passed onto the program, and the `ldFlags` argument has instead been assigned to `collectedLdFlags`; the author asks for a pair of eyes on whether this is what was meant, since it might not be.", "category": "correctnes... | null |
thought-machine__please__2244 | thought-machine/please | 2,244 | defect | 8e1682170ca5c25abe2a19583d9d6b91b5c6427d | 68020c1b02aa3d9d652f48d5a41a0e345420df81 | Simplify remote cache usage by utilizing a cli-command to upload/download files | Closes #2234 | diff --git a/docs/cache.html b/docs/cache.html
index b30f74d6e4..694a3b584e 100644
--- a/docs/cache.html
+++ b/docs/cache.html
@@ -98,3 +98,74 @@ <h2 class="title-2">The HTTP cache</h2>
little configuration, as described above.
</p>
</section>
+
+<section class="mt4">
+ <h2 class="title-2">Scriptable, command... | 6 | 5 | 2 | [{"id": "G0", "claim": "The new documentation section misspells \"need\" as \"neet\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When registering the command cache based on RetrieveCommand, the code should probably also... | null |
thought-machine__please__2250 | thought-machine/please | 2,250 | defect | 7316fc1e6eedcd565b04e22ce3c220e07201a6f6 | 7c33c0ed27dba9c1b8b548e4331c0a759b15a24d | Align query print's json representation to the asp one | Implements a json representation of these targets that more closely matches the asp one. I include fields even if they have zero values as this is designed for computer consumption. Consuming this from a program should be easier if all the keys are always present. | diff --git a/src/core/build_input.go b/src/core/build_input.go
index 35083fe402..17670fe5b6 100644
--- a/src/core/build_input.go
+++ b/src/core/build_input.go
@@ -36,6 +36,12 @@ type FileLabel struct {
Package string
}
+// MarshalText implements the encoding.TextMarshaler interface, which makes FileLabel
+// usabl... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new \"outs\" special field falls back to target.Outputs(), which does not cover unnamed outputs, when it should use target.DeclaredOutputs().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment on specialFieldsMap ... | null |
thought-machine__please__2278 | thought-machine/please | 2,278 | defect | 058b4e7e2261a4596baf6fd58ce81003406a66cb | a610ad51ccbd8b41817fb4611423ce0ff580562f | Allow outputs to be downloaded transitively in remote when debugging is on | Transitive artifacts were missing when running debugging sessions with remote on. This will only apply to debug sessions, but can eventually be exposed if needed. | diff --git a/src/core/BUILD b/src/core/BUILD
index 70eeb92940..e590f984bc 100644
--- a/src/core/BUILD
+++ b/src/core/BUILD
@@ -130,8 +130,8 @@ go_test(
go_test(
name = "build_label_test",
srcs = [
- "build_label_test.go",
"build_label_fuzz_test.go",
+ "build_label_test.go",
],
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The OutputDownloadOption constants should use iota instead of explicit values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__2281 | thought-machine/please | 2,281 | defect | e94902197997a4eeb102c720894189f029ef5082 | 6139069590ab1912266a2f8b9680fed55f874e15 | Handle preloads as a special case in parse_step.go | This preloads subincludes in a more robust way. The previous implementation just injected the subincludes into the BUILD files for you. This had a major drawback in that we had to hackily exclude any packages that might be needed to facilitate that subinclude. This fell appart when the preloaded subinclude itself has s... | diff --git a/src/build/build_step_stress_test.go b/src/build/build_step_stress_test.go
index 7cd028b9ef..cb0a71f103 100644
--- a/src/build/build_step_stress_test.go
+++ b/src/build/build_step_stress_test.go
@@ -104,6 +104,11 @@ func (fake *fakeParser) ParseFile(state *core.BuildState, pkg *core.Package, fil
return ni... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks for the reason the preloaded subinclude targets are queued with a force build (queueTarget(l, OriginalTarget, true, true)), implying that forcing the build is not justified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thought-machine__please__2585 | thought-machine/please | 2,585 | defect | 2293ffeb365629080ef6720332bbff5737c408b0 | cc6921c49ccacdfd944c6714d1d647d05c75a401 | feat: Print out the Global Config object from within the BUILD file | This change allows printing out the builtin `CONFIG` file from the BUILD files. | diff --git a/src/parse/asp/interpreter.go b/src/parse/asp/interpreter.go
index 52ebe64671..dd867be66e 100644
--- a/src/parse/asp/interpreter.go
+++ b/src/parse/asp/interpreter.go
@@ -111,6 +111,7 @@ func (i *interpreter) interpretAll(pkg *core.Package, forLabel, dependent *core.
}
s.config = i.config.Copy()
+
s... | 2 | 2 | 1 | [{"id": "G0", "claim": "The removed line in pyConfig.MarshalJSON — returning json.Marshal(c.overlay) when the overlay is nil — was possibly a bug, since it marshals the (nil) overlay instead of the base dict.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "... | null |
thought-machine__please__2662 | thought-machine/please | 2,662 | defect | bb815cb93f7de10fc1cc167f369fc26850537410 | f99110519d700a82d733570e15560aa761175f7d | Delete JavaBinaryExecutableByDefault feature flag | Made some changes in the java rules to keep things working even though they will be removed completely very soon. | diff --git a/.plzconfig b/.plzconfig
index 4735bf6c6b..f25d3aebd4 100644
--- a/.plzconfig
+++ b/.plzconfig
@@ -90,7 +90,6 @@ accept = ISC
accept = notice
[featureflags]
-JavaBinaryExecutableByDefault = true
PackageOutputsStrictness = true
PythonWheelHashing = true
NoIterSourcesMarked = true
@@ -107,4 +106,4 @@ i... | 1 | 1 | 1 | [{"id": "G0", "claim": "java_binary should keep the self-executable preamble path — the PR removed the branch but left the non-executable variant, which is the wrong way round for the feature being deleted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thought-machine__please__2667 | thought-machine/please | 2,667 | defect | 6b2e344ba3e767c4f534087524a7499bad2996f0 | 9f1b646aeb2754b7dc9e976fcdee1e569eecc1c0 | Jarcat -> Arcat | I've left the `Java.Jarcat` config in because we subinclude plugins (`cc` for example) that reference it and obviously blow up if it's not there. Not sure what's best here but I figure one way is to leave it in now, land this, migrate all the plugins to `Build.Arcat`, and then delete it? | diff --git a/build_defs/multiversion_wheel.build_defs b/build_defs/multiversion_wheel.build_defs
index aea702bb26..e7709db136 100644
--- a/build_defs/multiversion_wheel.build_defs
+++ b/build_defs/multiversion_wheel.build_defs
@@ -36,6 +36,6 @@ def python_multiversion_wheel(name, version:str, urls:list, licences:list=N... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the hot-linked external image links (the cat-joke 'Any resemblance to this or this' block) from the new ArcatTool docs, since the links are broken and hot-linking to other websites should not be done.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
thought-machine__please__2843 | thought-machine/please | 2,843 | defect | dce7d8af65020311c731cce8ebfb8f2ddaa5cf9e | dcbe685b266679efbd5264813943c252ebd560b5 | Preload the preloaded subincludes in files involved in normal (non-preloaded) subincludes | This means that we can be more specific about where we don't preload subincludes. Before any package involved in any kind of subinclude would be skipped. Now it's only if that package is part of the preloading. | diff --git a/docs/BUILD b/docs/BUILD
index 67cef4f423..18b07870da 100644
--- a/docs/BUILD
+++ b/docs/BUILD
@@ -59,7 +59,7 @@ genrule(
plugins = {
"python": "v1.3.0",
"java": "v0.3.0",
- "go": "v1.7.2",
+ "go": "v1.7.3",
"cc": "v0.3.2",
"shell": "v0.1.2",
"go-proto": "v0.2.0",
diff --git ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a `ParseModeNormal = 0` constant, because parse/queue calls that pass a bare 0 for the parse mode are unclear at the call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Questions whether the `ParseModeForPreload... | null |
thought-machine__please__2859 | thought-machine/please | 2,859 | defect | 301407ba75324acee15bb593b1174ed51908e8ef | 4def2d145e4f8fdf830bdd728b1561d6882bdff0 | Support preloads in subincludes | This change preloads all subincludes of a preloaded target as well as the preloaded target. | diff --git a/src/build/build_step_stress_test.go b/src/build/build_step_stress_test.go
index dea330cbcc..2879e21870 100644
--- a/src/build/build_step_stress_test.go
+++ b/src/build/build_step_stress_test.go
@@ -99,6 +99,10 @@ type fakeParser struct {
PostBuildFunctions buildFunctionMap
}
+func (fake *fakeParser) R... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new test fixture empty.build_defs should either be an empty file, or the PR should add a test covering an actually-empty build_defs file.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The literal 0 passed to i.scope.NewScope... | null |
thought-machine__please__2942 | thought-machine/please | 2,942 | defect | 90382a79d3e311babbecb57fab2246c687a64997 | 56ed27aebcec55ae437d5832c71c27001088ea78 | Upgrade original targets | We've found cases where this can be notably slow when piping very large numbers of targets into plz. The code there is pretty old - when it was written we didn't have repos with hundreds of thousands of targets or remote execution with hundreds of workers, so we never really noticed.
This upgrades the implementatio... | diff --git a/src/core/BUILD b/src/core/BUILD
index c9e9b6169c..c8645451c3 100644
--- a/src/core/BUILD
+++ b/src/core/BUILD
@@ -2,30 +2,10 @@ subinclude("//build_defs:benchmark")
go_library(
name = "core",
- srcs = [
- "atomic_bool.go",
- "atomic_float32.go",
- "build_env.go",
- "b... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pre-existing BuildLabel.Less was wrong for ages because it did not look at subrepos when comparing labels.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G2", "claim": "isOriginalTarget's non-exact branch is not quite right: an exactl... | null |
thought-machine__please__2972 | thought-machine/please | 2,972 | defect | 7dbe4cdaf85c403e82a2bade5e9de200ba8002f8 | 4880028b647ea5db8a77f1f691e538e220fa19c7 | Use @ to separate architecture from subrepo names | This allows us to pass architecture for subrepo targets on the command line and makes it a little easier to reason about. I've seen a few issues when testing where it locks up or fails unexpectedly. I think this is probably too risky to go in with the virutalised FS stuff so will hold off for now. | diff --git a/src/cli/flags.go b/src/cli/flags.go
index dc9ebbb3c1..7c0e02c890 100644
--- a/src/cli/flags.go
+++ b/src/cli/flags.go
@@ -230,6 +230,11 @@ func NewArch(os, arch string) Arch {
return Arch{OS: os, Arch: arch}
}
+func NewArchFromString(arch string) Arch {
+ parts := strings.Split(arch, "_")
+ return Arc... | 3 | 1 | 0 | [{"id": "G0", "claim": "The first part of SplitSubrepoArch should be named subrepoName rather than pluginName, since at that point it is not known to be a plugin.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the subrepo n... | null |
thought-machine__please__3021 | thought-machine/please | 3,021 | defect | 539a021a8459491bd3d8cbe301c0eeb6a22eda83 | d7732721a52484fd7c6e6351415453afaaeb7d07 | Add an environment variable containing the test run | I don't completely like that they can theoretically now take action based on this, but I think it's a fairly practical way of deduplicating them on the remote execution side.
Arguably there are more elegant ways of tackling that but this will work right now and won't require the backend to be able to separate multiple... | diff --git a/src/core/build_env.go b/src/core/build_env.go
index 3ea1bb4eb9..420d776dbe 100644
--- a/src/core/build_env.go
+++ b/src/core/build_env.go
@@ -145,7 +145,7 @@ func withUserProvidedEnv(target *BuildTarget, env BuildEnv) BuildEnv {
}
// TestEnvironment creates the environment variables for a test.
-func T... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test run environment variable could be made meaningless to consumers by hashing its value and calling it something different.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__3167 | thought-machine/please | 3,167 | defect | 421560ccc7b7ccb2b05527080bce5e9ccad7cb14 | ea3d37d5ae4eab99a36d3ad56bcf20e54e805208 | Fix list concat overwriting | Fixes #3166
Looks like this is due to the slices overwriting since on append they both think they have extra capacity, but are in fact sharing it. A pure Go example: https://go.dev/play/p/pLl6MlMr3V4
This fixes this particular case; I don't think there are others at present, we seem to construct lists with capac... | diff --git a/src/parse/asp/interpreter_test.go b/src/parse/asp/interpreter_test.go
index e49bf5f304..0d88547b04 100644
--- a/src/parse/asp/interpreter_test.go
+++ b/src/parse/asp/interpreter_test.go
@@ -686,3 +686,17 @@ func TestOperatorPrecedence(t *testing.T) {
assert.EqualValues(t, False, s.Lookup("m"))
assert.E... | 1 | 1 | 1 | [{"id": "G0", "claim": "The slices.Clip fix for list concat aliasing should also be applied to the pyFrozenList concat branch a few lines above.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thought-machine__please__3188 | thought-machine/please | 3,188 | defect | ae679e907b38beee6d9395545d958c2eb203a390 | 15fc78178c636a87d75de7a7377b4414e7855ce7 | Add new field allowing tests to opt out of creating coverage files | This has historically been fairly okay because we treat the coverage files as optional. However it's kind of bad with remote execution, which has no concept of optional outputs, so we have to ask for it and the remote will then not be able to cache the action result.
I thought about just having tests do `touch $COVE... | diff --git a/docs/BUILD b/docs/BUILD
index f8505d5dd4..8c43eaa1f5 100644
--- a/docs/BUILD
+++ b/docs/BUILD
@@ -59,7 +59,7 @@ genrule(
plugins = {
"python": "v1.7.0",
"java": "v0.4.0",
- "go": "v1.17.3",
+ "go": "v1.17.4",
"cc": "v0.4.0",
"shell": "v0.2.0",
"go-proto": "v0.3.0",
diff --gi... | 3 | 2 | 0 | [{"id": "G0", "claim": "The trailing orphaned 't' at the end of the first doc-comment line of the no_test_coverage entry should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second line of the no_test_coverage doc comment should r... | null |
thought-machine__please__3190 | thought-machine/please | 3,190 | defect | 7bda3c1ba6c5e36f6378174a911f9fbf2dcfacee | 2526af6ca7ac20eefc599f6194b8673a9fa8c31b | Query changes blocks at subrepos | This implements the discussions we've had over the past couple of days.
Taking our usual go_repo setup as an example, if we modify `go.mod`, we expect to see `plz query changes` show `//:modfile` and lots of `//third_party/go:` things as changed, but _not_ the whole rest of the repo, because we can interrogate the a... | diff --git a/src/query/BUILD b/src/query/BUILD
index 419bd665d5..8465df68a5 100644
--- a/src/query/BUILD
+++ b/src/query/BUILD
@@ -25,6 +25,7 @@ go_test(
":query",
"///third_party/go/github.com_stretchr_testify//assert",
"///third_party/go/github.com_stretchr_testify//require",
+ "//sr... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the two new subrepo tests, move the second state's construction (s2) to just before the targets built on it so each test has two distinct blocks, one per graph.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment ... | null |
thought-machine__please__3246 | thought-machine/please | 3,246 | defect | 09f4cd183be2189fb24dbcfd18695cbc40858664 | 622765366e6b7884daa6f6d241a25a223e39c571 | Avoid allocating channels unnecessarily on map inserts | We don't always insert, but we were always allocating a new slice just in case we did. This makes it lazy.
I don't love duplicating the Set function but I don't see a great alternative (it also hurts a bit to add the extra non-inlineable function call on every insert when we _do_ have a value).
Before:
```
INFO... | diff --git a/docs/BUILD b/docs/BUILD
index c1dd2822dc..52655f7aa1 100644
--- a/docs/BUILD
+++ b/docs/BUILD
@@ -58,7 +58,7 @@ genrule(
# Plugin versions to pull the docs from
plugins = {
"python": "v1.7.3",
- "java": "v0.4.1",
+ "java": "v0.4.2",
"go": "v1.21.2",
"cc": "v0.4.0",
"shell": "v0.... | 2 | 2 | 1 | [{"id": "G0", "claim": "In LazySet's 'already waiting' branch the code should return the value stored in the map (s.m[key].Val) rather than existing.Val, since existing.Val is zero when existing.Wait is non-nil; the reviewer also noted the existing tests never check Set's return value and questioned whether the value n... | null |
thought-machine__please__3393 | thought-machine/please | 3,393 | defect | 3055269f2220fc503581acf93897948d33b4e404 | d5a75553ac4a55cf300fe4bcc78e78df67e8957b | Add support for suppressing SRCS env variables (in the case of rules with large numbers of sources) | Instead, we write files to the build environment containing the list of sources which would otherwise be in the environment variables. | diff --git a/ChangeLog b/ChangeLog
index 8f586a046d..721406ae6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Version 17.18.0
+---------------
+ * Add support for suppressing SRCS env variables (#3393)
+ * Assorted cleanup with no functional changes
+
Version 17.18.0
---------------
* Make sure d... | 2 | 2 | 1 | [{"id": "G0", "claim": "The ChangeLog entry should say Version 17.19.0 rather than 17.18.0.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Suppressing the SRC/SRCS environment variables goes against Please's tenet of explicitly passing inputs to bui... | null |
thought-machine__please__3460 | thought-machine/please | 3,460 | defect | 781700936630637e3413d8a0342e62f37e5b2fba | f759b9ab38530a8d848457b1afdfca48aebf37a4 | Add `maxdepth` parameter to `get_labels` function | Add a `maxdepth` parameter to the `get_labels` built-in function that controls the maximum depth of `get_labels`' recursive dependency search. The default is -1, meaning "no limit". The main use case is to help limit the collection of `cc:inc:` labels to direct dependencies in the cc-rules plugin, since headers used b... | diff --git a/rules/builtins.build_defs b/rules/builtins.build_defs
index b8e4ccafb2..94cc5a57f5 100644
--- a/rules/builtins.build_defs
+++ b/rules/builtins.build_defs
@@ -243,7 +243,7 @@ def dirname(p:str) -> str:
# Post-build callback functions.
-def get_labels(name:str, prefix:str, all:bool=False, transitive=Tru... | 3 | 2 | 0 | [{"id": "G0", "claim": "The fatal-error message for `all && maxDepth != -1` needs to account for maxDepth being greater than 0 (or the check should perhaps just be `maxDepth == 0`).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting done[t] befo... | null |
thought-machine__please__3466 | thought-machine/please | 3,466 | defect | 7872c8373d52d16f6ce2ebbcea1be95a73646a41 | 021659b2ae54a4e75618537529c2398fbb739abc | Optionally traverse `srcs` and `deps` for run-time dependencies | There are circumstances under which a target might want to inherit the run-time dependencies of certain build-time dependencies, because the target's output is built in such a way that its dependencies don't have their own run-time dependencies resolved. An example of this is the shell-rules plugin's `sh_binary` rule: ... | diff --git a/rules/builtins.build_defs b/rules/builtins.build_defs
index 848dad8637..f405bff5b6 100644
--- a/rules/builtins.build_defs
+++ b/rules/builtins.build_defs
@@ -2,18 +2,64 @@
# Do not change the order of arguments to this function without updating the iota in targets.go to match it.
-def build_rule(name:... | 1 | 1 | 0 | [{"id": "G0", "claim": "Gate the loop over `t.dependencies` inside a conditional on `t.RuntimeDependenciesFromSources || t.RuntimeDependenciesFromDependencies`, since it runs needlessly for most targets.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thought-machine__please__3495 | thought-machine/please | 3,495 | defect | ccb3691ddea972dc69576c2bc65fd6b71a856705 | 14c87455ad95039c8b754aa6caac0ee7ef7c3f98 | improve performance of whatinputs | Previously for every file we were looping through every target in the graph O(NxM). Now we first build a map of targets for each file for the whole graph then loop through the files to output the labels O(N+M). This vastly improves the performance of plz query what inputs for a large graph and large number of files. | diff --git a/src/query/whatinputs.go b/src/query/whatinputs.go
index 70cd57d748..118cc45679 100644
--- a/src/query/whatinputs.go
+++ b/src/query/whatinputs.go
@@ -11,10 +11,10 @@ import (
// The targets are printed in the same order as the provided files, separated by a newline
// Use printFiles to additionally echo ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Capture the map value from the lookup (\"if labels, ok := filesMap[source]\") instead of re-indexing filesMap[source] inside the loop, offered as an optional clarity improvement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
thought-machine__please__982 | thought-machine/please | 982 | defect | 6588ebd11d31564c97a0aaed7c96d83549bd7316 | 9ba6c7bb0e5fc81ea73e37e4f2d23b1753d7418f | Swap to go-junit-report for parsing go test output | Swap to using a 3rd party library for parsing Go test output.
This should cover more edge cases than our previous simple parser.
An additional note - by reading various PRs in `go-junit-report` around the different edge cases in Go test output. I've found that go test has a json output which should be used for pa... | diff --git a/src/test/BUILD b/src/test/BUILD
index 53c103d3ba..b8b951cf81 100644
--- a/src/test/BUILD
+++ b/src/test/BUILD
@@ -15,6 +15,7 @@ go_library(
"//src/utils",
"//src/worker",
"//third_party/go:cover",
+ "//third_party/go:go-junit-report",
"//third_party/go:logging",
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Removing the error-out handling for unknown test output may leave the new go-junit-report parser misattributing a failure to a Test case, so the dropped TestGoFailIfUnknownTestPasses coverage is not 100% correct in that scenario.", "category": "correctness", "verdict": "opposed", "priority": "P1... | null |
thoughtbot__fishery__108 | thoughtbot/fishery | 108 | defect | b6b111fa9ead4951efbb7c46178e6b8d8bd90b06 | a5465a5a74344059c12fc07bd3c464904318a263 | Allow specifying the type of params | ## Rational
Like https://github.com/thoughtbot/fishery/pull/94 with `Date`, I faced a problem with some "complex" types I wanted to pass as params.
The Pull Request allows one to specify the expected type of `params` (initially `DeepPartial<T>`) so we can easily use types such as [luxon's DateTime](https://momen... | diff --git a/lib/__tests__/custom-params.factory.test.ts b/lib/__tests__/custom-params.factory.test.ts
new file mode 100644
index 0000000..039d811
--- /dev/null
+++ b/lib/__tests__/custom-params.factory.test.ts
@@ -0,0 +1,48 @@
+import { Factory, DeepPartial, HookFn } from 'fishery';
+
+class DateTime {
+ private cons... | 3 | 3 | 0 | [{"id": "G0", "claim": "It would be good to add a few more tests demonstrating how `DeepPartial` handles nested values, e.g. a company factory with a nested user factory.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to add `expect(use... | null |
thoughtbot__fishery__38 | thoughtbot/fishery | 38 | defect | 87ce221afb49f62d62da14db5986c63393422796 | 6f707e7f5e7cdb1b982de5ceea535735ad5f64d9 | Update deep merge behavior to ignore arrays | As reported in #36, building a factory with an empty array was not overriding a non-empty array if it was defined that way in a factory:
```typescript
const elementsFactory = Factory.define<Elements>(() => ({
elements: ["STRING"],
}));
elementsFactory.build({ elements: [] }));
// { elements: ["STRING"] }
... | diff --git a/lib/__tests__/factory.test.ts b/lib/__tests__/factory.test.ts
index fa0ad89..d9ce6b2 100644
--- a/lib/__tests__/factory.test.ts
+++ b/lib/__tests__/factory.test.ts
@@ -113,3 +113,133 @@ describe('factory.rewindSequence', () => {
]);
});
});
+
+describe('merging params', () => {
+ describe('factor... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be simpler to use the built-in Array.isArray instead of lodash.isarray, since lodash just forwards to the JavaScript implementation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thrasher-corp__gocryptotrader__1073 | thrasher-corp/gocryptotrader | 1,073 | defect | 136dac8152273b7e95395930036b6e2c724ed650 | 41ee1003d5aadbacda0841f8e8a9ad8c89e3ab83 | bybit/buf: Fix test issues | # PR Description
A minor PR to fix bybit test and buf format issues.
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## How has this been tested
- [x] go test ./... -race
- [x] golangci-lint run
## Checklist
- [x] My code follows the style guidelines of this project
- ... | diff --git a/backtester/btrpc/btrpc.proto b/backtester/btrpc/btrpc.proto
index 5ad2ba1a766..467ec4b9010 100644
--- a/backtester/btrpc/btrpc.proto
+++ b/backtester/btrpc/btrpc.proto
@@ -250,48 +250,30 @@ message ClearAllRunsResponse {
service BacktesterService {
rpc ExecuteStrategyFromFile(ExecuteStrategyFromFileR... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comments on the bybitNumericalValue fields in SymbolPriceTicker should be reworded to the more accurate \"can be an empty or numeric string\" instead of \"can either be an empty string or a number\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
thrasher-corp__gocryptotrader__1086 | thrasher-corp/gocryptotrader | 1,086 | defect | 33aa26a140bc5af1bdb65cd4cb3c6a2e69285a3c | 121335ada539b1b9203a41295fbf0bab145fdf2c | engine: filter and warning for empty string when syncing all deposit addresses |
# PR Description
Going over a PR empty string were being inserted by accident this attempts to bypass and alert improper potential implementation.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking chang... | diff --git a/engine/helpers.go b/engine/helpers.go
index 5c9ad8af09b..c5bd4b7e97a 100644
--- a/engine/helpers.go
+++ b/engine/helpers.go
@@ -742,6 +742,13 @@ func (bot *Engine) GetAllExchangeCryptocurrencyDepositAddresses() map[string]map
depositAddrs = append(depositAddrs, *depositAddr)
}
for z :... | 1 | 1 | 0 | [{"id": "G0", "claim": "Since the message is a warning, the log line should drop the \"Err:\" prefix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thrasher-corp__gocryptotrader__1184 | thrasher-corp/gocryptotrader | 1,184 | defect | e74461173cc8804275ace14597b3eb59372d99df | 8821b0d0bb2ef35609cf5f8db57ed4f959b91e4f | hitbtc: optimise fetching tradable pairs and tickers | # PR Description
Fixes issue storing tradable pairs, fetching tickers and matching to available.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-brea... | diff --git a/exchanges/hitbtc/hitbtc_test.go b/exchanges/hitbtc/hitbtc_test.go
index 4da6add0814..edf67b905a3 100644
--- a/exchanges/hitbtc/hitbtc_test.go
+++ b/exchanges/hitbtc/hitbtc_test.go
@@ -56,6 +56,12 @@ func TestMain(m *testing.M) {
if err != nil {
log.Fatal("HitBTC setup error", err)
}
+
+ err = h.Upda... | 2 | 2 | 1 | [{"id": "G0", "claim": "TestUpdateTicker should pass the already-built pairs entries (pairs[0] to UpdateTicker and pairs[1] to FetchTicker) instead of hand-constructing duplicate currency pairs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
thrasher-corp__gocryptotrader__1185 | thrasher-corp/gocryptotrader | 1,185 | defect | e74461173cc8804275ace14597b3eb59372d99df | 41c7c8dd02655cfd062992f9323c63a451e62a3c | poloniex: filter non-liquid and unused assets | # PR Description
Filter pairs that are not enabled via front end and have no liquidity.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking chan... | diff --git a/exchanges/lbank/lbank_wrapper.go b/exchanges/lbank/lbank_wrapper.go
index 59e14aa78f0..4a5b85c454c 100644
--- a/exchanges/lbank/lbank_wrapper.go
+++ b/exchanges/lbank/lbank_wrapper.go
@@ -99,7 +99,6 @@ func (l *Lbank) SetDefaults() {
kline.IntervalCapacity{Interval: kline.ThirtyMin},
kline.Inte... | 1 | 1 | 1 | [{"id": "G0", "claim": "FetchTradablePairs, whose filtering behaviour this pull request changes, has no test; the reviewer suggests adding a TestFetchTradablePairs test that calls it and fails on error.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thrasher-corp__gocryptotrader__1187 | thrasher-corp/gocryptotrader | 1,187 | defect | f6fbe77f8cbf55e6502aa8da133d3712ca39b7eb | dc08ff0e02addb6cea863b35d41f255ea2f3b48e | Binance: Fix exchange order limits not populating | The order of the filters cannot be trusted. New filters have been added after the 2nd filter, breaking all filter passing afterwards.
This adds a basic test that the data is being populated, but more could be done on testing.
We should have stricter typing on the filters, perhaps by unmarshalling into json.RawMes... | diff --git a/exchanges/binance/binance.go b/exchanges/binance/binance.go
index c25b45ba581..cedd768a9ae 100644
--- a/exchanges/binance/binance.go
+++ b/exchanges/binance/binance.go
@@ -1196,30 +1196,40 @@ func (b *Binance) FetchSpotExchangeLimits(ctx context.Context) ([]order.MinMaxLe
}
for z := range assets {
... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new TestUpdateOrderExecutionLimits should exercise all asset types, not just Spot.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's code does not pass the project's linter, as shown by the linked failing CI r... | null |
thrasher-corp__gocryptotrader__1195 | thrasher-corp/gocryptotrader | 1,195 | defect | 8309ddf80c94e454c84e7aca03a6963b5d43dad4 | 987036e5edd7469dbbf819490e90ed7047ee4ced | OKX: Update to new savings module | # PR Description
Updates asset -> new savings endpoint as per https://www.okx.com/docs-v5/log_en/#2023-03-15 as the old endpoints wouldn't action certain things.
Also expands the numerical value type to support more values as one of the new endpoints can return either a float or string for a given JSON key 😆
... | diff --git a/exchanges/okx/okx.go b/exchanges/okx/okx.go
index 86ed08a3471..c1d5d06c845 100644
--- a/exchanges/okx/okx.go
+++ b/exchanges/okx/okx.go
@@ -50,32 +50,27 @@ const (
okxAPIWebsocketPrivateURL = okxWebsocketURL + "private"
// tradeEndpoints
- tradeOrder = "trade/order"
- placeMu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment on the added PublicBorrowInfo struct should read \"holds a currency's borrow info\" instead of the ungrammatical \"holds a currencies borrow info\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thrasher-corp__gocryptotrader__1201 | thrasher-corp/gocryptotrader | 1,201 | defect | 8309ddf80c94e454c84e7aca03a6963b5d43dad4 | de4df1d237bf3c84e614495cc5af246f0db26960 | wsManager: Fix IsRunning true before flushed | #### wsManager: Fix IsRunning true before flushed
Consumers must be able to tell when it's safe to start new
subscriptions. Before this fix any new subscriptions would get unsubbed
as part of the flush during `websocketRoutine`.
... | diff --git a/engine/engine.go b/engine/engine.go
index 8daddc114ae..4d7737c5828 100644
--- a/engine/engine.go
+++ b/engine/engine.go
@@ -44,7 +44,7 @@ type Engine struct {
OrderManager *OrderManager
portfolioManager *portfolioManager
gctScriptManager *gctscript.GctScriptManager
- websocke... | 1 | 1 | 0 | [{"id": "G0", "claim": "Exporting the field as `WebsocketRoutineManager` while its type `websocketRoutineManager` stays unexported is inconsistent and odd; the reviewer asks either for the reason behind it or, per the follow-up, for the type itself to be exported (or an `*Engine` status function).", "category": "design... | null |
thrasher-corp__gocryptotrader__1217 | thrasher-corp/gocryptotrader | 1,217 | defect | d086c45b0a4de7bcb5c794b21d6454921b4681f4 | fddc1fe096c0280790232709ebd7dcc37a43e32c | currency: Add OrderParameters helpers for currency pair | # PR Description
Adds minor helper methods for a currency pair to derive order parameter details from a currency either being sold; which can be derived from account balance, or a specific currency wishing to be purchased.
**Suggestions for naming conventions are welcomed**
_NOTE: This is mainly for spot_
#... | diff --git a/currency/pair_methods.go b/currency/pair_methods.go
index fe50863c7f9..33f2611d2e6 100644
--- a/currency/pair_methods.go
+++ b/currency/pair_methods.go
@@ -2,11 +2,14 @@ package currency
import (
"encoding/json"
+ "errors"
)
// EMPTYFORMAT defines an empty pair format
var EMPTYFORMAT = PairFormat... | 6 | 6 | 2 | [{"id": "G0", "claim": "The AskLiquidity field should be renamed to a boolean-style name such as IsAskLiquidity or UsesAskLiquidity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getAspect helper and OrderAspect type should be renamed to so... | null |
thrasher-corp__gocryptotrader__1223 | thrasher-corp/gocryptotrader | 1,223 | defect | bb449c2085bb9bb33104c23e102f334cf32e87e9 | 4754b718672c313429c548159ecc0ed16781ed98 | exchanges/fill: Add test coverage | # PR fill package unit tests
Included unit tests for the fill package
F
## Checklist
- [ x] My code follows the style guidelines of this project
- [ x] I have performed a self-review of my own code
- [ x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding c... | diff --git a/exchanges/fill/fill.go b/exchanges/fill/fill.go
index 66dfa22f532..aea552c1034 100644
--- a/exchanges/fill/fill.go
+++ b/exchanges/fill/fill.go
@@ -1,5 +1,10 @@
package fill
+import "errors"
+
+// ErrFeedDisabled is an error that indicates the fill feed is disabled
+var ErrFeedDisabled = errors.New("fil... | 7 | 5 | 2 | [{"id": "G0", "claim": "Remove the commented-out error check in TestUpdateDisabledFeed so that `err := fill.Update(testData)` is directly followed by `if !errors.Is(err, ErrFeedDisabled) {`, per the attached suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
thrasher-corp__gocryptotrader__1227 | thrasher-corp/gocryptotrader | 1,227 | defect | 1f89048ddbccb25a02dfdf376bd61249306ff018 | 179ff38d1b62195df4baf09f8a8b150f7034d09c | okx: GetDefaultConfig fix & ticker field improvements | # PR Description

* Get default config was panic-ing at the disco, so fixed that. Added regression test. (okcoin is broken)
* Adds bid and ask sizing to tickers
* For spot market orders adds in targ... | diff --git a/engine/engine_test.go b/engine/engine_test.go
index f408a8d08af..e1022a3f6e1 100644
--- a/engine/engine_test.go
+++ b/engine/engine_test.go
@@ -1,12 +1,14 @@
package engine
import (
+ "context"
"errors"
"os"
"testing"
"time"
"github.com/thrasher-corp/gocryptotrader/config"
+ exchange "githu... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer sees no reason why OKX's AutoPairUpdates should call UpdateTradablePairs with `false` when every other exchange uses `true`, and asks that it be changed to `true` unless there are other holdups (actioning it in this PR optional).", "category": "design", "verdict": "supported", "prio... | null |
thrasher-corp__gocryptotrader__1300 | thrasher-corp/gocryptotrader | 1,300 | defect | d26216642481ecbd8267cd814ef8b062b9899bb7 | f7243fd84e1cfd17ffbf8a9053072fb9b6fde837 | sync_manager: Rename Update to WebsocketUpdate | # PR Description
As per the request in PR #1229, the Update was replaced with WebsocketUpdate
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking... | diff --git a/engine/subsystem_types.go b/engine/subsystem_types.go
index 074b26b88a7..5b245f752c8 100644
--- a/engine/subsystem_types.go
+++ b/engine/subsystem_types.go
@@ -77,7 +77,7 @@ type iCurrencyPairSyncer interface {
IsRunning() bool
PrintTickerSummary(*ticker.Price, string, error)
PrintOrderbookSummary(*o... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename the test function TestSyncManagerUpdate to TestSyncManagerWebsocketUpdate to match the renamed syncManager method.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Update the method's doc comment to read '// Websocke... | null |
thrasher-corp__gocryptotrader__1385 | thrasher-corp/gocryptotrader | 1,385 | defect | 70690d9a047e26833f27d0596eedc8ce2755fb38 | dd7b1df2461700df872b0bd457b839215e1df97b | Gateio: Add function GetHistoricalFundingRates | # PR Description
Based off branch #1339
Adds function in gateio `GetHistoricalFundingRates`
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaki... | diff --git a/exchanges/fundingrate/fundingrate_types.go b/exchanges/fundingrate/fundingrate_types.go
index a8376deb9cf..fee88652373 100644
--- a/exchanges/fundingrate/fundingrate_types.go
+++ b/exchanges/fundingrate/fundingrate_types.go
@@ -9,8 +9,20 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/asse... | 7 | 7 | 5 | [{"id": "G0", "claim": "The function should return NotYetImplemented for the account-book-records endpoint with the pair inside a string, instead of the current error handling (reviewer would accept a NotYetImplemented there).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
thrasher-corp__gocryptotrader__1451 | thrasher-corp/gocryptotrader | 1,451 | defect | e93a9f72c3f6cd9ecc9d80c0bc6c9f9abdf861c3 | fb237982d9aef9dd1497c64069570503700c8e86 | Kraken: Improve ticker batch performance | # PR Description
Noticed during PPROF that kraken batch tickers was responsible for a big delay (> 10 seconds). Thankfully Kraken has updated their API to handle better batch support, which I've now added.
This improves performance by > 7x. Here are my benchmarks and tests that I used:
|Bench|ns|b/op|alloc|
|--... | diff --git a/exchanges/kraken/kraken.go b/exchanges/kraken/kraken.go
index 1fc2318aa50..1ea548b4aa1 100644
--- a/exchanges/kraken/kraken.go
+++ b/exchanges/kraken/kraken.go
@@ -161,7 +161,9 @@ func (k *Kraken) GetTicker(ctx context.Context, symbol currency.Pair) (Ticker, e
// ("LTCUSD,ETCUSD")
func (k *Kraken) GetTic... | 2 | 2 | 1 | [{"id": "G0", "claim": "The ErrPairNotFound check in newPairFromSymbol should be inverted so that any other error is returned immediately, instead of falling through and potentially returning an empty pair with a nil error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
thrasher-corp__gocryptotrader__1454 | thrasher-corp/gocryptotrader | 1,454 | defect | d907aab576a18fbd79704a9d64b5f0d61a40cb2c | 63531eedf15ef0b5ac40567fbf6c508d4d6fbaec | Bitfinex: Fix panic on TestUpdateTickers | * Handle Errors in tickers without panic
* Refactor and improve ticker handling
* Unify Ticker response handling
* Simplify/Humanify errors in parsing ticker responses
* Remove polymorphic response handling for < 10 fields, seems [antiquated according to docs](https://docs.bitfinex.com/reference/rest-public-ticker)... | diff --git a/exchanges/bitfinex/bitfinex.go b/exchanges/bitfinex/bitfinex.go
index d0f70936904..1aeda0b766b 100644
--- a/exchanges/bitfinex/bitfinex.go
+++ b/exchanges/bitfinex/bitfinex.go
@@ -748,86 +748,86 @@ func (b *Bitfinex) GetTicker(ctx context.Context, symbol string) (*Ticker, error
if len(response) > 10 {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Bitfinex intermittently returns null/odd values for ticker fields (e.g. tALT2612:USD BidSize), which the PR's error handling turns into 'type assert failure'/'invalid ticker response format' errors that fail TestUpdateTickers and other tests, and the reviewer suggests it may be worth ignoring th... | null |
thrasher-corp__gocryptotrader__1505 | thrasher-corp/gocryptotrader | 1,505 | defect | 044f2cd2042fe6613ea4521e3eed454cbf1dac03 | f34ffc6127e63115dec7254eff656e58bb0e47e8 | Kraken: Fix wsCancelOrders not erroring with order id | We were using the "cancel many" facility of the Kraken api. However since that doesn't actually report errors individually, it seems saner to just multiplex over it.
We were going to get N+ responses anyway. Might as well send N+ requests
One thing I'm unhappy about is the change of Key/Secret for this to work.
I ... | diff --git a/exchanges/binance/binance_test.go b/exchanges/binance/binance_test.go
index 89eca9cc784..308d6168bc4 100644
--- a/exchanges/binance/binance_test.go
+++ b/exchanges/binance/binance_test.go
@@ -1987,7 +1987,7 @@ func TestSubscribe(t *testing.T) {
{Channel: "btcusdt@trade"},
}
if mockTests {
- b = tes... | 8 | 6 | 1 | [{"id": "G0", "claim": "Add comments to the new `omitempty` tag on WsCancelOrderResponse.ErrorMessage stating it is there for testing purposes, or drop the tag if it is not needed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the assertio... | null |
thrasher-corp__gocryptotrader__1524 | thrasher-corp/gocryptotrader | 1,524 | defect | c967d8ad1944509b673e03a20c77a0de03252876 | 690216aee60cd74566de8f212ffde566c49634e3 | gateio: fix spot/futures order issues | # PR Description
* remove limit order only restriction
* remove market order price requirement
* time in force required when doing market orders for some ning nong reason, so fixed that
* fixed issue in processing order status from a websocket futures feed. Thanks vancake for bringing this up.
Fixes # (i... | diff --git a/exchanges/gateio/gateio.go b/exchanges/gateio/gateio.go
index 2b68b35c39e..8360ee109a9 100644
--- a/exchanges/gateio/gateio.go
+++ b/exchanges/gateio/gateio.go
@@ -156,7 +156,6 @@ var (
errTooManyOrderRequest = errors.New("too many order creation request")
errInvalidTimeout = e... | 2 | 2 | 2 | [{"id": "G0", "claim": "Mapping the gateio-specific statuses \"IOC\" and \"REDUCE_ONLY\" to Cancelled in the shared StringToOrderStatus is wrong because a reduce-only order isn't cancelled and an IOC order isn't necessarily cancelled, and this gateio API handling should be moved to the wrapper/exchange level.", "catego... | null |
thrasher-corp__gocryptotrader__1558 | thrasher-corp/gocryptotrader | 1,558 | defect | aeb4a8791324afb0afa50315994c0b1a27308bed | 5565e98f006e9af7f6e0f54039d060ff78b17334 | Deribit: bug fixes, test fixes and implement GetCurrencyTradeURL | # PR Description
These are the kinds of bugs that can only pop up after proper use, it was still an excellent PR Sam 🕊️
This PR does the following:
- Speeds up `UpdateTradablePairs` utilising concurrency since its so slow. Reduces `go test -race -count=0` from `28s` to `20s`
- Implement `GetCurrencyTradeURL`
-... | diff --git a/exchanges/deribit/deribit.go b/exchanges/deribit/deribit.go
index 00efc5ab5a3..3d3d808c1ad 100644
--- a/exchanges/deribit/deribit.go
+++ b/exchanges/deribit/deribit.go
@@ -28,11 +28,25 @@ type Deribit struct {
exchange.Base
}
+var (
+ // optionRegex compiles optionDecimalRegex at startup and is used t... | 7 | 4 | 3 | [{"id": "G0", "claim": "Use strings.Split instead of strings.SplitN with a -1 limit when splitting the instrument name in getAssetPairByInstrument.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new parallel t.Run subtests iterate range vari... | null |
thrasher-corp__gocryptotrader__1573 | thrasher-corp/gocryptotrader | 1,573 | defect | 258b60c0824a803125631bb72086d1053a5b7d3f | 8cdb5654379d4ac8a5899b00b75294b96221c322 | Gateio: Add unified account API endpoint support | # PR Description
Adds unified account fetching. This is just a mapping implementation, I don't have unified account enabled so I am not going to attempt to add this to the wrapper just yet, until I get an account that supports it. But it at least gives people the option to use it.
Can close if testing requiremen... | diff --git a/exchanges/gateio/gateio.go b/exchanges/gateio/gateio.go
index 902b54c8367..224631e979a 100644
--- a/exchanges/gateio/gateio.go
+++ b/exchanges/gateio/gateio.go
@@ -552,6 +552,16 @@ func (g *Gateio) GetSpotAccounts(ctx context.Context, ccy currency.Code) ([]Spot
exchange.RestSpot, spotPrivateEPL, http.Me... | 5 | 5 | 2 | [{"id": "G0", "claim": "Rename the BalanceDetails fields ending in 'Liab' to spell out 'Liabilities'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the 'funding' and 'funding_version' fields to the BalanceDetails struct, which are missing e... | null |
thrasher-corp__gocryptotrader__1597 | thrasher-corp/gocryptotrader | 1,597 | defect | b602d54bbe6ccb04c3422245f6daccf264388fb5 | 2ef269d272f6b73059808aa28c76da2681d553f0 | Bitfinex: Add subscription configuration and templating | # Bitfinex
* Correct comment about R0 Orderbook
* Add missing assets to test config
* Upgrade test config to avoid warnings
* Add subscription configuration and templating
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## New Library Dependencies
- [sprig](github.co... | diff --git a/exchanges/bitfinex/bitfinex.go b/exchanges/bitfinex/bitfinex.go
index a8da20915d0..540fa7be749 100644
--- a/exchanges/bitfinex/bitfinex.go
+++ b/exchanges/bitfinex/bitfinex.go
@@ -103,9 +103,7 @@ const (
bitfinexChecksumFlag = 131072
bitfinexWsSequenceFlag = 65536
- // CandlesTimeframeKey configure... | 2 | 2 | 1 | [{"id": "G0", "claim": "The default Candles subscription is Spot-only, so users who have not enabled the spot asset get no candles subscription even though Bitfinex supports candle data for margin assets.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
thrasher-corp__gocryptotrader__1615 | thrasher-corp/gocryptotrader | 1,615 | defect | 91ff6c5c1253c40c1de9a0ce8f329ed23a16d2d7 | 7110e888e8c218155e50826319b6a3d74f849764 | common/gateio/stream: add thread-safe counter and overide default GenerateMessageID with connection specific implementation | # PR Description
* GenerateMessageID does not ensure ~~atomicity~~ collision resistance, this update adds a basic counter for routines that require low cost message matching signatures.
* Gateio is converted by using bespoke ID generation in connection setup to override default `GenerateMessageID`
* NOTE: The ove... | diff --git a/common/common.go b/common/common.go
index 2aec8fc8741..7ad4305c9a4 100644
--- a/common/common.go
+++ b/common/common.go
@@ -19,6 +19,7 @@ import (
"strconv"
"strings"
"sync"
+ "sync/atomic"
"time"
"unicode"
@@ -671,3 +672,19 @@ func SortStrings[S ~[]E, E fmt.Stringer](x S) S {
})
return n
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Embedding common.Counter without a field name is ambiguous; name the field (Counter common.Counter).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of deviating from the websocket GenerateMessageID helper with exc... | null |
thrasher-corp__gocryptotrader__1616 | thrasher-corp/gocryptotrader | 1,616 | defect | b602d54bbe6ccb04c3422245f6daccf264388fb5 | 0c176aca3670edea8af325df1b9284cf2d875c7b | BTSE: Add subscription configuration | ### BTSE
* Add subscription templating
* Upgrade test config
- Orderbook is not present in this pull request because it has its own websocket connection and requires multi-websocket support
## Type of change
- [x] New feature (non-breaking change which adds functionality) | diff --git a/exchanges/btse/btse_test.go b/exchanges/btse/btse_test.go
index c4904af35db..82baf9ebb8e 100644
--- a/exchanges/btse/btse_test.go
+++ b/exchanges/btse/btse_test.go
@@ -22,8 +22,10 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/order"
"github.com/thrasher-corp/gocryptotrader/exchanges/sh... | 2 | 1 | 0 | [{"id": "G0", "claim": "Reinstate the orderBookL2 subscription that the pull request removes from the BTSE websocket defaults.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update the WsAuthenticate path from \"/spotWS\" + nonce to \"/ws/spot\" + nonce so... | null |
thrasher-corp__gocryptotrader__1630 | thrasher-corp/gocryptotrader | 1,630 | defect | 74f4df63487914a91c1bb0508d7e46793232ab4d | c8205b2a6482301eb0393d1c1b4b01dc20d038eb | engine: Add overridable exchanges command line flag | # PR Description
Adds an overridable, dry run protected by default `-exchanges` command line flag to engine which is useful for troubleshooting or in cases where you're only interested in enabling a specific set of exchanges, without requiring you to edit your config file.
## Type of change
- [x] New feature (... | diff --git a/engine/engine.go b/engine/engine.go
index 2b836600681..a0423819ff5 100644
--- a/engine/engine.go
+++ b/engine/engine.go
@@ -897,12 +897,36 @@ func (bot *Engine) SetupExchanges() error {
bot.dryRunParamInteraction("exchangehttpdebugging")
}
+ var exchangesOverride []string
+ if bot.Settings.Exchanges... | 2 | 2 | 2 | [{"id": "G0", "claim": "The parallel subtests of TestSetupExchanges share and mutate one engine (`e.Settings = ...` at line 468 and `e.Settings = {}` below), causing a data race that makes the test fail when run with -race; suggested giving each test case its own engine.", "category": "testing", "verdict": "supported",... | null |
thrasher-corp__gocryptotrader__1717 | thrasher-corp/gocryptotrader | 1,717 | defect | 85ecd0d4b848c3410690d4f0286e915652599bb9 | f1ca7bd785acb91de68f3f39ad4c836d4486fd8b | stream: force subscription store check as stop gap for wrapper side implementation | # PR Description
Noticed in Bybit that subscriptions weren't being added when I was flushing the connection every hour, ~~so abstracted adding and removing to websocket package then I can merge this to the open [PR chain](https://github.com/thrasher-corp/gocryptotrader/pull/1670). This is so we don't need to toil in... | diff --git a/exchanges/gateio/gateio_websocket.go b/exchanges/gateio/gateio_websocket.go
index d00f03b451f..a1b9e2281f2 100644
--- a/exchanges/gateio/gateio_websocket.go
+++ b/exchanges/gateio/gateio_websocket.go
@@ -667,10 +667,7 @@ func (g *Gateio) manageSubs(ctx context.Context, event string, conn stream.Conne
i... | 22 | 20 | 5 | [{"id": "G0", "claim": "connect()'s all-or-nothing subscription handling leaves successfully-subscribed subscriptions unrecorded when any subscription fails, and one failing sub tears down all connections and subscriptions; the reviewer wants successful subs recorded and connect to return the error without the wholesal... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.