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
tsedio__tsed__1950
tsedio/tsed
1,950
defect
150c7cced5f306be220e257f11607f3f44cd9868
c0b75a7bda876ad31a1c5298f90ff6705c6f86ec
feat(mikro-orm): introduce middleware to isolate the request context
## Information | Type | Breaking change | | --------------------- | --------------- | | Feature | No | --- ## Usage example Please refer to #1949 for details. ## Todos - [x] Tests - [x] Coverage - [ ] ~Example~ - [ ] ~Documentation~ closes #1949
diff --git a/packages/orm/mikro-orm/package.json b/packages/orm/mikro-orm/package.json index f37705642be..06bfd266da9 100644 --- a/packages/orm/mikro-orm/package.json +++ b/packages/orm/mikro-orm/package.json @@ -24,8 +24,9 @@ "tslib": "2.4.0" }, "devDependencies": { - "@mikro-orm/core": "^4.5.9", - "@...
7
5
2
[{"id": "G0", "claim": "@tsed/async-hook-context is no longer required because the hook context is integrated into tsed/di, so it should be dropped from the package manifest.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Creating a custom Async...
null
tsedio__tsed__2078
tsedio/tsed
2,078
defect
e90786998d185021e25bbd48fc9b79dd199fd8e9
c72d93580a51aaa7b1f677ced5c81b1fa87b6e16
feat(objection): add model relationship decorators
## Information | Type | Breaking change | | ------------------| ------- | | Feature | No | First time contributor here 😄 If there are any striking concerns about this PR then please let me know, as I'm happy to work on it. I thought that it'd be useful for developers to use decorators to describ...
diff --git a/packages/orm/objection/src/decorators/belongsToOne.spec.ts b/packages/orm/objection/src/decorators/belongsToOne.spec.ts new file mode 100644 index 00000000000..292c5bacfed --- /dev/null +++ b/packages/orm/objection/src/decorators/belongsToOne.spec.ts @@ -0,0 +1,58 @@ +import {Entity, IdColumn} from "../../...
2
1
1
[{"id": "G0", "claim": "The reviewer asks why Model.BelongsToOneRelation must be passed to @RelatesTo and suggests it could be the default value of the first parameter.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The documentation for the new decorato...
null
tsedio__tsed__2162
tsedio/tsed
2,162
defect
283c75ff5e4a4c66186bea19f40de54c8606c15d
8809cd2fa349e9136a1ff8389ca02099fdf4b73a
fix(adapters-redis): handle empty object returns from hgetall
## Information | Type | Breaking change | | --------------------- | --------------- | | Fix | No | --- <!-- ## Usage example Example to use your feature and to improve the documentation after merging your PR: ```typescript import {} from "@tsed/common"; ``` --> This is ...
diff --git a/packages/orm/adapters-redis/src/adapters/RedisAdapter.spec.ts b/packages/orm/adapters-redis/src/adapters/RedisAdapter.spec.ts index 7b7a13dcd01..86f10260a49 100644 --- a/packages/orm/adapters-redis/src/adapters/RedisAdapter.spec.ts +++ b/packages/orm/adapters-redis/src/adapters/RedisAdapter.spec.ts @@ -104...
2
1
0
[{"id": "G0", "claim": "The empty-result condition in findById should use the existing helper isObject(item) (or classOf(item) === Object) instead of the hand-rolled item.constructor === Object check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
tsedio__tsed__2536
tsedio/tsed
2,536
defect
4e018d8817694ae6995fedbb82db20dcf7edd2d0
aceb2ff9ceddc6fc491ddca04a091d3657cab836
feat(bullmq): extend configuration
## Information | Type | Breaking change | | --------------------- | --------------- | | Feature|No | --- closes #2534 ### What changed? - Added functionality to `disableWorker` (this option was unused, i would not say it is a breaking change 🤔) - Deprecated `defaultJobOptio...
diff --git a/docs/tutorials/bullmq.md b/docs/tutorials/bullmq.md index 3ce2b68e55d..60eb42cd08a 100644 --- a/docs/tutorials/bullmq.md +++ b/docs/tutorials/bullmq.md @@ -12,7 +12,7 @@ meta: ## Feature -The [BullMQ](https://bullmq.io) Module for Ts.ED allows you to decorate a class using the `@Job` decorator and imp...
6
6
2
[{"id": "G0", "claim": "The default for the DataType generic parameter of JobMethods should be `unknown` instead of `any`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The QueueOptions and WorkerOptions imports in config.ts should be type-only imports....
null
tsedio__tsed__2741
tsedio/tsed
2,741
defect
54a3fad096ebd6b9062d032c6c8d1281585f68a4
0320aec1b1e45023d9f92b0d9640de8f9a37fcd3
fix(prisma): resolve several issues with prisma generate for ESM
1. Correct the generated 'lib/esm/index.js' file's path. 2. Workaround for 'ReferenceError: Cannot access 'xxx' before initialization' caused by esm circular ref. ``` ../tsed/packages/orm/prisma/lib/esm/.schema/models/MessageModel.js:129 __metadata("design:type", ConversationModel) ...
diff --git a/packages/orm/prisma/scripts/backup-index.esm.js b/packages/orm/prisma/scripts/backup-index.esm.js index dd9c5d2a01b..a6cba8fe04a 100644 --- a/packages/orm/prisma/scripts/backup-index.esm.js +++ b/packages/orm/prisma/scripts/backup-index.esm.js @@ -1 +1 @@ -export * from "./.schema.js"; +export * from "./.s...
2
2
2
[{"id": "G0", "claim": "Skipping decorator generation for circular-ref fields under ESM leaves properties without decorators (and unmapped), and the underlying circular-ref ReferenceError in the generated ESM output remains unsolved; the circular type should instead be handled at the type level (lazy wrapper or a Relat...
null
tsedio__tsed__2944
tsedio/tsed
2,944
defect
474e2d8ec632653ccd09fa30ae1cafc3ba6815f6
9e08d0c8ecec1dc2bd4780112bfd167a5999a1d3
fix(schema): allow declaring many summary and description for one endpoint
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function `inspectOperationsPaths` for improved operation path validation. - Added a new integration test for a controller with multiple descriptions in OpenAPI specification. -...
diff --git a/packages/specs/schema/.barrelsby.json b/packages/specs/schema/.barrelsby.json index 5cb0b60db47..5352174122f 100644 --- a/packages/specs/schema/.barrelsby.json +++ b/packages/specs/schema/.barrelsby.json @@ -1,5 +1,5 @@ { "directory": ["./src", "./src/components"], - "exclude": ["**/__mock__", "**/__m...
5
1
0
[{"id": "G0", "claim": "Prefer referencing the OperationVerbs.GET enum instead of the string literal \"GET\" when constructing JsonMethodPath in JsonOperationRoute.spec.ts (lines 21 and 82 use string literals while line 52 already uses the enum) for clarity and consistency.", "category": "maintainability", "verdict": "...
null
tsedio__tsed__2959
tsedio/tsed
2,959
defect
68f358a0395cd80006bc87af836f332543453299
7e7f4154ec0ea8128158908e7e647496158f4a5e
fix(mongoose): fix prehook when insertMany is used to hook method
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced type safety for Mongoose decorators and hooks. - Introduced more flexible method handling for pre and post hooks. - **Improvements** - Updated method signatures to use specific Mongoo...
diff --git a/packages/orm/mongoose/src/decorators/postHook.spec.ts b/packages/orm/mongoose/src/decorators/postHook.spec.ts index 94f42b2bb11..77a0e799a99 100644 --- a/packages/orm/mongoose/src/decorators/postHook.spec.ts +++ b/packages/orm/mongoose/src/decorators/postHook.spec.ts @@ -8,7 +8,7 @@ describe("@PostHook()",...
9
2
0
[{"id": "G0", "claim": "Add JSDoc comments documenting the expected arguments of the MongoosePreHookCB and MongoosePostHookCB callback types, which now accept ...args: unknown[].", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a link to the rel...
null
tsedio__tsed__2974
tsedio/tsed
2,974
defect
30f05675737f83d725c0a702d9d13138f85f9ca8
1e3583417bdbe438928d29b3357d3aa33fec5b98
fix(objection): fix decorators to allow to work with circular imports in esbuild
## Information Fixes issue, where esbuild does not put decorators at the end, which results in usage of types (module references) before their initialization. | Type | Breaking change | | --------------------- | --------------- | | Fix | No | --- <!-- ## Usage example Example...
diff --git a/packages/orm/objection/src/decorators/belongsToOne.spec.ts b/packages/orm/objection/src/decorators/belongsToOne.spec.ts index 95f539a7561..b0ece5a808d 100644 --- a/packages/orm/objection/src/decorators/belongsToOne.spec.ts +++ b/packages/orm/objection/src/decorators/belongsToOne.spec.ts @@ -57,4 +57,56 @@ ...
8
1
0
[{"id": "G0", "claim": "Reassigning the `typeOrOpts` and `opts` parameters inside `BelongsToOne` (the backwards-compatibility branch) is confusing and should use local variables instead of reassigning the parameters.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id...
null
tsedio__tsed__2983
tsedio/tsed
2,983
defect
8580b1aca4605e05fff3115f96a8d5b240771177
dfb10eccf6b0d2f82251554c6f1d375cddf02537
fix(core): methodsOf filters out getters and symbols
## Information fixes #2982 | Type | Breaking change | | --------------------- | --------------- | | Fix | No | --- <!-- ## Usage example Example to use your feature and to improve the documentation after merging your PR: ```typescript import {} from "@tsed/platform-http"; ...
diff --git a/packages/core/src/utils/objects/methodsOf.spec.ts b/packages/core/src/utils/objects/methodsOf.spec.ts new file mode 100644 index 00000000000..2d99c80ff17 --- /dev/null +++ b/packages/core/src/utils/objects/methodsOf.spec.ts @@ -0,0 +1,34 @@ +import {isSymbol, isSymbolOrSymbolClass} from "./isSymbol.js"; +i...
3
1
0
[{"id": "G0", "claim": "The imports in methodsOf.spec.ts should be sorted according to the project's conventions, as ESLint (simple-import-sort) reports an error and the lint check fails on lines 1-3.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
tsedio__tsed__3049
tsedio/tsed
3,049
defect
dd0ef485e4cf50a1bbc45a6346bf1ae8ed39518d
2eeed5c664f43eb4ab94b84078aa1be874d8c3b7
fix(platform-response-filter): fix issue related to default resolved …
…content type Closes: #3048 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced content type detection to correctly handle boolean and numeric response data as JSON. - Added a custom Express-specific response handler for improved int...
diff --git a/packages/platform/platform-express/src/components/PlatformExpress.ts b/packages/platform/platform-express/src/components/PlatformExpress.ts index b1a2dc92458..5f942acdd86 100644 --- a/packages/platform/platform-express/src/components/PlatformExpress.ts +++ b/packages/platform/platform-express/src/component...
1
1
0
[{"id": "G0", "claim": "The unused `hasValidContentType` helper, which contains a commented-out condition, should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsedio__tsed__3060
tsedio/tsed
3,060
defect
f57343d86f1b2c059519b3248bbb4dd95c1fc4fe
569301ff8b459bed13b3a8e54d4ae08c4414abfe
fix(di): improve inferred type when a factory is created using injectable() function
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated provider registration documentation to use new method-based syntax and improved code snippet formatting for clarity between current and legacy versions. - Enhanced descriptive text fo...
diff --git a/docs/docs/custom-providers.md b/docs/docs/custom-providers.md index 03d65a30650..d4b53238d97 100644 --- a/docs/docs/custom-providers.md +++ b/docs/docs/custom-providers.md @@ -44,7 +44,7 @@ class CustomProvider { ## Register Value -The `useValue` syntax is useful when it comes to either define a const...
10
2
0
[{"id": "G0", "claim": "Add a `export type ConfigService = typeof ConfigService;` type export to the class-provider snippet for consistency with the other provider snippets.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the grammar of the reg...
null
tsedio__tsed__3074
tsedio/tsed
3,074
defect
6b13e54f80283567da6f13cf68dd18eba3965bbd
c94b85f10741873b57fd4924f50a3269415c17c4
fix(platform-http): pass cookie options to clearCookie method
## Information | Type | Breaking change | | --------------------- | --------------- | | Feature/Fix/Doc/Chore | No | --- ## Usage example Usage is the same. It just passes the value of the opts parameter to clearCookie as it is needed to remove cookie properly. ## Todos - [...
diff --git a/packages/platform/platform-http/src/common/services/PlatformResponse.ts b/packages/platform/platform-http/src/common/services/PlatformResponse.ts index 76c00db445b..4cea302a4a2 100644 --- a/packages/platform/platform-http/src/common/services/PlatformResponse.ts +++ b/packages/platform/platform-http/src/com...
1
1
1
[{"id": "G0", "claim": "The pull request should update/add a test covering the clearCookie change (passing cookie options when clearing a cookie).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsedio__tsed__3098
tsedio/tsed
3,098
defect
73554dc8caeeae496c154b69b0fdcd4ee58cf207
8133cdbbddb5b1ffc92b4666e345a649bc03f96c
Feat add methods to pulse agenda module
## Information | Type | Breaking change | | --------------------- | --------------- | | Feature | No | --- In order to support agendash with Pulse, we need to access some vars like _collection and _mdb. Moreover, this PR allows access to agenda.on() and pulse.on() method to be ab...
diff --git a/packages/third-parties/agenda/src/AgendaModule.spec.ts b/packages/third-parties/agenda/src/AgendaModule.spec.ts index 8046978203b..dae720cd4df 100644 --- a/packages/third-parties/agenda/src/AgendaModule.spec.ts +++ b/packages/third-parties/agenda/src/AgendaModule.spec.ts @@ -137,6 +137,46 @@ describe("Agen...
5
4
0
[{"id": "G0", "claim": "Fix the formatting of the new test blocks in AgendaModule.spec.ts: close the describe blocks with semicolons and use double quotes for their names.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the formatting of the new test b...
null
tsedio__tsed__3114
tsedio/tsed
3,114
defect
4b8e882b7bda76c4d4b891492ffbb0e09fd2b86f
84285d7e86eea9d2710abfded26696dbb80152fc
3112 support generic multi framework route path convention and automatic conversion utility
## Information | Type | Breaking change | | --------------------- | --------------- | | Feature | No | --- ## Todos - [ ] Tests - [ ] Coverage - [ ] Example - [ ] Documentation <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRa...
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 85e719b0e31..e1f877b7581 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -5,7 +5,7 @@ import pkg from "../../package.json"; import referenceSidebar from "../public/reference-sidebar.json"; import team from "../team....
13
8
1
[{"id": "G0", "claim": "CodeQL flags that the new route-path conversion regexes, which depend on library (uncontrolled) input, may run slow (polynomial time) on strings with many repetitions — a ReDoS risk.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
tsedio__tsed__3148
tsedio/tsed
3,148
defect
778531ed52a6b917ac74ebee380552e40c08591a
47ca2f5cb84aad9a827cb616bd04b80f2abdcf9c
fix(platform-express): fix issue about default express v5 query param…
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * New Features * Enable Express extended query parser at runtime for improved deep query parameter handling. * Tests * Added a test scenario that validates raw query object shapes for deep query parameters. * R...
diff --git a/packages/platform/platform-express/src/components/PlatformExpress.ts b/packages/platform/platform-express/src/components/PlatformExpress.ts index 1e437dee4fe..4c3787e8992 100644 --- a/packages/platform/platform-express/src/components/PlatformExpress.ts +++ b/packages/platform/platform-express/src/component...
8
1
1
[{"id": "G0", "claim": "Configure the app-level Express \"query parser\" once during bootstrapping (createApp() or beforeLoadRoutes()) instead of inside bodyParser(), where it mixes concerns and may execute multiple times.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
tsedio__tsed__3158
tsedio/tsed
3,158
defect
a6e963ae65d17789d0e92fb7788eb882ddbca073
26c90107e03be7272085d30bac7e5d406b57e56d
fix(schema): update JsonSchemaObject to support array items with patt…
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Support array properties with per-item pattern constraints in schemas. - Allow patterns to be specified as regular expressions or strings. - Refactor - Improved typing for nested JSON Schema el...
diff --git a/packages/specs/schema/src/decorators/common/schema.spec.ts b/packages/specs/schema/src/decorators/common/schema.spec.ts index b7bbda1b2a4..32250c51009 100644 --- a/packages/specs/schema/src/decorators/common/schema.spec.ts +++ b/packages/specs/schema/src/decorators/common/schema.spec.ts @@ -5,19 +5,27 @@ d...
6
1
1
[{"id": "G0", "claim": "The Hooks import added to the @tsed/core import block in JsonSchema.ts appears unused and duplicates the existing @tsed/hooks import, creating a compile-time name collision; a single import source should be kept by removing the redundant import.", "category": "correctness", "verdict": "supported...
null
tsedio__tsed__3243
tsedio/tsed
3,243
defect
6eef33a59bbfb1ba46de89efbd1a01b786bc786f
0b2fbd9ab93ed57a67a0c492d1760ace872183e1
docs(platform-cache): document bypass cache strategy and force refres…
…h behavior - Add detailed explanations for bypassing cache using `Cache-Control: no-cache` header or `byPass` option. - Update interceptor logic to enhance caching workflows with bypass controls. - Extend PlatformCacheOptions docs for `byPass` usage, including examples and default behavior. - Adjust test cases t...
diff --git a/docs/docs/cache.md b/docs/docs/cache.md index 148d17e4c34..fe73dc32e6a 100644 --- a/docs/docs/cache.md +++ b/docs/docs/cache.md @@ -256,6 +256,17 @@ Only `GET` endpoints are cached. Also, HTTP server routes that use the native re @@PlatformCacheInterceptor@@. ::: +::: tip Force refresh +Send the `Cache...
8
2
1
[{"id": "G0", "claim": "The closing `:::` of the Force-refresh tip block in docs/docs/cache.md should be on its own line so the VitePress/markdown block renders correctly.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In shouldByPassCache the `!!...
null
tsedio__tsed__3254
tsedio/tsed
3,254
defect
a7462bbadbe244d078e095f68f8b7ab25a148e0a
e2389990f53def85d3c19fc82c0c9b5d7113c011
Fix fastify statics configuration
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Graceful server shutdown now safely handles servers without a close method. * Static assets mounting no longer aborts early; all layers are processed reliably. * **Tests** * Added tests for se...
diff --git a/packages/platform/platform-express/src/components/PlatformExpress.ts b/packages/platform/platform-express/src/components/PlatformExpress.ts index 16286afe696..2a1e313f31b 100644 --- a/packages/platform/platform-express/src/components/PlatformExpress.ts +++ b/packages/platform/platform-express/src/component...
3
1
1
[{"id": "G0", "claim": "closeServer should always return a Promise, returning Promise.resolve(undefined) when server.close is missing, so callers get a consistent async API instead of Promise<undefined> | undefined.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
tsedio__tsed__3290
tsedio/tsed
3,290
defect
d40dfa4a45aa93dcd71aa0961d399da2c44ca81b
ec2a001c1dbc513c2217a23f6d0a7fc7e8d6cfca
fix(schema): fix duplicate property types when multiple heritages are…
… used ## Information | Type | Breaking change | | --------------------- | --------------- | | Fix | No | * **Bug Fixes** * Improved schema composition for inherited classes with more consistent processing of inheritance hierarchies. * **Tests** * Added comprehensive test...
diff --git a/packages/specs/schema/src/components/default/inheritedClassMapper.ts b/packages/specs/schema/src/components/default/inheritedClassMapper.ts index 2352fb8dac4..9a9db2955d1 100644 --- a/packages/specs/schema/src/components/default/inheritedClassMapper.ts +++ b/packages/specs/schema/src/components/default/inh...
1
1
1
[{"id": "G0", "claim": "Passing `inheritedClass: false` into the entire nested mapper chain means any referenced class discovered while serializing a parent store also skips its own inherited merge, so nested inherited models can lose ancestor properties; a target-scoped guard should be used instead of a blanket boolea...
null
tsedio__tsed__3294
tsedio/tsed
3,294
defect
f3b4d9b014c0e755953be6c67cd81a91479fb050
daa24ac881a891723692c6c83e7714a21dfdf4b6
Fix platform cache threshold perf
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added refresh cooldown with deterministic jitter, serialized background refreshes for concurrent requests, and behavior to skip or record cooldowns. * **Refactor** * Migrated cache internals ...
diff --git a/.codex/skills/migrate-tsed-functional-api/SKILL.md b/.codex/skills/migrate-tsed-functional-api/SKILL.md new file mode 100644 index 00000000000..be31726325a --- /dev/null +++ b/.codex/skills/migrate-tsed-functional-api/SKILL.md @@ -0,0 +1,75 @@ +--- +name: migrate-tsed-functional-api +description: Migrate T...
3
2
1
[{"id": "G0", "claim": "The ordered-list prefixes in the migration skill doc should be normalized to `1.` so markdownlint (MD029) passes.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The queue guard that splits the lock check and lock write into...
null
tsenart__vegeta__125
tsenart/vegeta
125
defect
7719ff10a6dda5eaafa3bf2a35d087eaf9b8858e
5d355d3d9326c75c0870d393af4f50d2fca3b685
Allow case-sensitive headers.
Fixes #124
diff --git a/attack.go b/attack.go index bbc91385..2c5eb876 100644 --- a/attack.go +++ b/attack.go @@ -186,7 +186,7 @@ func (h headers) Set(value string) error { if key == "" || val == "" { return fmt.Errorf("header '%s' has a wrong format", value) } - h.Add(key, val) + h.Header[key] = []string{val} return nil...
2
2
1
[{"id": "G0", "claim": "Replacing h.Add(key, val) with h.Header[key] = []string{val} is equivalent to Set semantics, discarding previously stored values for the same key; it should append instead: h.Header[key] = append(h.Header[key], val).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
tsenart__vegeta__217
tsenart/vegeta
217
defect
89f25bbfa5e180fd4721cad9e253311c2777e574
0427497d81f6c41fbb813165e0ce756c716a33c0
PTAL allow any upper-case ASCII word to be an http method
The motivation and context for this PR are detailed in the proposal issue: https://github.com/tsenart/vegeta/issues/214 The implementation has changes as per maintainer's suggestions: - with this PR vegeta now supports any upper-case ASCII word as a valid HTTP verb, not just POST/GET/PUT/PATCH/DETELE/HEAD/OPTIONS....
diff --git a/lib/targets.go b/lib/targets.go index b2e0e5bd..9e156db3 100644 --- a/lib/targets.go +++ b/lib/targets.go @@ -127,12 +127,10 @@ func NewLazyTargeter(src io.Reader, body []byte, hdr http.Header) Targeter { if len(tokens) < 2 { return fmt.Errorf("bad target: %s", line) } - switch tokens[0] { - ca...
2
2
0
[{"id": "G0", "claim": "Keep the existing `startsWithHTTPMethod` helper instead of replacing it with a new `isHttpMethod` function, i.e. match with the regex `^[A-Z]+` within the old helper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment abov...
null
tsenart__vegeta__222
tsenart/vegeta
222
defect
06c3677180009bf997d8a1f91dda02eea4265442
b5ac0f2523c889ef4d1217d915a928417990dbb7
mark responses as success in no redirect following mode.
## Issue which this PR solves Vegeta does not mark responses as success when `-1` is set to the attack `-redirects` option. `Bytes In`, `Bytes Out`, `Success` and `Status Codes` of a report are zeros as below: ```shell echo "GET http://xxxx.xxxx" | vegeta attack -redirects -1 -rate 1 -duration 10s | tee results....
diff --git a/lib/attack.go b/lib/attack.go index a9d900b6..dabca608 100644 --- a/lib/attack.go +++ b/lib/attack.go @@ -7,7 +7,6 @@ import ( "io/ioutil" "net" "net/http" - "strings" "sync" "time" @@ -94,11 +93,17 @@ func Connections(n int) func(*Attacker) { func Redirects(n int) func(*Attacker) { return f...
2
2
1
[{"id": "G0", "claim": "The Redirects option should use the simpler single CheckRedirect closure with a switch over NoFollow, redirect-count and default cases instead of the if/else with two closures.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A regr...
null
tsenart__vegeta__307
tsenart/vegeta
307
defect
05aff3184d73699bd6c55c8e5136dc4e1a8d6258
e1711c8d39d4b49ce178565f3be36b45866594a4
metrics: Adopt T-Digest for streaming quantile estimation
#### Background Benchmarking the current generation of streaming quantile libraries in Go has revealed https://github.com/influxdata/tdigest as the winner in performance without sacrificing expected levels of accuracy for the common quantiles. With this library, the 50th percentile is the one that may be less precis...
diff --git a/Gopkg.lock b/Gopkg.lock index fac24eab..acc3efdb 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -7,6 +7,24 @@ packages = ["."] revision = "f2c93856175a7dd6abe88c5c3900b67ad054adcc" +[[projects]] + branch = "master" + name = "github.com/bmizerany/perks" + packages = ["quantile"] + revision = "d9a96...
3
3
0
[{"id": "G0", "claim": "The tdigestEstimator composite literal in newTdigestEstimator uses unkeyed fields (go vet composite literal warning).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bmizeranyEstimator composite literal in newBmizerany...
null
tsenart__vegeta__308
tsenart/vegeta
308
defect
05aff3184d73699bd6c55c8e5136dc4e1a8d6258
9515df51cd7187de13e5148afe17b2c876dfecc4
attack: Add -resolvers flag to command
This adds the ability to override the host operating system resolver by allowing this to be specified on the command line (comma separated list). In the event more than one is specified, the resolvers are tried in order in a round robin manner. #### Background In some situations it is desirable to override th...
diff --git a/attack.go b/attack.go index 4680ef7d..6c115560 100644 --- a/attack.go +++ b/attack.go @@ -8,6 +8,7 @@ import ( "fmt" "io" "io/ioutil" + "net" "net/http" "os" "os/signal" @@ -23,7 +24,6 @@ func attackCmd() command { headers: headers{http.Header{}}, laddr: localAddr{&vegeta.DefaultLocalAd...
13
10
4
[{"id": "G0", "claim": "Drop the else after the return statement in the test loop and outdent its block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid mutating the global package-level net.DefaultResolver; parameterise the resolver in the...
null
tsenart__vegeta__329
tsenart/vegeta
329
defect
fb66ddbc950f8935ceb38ca22a3eb28a686c6971
758feff172e9cfdd04116674212ae201dad7a2dd
Feature (library): BYO client and dialer
#### Background Temp solution for #263 whilst #305 is under development #### Checklist - [/] Git commit messages conform to [community standards](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). - [/] Each Git commit represents meaningful milestones or atomic units of work. - [/] Change...
diff --git a/lib/attack.go b/lib/attack.go index 6edb4d09..515a12aa 100644 --- a/lib/attack.go +++ b/lib/attack.go @@ -204,6 +204,16 @@ func MaxBody(n int64) func(*Attacker) { return func(a *Attacker) { a.maxBody = n } } +// Client returns a functional option that allows you to BYO http.Client +func Client(c http....
4
4
0
[{"id": "G0", "claim": "The 'BYO' abbreviation in the Client option's doc comment is unnecessarily terse and should be spelled out for explicitness.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Dialer option should be removed because a diale...
null
tsenart__vegeta__386
tsenart/vegeta
386
defect
892bb039a1ccbd0cf3410a7744c0c1101d52b597
587854f8080dec065342cbf5b40dc8f23b7ca364
Add unix sockets
#### Background We use a few HTTP services that are exposed over a unix socket rather than TCP, Go's support for this is good and is used in several projects (e.g. Docker) and would like to use vegeta for load testing them. This commit adds a `--unix-socket /path/to/unix.sock` option that sets the dialler on the...
diff --git a/attack.go b/attack.go index 1c76f36b..dc84174c 100644 --- a/attack.go +++ b/attack.go @@ -50,6 +50,7 @@ func attackCmd() command { fs.Var(&opts.headers, "header", "Request header") fs.Var(&opts.laddr, "laddr", "Local IP address") fs.BoolVar(&opts.keepalive, "keepalive", true, "Use persistent connecti...
11
7
0
[{"id": "G0", "claim": "The test's HTTP handler does not check the error returned by w.Write (errcheck).", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error returned by server.Serve is not checked, and the fix that does check it calls t.Fatal from ...
null
tsenart__vegeta__400
tsenart/vegeta
400
defect
e827e02858e8d5d581bac4d57b31fbd275da39c5
dea8ca651c3d50329108feb5901db9387b96730b
Introduce Pacer interface, ConstantPacer and SinePacer.
#### Background @tsenart @LasTshaMAN Supersedes #380, #388, #390. I wanted to be able to vary attack rates over time, for Reasons. The Pacer interface allows vegeta's attack rate to be customized. Attack code keeps track of the elapsed attack duration and the number of hits sent and provides these to Pace,...
diff --git a/attack.go b/attack.go index b71a0d96..1cf34484 100644 --- a/attack.go +++ b/attack.go @@ -24,7 +24,7 @@ func attackCmd() command { opts := &attackOpts{ headers: headers{http.Header{}}, laddr: localAddr{&vegeta.DefaultLocalAddr}, - rate: vegeta.Rate{Freq: 50, Per: time.Second}, + rate: veg...
2
2
0
[{"id": "G0", "claim": "The new code should use the Rate alias instead of spelling out ConstantPacer where a plain constant rate is meant: SinePacer's Mean/Amp fields should depend on the alias for readability, and rateFlag, attackOpts.rate and the test literals should keep using the alias.", "category": "design", "ver...
null
tsenart__vegeta__446
tsenart/vegeta
446
defect
ab06ddb56e2f6097bba8c5a6d168621088867949
3fa39a80ed8dc214606ea630304620fb65a84db2
Report minimum latency
#### Background I tried create box-and-whisker plot about latency using `vegeta report` . Be in trouble vegeta did not tell me minimum latency, box-and-whisker plot need max,3/4,1/2,1/4 and minimum value. As an alternative i used max,50th and 95th value. but i can't replaced min value, i thought replace min value ...
diff --git a/lib/metrics.go b/lib/metrics.go index 5b3cd626..0dcf1eac 100644 --- a/lib/metrics.go +++ b/lib/metrics.go @@ -1,6 +1,7 @@ package vegeta import ( + "math" "strconv" "time" @@ -136,6 +137,8 @@ type LatencyMetrics struct { P99 time.Duration `json:"99th"` // Max is the maximum observed request l...
1
1
0
[{"id": "G0", "claim": "The added `l.Min = time.Duration(math.MaxInt64)` initialization in `LatencyMetrics.init()` may be unnecessary, since `Add` already initializes `Min` through its `l.Min == 0` branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsenart__vegeta__448
tsenart/vegeta
448
defect
ab06ddb56e2f6097bba8c5a6d168621088867949
70b8d04c72f98860af34a037b735414d0b2ed73a
Fix comments between headers (#447)
#### Background Closes issue #447 Sometimes is nice to provide more information about a specific header, specially when sharing targets files. For this reason would be nice be able to put comments in the header section. #### Checklist - [x] Git commit messages conform to [community standards](http://tbagger...
diff --git a/lib/targets.go b/lib/targets.go index 41415ffb..f9b9d2c6 100644 --- a/lib/targets.go +++ b/lib/targets.go @@ -300,6 +300,8 @@ func NewHTTPTargeter(src io.Reader, body []byte, hdr http.Header) Targeter { for sc.Scan() { if line = strings.TrimSpace(sc.Text()); line == "" { break + } else if str...
2
2
0
[{"id": "G0", "claim": "The added comment check should use the already-trimmed `line` variable instead of recomputing `strings.TrimSpace(sc.Text())`, as in the suggested `} else if strings.HasPrefix(line, \"#\") {`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
tsenart__vegeta__470
tsenart/vegeta
470
defect
85244b4acb411f39075b7f47533ec04ac438201b
826a8b5a7ec7f72326d62fb9ee3ee92eaf0d519c
Add header to target containing the sequence number
#### Background <!-- Required background information to understand the PR. Link here any related issues. --> Following up the discussion here https://github.com/tsenart/vegeta/issues/462 This adds the res.Seq to the target headers with the name "X-Vegeta-Seq". This also add a new unit test to check that the h...
diff --git a/lib/attack.go b/lib/attack.go index b44fa94f..8436858f 100644 --- a/lib/attack.go +++ b/lib/attack.go @@ -13,6 +13,8 @@ import ( "sync" "time" + "strconv" + "golang.org/x/net/http2" ) @@ -331,7 +333,7 @@ func (a *Attacker) attack(tr Targeter, name string, workers *sync.WaitGroup, tic func (a *A...
3
2
1
[{"id": "G0", "claim": "Add a code comment in TestSeqHeader explaining that the loop exists so the test does not only cover res.Seq == 0.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Run goimports so the imported packages are automatically group...
null
tsenart__vegeta__474
tsenart/vegeta
474
defect
85244b4acb411f39075b7f47533ec04ac438201b
9c87216dca74672e411c9b5f7cbd0725795120ad
Capture HTTP headers in results
Headers are written in wire format. CSV output uses base64 to encode headers. Fixes #303
diff --git a/encode.go b/encode.go index e3997f5c..b2becf66 100644 --- a/encode.go +++ b/encode.go @@ -26,15 +26,18 @@ automatically. The CSV encoder doesn't write a header. The columns written by it are: - 1. Unix timestamp in nanoseconds since epoch - 2. HTTP status code - 3. Request latency in nanoseconds - ...
4
3
1
[{"id": "G0", "claim": "The error return value of `r.Header.Write(&hdr)` in Attacker.hit should be checked.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Result.Headers should be a structured type instead of a flat string so headers marshal as stru...
null
tsenart__vegeta__98
tsenart/vegeta
98
defect
d399bb61f695a5f55792f4da655b70845339f709
775e9aabb5ab16bd66081b07982006509572a2a7
Maintain backward compatibility with existing target files
Maintain backward compatibility with standard target files by peeking ahead to the next value after reading a method + URL; if the next line starts with another HTTP method then short-circuit the header/body parsing and remember the peeked value for the next call to create a Target. FWIW, I used `Peek()` as the metaph...
diff --git a/lib/targets.go b/lib/targets.go index 53181e49..8ae41c82 100644 --- a/lib/targets.go +++ b/lib/targets.go @@ -9,6 +9,7 @@ import ( "io/ioutil" "net/http" "net/url" + "regexp" "strings" "sync" "sync/atomic" @@ -88,7 +89,7 @@ func NewEagerTargeter(src io.Reader, body []byte, header http.Header) (...
2
1
0
[{"id": "G0", "claim": "Since the matched string isn't needed, startsWithHttpMethod could use httpMethodChecker.MatchString(t) instead of httpMethodChecker.FindString(t) != \"\".", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing tgt.Header[k] ...
null
tsparticles__tsparticles__2279
tsparticles/tsparticles
2,279
defect
9a1b8e086f2d1e4ef3237fce2622576d8568c9f2
4166b6b10775337c8acf3638943e7330dbe889c9
Add unit test for color utils
Add and fix some unit test for color utils resolve #2272
diff --git a/engine/src/Utils/ColorUtils.ts b/engine/src/Utils/ColorUtils.ts index 1b657d0c9f4..bdcb096b5f5 100644 --- a/engine/src/Utils/ColorUtils.ts +++ b/engine/src/Utils/ColorUtils.ts @@ -14,7 +14,6 @@ import { itemFromArray } from "./Utils"; import { Constants } from "./Constants"; import { mix, randomInRange, ...
1
1
1
[{"id": "G0", "claim": "The removed IParticleValueAnimation import is not a duplicate; removing it breaks the build, so it must be restored.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tsparticles__tsparticles__288
tsparticles/tsparticles
288
defect
9cce594c8510b75034262414e1bb59a6b4898e11
682096658ce6f79eda8c7b24e908138292067861
Fix Image Shape and Position Test
This change adds an image drawer to the container so we will no longer throw `Cannot read property *** of undefined` whenever the image shape is chosen in the test.
diff --git a/tests/Fixture/TestContainer.ts b/tests/Fixture/TestContainer.ts index 17b8da31620..0a3fa45277b 100644 --- a/tests/Fixture/TestContainer.ts +++ b/tests/Fixture/TestContainer.ts @@ -2,6 +2,7 @@ import { tsParticles } from "../../src"; import { Container } from "../../src/Core/Container"; import type { IOpt...
2
2
0
[{"id": "G0", "claim": "The addShapeDrawer test helper should be unnecessary after a recent commit, so it should be removed to let the tests exercise that fix.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not call testContainer.addShape...
null
tsparticles__tsparticles__942
tsparticles/tsparticles
942
defect
e9503d0b72596e28da1e7ffc3a300be1d49bd3bd
e28a624e3ac9e7510d136390841b26fc030cde1b
feat: option to pause the animation while the element is outside the viewport
Added option that will pause the animation while the interactable element is out of the view port. Uses [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) and is based on the issue #931.
diff --git a/core/editor/src/Sections/Options/OptionsEditor.ts b/core/editor/src/Sections/Options/OptionsEditor.ts index 512a6487be7..c33373e8b5e 100644 --- a/core/editor/src/Sections/Options/OptionsEditor.ts +++ b/core/editor/src/Sections/Options/OptionsEditor.ts @@ -50,6 +50,12 @@ export class OptionsEditor extends E...
1
1
1
[{"id": "G0", "claim": "The new pauseOnOutsideViewport option should be disabled by default so that an upgrading user does not find differences in his configuration.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tstack__lnav__1327
tstack/lnav
1,327
defect
98dce1af699e1a54e9cc156858d6a36f5d57461d
5c3af1b9b5dfa6b3a98870d6cf0d7f03774b1d3a
Added %j to time parser/formatter
Added %j as a possibility to the timestamp parser/formater to enable day of year timestamp parsing.
diff --git a/src/base/time_util.cc b/src/base/time_util.cc index 49a7c329e4d..eeca95eadec 100644 --- a/src/base/time_util.cc +++ b/src/base/time_util.cc @@ -238,9 +238,13 @@ tm2sec(const struct tm* t) } /* Find number of days since 1st March 1900 (in the Gregorian calendar). */ - days = year * 365 + ye...
2
2
2
[{"id": "G0", "claim": "The code treats tm_yday as bounded 1 to 366 while tm_yday is documented as 0 to 365.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test suite should be run with `make check` and, if possible, a test for the new %j handli...
null
tstack__lnav__677
tstack/lnav
677
defect
9a05b9d186d0fdd256cde92d0673f8d294027e07
11f83dcf1e60b7d7a53a457bf085cbe7dfae5d2e
Add a gzip indexing class for faster gz navigation
The gzread function is slow. Every time you seek to a new location, the whole file up to that position has to be decompressed again. This causes massive lags when trying to do simple things in lnav on a large .gz file. Use the zlib inflate* functions instead and record the dictionary periodically while processi...
diff --git a/src/line_buffer.cc b/src/line_buffer.cc index 4ece0c5c7da..c8b93dffad6 100644 --- a/src/line_buffer.cc +++ b/src/line_buffer.cc @@ -60,9 +60,9 @@ static const ssize_t MAX_COMPRESSED_BUFFER_SIZE = 32 * 1024 * 1024; /* * XXX REMOVE ME * - * The stock gzipped file code does not use pread, so we need to u...
6
6
0
[{"id": "G0", "claim": "Use -1 (or nonstd::optional<int>) for an uninitialized gz file descriptor instead of 0.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add curly brackets around the single-statement body of init_stream.", "category": "maintainabil...
null
tsuna__gohbase__142
tsuna/gohbase
142
defect
e8dcfdb6a5fba3d756cb0c697f85344ae68cfd54
c5d5fbd91d6b77b04009956075f4d8393f0f1ab1
Fix problems with closing region scanners.
This PR fixes two bugs on closing region scanners: 1. During scanning multiple regions, GoHBase requests a new region scanner on server side when current region is exhausted, without closing the current one on server side. The fix uses the scanner id to close (https://issues.apache.org/jira/browse/HBASE-18000) 2...
diff --git a/hrpc/scan.go b/hrpc/scan.go index e6eb4ad4..ff613566 100644 --- a/hrpc/scan.go +++ b/hrpc/scan.go @@ -149,7 +149,7 @@ func (s *Scan) StartRow() []byte { return s.startRow } -// IsClosing returns wether this scan closes scanner prematurely +// IsClosing returns whether this scan closes scanner prematur...
4
4
1
[{"id": "G0", "claim": "Restore the `defer c.Close()` lines removed from the integration tests, because the tests should close the gohbase client at the end.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `if !s.isRegionScannerClosed()` guard in...
null
tsuna__gohbase__152
tsuna/gohbase
152
defect
79db148505350b249eab7bba4690b8b49bb990f0
0fea8d0f9fce9af1724a76385a5e0f4e8b26aa4f
New Admin APIs
- Add `SetBalancer` to enable/disable balancer - Add `MoveRegion` to move regions
diff --git a/admin_client.go b/admin_client.go index 8e0e4027..19eba18d 100644 --- a/admin_client.go +++ b/admin_client.go @@ -36,6 +36,10 @@ type AdminClient interface { RestoreSnapshot(t *hrpc.Snapshot) error ClusterStatus() (*pb.ClusterStatus, error) ListTableNames(t *hrpc.ListTableNames) ([]*pb.TableName, err...
1
1
1
[{"id": "G0", "claim": "WithDestinationRegionServer must check that len(out) is 3, since strings.SplitN can return fewer than 3 substrings and out[1]/out[2] would then panic or misparse.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuna__gohbase__201
tsuna/gohbase
201
defect
05467af6761c345d6c528d0b21dc9a28d2dac881
2fe544c0366f7f6ec3dba569d3e13a05f8dba111
Gohbase debug state
Motivation: This change adds a new function to the gohbase/client.go to retrieve information about the state of the client so we can debug issues with the client more easily Change: Added a custom marshaller method to RegionInfo, RegionClient, keyRegionCache, and clientRegionCache to retrieve relevant information. T...
diff --git a/caches.go b/caches.go index f4b68ec3..57b2a94a 100644 --- a/caches.go +++ b/caches.go @@ -7,6 +7,7 @@ package gohbase import ( "bytes" + "encoding/json" "io" "sync" @@ -92,6 +93,28 @@ func (rcc *clientRegionCache) clientDown(c hrpc.RegionClient) map[hrpc.RegionInf return downregions } +func...
5
5
0
[{"id": "G0", "claim": "Don't add the json.Marshaler interface to the RegionInfo and RegionClient interfaces; the concrete types only need to implement MarshalJSON, and these interfaces are already too big.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
tsuna__gohbase__235
tsuna/gohbase
235
defect
f750f625b712169785f30ff96b6ab5c17ed1cd6d
a4a5cb5e16893b6ad173fb3fd246c45810e9096e
SendBatch: Retry retryable errors
To match the behavior of SendRPC, SendBatch should retry RPCs that hit retryable errors: region.RetryableError, region.ServerError, and region.NotServingRegionError. SendBatch will now retry each RPC that hits a retryable error. What used to be a single step through of assigning regions to RPCs, grouping them by reg...
diff --git a/rpc.go b/rpc.go index 7eb7fca3..764c55d0 100644 --- a/rpc.go +++ b/rpc.go @@ -180,6 +180,10 @@ var ( // successfully. allOK is true if all calls completed successfully, // and false if any calls failed and the errors in the results need to // be checked. +// +// SendBatch will continue retrying each RPC...
2
1
0
[{"id": "G0", "claim": "The doc comment for waitForCompletion should also document the unretryableError return value it now returns.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether an unretryable error seen in the batch sh...
null
tsuna__gohbase__239
tsuna/gohbase
239
defect
c4dd77b6f84ecd5941b99ef7654c271be65c2f74
c8af25549538cb7bdb7d191f4572bdcef6e4a589
region: Reduce allocations of RequestHeader in send and factor out marshalProto
* Factor out the marshalProto portion of `send`, so it can be better tested and benchmarked. * Add benchmarks for marshalProto * RequestHeaders are created for every request. Put them in a sync.Pool to reduce allocations.
diff --git a/region/client.go b/region/client.go index 4753b4af..3de4364a 100644 --- a/region/client.go +++ b/region/client.go @@ -620,6 +620,21 @@ func (c *client) sendHello() error { return c.write(buf) } +var requestHeaderPool = sync.Pool{ + New: func() any { return &pb.RequestHeader{} }, +} + +func getRequestH...
2
1
0
[{"id": "G0", "claim": "dropRequestHeader should be deferred to the end of send rather than called at line 718, and calling it there could interfere with the panic error message below if that ever happens.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
tsuna__gohbase__249
tsuna/gohbase
249
defect
1676ef7e233d45d80f645efee4b363c9d89e198a
d2d4f4d6f1c44692fae60c8a4796910a0153a986
Expose Dialers inside Zk and Region
Fixes #248 This change allows for overriding the default dialers used by the ZooKeeper client and the Region client to connect to their respective servers. Proxy-aware dialers can be installed by people who need them.
diff --git a/admin_client.go b/admin_client.go index 8dbda26d..5ff1db3e 100644 --- a/admin_client.go +++ b/admin_client.go @@ -67,7 +67,7 @@ func newAdminClient(zkquorum string, options ...Option) AdminClient { for _, option := range options { option(c) } - c.zkClient = zk.NewClient(zkquorum, c.zkTimeout) + c.zk...
1
1
1
[{"id": "G0", "claim": "The ZooKeeperDialer and RegionDialer options should take a func(ctx context.Context, network, addr string) (net.Conn, error) instead of exposing the github.com/go-zookeeper/zk and region Dialer types as part of gohbase's API.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
tsuna__gohbase__250
tsuna/gohbase
250
defect
fa78846cafc9be9d25050f1f514c446d68c62910
ffd8d49a082effc9be4e3541010cd4facd60ae11
cache: added region cache warmup
This change adds an option in gohbase to prepopulate its region cache. It does a single scan of the meta table and cache all regions.
diff --git a/client.go b/client.go index 76132896..56780d76 100644 --- a/client.go +++ b/client.go @@ -391,3 +391,10 @@ func (c *client) CheckAndPut(p *hrpc.Mutate, family string, return r.GetProcessed(), nil } + +// CacheRegions scan the meta region to get all the regions and populate to cache. +// This can be us...
7
6
0
[{"id": "G0", "claim": "The new integration test should call CacheRegions on the client and then somehow verify that all the regions were loaded, rather than only scanning the meta table.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The master-client ...
null
tsuna__gohbase__257
tsuna/gohbase
257
defect
faec3bdfa39925b452453b80877efdd349f005ca
6c7a53be1bdbd903e0193f967284aa77754d09fc
Replace logrus with log/slog for logging
Fixes: #247 We are using log/slog instead of logrus, and replace logrus fatal log level (which doesn't exist in slog) with panic
diff --git a/admin_client.go b/admin_client.go index 5ff1db3e..8922d9d4 100644 --- a/admin_client.go +++ b/admin_client.go @@ -9,9 +9,9 @@ import ( "context" "errors" "fmt" + "log/slog" "time" - log "github.com/sirupsen/logrus" "github.com/tsuna/gohbase/hrpc" "github.com/tsuna/gohbase/pb" "github.com/ts...
5
5
1
[{"id": "G0", "claim": "Restore the //go:build integration build tag that the pull request accidentally removed from integration_test.go.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reflect-based fallback that logs the unknown client type in ...
null
tsuna__gohbase__261
tsuna/gohbase
261
defect
f142bb6ab27bdfb7ecf5b90712aeb8cca6f5271d
1448caeca1d21bfcdc19407fee7aa1e35b61a5de
Fix logging to properly convert byte array to string
Properly convert []byte to string and add Client field in addition to client pointer
diff --git a/region/info.go b/region/info.go index 4000e559..525aaf74 100644 --- a/region/info.go +++ b/region/info.go @@ -358,11 +358,14 @@ func findCommaFromEnd(b []byte, offset int) int { func (i *info) MarshalJSON() ([]byte, error) { - var ctxError string + var ctxError, client string if i.ctx != nil { ...
1
1
1
[{"id": "G0", "claim": "Use strconv.QuoteToASCII instead of fmt.Sprintf(\"%q\", ...) when converting the []byte fields to strings, because it is faster and deals better with unicode for their uses (printing out each byte instead of the unicode character).", "category": "performance", "verdict": "supported", "priority":...
null
tsuna__gohbase__267
tsuna/gohbase
267
defect
731f0bdb6be56dfe0b5a5a79582161bc7fbed32b
3f1747d212b9471b96e37c965380893f231e5647
hrpc, region: Allow setting priority on Scan and Get requests
Provide an option for setting the priority on a Scan or Get request. The priority is set on the RequestHeader, so must be set by the region code when serializing the request.
diff --git a/hrpc/call.go b/hrpc/call.go index a15e6e4c..7847b914 100644 --- a/hrpc/call.go +++ b/hrpc/call.go @@ -101,6 +101,7 @@ type hasQueryOptions interface { setResultOffset(offset uint32) setCacheBlocks(cacheBlocks bool) setConsistency(consistency ConsistencyType) + setPriority(priority uint32) } // RP...
1
1
1
[{"id": "G0", "claim": "Returning a *uint32 from the new Priority() accessor is an odd API; tsuna asks whether it was done to avoid an allocation, and dethi thinks returning a plain uint32 makes more sense.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuna__gohbase__276
tsuna/gohbase
276
defect
71b8b24fff35542cbf00aca1d20a2b242c98e48f
ab4a535977de8071cb255cee4a21f3cbdde4642d
AdminClient: set snapshot table and apply snapshot to new table
Add method to change the table of the hrpc.Snapshot. By setting the snapshot to a new table name that doesn't already exist, the data in the snapshot can be cloned into this new table instead of being restored to the table the snapshot was created from.
diff --git a/admin_client.go b/admin_client.go index 3ff93e02..bc515bfa 100644 --- a/admin_client.go +++ b/admin_client.go @@ -24,7 +24,7 @@ const ( snaphotValidateInterval time.Duration = time.Second / 2 ) -// AdminClient to perform admistrative operations with HMaster +// AdminClient to perform administrative op...
1
1
1
[{"id": "G0", "claim": "The new SetTable method is unnecessary — creating a new snapshot object for the new table with hrpc.NewSnapshot(context.Background(), snapshotName, tableNew) and calling ac.RestoreSnapshot(sn) on it should be enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int...
null
tsuna__gohbase__277
tsuna/gohbase
277
defect
74ec55732666ac67d406775cb4864615e4443c0e
19defb164243c8a7318c6a061cccd242d6166ed3
add renewal for scanner to prevent lease timeout
This change adds an option to Scan (Renew) that allows for renewal of scanners during periods of starvation to prevent lease timeout. Currently, we are renewing every lease timeout / 2 seconds (10s currently).
diff --git a/hrpc/hrpc_test.go b/hrpc/hrpc_test.go index c8934abf..5f5ac1ce 100644 --- a/hrpc/hrpc_test.go +++ b/hrpc/hrpc_test.go @@ -218,38 +218,43 @@ func TestNewScan(t *testing.T) { stopb := []byte("100") scan, err := NewScan(ctx, tableb) if err != nil || !confirmScanAttributes(ctx, scan, tableb, nil, nil, ni...
19
18
4
[{"id": "G0", "claim": "Remove the debug `fmt.Println(\"NEXT CALL DONE\")` statement from the test loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Finish the truncated doc comment on the Renew option (\"...due to\" ends mid-sentence).", "ca...
null
tsuna__gohbase__281
tsuna/gohbase
281
defect
7abcffa6b6a9d52d6366dc4b1049ad3bd50ba7ee
e21effcab24e0baf21cb03a2ec1cf8684f18b6cd
Don't restart scanner renewer on every Next call
Most calls to Next are just reading some buffered results. The scanner renewer only needs to be stopped and started again when we ask for more results from HBase. Also, we shouldn't start a renewer if we know we have already fetched the final results.
diff --git a/integration_test.go b/integration_test.go index b64d5963..1664a267 100644 --- a/integration_test.go +++ b/integration_test.go @@ -2690,7 +2690,8 @@ func TestScannerTimeout(t *testing.T) { "org.apache.hadoop.hbase.UnknownScannerException") { fmt.Println("Error matches: UnknownScannerException") } el...
1
1
1
[{"id": "G0", "claim": "The two if clauses in peek() should be swapped so that the renewer is canceled before the scanner returns EOF on the closed path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuna__gohbase__290
tsuna/gohbase
290
defect
71b8b24fff35542cbf00aca1d20a2b242c98e48f
15c9b46d78c32a2e4844a6433b505e2bea40a82d
Root: Remove Old Build Tags
Old-style build tags no longer needed. They can be removed. Sorry, they were bugging me.
diff --git a/integration_test.go b/integration_test.go index 9d48a9d3..b4ac98bf 100644 --- a/integration_test.go +++ b/integration_test.go @@ -4,7 +4,6 @@ // that can be found in the COPYING file. //go:build integration -// +build integration package gohbase_test diff --git a/table_test.go b/table_test.go inde...
1
1
0
[{"id": "G0", "claim": "There is one more old-style build tag in region/new.go; remove it in this PR as well for completeness.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
tsuna__gohbase__293
tsuna/gohbase
293
defect
be525bde7d77da2efca3a75cd56a716d9b47c731
0aa4eaaec346d328c4c9d0934b689813d8cc1f64
scan: add ScanStatsHandler and ScanStats
Create a new scan option to provide a ScanStatsHandler function that will be called when a scan is completed. The ScanStatsHandler is called with ScanStats as an arg. ScanStats is updated, and the client's ScanStatsHandler is called to use the ScanStats as desired.
diff --git a/hrpc/scan.go b/hrpc/scan.go index d83e1423..80aefd9a 100644 --- a/hrpc/scan.go +++ b/hrpc/scan.go @@ -81,8 +81,27 @@ type Scan struct { renewInterval time.Duration renewalScan bool + + scanStats *ScanStats + scanStatsHandler ScanStatsHandler +} + +type ScanStats struct { + Table []b...
1
1
1
[{"id": "G0", "claim": "ScanStats should be emitted for every SendRPC call (including partial scans) rather than only once when the scanner closes, and ideally also for every failure and retry inside SendRPC.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuna__gohbase__302
tsuna/gohbase
302
defect
4ffcadfba63eb9b86f5d461e57114244070bc347
d3318964f265b495f97c4e50030f3630bb248092
hrpc: CheckAndPutWithCompareType
HBase offers the ability to use more than only `CompareType_EQUAL`. This allows other `CompareType` values to be used.
diff --git a/client.go b/client.go index a259b144..a1276cb0 100644 --- a/client.go +++ b/client.go @@ -42,6 +42,8 @@ type Client interface { Increment(i *hrpc.Mutate) (int64, error) CheckAndPut(p *hrpc.Mutate, family string, qualifier string, expectedValue []byte) (bool, error) + CheckAndPutWithCompareType(p *hr...
4
4
1
[{"id": "G0", "claim": "The newly unused public function NewCheckAndPut should be marked deprecated with a pointer to its replacement instead of being left as-is.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The NewCheckAndPutWithCompareType d...
null
tsuna__gohbase__304
tsuna/gohbase
304
defect
575fbf556c997aec3d787e04a77b2e76bc0cda2b
b0e7fd485f4040196359c39bc313a9e9b1f74c60
region/client: Add per-operation RPC result metrics tracking
Implements detailed metrics tracking for RPC operations with support for both individual and batch (multi) RPCs. Tracks success/failure counts per operation type and region server.
diff --git a/region/client.go b/region/client.go index cd0f035a..dcd3c207 100644 --- a/region/client.go +++ b/region/client.go @@ -436,6 +436,15 @@ func (c *client) trySend(rpc hrpc.Call) (err error) { c.fail(err) } if r := c.unregisterRPC(id); r != nil { + if m, ok := r.(*multi); ok { + for _, call := r...
4
4
0
[{"id": "G0", "claim": "Add error classification to the new per-operation result metric (e.g. a switch on error type, with the exception name/code captured in the error type), which could be a follow-up change if preferred.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
tsuna__gohbase__320
tsuna/gohbase
320
defect
8017166732596e92aba59992cf370ca259c913e5
b16030958fe9834d2b2aad179a6a332cb898f90c
Add ScanStatsHandler to continue scans
This fixes a bug where the ScanStatsHandler doesn't get called on scans that continue within a region.
diff --git a/hrpc/scan.go b/hrpc/scan.go index a3bb6705..7bca039b 100644 --- a/hrpc/scan.go +++ b/hrpc/scan.go @@ -564,9 +564,6 @@ func WithScanStatsHandler(h ScanStatsHandler) func(Call) error { if !ok { return errors.New("'WithScanStatsHandler' option can only be used with Scan queries") } - if h == nil { ...
2
1
1
[{"id": "G0", "claim": "The integration test must be updated as well, because CI fails: TestScanWithStatsHandler/ScanStats_with_scan_over_multiple_regions_for_ScanStatsID expected the handler to be called 4 times but got 5 calls.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"},...
null
tsuna__gohbase__325
tsuna/gohbase
325
defect
ee182e3b7b8aca44f5cf4d5774650cb5404348c7
4352f333108655e0e5d7b3bb8802525ec09f62ad
Scanner scan
Add Scan method and return Region information in ScanResponse. This PR builds on top of #324
diff --git a/hrpc/call.go b/hrpc/call.go index 692554b7..bc798477 100644 --- a/hrpc/call.go +++ b/hrpc/call.go @@ -339,5 +339,3 @@ func cellsV2toCells(v2 []CellV2) []*Cell { return v1 } - -// We can now define any helper functions on Result that we want. diff --git a/hrpc/scan.go b/hrpc/scan.go index 188154d8..0bf...
3
3
0
[{"id": "G0", "claim": "The makeScanRequest doc comment should also mention that when rows is non-zero, the option for how many rows HBase should return is set.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ScannerV2.Scan doc comment should b...
null
tsuna__gohbase__36
tsuna/gohbase
36
defect
f985680d2aecf16d0eaf371e82b1d1c6a657725d
6eea2f7e20b62f8919f938070601dab28bf84af4
Fix effective user for accessing region servers.
@Timoha here is another one of the minor fixes I mentioend.
diff --git a/region/client.go b/region/client.go index 94c05248..a2dfedcf 100644 --- a/region/client.go +++ b/region/client.go @@ -359,7 +359,7 @@ func (c *client) readFully(buf []byte) error { func (c *client) sendHello(ctype ClientType) error { connHeader := &pb.ConnectionHeader{ UserInfo: &pb.UserInformation{ ...
4
4
4
[{"id": "G0", "claim": "Provide an option to specify the effective user when creating a client instead of hardcoding it to 'root' in sendHello.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The admin client was forgotten: admin_client.go also needs to b...
null
tsuna__gohbase__70
tsuna/gohbase
70
defect
3e1c4262cdc7d93f0a46f933e6b12ab8f3de4d4a
dd288830e5a45b4fd00aa4f860f5293fc1606e6f
Implement reverse scanner
HBase offers reverse scanning functionality which can be very useful with time series keys. Initial attempt did not change regions correctly, but after reviewing the java code for this, I think this is handling region changes in a similar way. Included integration tests with the test table pre-split for my test ...
diff --git a/hrpc/scan.go b/hrpc/scan.go index d8f5f7be..efa1e4f3 100644 --- a/hrpc/scan.go +++ b/hrpc/scan.go @@ -70,6 +70,7 @@ type Scan struct { maxResultSize uint64 numberOfRows uint32 + reversed bool closeScanner bool allowPartialResults bool @@ -87,6 +88,7 @@ func baseScan(ctx context.Con...
5
4
2
[{"id": "G0", "claim": "In the reversed-scan branch of fetcher.update, the code modifies the region's StartKey slice instead of copying it first.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Not supporting keys with an embedded 0x0 is a big limita...
null
tsuru__tsuru__1034
tsuru/tsuru
1,034
defect
b2d1d2c26aa9a0808856421d158d25cee4feba42
f5ebc9c9d87a3bada55248b2be5f24b777d28f0b
Add -v global flag for verbosity
Verbosity: 1 => print HTTP requests; 2 => print HTTP requests/responses Fixes #959 E.g.: ``` ❯ tsuru -v 2 app-info -a someapp *************************** <Request uri="/apps/someapp"> ********************************** GET /apps/someapp HTTP/1.1 Host: tsuru.corp.surveymonkey.com:8080 Connection: close Authorization...
diff --git a/cmd/client.go b/cmd/client.go index aeac1bbc69..5dd1ff3d6f 100644 --- a/cmd/client.go +++ b/cmd/client.go @@ -9,6 +9,7 @@ import ( "fmt" "io/ioutil" "net/http" + "net/http/httputil" "net/url" "github.com/tsuru/tsuru/errors" @@ -20,6 +21,7 @@ type Client struct { progname string curren...
2
2
2
[{"id": "G0", "claim": "The verbosity debug output in Client.Do should be written to Context.Stdout instead of being printed with fmt.Printf.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for the pull request's new verbosity behav...
null
tsuru__tsuru__1116
tsuru/tsuru
1,116
defect
4fb2a1a897331434dbc55989c89a573db3dd31d1
de93a42fe5255c5fa240ea60d1e0759a30cca6ac
cmd: improve app-shell error output
Fix #1115.
diff --git a/cmd/shell.go b/cmd/shell.go index 91d0e58e99..07ec2a9c4b 100644 --- a/cmd/shell.go +++ b/cmd/shell.go @@ -5,7 +5,6 @@ package cmd import ( - "errors" "fmt" "io" "net" @@ -15,10 +14,10 @@ import ( "os/signal" "regexp" "strconv" - "strings" "syscall" "golang.org/x/crypto/ssh/terminal" +...
2
2
0
[{"id": "G0", "claim": "Remove the empty line this pull request adds between the signal handling block and the queryString setup in cmd/shell.go.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use fmt.Sprintf instead of string concatenation when building ...
null
tsuru__tsuru__1326
tsuru/tsuru
1,326
defect
74ad87dce9d3e8bf190f6976041577db9e69056e
93df0653db9db3702d71c5f2111fb2a04aafc127
provision.docker: do not add route to container when HostPort is zero
Fixes #1280
diff --git a/provision/docker/actions.go b/provision/docker/actions.go index 69146ab706..9d96f7b493 100644 --- a/provision/docker/actions.go +++ b/provision/docker/actions.go @@ -396,9 +396,11 @@ var addNewRoutes = action.Action{ if c.ProcessName != webProcessName { return nil } - err = r.AddRoute(c.AppN...
2
2
1
[{"id": "G0", "claim": "Remove the empty line inside the new test TestAddNewRouteFowardDoesNotAddWhenHostPortIsZero.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "addNewRoutes should also skip adding a route when the container's HostPort is empty, not on...
null
tsuru__tsuru__1555
tsuru/tsuru
1,555
defect
98749e4e08e95ef17da435aef73e382f08a25685
13c1fb0e3667e97f71d1e924482351d8e9fed57d
image deploy: fix message of no nodes in app pool
fixes #1482
diff --git a/provision/docker/provisioner.go b/provision/docker/provisioner.go index 5dacf13a00..87109300ed 100644 --- a/provision/docker/provisioner.go +++ b/provision/docker/provisioner.go @@ -411,7 +411,7 @@ func (p *dockerProvisioner) ImageDeploy(app provision.App, imageId string, evt * OutputStream: w, ...
1
1
0
[{"id": "G0", "claim": "The CustomHandler for /containers/.*/attach added in TestImageDeployInPoolWithoutNode may not be needed and should be removed unless it is really necessary.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__1597
tsuru/tsuru
1,597
defect
624b214896d1e5490bcd0f4bdc144f0e063ea345
834267a60d6fe47f7463b6db53d8ff7f8a79ed74
app-update platform
fixes #1591 After merge of this and #1590 It'll be needed to do some adaptations on master.
diff --git a/api/app.go b/api/app.go index 693463cbee..6359bfe337 100644 --- a/api/app.go +++ b/api/app.go @@ -394,6 +394,7 @@ func updateApp(w http.ResponseWriter, r *http.Request, t auth.Token) (err error) Description: r.FormValue("description"), Router: r.FormValue("router"), Tags: r.Form["tag"]...
2
2
0
[{"id": "G0", "claim": "The dedicated updatePlatform flag parameter is redundant; it could be set to true whenever the platform param is set.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty-update error message should add \"or platform\" now tha...
null
tsuru__tsuru__1600
tsuru/tsuru
1,600
defect
401fec0d4aebacf9efaae0cdefbf3f464325b2eb
8f44bd740d0ecb4f24b6cbb17fb26e6bd505f605
App create without platform
fixes #1491
diff --git a/api/app.go b/api/app.go index 693463cbee..50c8d95523 100644 --- a/api/app.go +++ b/api/app.go @@ -304,15 +304,17 @@ func createApp(w http.ResponseWriter, r *http.Request, t auth.Token) (err error) if err != nil { return err } - platform, err := app.GetPlatform(a.Platform) - if err != nil { - return...
5
4
3
[{"id": "G0", "claim": "The new error message should drop the word `docker` and downcase `It's` (\"can't deploy app without platform, if It's not a docker image\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The no-platform guard should return...
null
tsuru__tsuru__1659
tsuru/tsuru
1,659
defect
a61fbc4d541b0e11ab7c107ca4fb6849355c9333
92450d8a36ec7359cae876d47d613c18434e4431
provision/docker: uses app environment variables on isolated run
Fixes #1615
diff --git a/provision/docker/containers.go b/provision/docker/containers.go index 5d96f35285..71a8f7de98 100644 --- a/provision/docker/containers.go +++ b/provision/docker/containers.go @@ -308,6 +308,10 @@ func (p *dockerProvisioner) runCommandInContainer(image string, command string, if stderr == nil { stderr =...
1
1
1
[{"id": "G0", "claim": "Use `provision.EnvsForApp()` instead of `app.Envs()` so dynamic vars like TSURU_HOST and PORT are also injected into the isolated container.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuru__tsuru__1660
tsuru/tsuru
1,660
defect
6d0b4fece4cc2876f3fa2b168d6de85a43ddb767
5c8367ebbb4d2c896dcef6d36e74596ad96565ff
autoscale: always enabled and skipping provisioners with error
This PR removes the need to enable the autoscale using the configuration file and only relies on the rules registered for each pool. This also makes sure we skip provisioners with error instead of checking other provisioners nodes. Fixes #1456.
diff --git a/autoscale/autoscale.go b/autoscale/autoscale.go index 903cabb38e..0c40d903b5 100644 --- a/autoscale/autoscale.go +++ b/autoscale/autoscale.go @@ -36,9 +36,9 @@ type Config struct { WaitTimeNewMachine time.Duration RunInterval time.Duration TotalMemoryMetadata string - Enabled boo...
2
1
0
[{"id": "G0", "claim": "The docs where the `docker:auto-scale:enabled` flag is referenced should also be updated, since the pull request removes or repurposes that config flag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Calls to `legacyAutoS...
null
tsuru__tsuru__1668
tsuru/tsuru
1,668
defect
7871150f41833e24f117528b32990647f011dacf
ab74a57dc7005ff1c0c1a1d05c917b331223efac
api: uses header to decide error verbosity
This PR adds a header to control how verbose errors are sent to clients, i.e if they include a stack trace. This header is set using the `--verbosity` flag on our client. Fixes #1647
diff --git a/api/middleware.go b/api/middleware.go index 953839bee4..e5bc5a0bfd 100644 --- a/api/middleware.go +++ b/api/middleware.go @@ -11,6 +11,7 @@ import ( "net/http" "os" "reflect" + "strconv" "time" "github.com/codegangsta/negroni" @@ -20,6 +21,7 @@ import ( "github.com/tsuru/tsuru/api/context" ...
1
1
0
[{"id": "G0", "claim": "The strconv.Atoi conversion error can be safely ignored when parsing the verbosity header, since verbosity will be 0 anyway, making the errConv check redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__2119
tsuru/tsuru
2,119
defect
2569894663c7fd75f7040c048db529e950c8676a
44f517ac0aeb7a97488eefcf967515682fdc550b
Adds tags to Teams
This PR adds support for tagging teams the same way that users can do for apps and service instances. Fixes #2117.
diff --git a/api/auth.go b/api/auth.go index 0ee1cc1b62..63019368ce 100644 --- a/api/auth.go +++ b/api/auth.go @@ -251,30 +251,30 @@ var teamRenameFns = []func(oldName, newName string) error{ // 400: Invalid data // 401: Unauthorized // 404: Team not found -func updateTeam(w http.ResponseWriter, r *http.Reques...
1
1
0
[{"id": "G0", "claim": "The Create and Update methods should trim spaces from and remove duplicated tags before storing them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__2154
tsuru/tsuru
2,154
defect
e7aa0ca462af77c3bca08003b8877e7f75554a99
86e457660015fb96e77a8b80012813cda45464f7
provision/kubernetes: add clusterForPoolOrAny
fix #2153
diff --git a/storage/mongodb/cluster.go b/storage/mongodb/cluster.go index 5d59bd14c6..c4fd9b9370 100644 --- a/storage/mongodb/cluster.go +++ b/storage/mongodb/cluster.go @@ -96,7 +96,7 @@ func (s *clusterStorage) FindByPool(provisioner, pool string) (*provision.Cluste err = coll.Find(bson.M{"provisioner": provision...
1
1
1
[{"id": "G0", "claim": "Modifying FindByPool to fall back to any cluster of the provisioner may allow apps handled by existing provisioners to use the wrong cluster; a new method (e.g. FindAny) should be added to the service instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
tsuru__tsuru__2228
tsuru/tsuru
2,228
defect
81688fbb53fad7f0b92d2a9ef00e3fdf273be3f6
8bb68bb804861668d41c02b6b95a31ec4e81c054
api/server: prevent to offer invalid TLS certificates
This change adds a new flag option on Tsuru API configuration file to prevent it offers invalids certificates to its clients. In worst case, the web server is gracefully shutdown to avoid other problems. I can think a couple of problems that can occur when the certificates served by Tsuru API to expire. For insta...
diff --git a/api/server.go b/api/server.go index 3a1ad94c4d..ca8c1f95f3 100644 --- a/api/server.go +++ b/api/server.go @@ -11,6 +11,7 @@ import ( "fmt" stdLog "log" "net/http" + "net/url" "os" "os/signal" "sync" @@ -549,13 +550,13 @@ func startServer(handler http.Handler) error { return err } shutdow...
5
5
1
[{"id": "G0", "claim": "The certificate-valid message logged after validation should use a regular print rather than debug level.", "category": "logging", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the tls:validate-certificate doc, the sentence 'during server execution (...
null
tsuru__tsuru__2286
tsuru/tsuru
2,286
defect
9451de55df02f8ac89a9e57d0f16a5e8806759d4
c339737642277f1c930eb4f9645aa83e044618ac
Add custom headers support for healthcheck on tsuru.yaml
Add custom http headers support for tsuru healthcheck on tsuru.yaml Closes #1693
diff --git a/provision/docker/healthcheck.go b/provision/docker/healthcheck.go index 3b2e6f5fee..5619413709 100644 --- a/provision/docker/healthcheck.go +++ b/provision/docker/healthcheck.go @@ -35,6 +35,7 @@ func runHealthcheck(cont *container.Container, w io.Writer) error { match := yamlData.Healthcheck.Match sta...
1
1
1
[{"id": "G0", "claim": "Header names and values interpolated into the curl probe command should be escaped, to avoid command injection; the reviewer proposed using fmt.Sprintf(\"-H %q\", s) instead of -H '%s: %s'.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tsuru__tsuru__2294
tsuru/tsuru
2,294
defect
cec6cdddf342d0b1e630d6ffa648d860a42f196a
9059fa308a53e9c7981d33ebbbb344d5dd4df3f4
builder/docker: lookup tsuru.yaml file from same paths as Procfile
Fixes #2133
diff --git a/builder/docker/builder.go b/builder/docker/builder.go index 6cdc7c22e9..d46b71146f 100644 --- a/builder/docker/builder.go +++ b/builder/docker/builder.go @@ -9,6 +9,7 @@ import ( "fmt" "io" "io/ioutil" + "path/filepath" "strings" "sync" @@ -31,11 +32,20 @@ var _ builder.Builder = &dockerBuilder...
1
1
0
[{"id": "G0", "claim": "The generateCatCommand signature can be simplified to a single []string parameter list, as in func generateCatCommand(names, dirs []string) string.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tsuru__tsuru__2411
tsuru/tsuru
2,411
defect
b35f9e8d538ff20582b27fc1af5b52e5f30af2ac
03a21c146c9994ef0bc3eb2d4b5ea016875c9d5e
provision/kubernetes: add option to use entire cluster as a single pool
This PR adds a new `single-pool` option to cluster that allows using the entire cluster as a single Tsuru pool
diff --git a/provision/kubernetes/cluster.go b/provision/kubernetes/cluster.go index baaafab774..cb6cd5533f 100644 --- a/provision/kubernetes/cluster.go +++ b/provision/kubernetes/cluster.go @@ -41,6 +41,7 @@ const ( disableHeadlessKey = "disable-headless" maxSurgeKey = "max-surge" maxUnavailableKe...
3
2
2
[{"id": "G0", "claim": "The bare `return err` after client.SinglePool() in deployNodeContainerForCluster should wrap the error with errors.WithMessage like the neighbouring call sites do.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On a singl...
null
tsuru__tsuru__2456
tsuru/tsuru
2,456
defect
303901eb4fc26793fc945730be54154fde87d0eb
e175cd845b01b2d98286bbc87aed4dc9d0ab04ad
Add new fields to help troubleshoot of pods
Tsuru will expose new fields of pods: - Pod restart count - Pod ready state - Pod CreationTimestamp
diff --git a/app/app.go b/app/app.go index 9015ae0c2c..cae3d1e78d 100644 --- a/app/app.go +++ b/app/app.go @@ -209,6 +209,7 @@ func (app *App) Units() ([]provision.Unit, error) { // MarshalJSON marshals the app in json format. func (app *App) MarshalJSON() ([]byte, error) { + var errMsgs []string repo, _ := repos...
1
1
0
[{"id": "G0", "claim": "The early `return nil, err` in the getProvisioner error branch of MarshalJSON makes the preceding errMsgs append do nothing; the reviewer thinks it is safe to remove this return.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__2465
tsuru/tsuru
2,465
defect
4f38f71d5bd4ad0e841686c18425d7e6bb37931e
32d1ba660021adfbcdb861037a565e6374595221
Add labels to pools
feat: add nodeAffinity according to pool label to pods when deploying in kubernetes feat: use pool nodeSelector if cluster does not specify a node selector change: don't use any nodeSelector if one is not found in cluster or pool
diff --git a/provision/kubernetes/cluster.go b/provision/kubernetes/cluster.go index 4cde9aed0f..0273966eb5 100644 --- a/provision/kubernetes/cluster.go +++ b/provision/kubernetes/cluster.go @@ -35,20 +35,22 @@ import ( ) const ( - namespaceClusterKey = "namespace" - tokenClusterKey = "token" - userCluste...
2
2
0
[{"id": "G0", "claim": "Add tests covering pool.GetNodeSelector and pool.GetAffinity.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add labels coverage to the AddPool tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i...
null
tsuru__tsuru__2497
tsuru/tsuru
2,497
defect
5599938ce8414261193365b1110369a08ef55c16
dadeee2220fb252bb705e3429946c2b51c90bac5
Set default plan based on pool constraints
Use first match plan as default when plan pool constraint is set
diff --git a/api/app_test.go b/api/app_test.go index 83d0b6ce5d..4585bbc620 100644 --- a/api/app_test.go +++ b/api/app_test.go @@ -1040,19 +1040,12 @@ func (s *S) TestCreateAppAdminSingleTeam(c *check.C) { func (s *S) TestCreateAppCustomPlan(c *check.C) { s.setupMockForCreateApp(c, "zend") a := app.App{Name: "some...
1
1
0
[{"id": "G0", "claim": "Pool.GetDefaultPlan should use Plan.FindByName instead of listing all plans via Plan.List and matching the first constraint value against each plan.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__2502
tsuru/tsuru
2,502
defect
60f90f66c7b19f6ac054323fbd9fca6e07362883
afed2b3d6b95821e3bdd692039fc606b4c038d4b
Fix app shell isolated
This PR makes the app shell isolated container declare it's resource requirements beforehand. The resource requirements are based from the app plan.
diff --git a/provision/kubernetes/helpers.go b/provision/kubernetes/helpers.go index e8f7ae6b85..bc8b5ce6db 100644 --- a/provision/kubernetes/helpers.go +++ b/provision/kubernetes/helpers.go @@ -1054,6 +1054,7 @@ type runSinglePodArgs struct { envs []apiv1.EnvVar name string image string + ...
1
1
0
[{"id": "G0", "claim": "The inline resource-list block in runIsolatedCmdPod should be extracted into a helper function placed in helpers.go that reuses the resource-list creation logic from the deploy stages, so both places share the same code.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
tsuru__tsuru__2525
tsuru/tsuru
2,525
defect
a115001179d11ebeba1f02d0d26bce3528b7b63c
e2165c9722dce3173f10e71cafba4a8a6d3efd1d
feat(provision/kubernetes): support PDB for each Tsuru process
This PR adds support to set pod disruption budget ([reference](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)) when using an app within a Kubernetes pool. As described below, it provides several ways to set the minimal available of Tsuru process - last items has higher precedence over the first one...
diff --git a/provision/kubernetes/cluster.go b/provision/kubernetes/cluster.go index e7eb916be0..ae7d378234 100644 --- a/provision/kubernetes/cluster.go +++ b/provision/kubernetes/cluster.go @@ -70,6 +70,7 @@ const ( sidecarRegistryKey = "sidecar-registry" buildServiceAccountKey = "build-service-a...
1
1
0
[{"id": "G0", "claim": "The cleanup log message should spell out the full resource name \"PodDisruptionBudget\" instead of the abbreviation \"PDB\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tsuru__tsuru__2565
tsuru/tsuru
2,565
defect
4a61c07f80e3a0617bb40537b4ce49a5b433d29d
182dfce5d4ba7fc629f12c486e2785d883c7e250
feat(auth/token): support creating app from team token
This PR allows creating an app from a team token as required for apps managed by external tools like Terraform.
diff --git a/app/actions.go b/app/actions.go index 730b4891c0..a4cc964cec 100644 --- a/app/actions.go +++ b/app/actions.go @@ -55,18 +55,26 @@ var reserveUserApp = action.Action{ default: return nil, errors.New("Third parameter must be auth.User or *auth.User.") } - usr, err := auth.GetUserByEmail(user.Email...
2
1
1
[{"id": "G0", "claim": "IsEmailFromTeamToken may be reached with a url-encoded email (e.g. example%40token.tsuru.invalid), which the plain suffix check would return false for although it should return true.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
tsuru__tsuru__2598
tsuru/tsuru
2,598
defect
3e2455bd4d19b13acbcea25c3aedca1317574384
9d0012c0dbe5c01d0785b02acc9736147763f2ec
feat(build/k8s): support deploy with Dockerfile
As of https://github.com/tsuru/deploy-agent/commit/701d1f514f7a08da5f5be87f6c54df98d095a099, Deploy Agent v2 supports deploy w/ Dockerfile. Following that changes, this PR implements the support deploy w/ Dockerfile from Tsuru API as wel.
diff --git a/api/build.go b/api/build.go index a895036441..6c436046fd 100644 --- a/api/build.go +++ b/api/build.go @@ -5,14 +5,13 @@ package api import ( + "errors" "fmt" - "io" "mime/multipart" "net/http" "strings" "time" - "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "g...
2
1
1
[{"id": "G0", "claim": "The two identical Dockerfile cases added to TestPermSchemeForDeploy look like a duplicate by mistake — one of them should not set the File field.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It may make sense to notify about th...
null
tsuru__tsuru__2619
tsuru/tsuru
2,619
defect
8f1a32632799e247034a2a58cba2fe61df0bfab2
43bc7e717d5929ee3073a681c655b41291f3c34e
provision/kubernetes: add topologySpreadConstraint support
Add new cluster option "topology-spread-constraints" to specify topology constraints
diff --git a/provision/kubernetes/cluster.go b/provision/kubernetes/cluster.go index f6aeccfb31..cc942dc478 100644 --- a/provision/kubernetes/cluster.go +++ b/provision/kubernetes/cluster.go @@ -87,6 +87,7 @@ const ( buildServiceTLSKey = "build-service-tls" buildServiceTLSSkipVerify = "build-service-...
4
4
1
[{"id": "G0", "claim": "The empty-string check in TopologySpreadConstraints is redundant and the method should simply return c.configForContext(pool, topologySpreadConstraintsKey).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JSON should be decoded...
null
tsuru__tsuru__2727
tsuru/tsuru
2,727
defect
d4ad763bcb6506d0633495d0676180fdd0665f6e
37a6e543e9b426e41b513620a958d9e5087b8eb0
fix: preserve main collection when running make test
There is also a fix for a **oidc_test** where a new user is inserted in the main collection as well.
diff --git a/Makefile b/Makefile index 93f390cf87..f0ef8231e7 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ ifeq ($(HOST_PLATFORM),Darwin) # NOTE: Only tested on Apple M series Macs. local.cluster: @$(LOCAL_DEV) setup-loopback $(TSURU_HOST_IP) - @if [ ! $(minikube status &>/dev/null) ]; then \ + @if ! mi...
1
1
1
[{"id": "G0", "claim": "Please call `storagev2.Reset()` in the oidc test suite setup to ensure the old singleton database client is destructed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tsuru__tsuru__2741
tsuru/tsuru
2,741
defect
32701d23c7315938d593b5696d3cbcaedab1cc65
d853f2e4c66c9cd9171146480c0482f07db01f19
Feat - Multiple App Healthchecks
The ideia is to introduce a new format to tsuru.yaml. It might deprecate Procfile usage. ```yaml processes: - name: web command: python app.py healthcheck: path: / scheme: http - name: web-secondary command: python app2.py healthcheck: path: / scheme: http ```
diff --git a/app/version/customdata.go b/app/version/customdata.go index 95555f695e..04dcc35343 100644 --- a/app/version/customdata.go +++ b/app/version/customdata.go @@ -14,14 +14,13 @@ import ( provTypes "github.com/tsuru/tsuru/types/provision" ) -var ( - procfileRegex = regexp.MustCompile(`^([A-Za-z0-9_-]+):\s*...
1
1
1
[{"id": "G0", "claim": "When the user defines the usual global healthcheck block outside the new 'processes' structure, the code silently ignores it — it should return an error or at least send a warning informing it will be ignored.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
tsuru__tsuru__2752
tsuru/tsuru
2,752
defect
8328c92948f7dc63b403cf9096251810d0472881
25481f006183d9dccb8aeb5024c5ed8303fd70a4
Fix/process command fallback to image
This PR aims to fix an issue where the new `tsuru.yaml` directive `processes` is used, but the `command` of the web process is not defined or is defined as an empty string (`""`). In those cases, we fallback to use the image command either from `entrypoint` or `cmd`.
diff --git a/builder/kubernetes/build.go b/builder/kubernetes/build.go index 155c726139..5a4485b9cb 100644 --- a/builder/kubernetes/build.go +++ b/builder/kubernetes/build.go @@ -383,13 +383,13 @@ func (b *kubernetesBuilder) buildContainerImage(ctx context.Context, app *apptyp } // Default to web process name a...
1
1
0
[{"id": "G0", "claim": "The default-to-image-commands condition `shouldDefaultToImageCommands` may need an else statement to cover more cases, and could instead be simplified to `len(finalProcesses) == 0`, meaning neither the Procfile nor tsuru.yaml defines any command.", "category": "design", "verdict": "supported", "...
null
tsuru__tsuru__951
tsuru/tsuru
951
defect
bc7db598250681e1eab89eb2685d5178d9de0b98
500377496def7c2cc358054d302586d59b274e17
Bind unbind mismatch fix#794
Closes #794
diff --git a/.gitignore b/.gitignore index 3f57797a7e..3fef685122 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ cmd/tsr/tsr docs/_build Godeps/_workspace Godeps/Readme +*.sw[a-z] diff --git a/api/app_test.go b/api/app_test.go index 839b74154b..5f19483267 100644 --- a/api/app_test.go +++ b/api/app_test.go ...
2
2
0
[{"id": "G0", "claim": "Remove the stray fmt.Println(r.URL.Path) debug line from the TestUnbindHandler test server, since it should not be there.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Drop the *.sw[a-z] pattern from .gitignore, keeping th...
null
tuannvm__codex-mcp-server__110
tuannvm/codex-mcp-server
110
defect
448fa3c7ee196dc5e54d296ed1e6178255c0f89c
976739b29574e53677928b94c64136865491464f
feat(model): update default model to codex 5.3
## Summary <!-- What does this PR do? --> ## Changes - ## Testing - [ ] Tests pass locally - [ ] New tests added (if applicable) ## Related Issues <!-- Fixes #123 --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Default mode...
diff --git a/docs/TODO.md b/docs/TODO.md new file mode 100644 index 0000000..023acd5 --- /dev/null +++ b/docs/TODO.md @@ -0,0 +1,90 @@ +# Codex MCP Server - TODO + +## Features from Codex CLI v0.98.0 + +These features were introduced/stabilized in Codex CLI v0.98.0 but are not yet implemented in this MCP server. + +###...
6
1
1
[{"id": "G0", "claim": "src/tools/handlers.ts has a Prettier style issue reported by CI; run prettier --write on the file to unblock CI.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "CODEX_DEFAULT_MODEL is not deleted in the beforeEach of default-model.t...
null
tuannvm__codex-mcp-server__117
tuannvm/codex-mcp-server
117
defect
688df69e0d8feedc700df2d87f19026ae17c6575
4bdf8fbdbb8cbbd3f9fb58576e0f0a78dd46dcb2
feat(tools): add websearch tool with streaming progress and docs
## Summary <!-- What does this PR do? --> ## Changes - ## Testing - [ ] Tests pass locally - [ ] New tests added (if applicable) ## Related Issues <!-- Fixes #123 --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added web se...
diff --git a/README.md b/README.md index 7976fd4..7298c6f 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Use review to check my uncommitted changes |------|-------------| | `codex` | AI coding assistant with session support, model selection, and structured output metadata | | `review` | AI-powered code rev...
3
3
3
[{"id": "G0", "claim": "The WEBSEARCH tool definition publishes numResults as type 'number' while WebSearchToolSchema in src/types.ts enforces .int(), so a schema-valid MCP request with a fractional value passes the public schema but fails later during handler validation.", "category": "correctness", "verdict": "suppor...
null
tuannvm__codex-mcp-server__138
tuannvm/codex-mcp-server
138
defect
00b6bf6695e841dec96fa65f56d7cb1ba9d80d1e
daf2f7f2c6db452f4b347e7f8e02046cf31f2112
fix: set spawn cwd for workingDirectory to work around codex -C bug
## Summary - Add `cwd` to Node's `spawn()` options when `workingDirectory` is provided, so the child Codex CLI process starts in the correct directory - Works around [openai/codex#9084](https://github.com/openai/codex/issues/9084) where the `-C` flag is ignored by `codex review` - Keep `-C` in CLI args for forward com...
diff --git a/src/__tests__/default-model.test.ts b/src/__tests__/default-model.test.ts index 82107c8..4329e5f 100644 --- a/src/__tests__/default-model.test.ts +++ b/src/__tests__/default-model.test.ts @@ -43,13 +43,17 @@ describe('Default Model Configuration', () => { test('should use gpt-5.3-codex as default model ...
2
1
1
[{"id": "G0", "claim": "cmdOptions unconditionally sets cwd: resolvedWorkDir, so resume runs still get the working directory via spawn options even though the resume branch deliberately skips -C; guard cwd the same way as sandbox/fullAuto and add a regression test for resume with workingDirectory.", "category": "correc...
null
tuannvm__codex-mcp-server__2
tuannvm/codex-mcp-server
2
defect
e7e61a0a8b29e552a0ad59a7bb84936700e0a816
80549d632cf13f7b6159d90852228bf057778888
feat(workflows): add CodeQL analysis and enhance npm publish
- **Summary:** - Introduces a Codex MCP server implementation with tool definitions (codex, ping, help), a registry of tool handlers, and transport-enabled server startup. - Adds shared types, error handling, and a robust command execution utility to run external commands (e.g., Codex CLI). - Sets up server-...
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c5b1a8..a6a2504 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: - name: Publish to npm if: steps.tag.outputs.new_tag != '' - run: npm publish --access publi...
4
4
2
[{"id": "G0", "claim": "Interpolating the untrusted prompt into a shell command string that executeCommand runs via exec is a command-injection and quoting risk; switch to execFile with an args array (no shell).", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
tuannvm__codex-mcp-server__61
tuannvm/codex-mcp-server
61
defect
cc5c5f2edb1d3460f883355f3b4123a887f0a563
9bd9b19a4ade32b2bdcb61b90cfa7f1b7a66ce19
Fix compatibility with codex CLI v0.50.0
## Summary This PR fixes compatibility issues with codex CLI v0.50.0. ## Changes Made ### 1. Removed `--reasoning-effort` flag - This flag was removed from codex CLI in v0.50.0 - Updated `src/tools/handlers.ts` to remove the flag and related metadata ### 2. Added `--skip-git-repo-check` flag - Required in codex CLI ...
diff --git a/src/tools/handlers.ts b/src/tools/handlers.ts index 908709e..5a7f0e1 100644 --- a/src/tools/handlers.ts +++ b/src/tools/handlers.ts @@ -65,12 +65,13 @@ export class CodexToolHandler { ? ['resume', codexConversationId] : ['exec']; - // Add model and reasoning effort parameters (...
14
6
6
[{"id": "G0", "claim": "The README should state the new v0.50.0+ minimum codex CLI version and document the backward-compatibility breaking change (or add version detection).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reasoningEffort param...
null
tuannvm__codex-mcp-server__70
tuannvm/codex-mcp-server
70
defect
3a058b03143a44f07ae3b8092de42e4e2bc3779b
b8f54b31db21d332163a5a91623080c2bd9c7c0d
Update default model to gpt-5.1-codex
## Summary - Update default model from gpt-5-codex to gpt-5.1-codex to align with latest OpenAI Codex releases (Nov 2025) - Add support for CODEX_DEFAULT_MODEL environment variable for flexible model configuration - Update model options documentation to include gpt-5.1-codex ## Changes - `src/tools/definitions.ts`: ...
diff --git a/src/tools/definitions.ts b/src/tools/definitions.ts index 86dfbdd..b411237 100644 --- a/src/tools/definitions.ts +++ b/src/tools/definitions.ts @@ -23,12 +23,12 @@ export const toolDefinitions: ToolDefinition[] = [ model: { type: 'string', description: - 'Specify w...
1
1
1
[{"id": "G0", "claim": "src/tools/handlers.ts line 64 hardcodes the fallback model identifier 'gpt5.1' while the PR title, description and definitions.ts all specify 'gpt-5.1-codex'; the invalid identifier will cause failures when the fallback is used, so line 64 should use 'gpt-5.1-codex'.", "category": "correctness",...
null
tuannvm__codex-mcp-server__85
tuannvm/codex-mcp-server
85
defect
18cf75d8ef4c7ce7ff48c5da48a3a0f20c60b400
623b2864e7f7b369347d26805230f32af92a47a0
Feat/codex cli 0.75
# Explanation This PR updates the Codex MCP Server to fully support OpenAI Codex CLI v0.75.0. Key changes include: * New review tool: Adds code review functionality via `codex exec review` with support for `--uncommitted`, `--base`, `--commit`, and `--title` flags * New codex tool parameters: Added `sandbox` (re...
diff --git a/README.md b/README.md index 35e30a5..38d401c 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,26 @@ [![npm downloads](https://img.shields.io/npm/dm/codex-mcp-server.svg)](https://www.npmjs.com/package/codex-mcp-server) [![license](https://img.shields.io/npm/l/codex-mcp-server.svg)](https://www.npmjs.co...
9
6
4
[{"id": "G0", "claim": "The resume branch of the codex tool never adds --skip-git-repo-check, so codex exec resume fails in sandboxes or other untrusted directories; add the flag as in the exec path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
tuannvm__codex-mcp-server__94
tuannvm/codex-mcp-server
94
defect
7aba98aa1179e68d09c4e935f67a21c8a3339c2c
1c51ca401b822971754a78505dd88217698bdfa3
fix(session): ensure sessions are created when sessionId is used
## Summary - create an in-memory session when a sessionId is supplied but no session exists yet - ensure turns and native Codex conversation IDs can be stored and resumed - document that sessionId triggers session creation and listSessions visibility ## Why Passing a sessionId currently does not create a session. That...
diff --git a/README.md b/README.md index c36ceb4..5add331 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ Use codex to analyze this authentication logic for security issues Use codex with sessionId "refactor" to analyze this module Use codex with sessionId "refactor" to implement your suggestions ``` +Passi...
6
5
1
[{"id": "G0", "claim": "The added sentence \"no session is created and listSessions remains empty\" can be read as a global claim that listSessions will always be empty when no sessionId is supplied, even if other sessions exist; reword it to say only that this request does not create a session.", "category": "document...
null
tuannvm__codex-mcp-server__95
tuannvm/codex-mcp-server
95
defect
5f1b4f6e1b3b5ab8e5574cdb9c8d07ebca20f8bb
010b9c562e5380e359bf88b68e067165b7a1c7d3
feat(codex): forward callbackUri env and surface threadId in meta
## Summary <!-- What does this PR do? --> ## Changes - ## Testing - [ ] Tests pass locally - [ ] New tests added (if applicable) ## Related Issues <!-- Fixes #123 --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added guida...
diff --git a/README.md b/README.md index 74db422..0e90c21 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ Use review with uncommitted true to review my local changes ``` Use codex with model "o3" and reasoningEffort "high" for complex analysis Use codex with fullAuto true and sandbox "workspace-write" for a...
6
3
1
[{"id": "G0", "claim": "Fix the ESLint error 'NodeJS' is not defined on the new `NodeJS.ProcessEnv` annotations, which is failing the CI build; use `typeof process.env` instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding URL form...
null
tuax__tua-body-scroll-lock__25
tuax/tua-body-scroll-lock
25
defect
bc99727abc1a056eaceb5e11e75ede0f3bdc7bb8
225a207285658c3e11b4e7a8ebaf88802e0ea61c
refactor: ts refactor
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> **Summary** **What kind of change does this PR introduce?** (check at least one) - [ ] Bug fix - [ ] Feature - [ ] Code style update - [x] Refactor - [ ] Docs - [ ] Build-related c...
diff --git a/.eslintrc.js b/.eslintrc.js index 4b2744b..e027c96 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,9 +1,37 @@ module.exports = { - extends: 'standard', - parser: 'babel-eslint', + root: true, + parserOptions: { + parser: '@typescript-eslint/parser', + sourceType: 'module', + ...
4
4
3
[{"id": "G0", "claim": "The package.json `typings` field should point to `dist/index.d.ts` instead of `src/index.d.ts`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unlock logic became inconsistent with the original: the `index !== -1` check w...
null
tucnak__telebot__279
tucnak/telebot
279
defect
860ac059a84ec5e1e9ddd4bc2bfdb5654664745e
519fc86afae3c9f0e164d136f3650d081d50214d
bot: expose ProcessUpdate and add Synchronous mode to support AWS Lambda
(Please review individual commits. The last one that adds offline testing mode is incidental.) AWS Lambda is well suited for running a Telegram bot. (See [Go examples](https://docs.aws.amazon.com/lambda/latest/dg/golang-handler.html).) To use it I need to make a function that handles one Telegram update and returns....
diff --git a/bot.go b/bot.go index 878a0d46..4a8dc379 100644 --- a/bot.go +++ b/bot.go @@ -35,18 +35,23 @@ func NewBot(pref Settings) (*Bot, error) { Updates: make(chan Update, pref.Updates), Poller: pref.Poller, - handlers: make(map[string]interface{}), - stop: make(chan struct{}), - reporter: pref.Rep...
4
2
1
[{"id": "G0", "claim": "deferDebug should be deferred unconditionally around handler calls: as the code stood without this PR it was deferred only when b.reporter is nil, so with a Reporter set no one handles panics in handlers even though Settings.Reporter is documented to be called on panic.", "category": "correctnes...
null
tucnak__telebot__452
tucnak/telebot
452
defect
9a08d98f4ee7e5e5ee2950bd0ce8dd7cc8fdacc3
dbe29aa9b4e0cf30a522e9db04aba7d1b44f93da
Implement missing parameters of commands-related methods
Implement the missing two optional parameters (`scope` and `language_code`) of methods `getMyCommands`, `setMyCommands` and `deleteMyCommands` according to the official document: https://core.telegram.org/bots/api#setmycommands.
diff --git a/bot.go b/bot.go index 517aed15..b87ef973 100644 --- a/bot.go +++ b/bot.go @@ -1500,9 +1500,10 @@ func (b *Bot) ChatMemberOf(chat, user Recipient) (*ChatMember, error) { return resp.Result, nil } -// Commands returns the current list of the bot's commands. -func (b *Bot) Commands() ([]Command, error) {...
5
5
0
[{"id": "G0", "claim": "Remove the `Bot` prefix from the constants and all command-related types (BotCommandParams, BotCommandScope, etc.).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the `// BotCommandScope types` comment above the `con...
null
tucnak__telebot__661
tucnak/telebot
661
defect
9c4cc7713e1c842cd2d69ebdfc758d84cb88475b
3b3b4b33b970ce439a04ab8ef24b542b76f18366
media: implement SetCaption in Album
Closes #631 Also #629
diff --git a/media.go b/media.go index d161aa58..2428d087 100644 --- a/media.go +++ b/media.go @@ -45,6 +45,24 @@ type Inputtable interface { // Album lets you group multiple media into a single message. type Album []Inputtable +func (a Album) SetCaption(caption string) { + if len(a) < 1 { + return + } + switch a[...
1
1
0
[{"id": "G0", "claim": "The five repeated TestAlbumSetCaption blocks could be unified into a table-driven test iterating over named media cases with subtests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tue-bmd__zea__118
tue-bmd/zea
118
defect
1cd669f8aa116a23612af996911945e28171e217
62d3bf321a1235fc803d546203bf74ef96fff178
Fix pipeline timing, rename fnum & angles and posterior_sampling more generic
1. Tests and fixes`pipeline.append` etc... 2. `fnum` -> `f_number` & `angles` -> `polar_angles` 4. make `Parameters` attributes immutable (because they need to be updated through `__setattr__`) 5. If you subclass a zea model (i.e. `MyCustomDiffusionModel(zea.models.DiffusionModel)`) you can still load weights that w...
diff --git a/tests/test_ops_infra.py b/tests/test_ops_infra.py index 223a301bb..7a38c961a 100644 --- a/tests/test_ops_infra.py +++ b/tests/test_ops_infra.py @@ -231,6 +231,19 @@ def patched_pipeline(): return pipeline +def test_pipeline_modification(): + """Tests if modifying the pipeline updates callable l...
17
8
2
[{"id": "G0", "claim": "The tof_correction docstring describes probe_geometry as shape (num_samples, 3), but it is actually (n_el, 3); fix the documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making cls a required positional parameter...
null