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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
terrastruct__d2__1683 | terrastruct/d2 | 1,683 | defect | 0a7e6c83a3be5ccb3cf67f5c247ab388bd6f07cc | a67c186cae50f55b990ed64c23cc406893e50028 | fix d2fonts race condition in TestCLI_E2E | ## Summary
Updates d2fonts to not trigger races in TestCLI_E2E.
## Details
- fixes #1682
- ran `./ci/test.sh --race ./e2etests-cli/... -count=1` 5 times successfully
- creates new SyncMap lib type as a wrapper around sync.Map | diff --git a/d2renderers/d2fonts/d2fonts.go b/d2renderers/d2fonts/d2fonts.go
index 51704db23d..85bd8b7f08 100644
--- a/d2renderers/d2fonts/d2fonts.go
+++ b/d2renderers/d2fonts/d2fonts.go
@@ -44,14 +44,20 @@ func (f Font) GetEncodedSubset(corpus string) string {
FontFamiliesMu.Lock()
defer FontFamiliesMu.Unlock()
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the commented-out old map declarations (`// FontEncodings map[Font]string`, `// FontFaces map[Font][]byte`) left above the new sync.Map globals.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extra bare scope b... | null |
terrastruct__d2__1691 | terrastruct/d2 | 1,691 | defect | d09024e22d7119058493e85a335dfbfb26b18a81 | c270bc8d08e446432040e19f67255987bf58a0f5 | compiler: Fix errors in globs | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
fixes #1676
1. This picks up refs set by globs so that... | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index add6512b65..8234ad2304 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -14,3 +14,4 @@
- Fixes use of `null` in `sql_table` constraints (ty @landmaj) [#1660](https://github.com/terrastruct/d2/pull/1660)
-... | 2 | 2 | 1 | [{"id": "G0", "claim": "When multiple globs set a value on an edge, the compile error is attributed to the first glob's reference instead of the last (the invalid \"near\" is reported at line 7 instead of line 10), and (e *Edge) LastPrimaryRef may also need the same handling as Field's.", "category": "correctness", "ve... | null |
terrastruct__d2__1693 | terrastruct/d2 | 1,693 | defect | df1d49f6beb94b29ea1bf45108790bfc07bcfc4c | b3ebded99a195f3300ed02d80ff5876a9784f575 | cli: Fix invalid link paths | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
fixes #1665 | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index add6512b65..7ef4b59747 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -14,3 +14,4 @@
- Fixes use of `null` in `sql_table` constraints (ty @landmaj) [#1660](https://github.com/terrastruct/d2/pull/1660)
-... | 2 | 1 | 1 | [{"id": "G0", "claim": "The hoisted `len(boardPath) < 2 { return nil }` guard means the recursive getBoard will hit the nil return and fail to find boards; the reviewer asks to use the other form (as in GetBoard) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
terrastruct__d2__1695 | terrastruct/d2 | 1,695 | defect | 92ef0b789a4dc01f7f832acfbb5814841483fba3 | ffe5a1fe864e84cf3d9b7355bd354d76955280f0 | compiler: vars fixes | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
1. Fix missing spread substitution var
2. Change vars sc... | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index 8234ad2304..83af57a92a 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -4,6 +4,7 @@
- Grid cells can now contain nested edges [#1629](https://github.com/terrastruct/d2/pull/1629)
- Edges can now go acr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new FieldReference RefContext in compileMap should set ScopeAST, as compileKey above does, for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
terrastruct__d2__2253 | terrastruct/d2 | 2,253 | defect | 1ea36d5d39c4bc604816076f28d59bfa1046d7d0 | 48cba038db646bb76cc08ff3965ffcf880c6ccea | cli: Implement d2 fmt --check | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
This PR implements a `--check` flag as described in https... | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index 302685f371..0226ca55df 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -4,6 +4,7 @@
- Connections now support `link` [#1955](https://github.com/terrastruct/d2/pull/1955)
- Vars: vars in markdown blocks a... | 1 | 1 | 0 | [{"id": "G0", "claim": "Extend the e2e test coverage so that `d2 fmt --check` is also run on formatted files, not only on unformatted ones.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
terrastruct__d2__2415 | terrastruct/d2 | 2,415 | defect | 32c14d586c9ca21607ea6140e8066ff5438e8194 | 34ab0091447f5a7c95e65ed5ff88ba8c55e8f1ff | cli: add validate command | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->

- Su... | 6 | 6 | 0 | [{"id": "G0", "claim": "The man page entry for the validate command should read \"Validates file.d2\" instead of \"Validate all input file\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The help.go subcommand description for validate should rea... | null |
terrastruct__d2__2479 | terrastruct/d2 | 2,479 | defect | bc395e240e4f9ade5a089b8121b0534b3df6e1d1 | a1e4312c2cc19e6d9cefebfe0f26d7f409d01f5d | feat: support for --omit-version flag | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
/fixes #2377 | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index 092a1ff801..9e7cabe917 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -16,6 +16,7 @@
- CLI:
- Support `validate` command. [#2415](https://github.com/terrastruct/d2/pull/2415)
- Watch mode ignor... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test for the new --omit-version flag behaviour should be added to e2etests-cli.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
terrastruct__d2__2487 | terrastruct/d2 | 2,487 | defect | 1a13e0a9bcc0d82603ef4c5fd6e8cf0465a224e6 | 8f64c02dd8dc40f7fd7a8212bc5a69881dc7d27a | fix: made gradients work in sketch mode | <!-- Please title the PR with a scope prefix like cli: performance improvements. -->
<!-- Please add screenshots or screencasts for ui/autolayout changes. -->
<!-- Remember to update ci/release/changelogs/next.md, the manpage and cli help documentation. -->
Before d2 was throwing error while using gradient color val... | diff --git a/d2themes/sketch_overlay.go b/d2themes/sketch_overlay.go
index f1557c623b..65ccde3563 100644
--- a/d2themes/sketch_overlay.go
+++ b/d2themes/sketch_overlay.go
@@ -24,9 +24,15 @@ func (o *ThemableSketchOverlay) Render() (string, error) {
if color.IsThemeColor(o.fill) {
o.el.ClassName += fmt.Sprintf(" sk... | 4 | 4 | 1 | [{"id": "G0", "claim": "Rename UrlGradientId/IsUrlGradientId to use Go initialism capitalization (URLGradientID/IsURLGradientID).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Handle url gradient ids at the source instead of the call site: Lumi... | null |
terrastruct__d2__2492 | terrastruct/d2 | 2,492 | defect | 31519e9d632ea4b0ceb2a1b600e4b0dca37a68b5 | 9f66199777641ced6778d944e91a2e6834b6476b | validate gradient color stops | Currently, D2 does not validate gradient color stops, it just renders black color in case the gradient colors are invalid.
This PR adds the functionality to validate each color stop & in case it's invalid, it throws an error.
As per D2 website `fill` & `stroke` supports css color names & hex colors apart from gradi... | diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md
index 4a04e7e04c..8cf883cffa 100644
--- a/ci/release/changelogs/next.md
+++ b/ci/release/changelogs/next.md
@@ -21,6 +21,7 @@
- Compiler:
- `link`s can be set to root path, e.g. `/xyz`. [#2357](https://github.com/terrastruct/d2/issues/2357... | 1 | 1 | 1 | [{"id": "G0", "claim": "The gradient color-stop validity check belongs in ValidColor (lib/color/color.go), not inside IsGradient, which should only report that a string has a gradient pattern while leaving validity to ValidColor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
terser__html-minifier-terser__102 | terser/html-minifier-terser | 102 | defect | 7a2379d9efbf5c2ce365764aff860fd04e53979c | 3fba6b27402c9221ab199c1fcf72088cf3990ac9 | Switch to ESM | ESM is the future
While Trying to support both ESM and CJS with rollup still causes issues when running in ESM environment, since not all the dependencies minifier uses provides correct exports for both environments.
Hence the source is converted to ESM and CJS is supported via rollup. There is no breaking change... | diff --git a/.eslintrc.json b/.eslintrc.json
index baeb0d82..05376560 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,13 +1,5 @@
{
"extends": "standard",
- "env": {
- "es2021": true,
- "node": true
- },
- "parserOptions": {
- "ecmaVersion": 12,
- "sourceType": "module"
- },
"rules": {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unused, undocumented exports removed from src/htmlparser.js (the HTMLParser re-export and the HTMLtoXML helper) should not be removed yet, till something is conclusive.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
terser__html-minifier-terser__150 | terser/html-minifier-terser | 150 | defect | 9e1d8e54efebd554a05045759fb0ca878baa178d | 18da20f450f380961bfbb62d5da313cb3dc70fb9 | Update `clean-css` To `v5.3` | Updates `clean-css` to the latest version. Updates a test to reflect the functionally identical but different output the latest version of `clean-css` produces.
Resolves https://github.com/terser/html-minifier-terser/issues/149. | diff --git a/package-lock.json b/package-lock.json
index 9ac9be5c..eebbc03c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"camel-case": "^4.1.2",
- "clean-css": "5.2.0",
+ "clean-css": "~5.3.2",
"commander": "^9... | 1 | 1 | 0 | [{"id": "G0", "claim": "package.json should use `^` instead of `~` for the clean-css dependency so that minor releases (5.4.x etc.) are picked up without a change to this package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
terser__terser__1047 | terser/terser | 1,047 | defect | 23e421119737f6501e8f5c37ac610eb52fbd6cf0 | ea9328d77268a69d1f7955ab7693b12a385def44 | fix: functions may be compressed mistakenly if passes=2 | This fixes #1046 . I also added a simple test case to `tests/compress/inline.js` to verify it. | diff --git a/lib/compress/index.js b/lib/compress/index.js
index be2288f4d..787f78dab 100644
--- a/lib/compress/index.js
+++ b/lib/compress/index.js
@@ -2166,6 +2166,9 @@ def_optimize(AST_Call, function(self, compressor) {
if (can_inline && has_annotation(self, _INLINE)) {
set_flag(fn, SQUEEZED);
... | 1 | 1 | 1 | [{"id": "G0", "claim": "fn.clone(true) should always be called when inlining, not only when the definition is not single-use, as that is probably safer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
terser__terser__1544 | terser/terser | 1,544 | defect | 6df0d400bf8cfa779ec00e9dcd859d15bf2d3f59 | aeba93e023d6bd52f4133a99e013ce1a49da946a | reduce variables when functions have indirect calls | Fixes #1429
This allows variables to be reduced when used in a function that has indirect calls.
I'm new to terser so it might have bugs.
Benchmark result:
| url | input size | before output size | after output size | size diff ... | diff --git a/lib/compress/reduce-vars.js b/lib/compress/reduce-vars.js
index 262df881a9..281de65f5e 100644
--- a/lib/compress/reduce-vars.js
+++ b/lib/compress/reduce-vars.js
@@ -509,15 +509,26 @@ function handle_defined_after_hoist(parent) {
) return true;
});
+ // If a function `A` uses an outside ... | 8 | 8 | 2 | [{"id": "G0", "claim": "The change uses syntax and methods Node 10 does not support (optional chaining `?.`, nullish coalescing `??`, and Array.prototype.findLastIndex), so they must be replaced with older equivalents.", "category": "compatibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
terser__terser__1590 | terser/terser | 1,590 | defect | 1d416afc7c3f4257ac44dacd3f5fa3a72a2be171 | 6fa9822b6d006c122b9aa841dd4f1f7d66e043b1 | Solving issue-1545 | ## Title: Remove unnecessary `console.assert` calls (Issue #1545)
### Description:
This pull request addresses Issue #1545 in the Terser project, which involves removing unnecessary `console.assert` calls from the codebase. Specifically, this PR removes `console.assert` calls with expressions that are always true, ... | diff --git a/lib/compress/compressor-flags.js b/lib/compress/compressor-flags.js
index 134165859..fc1327362 100644
--- a/lib/compress/compressor-flags.js
+++ b/lib/compress/compressor-flags.js
@@ -48,7 +48,6 @@ export const TRUTHY = 0b00000010;
export const FALSY = 0b00000100;
export const UNDEFINED = 0b00001000;
ex... | 2 | 2 | 1 | [{"id": "G0", "claim": "The console.assert match should also require that the `console` symbol is undeclared, so the transform applies to the global console and not a locally defined `console` variable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
terser__terser__184 | terser/terser | 184 | defect | b80730e7d31dd221ea29bcec47d3e70c0bd11f36 | c206806c20a04dea7985f9385fc4245dec88b3fc | fix top_retain TypeError exception | fixes #183 | diff --git a/lib/compress.js b/lib/compress.js
index 1ac8852777..4e3ed9640d 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -4556,6 +4556,7 @@ merge(Compressor.prototype, {
function retain_top_func(fn, compressor) {
return compressor.top_retain
+ && fn
&& fn._top
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reorder the guard chain in retain_top_func so the fn instanceof AST_Defun check comes before the fn._top property access, which would make the subsequent fn.* accesses valid without the added fn truthiness test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ... | null |
terser__terser__255 | terser/terser | 255 | defect | 68347ce7241770fdd4d75796b67ab2c19f5991d1 | 21e06362986d5a84b45a758d2b5f50d6cc4e9cad | Replace array constructor with literal when it's possible | Closes #246 | diff --git a/lib/compress.js b/lib/compress.js
index cd61f09d9a..f168c55890 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -5303,19 +5303,34 @@ merge(Compressor.prototype, {
});
OPT(AST_New, function(self, compressor) {
+ const {args, expression: exp} = self;
+
if (compressor.option("... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new `new Array(...)` replacement must not run unless the `unsafe` option is turned on, because the `Array` constructor might have been redeclared as a global variable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the... | null |
terser__terser__314 | terser/terser | 314 | defect | 6fe56db4d6daef858c3e5a0162d2f2d7e1766d51 | 4d0b2bdf770ee262558c2e3f83bbf41d7c3f34a1 | fix optimization of `Array` and `new Array` | Fixes #312. This reverts the previous (incorrect) optimization applied to `AST_New` and instead applies the (correct) optimization to `AST_Call`. | diff --git a/lib/compress/index.js b/lib/compress/index.js
index 5b4a96197..e41e424c7 100644
--- a/lib/compress/index.js
+++ b/lib/compress/index.js
@@ -4808,6 +4808,10 @@ merge(Compressor.prototype, {
return make_node(AST_Array, self, {
elements: self.args
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The optimizer should also rewrite single-argument Array calls with a non-numeric argument, i.e. Array(foo) to [foo] and Array(\"Foo\") to [\"Foo\"].", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new AST_New optimizer shoul... | null |
terser__terser__317 | terser/terser | 317 | defect | cc00e783714c16b61288ec3233a6ca38b3de5cf6 | ec937a7a786399414f69041cc2f8a350c8bcafea | Added ability to use pattern string as input for mangle-properties regex | Fixes #316 | diff --git a/README.md b/README.md
index e29be0758f..e7c06480dd 100644
--- a/README.md
+++ b/README.md
@@ -943,7 +943,7 @@ Terser.minify(code, { mangle: { toplevel: true } }).code;
- `"strict"` -- Advanced, all unquoted property names are mangled unless
explicitly reserved.
-- `regex` (default: `null`) -— Pas... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README should not link to Java's Pattern documentation; link to MDN's RegExp docs instead, e.g. \"Pass a [RegExp literal or pattern string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) to only mangle property matching the regular expression.\"", "c... | null |
terser__terser__320 | terser/terser | 320 | defect | 0497b5e8a591f56d1dfb8d83a3d93d59994f5773 | 275bf20f40cf1387e2864d2ad4cbe5919f376af5 | Improved inline efficiency | Not fixes, but closes #308
Also:
- updated dependencies
- improved error message when parsing source map
One more point: it's pretty hard to find out what went wrong with tests when stacktrace absolutely wrong, I created https://github.com/fabiosantoscode/mochallel/pull/3 to fix that sometime ago, @fabiosantos... | diff --git a/bin/uglifyjs b/bin/uglifyjs
index 3d64b58a20..1884e60ecc 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -58,7 +58,7 @@ program.option("--name-cache <file>", "File to hold mangled name mappings.");
program.option("--rename", "Force symbol expansion.");
program.option("--no-rename", "Disable symbol expans... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the braces back around the multi-line `if (stat && !all(line.definitions, ...)) return false;` in lib/compress/index.js, since braces should be omitted only for small, single-line if statements.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}... | null |
terser__terser__325 | terser/terser | 325 | defect | 9ca4b8be3c85453ae4c812090afd993efcec238f | 17059d2e98a7e1a56d153d7f9155fa199d643649 | Added support for BigInt | Closes #324 | diff --git a/lib/ast.js b/lib/ast.js
index e2495d97da..9dcde7f3a8 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -51,8 +51,7 @@ import {
} from "./utils.js";
import { parse } from "./parse.js";
-function DEFNODE(type, props, methods, base) {
- if (arguments.length < 4) base = AST_Node;
+function DEFNODE(type, props... | 8 | 7 | 2 | [{"id": "G0", "claim": "Parsing the big int literal with parse_js_number/parseFloat and storing it as a JS number loses precision (e.g. 0x20000000000001n parses as MAX_SAFE_INTEGER + 1), so the node's value must be represented without losing the extra precision.", "category": "correctness", "verdict": "supported", "pri... | null |
terser__terser__409 | terser/terser | 409 | defect | bcd47eda06544d9ed9494e52fe5e5cae40155a45 | 595be2603c3fa07039d3df924667216f40dabfbd | check every comment token before printing it | This is a simple solution to fix #396, and has very little negative impact on speed. | diff --git a/lib/output.js b/lib/output.js
index 206d464c5..5d5e5b0b9 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -622,7 +622,8 @@ function OutputStream(options) {
}
if (current_pos == 0) {
- if (comments.length > 0 && options.shebang && comments[0].type == "comment5") {
+ ... | 5 | 5 | 1 | [{"id": "G0", "claim": "Use an arrow function instead of a `function(c) { ... }` expression for the comment-filter callback added at lib/output.js line 636.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use strict equality (`===`) for the `comm... | null |
terser__terser__501 | terser/terser | 501 | defect | e7e420898061c42954848e74d67b268284a04871 | a9fc9eec77802a9c2c6dbad6a6ebebb9b872769d | Added output option to keep numbers as is | Closes #499 | diff --git a/README.md b/README.md
index ec2cc4412b..e27b645595 100644
--- a/README.md
+++ b/README.md
@@ -993,6 +993,9 @@ can pass additional arguments that control the code output:
- `inline_script` (default `true`) -- escape HTML comments and the slash in
occurrences of `</script>` in strings
+- `keep_numbers`... | 3 | 3 | 0 | [{"id": "G0", "claim": "The keep_numbers_in_properties_as_is test should use expect_exact instead of expect, otherwise it leads to false positives.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ternary choosing between output.print(key) and output.... | null |
terser__terser__725 | terser/terser | 725 | defect | ee6b8af8f5bac4f18fe1d0485639db8fac660296 | 25bf2e41772cfb8fb3242ed27568d79d4352f9e5 | Add numeric separators support | Adds support for [Stage 3 Numeric Separators](https://github.com/tc39/proposal-numeric-separator).
Numeric separators are available in V8, SpiderMonkey, JavaScriptCore and ChakraCore (see [here](https://github.com/tc39/proposal-numeric-separator/issues/43#issue-426539288)).
Considerations:
- As a stage 3 feature d... | diff --git a/.travis.yml b/.travis.yml
index f65af9bce..44803b5ec 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ jobs:
include:
- name: Functional tests
script: test/functional.sh
- node_js: 14
+ node_js: 12
cache:
directories:
- node_modules
diff --git ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The two invalid-numeric-separator cases should raise two different syntax errors: 'Only one underscore is allowed as numeric separator' for multiple underscores and 'Numeric separators are not allowed at the end of numeric literals' for an underscore at the end.", "category": "maintainability", ... | null |
terser__terser__895 | terser/terser | 895 | defect | f5959c3ada5c9f47f044e8bb5cd796dad70a4290 | 9977d5ec89a54059cb7c7e863883be53148c6015 | Remove the beautify option | Hi. Tests are passing and I think everything is ok here. The beautify functionality was only removed for CLI. Why not entirely? Because you use it with tests.
Closes #214 | diff --git a/lib/cli.js b/lib/cli.js
index 2878a74e0..f1872aa05 100644
--- a/lib/cli.js
+++ b/lib/cli.js
@@ -42,7 +42,6 @@ export async function run_cli({ program, packageJson, fs, path }) {
program.option("-m, --mangle [options]", "Mangle names/specify mangler options.", parse_js());
program.option("--mangle... | 4 | 4 | 3 | [{"id": "G0", "claim": "The `-b`/`--beautify` CLI option should continue to work as an alias of `--format`, because `-b` is an old-style option written into too many existing scripts.", "category": "design", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Removing `beautify` fro... | null |
teslamotors__ansible_puller__14 | teslamotors/ansible_puller | 14 | defect | 393eafbf7922819b7effcc5ffd6d71e8664ecf0f | 55d8bf66b7fe0bcca54f384dd76274435cb7d6ec | Enable S3 tarball remotes | This enables S3 as a viable backend for Ansible tarballs while still maintaining the checksum feature of HTTP | diff --git a/README.md b/README.md
index ae50308..b96a298 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# ansible-puller
This daemon extends the `ansible-pull` method of running Ansible.
-It uses HTTP file transmission instead of Git to manage distribution (easy to cache), and integrates with Prometheus mo... | 8 | 7 | 2 | [{"id": "G0", "claim": "The s3-obj flag's help text still references a non-existent s3-arn option, and neither the help text nor the docs give examples of what to put here.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new go-getter S3 downlo... | null |
teslamotors__ansible_puller__2 | teslamotors/ansible_puller | 2 | defect | b87e7f59e3023010ab8ef337437e2d2dbb0deda1 | 2a9879334523dffa0ea87b14b36337b3de3b309b | Adding IP support to the inventory so that you can use ip address instead of simply hostnames as a way to designate hosts in your inventories | ```
go test
{"level":"info","msg":"Disabled Ansible-Puller","time":"2019-09-09T15:45:47-07:00"}
Running Suite: Ansible Puller Suite
===================================
Random Seed: 1568069147
Will run 12 of 12 specs
••••••••••••
Ran 12 of 12 Specs in 0.017 seconds
SUCCESS! -- 12 Passed | 0 Failed | 0 Pendin... | diff --git a/ansible.go b/ansible.go
index 5a285d6..8959c9f 100644
--- a/ansible.go
+++ b/ansible.go
@@ -4,12 +4,14 @@ package main
import (
"encoding/json"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/spf13/viper"
+ "net"
"os"
"path/filepath"
"strings"
+
+ "github.com/pkg/errors"
+... | 7 | 7 | 3 | [{"id": "G0", "claim": "The comment above CreateAnsibleTargetsList misspells 'ip addresse' and should read 'ip addresses from the host interfaces'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "CreateAnsibleTargetsList should return errors instea... | null |
teslamotors__ansible_puller__49 | teslamotors/ansible_puller | 49 | defect | 5d7be016a7804480d419abb7730ef6a319859d4c | 32091fe2724aeb9f5844bb10a0192c9de00e6fee | Add support for custom md5 remote path. | We use the gitlab package registry to store ansible playbook releases. Gitlab has permalinks to the latest artifacts or to release assets. These links to artifacts or release assets are accessed using the gitlab API and my not be the actual path to the tarball or md5 checksum file.
A custom remote path for the link... | diff --git a/README.md b/README.md
index ee09338..f15b802 100644
--- a/README.md
+++ b/README.md
@@ -66,6 +66,7 @@ Config file should be in: `/etc/ansible-puller/config.json`, `$HOME/.ansible-pul
| `http-user` | `""` | Username for HTTP Basic Auth ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README documentation for `http-checksum-url` should call out that it is an MD5 hash to avoid confusion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
teslamotors__ansible_puller__54 | teslamotors/ansible_puller | 54 | defect | cc112353cb9b09287a92f9b12fa951ec6ec429aa | 72da1c0bb91326c2210e75afdd7cfe564614f7c3 | Logging and exit code fixes | 1. When debug=true for logging, ansible_puller fails to report stats to prometheus
2. LastExitCode prom_metric is not set for all the errors like when inventory pull fails/remote download fails | diff --git a/ansible.go b/ansible.go
index 51ed36a..a79801c 100644
--- a/ansible.go
+++ b/ansible.go
@@ -4,9 +4,11 @@ package main
import (
"encoding/json"
+ "fmt"
"net"
"os"
"path/filepath"
+ "regexp"
"strings"
"github.com/pkg/errors"
@@ -139,6 +141,52 @@ type AnsiblePlaybookRunner struct {
Env ... | 10 | 9 | 2 | [{"id": "G0", "claim": "Add comments explaining what the new parsing code does, and since it parses the PLAY RECAP, name the function clearly (e.g. parsePlayRecap) for better readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add unit t... | null |
teslamotors__fixed-containers__105 | teslamotors/fixed-containers | 105 | defect | 7df5ec3b41bb91846c211311338d5b8480807d8b | 3c41b7725e8a0297990e4eb04364bec712267833 | Introduce OptionalRef | Introduce a OptionalRef which is intended to be similar to std::optional\<std::reference_wrapper> without the necessary layer of indirection when accessing values | diff --git a/BUILD.bazel b/BUILD.bazel
index 8e7101ac..5cc4935a 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -561,6 +561,29 @@ cc_library(
copts = ["-std=c++20"],
)
+cc_library(
+ name = "optional_ref",
+ hdrs = ["include/fixed_containers/optional_ref.hpp"],
+ includes = ["include"],
+ deps = [
+ ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The template parameter should take the base type T (as in `OptionalRef<int>`, emulating `std::reference_wrapper`) rather than the reference type T& (as in `OptionalRef<int&>`).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a ... | null |
teslamotors__fixed-containers__12 | teslamotors/fixed-containers | 12 | defect | ea6a7e1da186a8fa9248c5c2cd094a5a6d1814c6 | c199c44b90a5f28e18f848618e1e0ad5ea630154 | Add size deduction for FixedMap, FixedSet & FixedVector | Add functions `make_fixed_map`, `make_fixed_set` and `make_fixed_vector` to deduce the size of their container at compile time.
When it's known that a container won't need to grow at runtime, it is now possible to create the container without specifying its maximum size, and its maximum size will be deduced to be th... | diff --git a/include/fixed_containers/fixed_map.hpp b/include/fixed_containers/fixed_map.hpp
index bd805ddc..182a4520 100644
--- a/include/fixed_containers/fixed_map.hpp
+++ b/include/fixed_containers/fixed_map.hpp
@@ -755,4 +755,31 @@ constexpr
return erase_if_detail::erase_if_impl(c, predicate);
}
+/**
+ * Co... | 6 | 6 | 1 | [{"id": "G0", "claim": "Rename the template parameter `SIZE` to `MAXIMUM_SIZE` in the new `make_fixed_set` function to match the parent template's naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a check for `max_size()` to the new Fix... | null |
teslamotors__fixed-containers__153 | teslamotors/fixed-containers | 153 | defect | b1669cd11b4a260c71c6f4fa3a7aef23857d5f8d | a4d2a990f82b7a91465ef82a95f44928b8b22c1a | Allow error handling from StructView::add_path | If the path does not resolve to reflected field data, return `false` from `add_path` so that callers can properly handle error conditions. | diff --git a/include/fixed_containers/struct_view.hpp b/include/fixed_containers/struct_view.hpp
index c0cfdac6..bb76b006 100644
--- a/include/fixed_containers/struct_view.hpp
+++ b/include/fixed_containers/struct_view.hpp
@@ -568,38 +568,51 @@ class StructView
}
template <typename S>
- void add_path(S&&... | 1 | 1 | 0 | [{"id": "G0", "claim": "Stack-allocating an instance of the templated struct inside the no-instance add_path/add_paths overloads can lead to a stack overflow since the size of S is unbounded, and the API should instead be changed (as with std::accumulate) so the caller passes in an object of the type of interest.", "ca... | null |
teslamotors__fixed-containers__182 | teslamotors/fixed-containers | 182 | defect | 82b8fd061f0a5a41b4a0365827675885e2602268 | 91674b5adbfc9e87e9be9cbea3a611a83e6bcdc8 | [OptionalReference] Add pointer constructor | This adds a constructor to `OptionalReference` that allows creating references from pointer types. | diff --git a/include/fixed_containers/optional_reference.hpp b/include/fixed_containers/optional_reference.hpp
index db3e3584..4532e544 100644
--- a/include/fixed_containers/optional_reference.hpp
+++ b/include/fixed_containers/optional_reference.hpp
@@ -43,6 +43,15 @@ class OptionalReference
{
}
+ const... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new constructors, which do not raise exceptions, should be marked `noexcept`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new constructors should be marked `explicit`, following the existing pattern for OptionalReferenc... | null |
teslamotors__fixed-containers__188 | teslamotors/fixed-containers | 188 | defect | 7bf805f4c0f3ef63386059f47eaf84f4bfa15e5b | 926baebb73ab7489a887597a663ce30061142002 | FixedBitSet to provide constexpr storage for EnumSet (2) | Original PR: https://github.com/teslamotors/fixed-containers/pull/174
Many changes, so avoiding force-push. | diff --git a/BUILD.bazel b/BUILD.bazel
index b3d7a657..059c94bd 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -154,6 +154,7 @@ cc_library(
":enum_utils",
":erase_if",
":filtered_integer_range_iterator",
+ ":fixed_bitset",
":fixed_vector",
":memory",
":optiona... | 3 | 3 | 1 | [{"id": "G0", "claim": "The string constructor should use a proper checking mechanism (the validate helper above, or preconditions like the rest of the library) instead of manually calling the opaque x_ran() for the out-of-range error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ... | null |
teslamotors__fixed-containers__23 | teslamotors/fixed-containers | 23 | defect | 79755322cb2030b51d488dff15cd6a087525319d | 9c77213e09b0d88a29588c6ed8550e313df44625 | Implement view type for raw pointers to FixedRedBlackTree objects | Allow forward iteration for fixed containers that are backed by red black trees. | diff --git a/BUILD.bazel b/BUILD.bazel
index a1fb8903..ab1571dc 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -128,6 +128,7 @@ cc_library(
"include/fixed_containers/fixed_red_black_tree_ops.hpp",
"include/fixed_containers/fixed_red_black_tree_storage.hpp",
"include/fixed_containers/fixed_red_... | 15 | 13 | 1 | [{"id": "G0", "claim": "The view header should live in its own cc_library target for reduced invalidation, since fixed_red_black_tree does not need the view to operate.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The data members should be declared ab... | null |
teslamotors__fleet-telemetry__144 | teslamotors/fleet-telemetry | 144 | defect | c55c34e2a2d2200b10d59335278bf670fdda9fc6 | 7a10620cc45f2b7f95a83f3ce457838313521786 | Add airbrake integration | # Description
Add support for [airbrake](https://www.airbrake.io/). In this branch, just adding airbrake to report on 5xx error codes. Also updated docker-compose to run [errbit](https://github.com/errbit/errbit) which is Airbrake compliant.
Fixes # (issue)
## Type of change
Please select all options that a... | diff --git a/README.md b/README.md
index 5f99059ba..8cb479d73 100644
--- a/README.md
+++ b/README.md
@@ -223,6 +223,7 @@ brew install libsodium zmq
## Integration Tests
To run the integration tests: `make integration`
+To log into errbit instances, default username is `noreply@example.org` and default password is `... | 1 | 1 | 0 | [{"id": "G0", "claim": "The DescribeTable description in airbrake_test.go should use assertive language, e.g. `successfully handles request`, instead of `should handle request without error`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
teslamotors__fleet-telemetry__146 | teslamotors/fleet-telemetry | 146 | defect | 4582a4912e3494b51046ef8bc7ce436e97058572 | 6c9ca55668af2fa46b34925bba3f07a306631f7c | Integrate airbrake with datastore | # Description
Report datastore errors to airbrake. Note that it will only dispatch errors to airbrake if its actually configured otherwise `func (a *AirbrakeHandler) ReportLogMessage` acts as a noop.
Fixes # (issue)
## Type of change
Please select all options that apply to this change:
- [X] New feature ... | diff --git a/cmd/main.go b/cmd/main.go
index 9c6695234..876bc60ae 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -54,7 +54,7 @@ func startServer(config *config.Config, logger *logrus.Logger) (err error) {
monitoring.StartServerMetrics(config, logger, registry)
}
- producerRules, err := config.ConfigureProducers(l... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new ReportError method calls itself (p.ReportError) instead of p.logger.ErrorLog, causing infinite recursion when invoked, and the same mistake exists in each of the other datastores.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", ... | null |
teslamotors__fleet-telemetry__147 | teslamotors/fleet-telemetry | 147 | defect | 4582a4912e3494b51046ef8bc7ce436e97058572 | dcc6d82591793afc54b1df86cba18b4aeded5f0e | Add airbrake project key environment variable | # Description
Allow setting `AIRBRAKE_API_KEY` environment variable so that key can be avoided being stored in plaintext. If the env variable is set, it will override whatever is stored in Airbrake.ProjectId field of config file.
## Type of change
Please select all options that apply to this change:
- [X] N... | diff --git a/README.md b/README.md
index 8cb479d73..968cb63d5 100644
--- a/README.md
+++ b/README.md
@@ -172,6 +172,8 @@ Data is encapsulated into protobuf messages of different types. Protos can be re
```sh
make generate-protos
```
+## Airbrake
+Fleet telemetry allows you to monitor error using [airbrake](htt... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new Airbrake README paragraph contains grammatical errors and should read \"monitor errors\", \"an airbrake compliant self-hosted error catcher\", \"set a project key\", and \"via an environment variable\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in... | null |
teslamotors__fleet-telemetry__157 | teslamotors/fleet-telemetry | 157 | defect | 2db0b82dd982852a1f616d7dd3acc42ff9d262fe | ff176332529d9ad3c1bbd9a10fc6e92d10c3e25e | Add support to suppress tls logging | # Description
Please include a summary of the changes and the related issue.
## Type of change
Key changes:-
- Allow a way to suppress the logging messages related to tls handshake error logged [here](https://cs.opensource.google/go/go/+/master:src/net/http/server.go;l=1933?q=%22TLS%20handshake%20error%20fr... | diff --git a/README.md b/README.md
index 87e15ee81..57f7c0af8 100644
--- a/README.md
+++ b/README.md
@@ -165,6 +165,10 @@ Configure and use Prometheus or a StatsD-interface supporting data store for met

+## Logging
+
+To supress [tls handshake error logging](https://... | 7 | 7 | 0 | [{"id": "G0", "claim": "The new README section misspells 'suppress' as 'supress', misspells the env var name as `SUPPRESSE_TLS_HANDSHAKE_ERROR_LOGGING` (extra E), and should wrap `true` in backticks.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
teslamotors__fleet-telemetry__162 | teslamotors/fleet-telemetry | 162 | defect | f36e2e537be687e8f2d5032c685f5e220076e041 | 7fdb73e7893d0fc4731dc26a29435c332ca57922 | Use delivery channel to get kafka producer metrics | # Description
Confluent provides the channel interface to get delivery reports. We should use that to get kafka metrics
## Type of change
Please select all options that apply to this change:
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would caus... | diff --git a/datastore/kafka/kafka.go b/datastore/kafka/kafka.go
index 91166bdfd..85c6db949 100644
--- a/datastore/kafka/kafka.go
+++ b/datastore/kafka/kafka.go
@@ -23,6 +23,8 @@ type Producer struct {
logger *logrus.Logger
airbrakeHandler *airbrake.AirbrakeHandler
reliableAck bool
+ deliveryCh... | 2 | 2 | 1 | [{"id": "G0", "claim": "The design of the single shared ackChan field on the Producer is wrong — a separate ackChan would be needed per connection, so the reviewer asks why it is designed this way.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unuse... | null |
teslamotors__fleet-telemetry__18 | teslamotors/fleet-telemetry | 18 | defect | ad8a57c7b3dd7653ade884ac8fcefe3281745f29 | fdc334517fe6c841dbf828d2642ef772156fe9f2 | Add status server on http port | update unit and integration tests as well
https://github.com/teslamotors/fleet-telemetry/issues/17 | diff --git a/cmd/main.go b/cmd/main.go
index 4b87bdaaf..481076bcc 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -39,6 +39,7 @@ func startServer(config *config.Config, logger *logrus.Logger) (err error) {
registry := streaming.NewSocketRegistry()
monitoring.StartProfilerServer(config, mux, logger)
+ monitoring.Sta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The status integration test only asserts the HTTP status code and could also validate the response body.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
teslamotors__fleet-telemetry__200 | teslamotors/fleet-telemetry | 200 | defect | c6a81c626cb95880696407d51eba5fb79a05c8db | 086a784a59d519e056d7474202624125d10e3028 | improve record log formatting | # Description
When using the simple `logger` backend, logs are written to stdout. The `data` field is currently a string with the JSON representation of the received data. This converts the received data into proper types before logging, meaning the log line is all JSON.
Example log output before this change:
``... | diff --git a/README.md b/README.md
index f1023deb7..01fdcada0 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,10 @@ For ease of installation and operation, run Fleet Telemetry on Kubernetes or a s
"flush_period": int - ms flush period
}
},
+ "logger": {
+ "compact": bool - log data without types ... | 5 | 4 | 0 | [{"id": "G0", "claim": "LoggerConfig should be a *simple.Config pointer (with loadApplicationConfig pre-populating an empty Config) instead of a value type, to keep pointers everywhere.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Record.ToMap should g... | null |
teslamotors__fleet-telemetry__234 | teslamotors/fleet-telemetry | 234 | defect | be9aac1c4be7a7494fb96cc4524eddb6bff21f68 | 8d662d5a846aed15e94cb1d74c0784a0b24debab | close producers on shutdown | # Description
Closes producers gracefully on shutdown if supported by the provider
## Type of change
Please select all options that apply to this change:
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not wor... | diff --git a/cmd/main.go b/cmd/main.go
index dd38d703c..5699f2db7 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -63,7 +63,7 @@ func startServer(config *config.Config, airbrakeNotifier *gobrake.Notifier, logg
monitoring.StartServerMetrics(config, logger, registry)
}
- producerRules, err := config.ConfigureProduce... | 2 | 2 | 2 | [{"id": "G0", "claim": "server.ListenAndServeTLS always returns a non-nil error, so the `if err != nil { return err }` added in startServer always fires: producers are never closed and every shutdown returns an error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
teslamotors__fleet-telemetry__291 | teslamotors/fleet-telemetry | 291 | defect | 4034cea43e3c80faf3b94c69039472a1777cb3d0 | 39c902f24ca1165cc53a5dbf9aa737d03b4fc214 | create pubsub topic on startup if it doesn't exists | # Description
- to prevent hitting resource quota, create the google pubsub topic on startup and reuse it for future data transmissions
Fixes # (https://github.com/teslamotors/fleet-telemetry/issues/289)
## Type of change
Please select all options that apply to this change:
- [X] New feature (non-breakin... | diff --git a/README.md b/README.md
index 5267b8a82..a0b81b0df 100644
--- a/README.md
+++ b/README.md
@@ -156,6 +156,7 @@ Dispatchers handle vehicle data processing upon its arrival at Fleet Telemetry s
* Configure stream names directly by setting the streams config `"kinesis": { "streams": { *topic_name*: stream_nam... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README line added by this pull request should be replaced with the shorter wording: `On startup, the server will attempt to create missing topics and panic on failure.`", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
teslamotors__fleet-telemetry__344 | teslamotors/fleet-telemetry | 344 | defect | dce2d864cbc2aa5bb8007e69bc40c3b1d26511bc | c4214a064b257549c144faa88b50415409656da1 | add device client version | # Description
In an upcoming firmware release, vehicles will begin including a `Version` header. This will indicate the capabilities of the vehicle in relation to fleet telemetry.
The aim of this is to abstract out the complicated branching structure when determining what fields/features a vehicle supports.
##... | diff --git a/server/streaming/server.go b/server/streaming/server.go
index 7705ed176..7fc93c012 100644
--- a/server/streaming/server.go
+++ b/server/streaming/server.go
@@ -229,8 +229,9 @@ func extractIdentityFromConnection(r *http.Request) (*telemetry.RequestIdentity,
return nil, fmt.Errorf("create_identity issuer:... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new device_client_version metadata field should also be covered by an integration test, using the existing network-interface header as an example.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new Version header usage sh... | null |
teslamotors__fleet-telemetry__36 | teslamotors/fleet-telemetry | 36 | defect | f7bb9fd27f69d384d97f3d40dc769570a6e890b4 | bcc9d67893b79123f6224ff8673653cef5244ac1 | Support dynamic Kinesis stream names | This adds support for dynamic Kinesis stream configuration. We will also support a more "run time" option with env variables. | diff --git a/README.md b/README.md
index 002ed840b..efc2822c7 100644
--- a/README.md
+++ b/README.md
@@ -27,34 +27,40 @@ Clients establish a websocket connection to push configurable telemetry records.
"namespace": string - kafka topic prefix,
"reliable_ack": bool - for use with reliable datastores, recommend set... | 2 | 2 | 0 | [{"id": "G0", "claim": "The example kinesis streams config uses the undocumented single-letter key \"V\" for vehicle data; the reviewer asks whether vehicle_data could be spelled out in the configuration file and mapped to \"V\" during initial config setup, since \"V\" isn't intuitive there.", "category": "documentatio... | null |
teslamotors__fleet-telemetry__368 | teslamotors/fleet-telemetry | 368 | defect | fc3e6eb4f4f8389de330dc926465ec22f195253d | 9dd19372356a8ec7e1726230c1e94654d1261236 | tests(integration): update kinesis docker image | # Description
Proposal: update kinesis docker image used in integration tests.
## Why
The current image [saidsef/aws-kinesis-local](https://github.com/saidsef/aws-kinesis-local) had only has 2 contributor and 21 stars, there is a risk it will go out of maintenance.
That's why I proposed to use localstack w... | diff --git a/docker-compose.yml b/docker-compose.yml
index cfacec5a8..b28f8fd1d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -94,11 +94,14 @@ services:
]
kinesis:
- image: saidsef/aws-kinesis-local
+ image: localstack/localstack
ports:
- - 4567:4567
+ - "127.0.0.1:4566:45... | 2 | 2 | 1 | [{"id": "G0", "claim": "The \"127.0.0.1:4566-4567:4566-4567\" external services port-range mapping in docker-compose.yml is unexplained and may not be needed.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since line 102 of docker-compose.yml exposes the... | null |
teslamotors__fleet-telemetry__52 | teslamotors/fleet-telemetry | 52 | defect | 5c845ad7f1e924987c2bad3b56bca887d4158ba3 | f475df94b412301b659094b432b270c618f5edb5 | Convert Location field to proper Location type | In preparation of vehicles sending their Location as a `protos.Location` value, the server can perform the string->Location transformation to ease the parsing burden on the `Payload` consumers. | diff --git a/telemetry/record.go b/telemetry/record.go
index 7bbac9f08..b523f8164 100644
--- a/telemetry/record.go
+++ b/telemetry/record.go
@@ -2,6 +2,7 @@ package telemetry
import (
"fmt"
+ "strings"
"time"
"github.com/teslamotors/fleet-telemetry/protos"
@@ -39,7 +40,7 @@ func NewRecord(ts *BinarySerialize... | 3 | 2 | 0 | [{"id": "G0", "claim": "Asks whether `datum.GetValue().GetStringValue()` is a standard/performant way to check a oneof type, noting a `switch` has been used for this in the past.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since a payload can contain ... | null |
teslamotors__fleet-telemetry__90 | teslamotors/fleet-telemetry | 90 | defect | 1e01c8961bbcd939d4c83fd39101858fb1700bf9 | 8d4db65908334a663c0f14ce7bad74902d9fb50b | Fix profiler port | # Description
Two endpoints should be on the profiler port rather than the main port: `gc_stats` and `live_profiler`. This is done by installing them on the default mux used by the profiler, rather than a custom mux passed on to the main server.
Once `live_profiler` is on the internal profiler port, we can remove... | diff --git a/cmd/main.go b/cmd/main.go
index a423fa3f2..ba09c8f02 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -2,8 +2,6 @@ package main
import (
"fmt"
- "net/http"
- _ "net/http/pprof"
"os"
"github.com/sirupsen/logrus"
@@ -40,10 +38,8 @@ func main() {
func startServer(config *config.Config, logger *logr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The monitoringURL constant should be renamed to something like profilerURL since the monitoring port serves profiler metrics.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
teslamotors__fleet-telemetry__95 | teslamotors/fleet-telemetry | 95 | defect | 5ec9535f05e75cbd5fef7c8cc5b181928243ac1c | 03b0d2e494f538601feebc12748c7e97f8acbc29 | Allow transmitting data in json bytes | # Description
Allowing option to send messages to producers in json instead of proto. This way, consumers wont have to decode the protobuf message. Idea based on conversation https://github.com/teslamotors/fleet-telemetry/pull/91#discussion_r1433289101
## Type of change
Please select all options that apply to ... | diff --git a/README.md b/README.md
index 08e927f0c..3b4a1ba43 100644
--- a/README.md
+++ b/README.md
@@ -132,7 +132,7 @@ The following [dispatchers](./telemetry/producer.go#L10-L19) are supported
* ZMQ: Configure with the config.json file. See implementation here: [config/config.go](./config/config.go)
* Logger: Thi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README note should not use the informal \"you\"/\"your\" pronouns and should instead read \"To serialize dispatcher data as json instead of protobufs, add a config `transmit_decoded_records` and set value to `true` as shown [here](config/test_configs_test.go#L104)\".", "category": "documenta... | null |
tesseract-ocr__tesseract__1088 | tesseract-ocr/tesseract | 1,088 | defect | 6f13d75534ba92ab1fe1b80e9404d1b4095dd0e9 | 3b05b3e28b5de07fff1784733f7218e94adb3f85 | makefile.am and apiexample_test | @theraysmith @stweil
Please check unittests after applying this PR.
```
autoreconf -fiv
git submodule update --init
export TESSDATA_PREFIX=/prefix/to/path/to/tessdata
make check
``` | diff --git a/Makefile.am b/Makefile.am
index 258cbdd047..3a1342a9b9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,7 @@ endif
.PHONY: install-langs ScrollView.jar install-jars training
SUBDIRS = arch ccutil viewer cutil opencl ccstruct dict classify wordrec textord lstm
-SUBDIRS += ccmain api . tessdata do... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request still needs updates to the top-level Makefile.am and configure.ac in the tesseract directory; the author will update the PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`make check` does not handle a missi... | null |
tesseract-ocr__tesseract__1614 | tesseract-ocr/tesseract | 1,614 | defect | 7bc8255e043753853a776f1931c29129003e0441 | e254c9fa38f37850046a6ee33cf5052e0d33b766 | Recognition progress in C API | I need to use progress reporting while using C API. I have written bindings for the functionality. | diff --git a/src/api/capi.cpp b/src/api/capi.cpp
index 1cf614d3ac..c6ac2587f8 100644
--- a/src/api/capi.cpp
+++ b/src/api/capi.cpp
@@ -807,3 +807,43 @@ TESS_API float TESS_CALL TessChoiceIteratorConfidence(const TessChoiceIterator*
{
return handle->Confidence();
}
+
+TESS_API ETEXT_DESC* TESS_CALL TessMonitorCre... | 3 | 3 | 2 | [{"id": "G0", "claim": "The MSVC (AppVeyor) build fails with error C4716: 'ETEXT_DESC::default_progress_func' must return a value.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new C API progress-monitoring functionality ships without any test ... | null |
tesseract-ocr__tesseract__2167 | tesseract-ocr/tesseract | 2,167 | defect | db3ed5d656cf132a3c7685dd2797519049cef45c | 20ed60b31fb306ef364e60810aaad72cbc6c1bf0 | Fixes unicharset_test | unichar_test still getting error
unichar_test.cc: In member function ‘virtual void {anonymous}::UnicharTest_Conversion_Test::TestBody()’:
unichar_test.cc:24:21: error: ‘char32’ was not declared in this scope
const std::vector<char32> kUTF32Src = {'a', 0x5d0, 0xca4, 0x2a714};
^~~~~~
unicha... | diff --git a/unittest/Makefile.am b/unittest/Makefile.am
index 359bbdb11f..192c65597e 100644
--- a/unittest/Makefile.am
+++ b/unittest/Makefile.am
@@ -8,10 +8,12 @@ TESSDATA_DIR=$(shell cd $(top_srcdir) && cd .. && pwd)/tessdata
# Absolute path of directory 'testing' with test images and ground truth texts
# (using s... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request's edit of the comment in unittest/unicharset_test.cc rewording 'string' to 'std::string' was not needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request causes build errors that need #2168... | null |
tesseract-ocr__tesseract__2180 | tesseract-ocr/tesseract | 2,180 | defect | a6da64234e638df7acd3a9dea78c5fe93bc06054 | 9d10c95507092c454e99b91b2ec8f4efe9a796b9 | Fix and enable lstm related unittests | I will upload required testdata files to the test repo. | diff --git a/unittest/Makefile.am b/unittest/Makefile.am
index 7de85c3d36..217cc00363 100644
--- a/unittest/Makefile.am
+++ b/unittest/Makefile.am
@@ -132,9 +132,12 @@ check_PROGRAMS = \
if ENABLE_TRAINING
check_PROGRAMS += commandlineflags_test
+check_PROGRAMS += lstm_recode_test
+check_PROGRAMS += lstm_squashed_t... | 3 | 1 | 0 | [{"id": "G0", "claim": "The error rates observed in the new tests are much lower than the expected values, possibly because the harness uses the Batch/Mean error as the Best error, and it is unclear whether that is the same way error rates are calculated in tesseract.", "category": "testing", "verdict": "uncertain", "p... | null |
tesseract-ocr__tesseract__2861 | tesseract-ocr/tesseract | 2,861 | defect | f268e6615e619a7140de78d9db3f8240fa8c68bd | 6f2f310fdf03485b7f4f60431981c0aaae5a3b45 | Remove redundant method from class GenericVector | length() is not needed: it can be replaced by size().
Signed-off-by: Stefan Weil <sw@weilnetz.de> | diff --git a/include/tesseract/genericvector.h b/include/tesseract/genericvector.h
index 61b0a22a66..5fd33b0f71 100644
--- a/include/tesseract/genericvector.h
+++ b/include/tesseract/genericvector.h
@@ -82,10 +82,6 @@ class GenericVector {
return size_reserved_;
}
- int length() const {
- return size_used... | 1 | 1 | 0 | [{"id": "G0", "claim": "In Tesseract::blamer_pass the check `page_res->misadaption_log.size() > 0` could drop the redundant `> 0` and use `.empty()` (i.e. `!empty()`) instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
tesseract-ocr__tesseract__3486 | tesseract-ocr/tesseract | 3,486 | defect | 767fb5a177ae9e2e0beba7eb5deeb6a23885afb1 | b77cd22f1358ff64aae500b154b375c705c8ef85 | Add TFloat data type for neural network | Up to now Tesseract used double for training and recognition
with "best" models.
This commit replaces double by a new data type `TFloat` which
is double by default, but float if FAST_FLOAT is defined.
Ideally this should allow faster training.
Signed-off-by: Stefan Weil <sw@weilnetz.de> | diff --git a/Makefile.am b/Makefile.am
index e95f18ea17..afa75b311c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -146,11 +146,13 @@ noinst_LTLIBRARIES += libtesseract_native.la
libtesseract_native_la_CXXFLAGS = -O3 -ffast-math
if MARCH_NATIVE_OPT
libtesseract_native_la_CXXFLAGS += -march=native -mtune=native
+libte... | 7 | 4 | 2 | [{"id": "G0", "claim": "The new `TFloat` typedef's name should follow a consistent naming style, e.g. lowercase `tfloat`/snake_case for primitive typedefs, with the neural-network-local role of the type stated in the name.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}... | null |
tesseract-ocr__tesseract__3644 | tesseract-ocr/tesseract | 3,644 | defect | ef3bf98cc199017ec8f4711b45b38f6526868be2 | 06803c5238bb690f0269dbbf177dfb1eb857470a | Improve training messages (issue #3560) | The old messages could wrongly be interpreted as CER / WER values,
but Tesseract training currently uses simple bag of characters /
bag of words error rates (see LSTMTrainer::ComputeCharError,
LSTMTrainer::ComputeWordError).
Signed-off-by: Stefan Weil <sw@weilnetz.de> | diff --git a/src/training/lstmtraining.cpp b/src/training/lstmtraining.cpp
index 8852a5cedb..a1068bdb54 100644
--- a/src/training/lstmtraining.cpp
+++ b/src/training/lstmtraining.cpp
@@ -227,6 +227,7 @@ int main(int argc, char **argv) {
tprintf("%s\n", log_str.c_str());
} while (trainer.best_error_rate() > FLAG... | 1 | 1 | 0 | [{"id": "G0", "claim": "The per-line eval message in src/training/unicharset/lstmtester.cpp (around line 109) should also be renamed from `Line Char error rate` to `Line BCER`, like the other training messages this PR rewrites.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
tesseract-robotics__trajopt__152 | tesseract-robotics/trajopt | 152 | defect | a393abb99b221c97603ae40fcbd0f172f94a7fcc | d146078dc0e3e9d547a4a735028f9ccc1c9e7342 | Enable continuous collision checking for moving to moving objects | This enables avoiding moving objects to moving objects when continuous collision checking is enabled. | diff --git a/dependencies.rosinstall b/dependencies.rosinstall
index a7b4696f..b80af64c 100644
--- a/dependencies.rosinstall
+++ b/dependencies.rosinstall
@@ -1,7 +1,7 @@
- git:
local-name: tesseract
- uri: https://github.com/ros-industrial-consortium/tesseract.git
- version: master
+ uri: https://github... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new blocks of code in CastCollisionEvaluator::CalcCollisions would benefit from a comment stating what each block does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tesseract-robotics__trajopt__246 | tesseract-robotics/trajopt | 246 | defect | c75605a57fd02f049f506b70397989c32e361d5f | 8b4411a0ac8efe24622f42b952de65ffa8816d52 | Feature/line constraint | This adds a constraint defined by two two points that calculates the target poses' distance to the line between them. | diff --git a/trajopt_ifopt/CMakeLists.txt b/trajopt_ifopt/CMakeLists.txt
index 318fc724..0f84af4d 100644
--- a/trajopt_ifopt/CMakeLists.txt
+++ b/trajopt_ifopt/CMakeLists.txt
@@ -33,6 +33,7 @@ trajopt_variables()
set(TRAJOPT_IFOPT_SOURCE_FILES
src/cartesian_position_constraint.cpp
+ src/cartesian_line_constr... | 9 | 7 | 2 | [{"id": "G0", "claim": "The doxygen @file tags of the two new files name cartesian_position_constraint.h instead of cartesian_line_constraint.h.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method SetLinePose should be named SetLinePoint, si... | null |
tesseract-robotics__trajopt__280 | tesseract-robotics/trajopt | 280 | defect | d70e53f9be5057404c2e93c73ea63650027cd184 | 0a06eed0ea7555eaad7e87929f84d6d1bcde9dac | Add ContactManagerConfig inside CollisionCheckConfig | Supports [Tesseract 672](https://github.com/tesseract-robotics/tesseract/pull/672) | diff --git a/.clang-tidy b/.clang-tidy
index 65211c43..14d71ef9 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -54,7 +54,8 @@ WarningsAsErrors: >
-readability-braces-around-statements,
-readability-named-parameter,
-readability-magic-numbers,
- -readability-isolate-declaration
+ -readability-isolate... | 1 | 1 | 0 | [{"id": "G0", "claim": "The // NOLINTNEXTLINE comment added above the CollisionEvaluator constructor in trajopt/include/trajopt/collision_terms.hpp may no longer be needed and should be removed if so.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
tesseract-robotics__trajopt__327 | tesseract-robotics/trajopt | 327 | defect | 8066b980f35f245a68961b290d44cf1a46770ed2 | 7917bac6d96ad96cbe41b339ce4c1062ca5d287e | Enable qpOASES on Windows and fix Windows build | This PR adds qpOAESES as an external package on windows. The tests were failing because OSQP is not a great solver for trajopt. The Windows action is updated to use vcpkg master to avoid an error in the most recent release of vcpkg. | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 59d42d227..7b0c4cf8c 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -25,6 +25,11 @@ jobs:
with:
path: workspace/src/trajopt
+ - name: configure-msvc
+ uses: ilammy/msvc-dev-cmd@v... | 9 | 7 | 2 | [{"id": "G0", "claim": "The NumericalIKTest.numerical_ik1 and SimpleCollisionTest.spheres tests segfault on the Windows CI, apparently due to a subtle memory error in the core libraries (later traced to the logger), and the cause should be investigated.", "category": "correctness", "verdict": "supported", "priority": "... | null |
tesseract-robotics__trajopt__333 | tesseract-robotics/trajopt | 333 | defect | 6bef2eab88815336eb64682e804c9820016cb3cc | 57336e124a0b8d1fc878144ed045fa857c235805 | Add multi-threaded support to TrajOpt | This replaces #302 and surprised that it was not having issues because the Models themselves needs to be threadsafe. This is why that PR required the omp critical around the addHinge, but does not solve the issue where other constraints are also adding variables and other items to the model which was not threadsafe.
... | diff --git a/.github/workflows/focal_build.yml b/.github/workflows/focal_build.yml
index f3b5aec7..a6e6de52 100644
--- a/.github/workflows/focal_build.yml
+++ b/.github/workflows/focal_build.yml
@@ -26,7 +26,7 @@ jobs:
UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYP... | 2 | 2 | 0 | [{"id": "G0", "claim": "The threading helper methods should be made virtual methods of BasicTrustRegionSQP with a subclass (e.g. BasicTrustRegionSQPOMP) overloading them, which the author thinks is a cleaner approach.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
tesseract-robotics__trajopt__354 | tesseract-robotics/trajopt | 354 | defect | 2d965b931015fba9a83ca697e114e3c07ef7c25b | 22feb4bef5b6871c930f26bf6d55985ff6306d31 | Add toleranced Cartesian waypoints to solver | This is to support tolerances on Cartesian waypoints so that you can set constraints that don't have to match perfectly | diff --git a/trajopt/include/trajopt/kinematic_terms.hpp b/trajopt/include/trajopt/kinematic_terms.hpp
index aabd89041..00118e53d 100644
--- a/trajopt/include/trajopt/kinematic_terms.hpp
+++ b/trajopt/include/trajopt/kinematic_terms.hpp
@@ -38,6 +38,13 @@ struct DynamicCartPoseErrCalculator : public TrajOptVectorOfVect... | 9 | 7 | 3 | [{"id": "G0", "claim": "Default tolerance values should be something small but non-zero like Eigen::VectorXd::Constant(6, 1.0e-6) instead of exactly zero, to avoid numerical floating-point issues with zero-width tolerance comparisons.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introd... | null |
tesseract-robotics__trajopt__47 | tesseract-robotics/trajopt | 47 | defect | 73848160d0e4373b50f35d2062dbdde9481c8b8d | 0ba14b180fdf743d82f9b5018bbbb2230fb6320d | Update JointPos terms | It looks like this currently breaks some tests, but I don't think I'll be able to get to look at it until next week, so I thought I would go ahead and push it. It could just be that the json needs to be updated. | diff --git a/trajopt/include/trajopt/problem_description.hpp b/trajopt/include/trajopt/problem_description.hpp
index 86f970e3..a6097b0a 100644
--- a/trajopt/include/trajopt/problem_description.hpp
+++ b/trajopt/include/trajopt/problem_description.hpp
@@ -248,12 +248,18 @@ struct CartVelTermInfo : public TermInfo, publi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The convex() methods should iterate expr_vec_ by reference (sco::AffExpr&) instead of making a copy of each expression.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tesseract-robotics__trajopt__50 | tesseract-robotics/trajopt | 50 | defect | 8612aff6e937fdcbfdfcc402ab0b59fceb085661 | 3baf2ada8614ca88591cdae65d216404be655252 | Integrate time param - term type switch | Time param sections are still skeletons. But it doesn't appear to have broken anything without time. | diff --git a/trajopt/include/trajopt/problem_description.hpp b/trajopt/include/trajopt/problem_description.hpp
index 3e8b9930..9f697e0a 100644
--- a/trajopt/include/trajopt/problem_description.hpp
+++ b/trajopt/include/trajopt/problem_description.hpp
@@ -23,14 +23,15 @@ struct ProblemConstructionInfo;
struct TrajOptRe... | 8 | 7 | 0 | [{"id": "G0", "claim": "The reviewer prefers the & attached to the type, i.e. ConstructProblem(const ProblemConstructionInfo&), rather than the space-separated 'const ProblemConstructionInfo &' the PR introduced.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
tesseract-robotics__trajopt__51 | tesseract-robotics/trajopt | 51 | defect | f5e30252b339169711a855022a7baa2324cb2f21 | 23c03f3589b1af68d9e387201e00dedfed9b59fc | Integrate time param | Only joint velocity and total time have been integrated. Some notes
1) Time param costs are written to be applied to a single joint. In order to keep the interface consistent, I am currently just looping over them (This will be visible to the user). These should probably be revisited at some point. | diff --git a/trajopt/include/trajopt/kinematic_terms.hpp b/trajopt/include/trajopt/kinematic_terms.hpp
index d3ef0740e..83b12e39a 100644
--- a/trajopt/include/trajopt/kinematic_terms.hpp
+++ b/trajopt/include/trajopt/kinematic_terms.hpp
@@ -13,7 +13,6 @@ TRAJOPT_IGNORE_WARNINGS_POP
namespace trajopt
{
-
/**
* @b... | 4 | 1 | 0 | [{"id": "G0", "claim": "The TermInfo constructors for JointVelTermInfo and TotalTimeTermInfo should use a flag combination that allows the term type to be just TT_USE_TIME, per the suggested (TT_COST + TT_USE_TIME) | (TT_CNT + TT_USE_TIME).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "intro... | null |
tesseract-robotics__trajopt__528 | tesseract-robotics/trajopt | 528 | defect | 26a19e51009870ec2706d9362df745f9610dc8db | a4aeca70dda1722762dc3a0bf61115b59722daac | Add back collision data caching to trajopt ifopt | | Example | Contact Manager | First Solve (s) | Remaining Solve Avg. (s) | Count |
|---------------------------------|-----------------------------|----------------:|--------------------------:|------:|
| FreespaceOMPLExample | BulletDiscreteBVHManager | 0.0342... | diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml
index d4abfd26..000b0e17 100644
--- a/.github/workflows/unstable.yml
+++ b/.github/workflows/unstable.yml
@@ -57,7 +57,6 @@ jobs:
with:
before-script: source /opt/tesseract/install/setup.bash
ccache-prefix: ${{ m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The collision cache size is hardcoded to 10 in each of the six constraint classes; define it as a named constant (e.g. DEFAULT_COLLISION_CACHE_SIZE) or make it configurable through the constructor to improve maintainability and let users tune cache performance.", "category": "maintainability", "... | null |
tesseract-robotics__trajopt__535 | tesseract-robotics/trajopt | 535 | defect | 03f85e4a41556497f7d0055b391b4d6c6f58b603 | 666ee9ce1c0b38f6f088991dbef50b2fba4e0e85 | Reduce memory allocations with sqp affine and quad expressions | | Example | Contact Manager | First Solve (s) | Remaining Solve Avg. (s) | Count |
|---|---|---:|---:|---:|
| FreespaceOMPLExample | BulletDiscreteBVHManager | 0.040606 | 0.024327 | 99 |
| FreespaceOMPLExample | BulletDiscreteSimpleManager | 0.027855 | 0.022725 | 99 |
| BasicCartesianExample | BulletDiscreteBVHMana... | diff --git a/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/expressions.h b/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/expressions.h
index 0091faf3..5cbddac0 100644
--- a/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/expressions.h
+++ b/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/expressions.h
@... | 3 | 3 | 0 | [{"id": "G0", "claim": "In QuadExprs::values() the general-quadratic path performs a redundant scratch_.resize(x.size()) at line 165 after scratch_ was already resized inside the !scratch_ready branch, and this duplicate resize call should be removed.", "category": "performance", "verdict": "supported", "priority": "P2... | null |
tesseract-robotics__trajopt__544 | tesseract-robotics/trajopt | 544 | defect | 1d6f5487bd290f972481abaf00bc7ec0589fb27e | 87dfa84b68edeef4bd3c7b0680065d1373f93461 | Add SQPStatus_strings | This adds SQPStatus_strings for TrajoptIfopt, equivalent to OptStatus_strings, to enable similar (clearer) error output from TrajOptIfoptMotionPlanner in tesseract_planning. | diff --git a/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/types.h b/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/types.h
index c92f6fa7..d2991a2b 100644
--- a/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/types.h
+++ b/trajopt_optimizers/trajopt_sqp/include/trajopt_sqp/types.h
@@ -224,6 +224,13 @@ enum... | 2 | 2 | 1 | [{"id": "G0", "claim": "The function should be named `toString` for consistency with the rest of tesseract, and its implementation (hiding SQPStatus_strings) should be moved to the cpp file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A switc... | null |
testcontainers__testcontainers-go__1358 | testcontainers/testcontainers-go | 1,358 | defect | f5a4a541f71a324d1bf81f40700e5426259dbae6 | 3febcdcce2d6ff4a805a4c94f0b60b1fb151ed0f | all: fix goroutine leaks | Fixes various goroutine leaks by moving around and adding missing Close calls.
Leaks were detected by https://github.com/AlexanderYastrebov/noleak by adding
```go
// go get github.com/AlexanderYastrebov/noleak@latest
// cat main_test.go
package testcontainers
import (
"os"
"testing"
... | diff --git a/docker.go b/docker.go
index 5e935c67827..81c844faf44 100644
--- a/docker.go
+++ b/docker.go
@@ -245,6 +245,14 @@ func (c *DockerContainer) Stop(ctx context.Context, timeout *time.Duration) erro
// Terminate is used to kill the container. It is usually triggered by as defer function.
func (c *DockerCont... | 2 | 1 | 0 | [{"id": "G0", "claim": "An error from closing the Docker client in Terminate may be swallowed because the deferred c.provider.client.Close() call's return value is not checked.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "resp.Body should be close... | null |
testcontainers__testcontainers-go__1508 | testcontainers/testcontainers-go | 1,508 | defect | 71d58d8ec1ee541cb457ed40bdbfc287626aef24 | 7629fc0a602187fd6ac87aa5dc341857840bc8d9 | [Enhancement]: add ability to set repo:tag for ContainerRequest FromDockerfile | ## What does this PR do?
This PR adds an ability to set ```repo:tag``` for ContainerRequest FromDockerfile
## Related issues
- Closes https://github.com/testcontainers/testcontainers-go/issues/1507 | diff --git a/container.go b/container.go
index ec2351ea20..042c3dabca 100644
--- a/container.go
+++ b/container.go
@@ -4,8 +4,10 @@ import (
"context"
"errors"
"fmt"
+ "github.com/google/uuid"
"io"
"path/filepath"
+ "strings"
"time"
"github.com/docker/docker/api/types"
@@ -62,6 +64,8 @@ type Container i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Repo/Tag behaviour should have a test added before the pull request is merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__1611 | testcontainers/testcontainers-go | 1,611 | defect | fec0b4d44cb66398a187a6693095a84c9fcb3627 | 7b4fc179f905dc1ac820c4083cb83ddb7db96dc1 | chore: always generate the examples including a explicit image | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR updates the module templates to always include the default image for the new module. It applies to:
- examples_test.go
- module_test.go
Therefore, the all `RunContainer... | diff --git a/modulegen/_template/examples_test.go.tmpl b/modulegen/_template/examples_test.go.tmpl
index 00cb1ef2b5..6215327118 100644
--- a/modulegen/_template/examples_test.go.tmpl
+++ b/modulegen/_template/examples_test.go.tmpl
@@ -1,9 +1,10 @@
-{{ $entrypoint := Entrypoint }}{{ $lower := ToLower }}{{ $title := Titl... | 1 | 1 | 0 | [{"id": "G0", "claim": "Generating a new example with modulegen (e.g. `go run . new example --name questdb --image ...`) emits a test template that imports github.com/testcontainers/testcontainers-go/modules/<name>, a package that does not exist for examples, so dependency synchronisation fails and `go mod tidy` on the... | null |
testcontainers__testcontainers-go__1721 | testcontainers/testcontainers-go | 1,721 | defect | 112bf9faba88d5bbaf4c5eae685371a2aee8d2b6 | 1e6cc6a26bccc0b71ef0466ebe383e046614e6a4 | K6 module | ## What does this PR do?
Implements a module for running k6.
## Why is it important?
K6 is a well-known tool for testing. This module allows the reuse of existing `k6` test scripts in tests using `TestContainers`. This is particularly interesting when implementing `e2e` tests.
## Note to reviewers
There ... | diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 9791fe56e0..cd763d7d6d 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -107,6 +107,13 @@ updates:
day: sunday
open-pull-requests-limit: 3
rebase-strategy: disabled
+ - package-ecosystem: gomod
+ directo... | 10 | 10 | 4 | [{"id": "G0", "claim": "The pull request carries leftovers of a previous example run alongside the module (examples/k6 tree, docs/examples/k6.md, workspace entry and their CI/sonar references), and the reviewers ask that the example files and references be removed.", "category": "maintainability", "verdict": "supported... | null |
testcontainers__testcontainers-go__1775 | testcontainers/testcontainers-go | 1,775 | defect | e9839072cc9b395768108d16875b2a7207a5dd0d | 8c73af87eaa16573513b65fb403145ea10b96fec | fix: Add HTTPStrategy WithForcedIPv4LocalHost To Fix Docker Port Map | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
Associated docker port mapping bugs:
https://github.com/moby/moby/issues/42442
https://github.com/moby/moby/issues/42375
If ipv6 is enabled in docker then these bugs af... | diff --git a/wait/http.go b/wait/http.go
index 36dc1f2816..f1ea40df64 100644
--- a/wait/http.go
+++ b/wait/http.go
@@ -11,6 +11,7 @@ import (
"net/http"
"net/url"
"strconv"
+ "strings"
"time"
"github.com/docker/go-connections/nat"
@@ -27,17 +28,18 @@ type HTTPStrategy struct {
timeout *time.Duration
/... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add an assertion to the new testable example ExampleHTTPStrategy_WithForcedIPv4LocalHost (a fmt.Println plus an Output comment), as the sibling examples do, so it actually verifies something.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
testcontainers__testcontainers-go__1785 | testcontainers/testcontainers-go | 1,785 | defect | 4ec7fa499e2f65003bcebefb7ca67a7a394f2a10 | 334d212d6be16ad80a70acc14b5b90ee60cbf052 | feat: add image-keep option for built images | ## What does this PR do?
Adds an option to keep images if they have been built.
This avoids the need to build these images every time from scratch.
Built images are being kept in `DockerContainer.Terminate` when `KeepImage` is set to `true` in `ContainerRequest`.
## Why is it important?
If images for testing... | diff --git a/container.go b/container.go
index 52660f5af4..f1d6337c9e 100644
--- a/container.go
+++ b/container.go
@@ -131,6 +131,10 @@ type ContainerRequest struct {
HostConfigModifier func(*container.HostConfig) // Modifier for the host config before container creation
EnpointSettingsModifier ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Move the new KeepImage field from ContainerRequest into the FromDockerfile struct, since it only applies to images built from a Dockerfile.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replace the inner closure-based parameteris... | null |
testcontainers__testcontainers-go__1910 | testcontainers/testcontainers-go | 1,910 | defect | 83bc8931fd0add9d38cfc2b68d3aa22c9d83d4ad | 0775e95a7e8ea6ba88b8276947264b2bb18bee50 | Add username and password functions to mongodb | ## What does this PR do?
This will add username and password functions to mongodb module. I removed mongodb_test module and put the tests in mongodb module. Because this was the pattern for other modules like postgres and mariadb.
## Why is it important?
This enables users to be able to configure username an... | diff --git a/modules/mongodb/mongodb.go b/modules/mongodb/mongodb.go
index 8e3bb305d15..914ab8f208f 100644
--- a/modules/mongodb/mongodb.go
+++ b/modules/mongodb/mongodb.go
@@ -2,6 +2,7 @@ package mongodb
import (
"context"
+ "fmt"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/test... | 5 | 5 | 1 | [{"id": "G0", "claim": "Keep the module tests in the external mongodb_test package instead of moving them into the module package.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Update the ConnectionString method comment to reflect the username and passw... | null |
testcontainers__testcontainers-go__1920 | testcontainers/testcontainers-go | 1,920 | defect | a7801287ead261f5822a9eee459b466cc7749e15 | 6e26f29fa87f85a59dbc290246dd0106c6317c6a | Add k3s WithManifest option | ## What does this PR do?
Add an option to k3s to pre-load manifest in the cluster to create resources needed by the test.
## Why is it important?
Improve user experience
## Related issues
Closes #1915
| diff --git a/docs/modules/k3s.md b/docs/modules/k3s.md
index 3e448b8e45..c6edd0d255 100644
--- a/docs/modules/k3s.md
+++ b/docs/modules/k3s.md
@@ -49,6 +49,20 @@ for K3s. E.g. `testcontainers.WithImage("docker.io/rancher/k3s:v1.27.1-k3s1")`.
{% include "../features/common_functional_options.md" %}
+## WithManifest... | 2 | 1 | 0 | [{"id": "G0", "claim": "The WithManifest option should copy the manifest via req.Files (testcontainers.ContainerFile, as enabled by #2049) instead of a post-start hook that mkdir's and CopyFileToContainer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "S... | null |
testcontainers__testcontainers-go__1989 | testcontainers/testcontainers-go | 1,989 | defect | 14ea4951b4341e6896f34df2e691152af4aada8f | 4dd9ff7ecf5f57ea4d367d861be00f83c457d296 | fix(modules.kafka): Use broker container IP instead of host IP for advertised broker listener | ## What does this PR do?
This PR changes the advertised broker ip from being the host ip to container ip. Port 9092 is not exposed to the host, so we can not connect to it via host IP, but need to use the broker container IP.
The current setup works with a normal desktop setup, because there the returned host IP is... | diff --git a/modules/kafka/kafka.go b/modules/kafka/kafka.go
index 399f17fb70..dff865bed6 100644
--- a/modules/kafka/kafka.go
+++ b/modules/kafka/kafka.go
@@ -72,12 +72,17 @@ func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomize
return err
}
+ ip, err := c.ContainerIP(ct... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use the container hostname rather than the container IP for the advertised broker listener, as suggested for PR #1786, to align implementations and make access via a container network easier.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__2036 | testcontainers/testcontainers-go | 2,036 | defect | a9f0ac8e08f7a854794bbfe1a5cf2a5faf2d27ab | cad09a59a5415c3d5dbd5a9f2c4145ca00546b07 | Add neo4j license agreement customization options | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR adds the ability to use the Neo4j Enterprise Edition docker image by setting the correct environment variable.
## Why is it important?
Many production-ready ... | diff --git a/modules/neo4j/config.go b/modules/neo4j/config.go
index ac475550a3f..5c868ce3aae 100644
--- a/modules/neo4j/config.go
+++ b/modules/neo4j/config.go
@@ -115,3 +115,24 @@ func formatNeo4jConfig(name string) string {
result = strings.ReplaceAll(result, ".", "_")
return fmt.Sprintf("NEO4J_%s", result)
}
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add a test or a testable example demonstrating the usage of the new license agreement options.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__2073 | testcontainers/testcontainers-go | 2,073 | defect | 9060ff78823e0b6f1689016efa2164ffd12e9fec | c2bb78fe40be4aedebbd87c3b75c45e8f1ef18e9 | Adding LogConsumers start as part of the ContainerRequest | ## What does this PR do?
This PR adds the posibility of configuring the LogProducer and the LogConsumers directly in the ContainerRequest config of the container.
Besides, it deprecates the current lifecycle of starting/stopping the log producer, which could lead to errors. Instead, this new approach improves the... | diff --git a/container.go b/container.go
index 4a85dffb8f..f4704340f0 100644
--- a/container.go
+++ b/container.go
@@ -142,6 +142,8 @@ type ContainerRequest struct {
HostConfigModifier func(*container.HostConfig) // Modifier for the host config before container creation
EnpointSettingsModifier f... | 5 | 3 | 1 | [{"id": "G0", "claim": "The LogProducer bool flag is redundant and should be removed; log production should simply start whenever the LogConsumers slice has elements.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A comment identifying the first post-sta... | null |
testcontainers__testcontainers-go__2084 | testcontainers/testcontainers-go | 2,084 | defect | f051b0cb6a33b84288cbdfddfcfc0a4c3e1eb640 | 46555a2517078188fda3827e7d076bc90f5f2617 | fix: Recreate Ryuk container if terminated | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
<!-- Mandatory
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc.
-->
Fixes ryuk rec... | diff --git a/reaper.go b/reaper.go
index 5b3bd8f5f85..675138ffc0b 100644
--- a/reaper.go
+++ b/reaper.go
@@ -4,6 +4,7 @@ import (
"bufio"
"context"
"fmt"
+ "github.com/docker/docker/errdefs"
"math/rand"
"net"
"regexp"
@@ -141,13 +142,16 @@ func reuseOrCreateReaper(ctx context.Context, sessionID string, prov... | 3 | 3 | 0 | [{"id": "G0", "claim": "Rename the misspelled variable `recreatedRepear` to `recreatedReaper` throughout the new test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining why the test sleeps 11 seconds and not another number,... | null |
testcontainers__testcontainers-go__2085 | testcontainers/testcontainers-go | 2,085 | defect | 62d621420a4d9d683436e2eb428936572169f4d8 | 8434239727ca6c0dae42eb82908284933894ade6 | Adding mockserver module | ## What does this PR do?
This PR adds support for the mockserver module.
## Why is it important?
This is part of the current modules supported in testcontainers-java, having this in go is an good improvement.
## Related issues
Relates #636
## How to test this PR
I already added 2 test examples, but you can test ... | diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 3b1a87c7d4..04a24e1020 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -142,6 +142,13 @@ updates:
day: sunday
open-pull-requests-limit: 3
rebase-strategy: disabled
+ - package-ecosystem: gomod
+ directo... | 5 | 3 | 1 | [{"id": "G0", "claim": "The docs introduction should say that MockServer mocks HTTP services by matching requests against user-defined expectations, as given in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The committed cov... | null |
testcontainers__testcontainers-go__2194 | testcontainers/testcontainers-go | 2,194 | defect | bc67dc34d298393de63839170c61c76dc318d2db | 4206baa25b3dbb8fb85322ab601880e9d011fc34 | Added Consul module | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR adds the Consul module. `modulegen` was used as starting point, on top of which a couple of methods were added.
## Why is it important?
This module helps integra... | diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 25b9e9a0cb..49e1bf02e3 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -86,6 +86,13 @@ updates:
day: sunday
open-pull-requests-limit: 3
rebase-strategy: disabled
+ - package-ecosystem: gomod
+ directory... | 7 | 5 | 3 | [{"id": "G0", "claim": "The example's snippet placeholder should be changed from `runconsulContainer` to `runConsulContainer` to match the placeholder used in the docs.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The examples should replace pan... | null |
testcontainers__testcontainers-go__2247 | testcontainers/testcontainers-go | 2,247 | defect | c84e479ce8d1438f8e7220b36fbf510b7a86234a | 16a3fdef20a418f08fc9bf74f1917c58bfba97cc | bug: allow start container with reuse in different test package |
## What does this PR do?
When creating reusable container from different test binaries in parallel, you can get "name conflict" from docker daemon, because different binaries don't have a shared mutex
Instead of exiting with error when receiving "name conflict", we will try to wait for the container creation to... | diff --git a/docker.go b/docker.go
index a559b8d7ea..1aef8c2b5f 100644
--- a/docker.go
+++ b/docker.go
@@ -14,6 +14,7 @@ import (
"net/url"
"os"
"path/filepath"
+ "regexp"
"strings"
"sync"
"time"
@@ -49,6 +50,8 @@ const (
logStoppedForOutOfSyncMessage = "Stopping log consumer: Headers out of sync"
)
+v... | 3 | 2 | 1 | [{"id": "G0", "claim": "The default hooks built for a reused container should also include defaultCopyFileToContainerHook and defaultLogConsumersHook.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reuse path should set lifecycleHooks to the entire c... | null |
testcontainers__testcontainers-go__2259 | testcontainers/testcontainers-go | 2,259 | defect | 6aece920d5b22a1bae9797b7a14fda6811a603c7 | 583e43be0f339b7f86a4314d13ea61735cfdc19a | feat: WithLogger ContainerCustomizer support | ## What does this PR do?
Add support to use `WithLogger` as a `ContainerCustomizer` so that callers have an easy way to configure the logger of a container.
Add tests for `WithLogger`.
Validate `Logger` and `LoggerOption` implement the required interfaces.
Also fix a comment typo and remove an unneeded retu... | diff --git a/logger.go b/logger.go
index 5236ac4640a..b137fdca66a 100644
--- a/logger.go
+++ b/logger.go
@@ -12,6 +12,14 @@ import (
// Logger is the default log instance
var Logger Logging = log.New(os.Stderr, "", log.LstdFlags)
+// Validate our types implement the required interfaces.
+var (
+ _ Logging ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Do not remove the `// imageSubstitutor {` marker comment from options.go, as it is used by the docs system to embed code snippets.", "category": "documentation", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Because this option is now available to the m... | null |
testcontainers__testcontainers-go__2265 | testcontainers/testcontainers-go | 2,265 | defect | 154cb34dd54c08341862c5021a8a72c38286c163 | b9c3fb8f030d28656bf81228da3cb23b5da65cd7 | feat: add ollama module | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR adds a Go module for Ollama, using the module generator to bootstrap the module.
We present examples on how to use it with an HTTP client and with Langchaingo.
... | diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 38b4f4e3fa..71fe77d47f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -212,6 +212,13 @@ updates:
day: sunday
open-pull-requests-limit: 3
rebase-strategy: disabled
+ - package-ecosystem: gomod
+ directo... | 2 | 2 | 2 | [{"id": "G0", "claim": "The model-lifecycle hook should run the `pull` command (instead of only `run`) so the container ends up with the model downloaded, since `run` alone does not work with non-chat models like `all-minilm`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
testcontainers__testcontainers-go__2339 | testcontainers/testcontainers-go | 2,339 | defect | c3992eda84ba5a992cd5b1559c54c3508c5fc40a | 3394443cf48bf9f34a9aefb684a5632957f78280 | Add method for getting Weaviate's gRPC port | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR adds a convenience `GrpcHostAddress` method to Weaviate module, to get the `gRPC` host.
<!-- Mandatory
Explain here the changes you made on the PR. Please expl... | diff --git a/modules/weaviate/examples_test.go b/modules/weaviate/examples_test.go
index e9e40481576..7082972de33 100644
--- a/modules/weaviate/examples_test.go
+++ b/modules/weaviate/examples_test.go
@@ -8,6 +8,7 @@ import (
"time"
"github.com/weaviate/weaviate-go-client/v4/weaviate"
+ "github.com/weaviate/weavi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ENABLE_MODULES env update is not needed for the gRPC endpoint and should be sent in a separate PR instead of being bundled here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__2342 | testcontainers/testcontainers-go | 2,342 | defect | f81826b3a0abdd8d60962dba0b19f24f3f30f575 | 670322b2982a93c6ead3fa73449c24b106c8de71 | feat(exitcode): Add exit code sugar method |
## What does this PR do?
Add syntax sugar on exit code handling.
## Why is it important?
I don't know. I was just looking at `good first issue` tags
https://github.com/testcontainers/testcontainers-go/issues/2205
## How to test this PR
Run the added unit tests. | diff --git a/wait/exec.go b/wait/exec.go
index e0ffc89758..f3032923b6 100644
--- a/wait/exec.go
+++ b/wait/exec.go
@@ -45,6 +45,13 @@ func (ws *ExecStrategy) WithStartupTimeout(startupTimeout time.Duration) *ExecSt
return ws
}
+func (ws *ExecStrategy) WithExitCode(exitCode int) *ExecStrategy {
+
+ return ws.WithE... | 3 | 3 | 1 | [{"id": "G0", "claim": "Lint will probably complain about the whitespace-only line the method was added with.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test function name should be more consistent with other test functions, as TestExecS... | null |
testcontainers__testcontainers-go__2343 | testcontainers/testcontainers-go | 2,343 | defect | f81826b3a0abdd8d60962dba0b19f24f3f30f575 | eb9525de238048d36f8d21e129022f56e3081ed2 | feat(MustConn): Add MustConnectionString on (some) dbs |
## What does this PR do?
Adds `MustConnectionString` on a variety of DB containers. I skipped MSSQL because that was failing to run tests for me locally.
There are probably more I can add them. Should I just add them to all containers with a `ConnectionString` method?
## Why is it important?
Not sure ag... | diff --git a/modules/mariadb/go.mod b/modules/mariadb/go.mod
index e3e098cebc..c0b9b5bd51 100644
--- a/modules/mariadb/go.mod
+++ b/modules/mariadb/go.mod
@@ -4,6 +4,7 @@ go 1.21
require (
github.com/go-sql-driver/mysql v1.7.1
+ github.com/stretchr/testify v1.9.0
github.com/testcontainers/testcontainers-go v0.29... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new MustConnectionString assertions should not use testify (require.Equal); keep mysql_test.go and nats_test.go as they were, without testify.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__2350 | testcontainers/testcontainers-go | 2,350 | defect | 09648d156cd13a650925f423768c5ee7b1f72734 | 04a77144e68d056d6b877fe92e73b4d6ffc85223 | feat(k6):Add remote test scripts | ## What does this PR do?
Adds support for remote test scripts
## Why is it important?
Addressing https://github.com/testcontainers/testcontainers-go/issues/2246
## How to test this PR
Run the unit tests.
I'm dogfooding the existing scripts from within the git repo iteself. I think this is a good i... | diff --git a/modules/k6/k6.go b/modules/k6/k6.go
index 82976b7ea3..a2b37a74b6 100644
--- a/modules/k6/k6.go
+++ b/modules/k6/k6.go
@@ -3,8 +3,12 @@ package k6
import (
"context"
"fmt"
+ "io"
+ "net/http"
"os"
+ "path"
"path/filepath"
+ "time"
"github.com/docker/docker/api/types/mount"
@@ -17,17 +21,78 @@... | 12 | 12 | 2 | [{"id": "G0", "claim": "Leverage the io.Reader support added in #2401: add a WithTestScriptReader function that receives the reader and passes it to the request's files, and reimplement the existing WithTestScript option to open the file and delegate to it.", "category": "design", "verdict": "supported", "priority": "P... | null |
testcontainers__testcontainers-go__2447 | testcontainers/testcontainers-go | 2,447 | defect | 09648d156cd13a650925f423768c5ee7b1f72734 | 67a3b8474c5156c263e83ab723ceb2d9673f3695 | refactor: Add Weaviate modules tests | ## What does this PR do?
In order to be in parity with `java` `node` and `python` modules, Weaviate container should be created with only minimal environment variables. Enabled modules settings (and other) should be optional to set.
## Why is it important?
This PR brings the same consistent behaviour across al... | diff --git a/modules/weaviate/examples_test.go b/modules/weaviate/examples_test.go
index 7082972de33..2dfbaa44fcf 100644
--- a/modules/weaviate/examples_test.go
+++ b/modules/weaviate/examples_test.go
@@ -5,6 +5,7 @@ import (
"fmt"
"log"
"net/http"
+ "strings"
"time"
"github.com/weaviate/weaviate-go-client/... | 2 | 2 | 0 | [{"id": "G0", "claim": "TestWeaviateWithClient duplicates the testable example, so the pull request should keep only one of them (the testable example) rather than both.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new direct dependency on docker/... | null |
testcontainers__testcontainers-go__2551 | testcontainers/testcontainers-go | 2,551 | defect | d393a38577183dff2ca98a37bedee4ae7b25adc1 | 4218411c887142c12898e59ff01d782de67567c6 | Fix network accessor for port-forwarding feature | ## What does this PR do?
This pull-request fixes a bug in the port-fowarding functionality.
There is confusion between the use of the network name and the network identifier.
In order to correct the problem, a new function for selecting the network by name has been added.
| diff --git a/internal/core/network/network.go b/internal/core/network/network.go
index d74aeee877..b97cc1106c 100644
--- a/internal/core/network/network.go
+++ b/internal/core/network/network.go
@@ -10,8 +10,24 @@ import (
"github.com/testcontainers/testcontainers-go/internal/core"
)
+type filter string
+
+const (... | 2 | 2 | 0 | [{"id": "G0", "claim": "Using the port-forwarding feature with a custom network fails with a \"network not found\" error because the code finds the first network by name but then fetches it with network.Get, which filters by ID.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existi... | null |
testcontainers__testcontainers-go__2588 | testcontainers/testcontainers-go | 2,588 | defect | 9a93db4f3bb9bb3a7dc76c33ad3907faef1f1b06 | 33a7609a6d45bf6ccf80d6e92632a8fbcddb1853 | gha: update golangci-lint to v1.59.1 | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
<!-- Mandatory
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc.
-->
update golan... | diff --git a/.github/workflows/ci-test-go.yml b/.github/workflows/ci-test-go.yml
index 282309ed4e..13fb26422c 100644
--- a/.github/workflows/ci-test-go.yml
+++ b/.github/workflows/ci-test-go.yml
@@ -76,7 +76,7 @@ jobs:
uses: golangci/golangci-lint-action@9d1e0624a798bb64f6c3cea93db47765312263dc # v5
w... | 1 | 1 | 1 | [{"id": "G0", "claim": "The golangci-lint version pinned in commons-test.mk line 9 should also be updated to v1.59.1 to match the workflow bump.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
testcontainers__testcontainers-go__2741 | testcontainers/testcontainers-go | 2,741 | defect | 6ab11347f65a25a16c6d10b3a8c4efe230d3b6c2 | 42a77ddea89ce317fc7cac860e5ee4010f0adcb4 | fix: check if the discovered docker socket responds | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR adds a check for each discovered Docker host in order to verify if a vanilla Docker client can talk to that host.
<!-- Mandatory
Explain here the changes you mad... | diff --git a/internal/core/docker_host.go b/internal/core/docker_host.go
index b9d2d60d51..3b0015efdd 100644
--- a/internal/core/docker_host.go
+++ b/internal/core/docker_host.go
@@ -56,6 +56,23 @@ func DefaultGatewayIP() (string, error) {
return ip, nil
}
+// Use a vanilla Docker client to check if the Docker hos... | 7 | 7 | 3 | [{"id": "G0", "claim": "The error accumulated in outerErr is never used, so lookup failures are silently masked by the default socket path; the reviewer asked either to drop the dead assignments or, better, to surface an error to the user when no valid docker host is found.", "category": "correctness", "verdict": "supp... | null |
testcontainers__testcontainers-go__2787 | testcontainers/testcontainers-go | 2,787 | defect | 069f7248cc14b9f8edfcb31c56e1481d1332170e | 78552482f705433a0f8b4aef6aff101153d6f008 | chore: golangci-lint 1.61.0 | Update golangci-lint to v1.61.0 and update the action to v6.1.0. | diff --git a/.github/workflows/ci-test-go.yml b/.github/workflows/ci-test-go.yml
index 0a04327da1..f798168b59 100644
--- a/.github/workflows/ci-test-go.yml
+++ b/.github/workflows/ci-test-go.yml
@@ -73,7 +73,7 @@ jobs:
- name: golangci-lint
if: ${{ inputs.platform == 'ubuntu-latest' }}
- uses: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The golangci-lint version pin in .github/workflows/ci-test-go.yml should be bumped to v1.61.0 (or the pin removed) instead of remaining at v1.59.1, to match the rest of the pull request and avoid duplication.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
testcontainers__testcontainers-go__2799 | testcontainers/testcontainers-go | 2,799 | defect | ec9bf5dbf4e89f40a285ce32795c0b6109432e42 | 23fb181c2582942d6364ecadef21b3746d12fe12 | feat: add dynamodb-local module | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
This PR copies the already existing community module for DynamoDB (see https://github.com/abhirockzz/dynamodb-local-testcontainers-go), using most recent APIs and patterns.
<!--... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e7dcb44618..32062931cd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -94,7 +94,7 @@ jobs:
matrix:
go-version: [1.22.x, 1.x]
platform: [ubuntu-latest]
- module: [artemis, azurite, cassandra, c... | 9 | 9 | 0 | [{"id": "G0", "claim": "The CI checkout step's version comment was wrongly generated as v4.1.1 for a SHA that is v4.1.7, and the v4.1.7 comment should be restored.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The image constant looks unused and ... | null |
testcontainers__testcontainers-go__2825 | testcontainers/testcontainers-go | 2,825 | defect | cc71645e576a0afb003123eb3e03d7955f342792 | 084cde98f3b0a36893a73518b71adf1e763f4edc | feat: add yugabytedb module | ## What does this PR do?
This PR introduces the yugabytedb go module
## Why is it important?
There is currently no official yugabytedb test container module for golang
## Related issues
No related issue
## How to test this PR
```sh
cd modules/yugabytedb && make test
``` | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0fea7eaeb0..5d45d9b70a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -94,7 +94,7 @@ jobs:
matrix:
go-version: [1.22.x, 1.x]
platform: [ubuntu-latest]
- module: [artemis, azurite, cassandra, c... | 15 | 12 | 4 | [{"id": "G0", "claim": "The functional option names are overly verbose and should drop the YSQL qualification, e.g. rename WithYSQLDatabaseName to WithDatabaseName (and likewise the other options).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error... | null |
testcontainers__testcontainers-go__2847 | testcontainers/testcontainers-go | 2,847 | defect | e94530939173164b80faf6dd5870410cd3caf7fe | cf6394b8f3df9b463e2d763c7dbb90a8a04c3b7f | fix: mongodb replicaset should work with auth | ## What does this PR do?
This PR fixes the bug for mongodb module where container doesn't start when `WithReplicaSet` option is used in combination with `WithUsername` and `WithPassword`.
## Why is it important?
Fixes the issue mentioned in #2755.
Idea here is to use wrapping entrypoint so that security key... | diff --git a/modules/mongodb/cli.go b/modules/mongodb/cli.go
new file mode 100644
index 0000000000..8f9d86804c
--- /dev/null
+++ b/modules/mongodb/cli.go
@@ -0,0 +1,31 @@
+package mongodb
+
+import "fmt"
+
+// mongoCli is cli to interact with MongoDB. If username and password are provided
+// it will use credentials to... | 4 | 4 | 0 | [{"id": "G0", "claim": "The comment above WithReplicaSet is outdated after the new initialisation methods and should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding an empty line helps readability in the initiateReplicaSet block,... | null |
testcontainers__testcontainers-go__2867 | testcontainers/testcontainers-go | 2,867 | defect | 47764d4bb3684a3b0cafea1fddbc9226e7350288 | 8e3f6d9ae6ce6545797b3c7577f3a4615c23b9ad | fix: host access port instability | Fix clean up of sshd container used for HostAccessPorts if the container setup fails.
Fix ensureDefaultNetwork instability by preferring the default network if available. This prevents random port forwarding test failures due to different network bindings between the containers.
Fix data race when reading exec co... | diff --git a/docker.go b/docker.go
index cb003c6630a..c0c7dd06149 100644
--- a/docker.go
+++ b/docker.go
@@ -1168,6 +1168,18 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque
return nil, fmt.Errorf("expose host ports: %w", err)
}
+ defer func() {
+ if err != nil && con == n... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add a TODO comment in ensureDefaultNetwork so the follow-up that removes the default network selection via the docker context path PR is not forgotten.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case for th... | null |
testcontainers__testcontainers-go__2895 | testcontainers/testcontainers-go | 2,895 | defect | 892cb088aa1b80ebdf7ace5b11947848b04a658d | 4c3174818d48a17ebbe71bba01c14fb2a380431e | feat(wait): strategy walk | Add the Walk method which allows consumers to walk strategies and if desired update or remove them.
This is useful for modules which want to update strategy details based on user customisations performed by functional options passed to their run methods. | diff --git a/docs/features/wait/walk.md b/docs/features/wait/walk.md
new file mode 100644
index 0000000000..d69c942631
--- /dev/null
+++ b/docs/features/wait/walk.md
@@ -0,0 +1,12 @@
+# Walk
+
+Walk walks the strategies tree and calls the visit function for each node.
+
+If visit function returns `wait.VisitStop`, the ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new Walk page needs to be added to the mkdocs.yaml nav file too.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Walk docs should elaborate more about the use cases of walking the strategies tree.", "category": "docu... | null |
testcontainers__testcontainers-go__2926 | testcontainers/testcontainers-go | 2,926 | defect | ea4feeaa408526be96e07cc2bdf9969a8fdc538b | 4c3c5b57ecff41d5f310cd76a3b251948b9e23af | feat(termination)!: make container termination timeout configurable | <!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change
-->
## What does this PR do?
<!-- Mandatory
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc.
-->
- extend `Term... | diff --git a/cleanup.go b/cleanup.go
index e2d52440b94..714e3d087d1 100644
--- a/cleanup.go
+++ b/cleanup.go
@@ -2,7 +2,6 @@ package testcontainers
import (
"context"
- "errors"
"fmt"
"reflect"
"time"
@@ -16,21 +15,21 @@ type terminateOptions struct {
}
// TerminateOption is a type that represents an opt... | 14 | 12 | 4 | [{"id": "G0", "claim": "Tying TerminateOption to the concrete DockerContainer type and keeping the terminate-options type unexported means the approach does not work with the Container interface design, so the options type (and the constructor's return type) should be exported for implementations outside the testcontai... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.