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
wxt-dev__wxt__2242
wxt-dev/wxt
2,242
defect
20d5e3310add45cf26e7bd2ca5b40fe34e962a00
3b5edb5f5962d1d17c8c4c26bb3920e37c48820a
feat: auto-discover Firefox `theme_icons` from public assets
## Summary When building for Firefox, WXT now auto-discovers paired `-light`/`-dark` icons in the public assets and attaches them to the extension action's [`theme_icons`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/action#theme_icons) field, parallel to how regular icons are a...
diff --git a/docs/guide/essentials/config/manifest.md b/docs/guide/essentials/config/manifest.md index 6af5f93e16..0870752738 100644 --- a/docs/guide/essentials/config/manifest.md +++ b/docs/guide/essentials/config/manifest.md @@ -159,6 +159,26 @@ export default defineConfig({ Alternatively, you can use [`@wxt-dev/a...
9
8
3
[{"id": "G0", "claim": "The comment block above the firefox theme-icons call in manifest.ts duplicates the function's JSDoc and adds little value, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When two different naming ...
null
wxt-dev__wxt__564
wxt-dev/wxt
564
defect
08f32aa685840d0ad33e8e7e66942d9dafb9add8
a74877cc1be4c563ef5fa27a1c00c9e3f317417a
feat(analysis): Open `stats.html` file automatically
This closes #561. Either set `analysis.open` in `wxt.config.ts` or run `wxt build --analyze --analyze-open`. ### Todo - [x] Don't open browser in CI
diff --git a/e2e/tests/analysis.test.ts b/e2e/tests/analysis.test.ts index ef4f921a1..9770fe2d6 100644 --- a/e2e/tests/analysis.test.ts +++ b/e2e/tests/analysis.test.ts @@ -1,6 +1,14 @@ -import { describe, it, expect, beforeEach } from 'vitest'; +import { describe, it, expect, beforeEach, vi } from 'vitest'; import { ...
1
1
1
[{"id": "G0", "claim": "`analysis.open` set in the config file should be respected when `--analyzeOpen` is not passed, but the CLI passes `open: flags.analyzeOpen` (`undefined`), which overrides the config value so `open: true` never takes effect.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
wxt-dev__wxt__624
wxt-dev/wxt
624
defect
e47519fb765afb9d0f53aab006b708771ba92faf
d5fe4248e2f2cfbbf5c9fa19f4541ed94a65ed6b
feat: Support returning values from scripts executed with the scripting API
This closes #622. Adds support for returning values from both content scripts (likely with `registration: 'runtime'`, but not necessarily) and unlisted scripts. Just return a value from the script's main function and the background will get the value, even if it's an async function. ```ts // Sync function's w...
diff --git a/e2e/tests/output-structure.test.ts b/e2e/tests/output-structure.test.ts index 1b060ab6f..bf3e10685 100644 --- a/e2e/tests/output-structure.test.ts +++ b/e2e/tests/output-structure.test.ts @@ -362,11 +362,13 @@ describe('Output Directory Structure', () => { function logHello(name) { ...
2
1
1
[{"id": "G0", "claim": "Revert the package.json version bump to 0.17.13-alpha1 before merging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Names generated by safeVarName might conflict with existing variables on the page (main world) or produce s...
null
wxt-dev__wxt__966
wxt-dev/wxt
966
defect
026f78254db51bb273bb4281fb27d5322e307cea
cf9ff4593480d91229c47c961af585b2d5032eb6
fix: Properly overload `import.meta.env` with WXT's own environment globals
fix #935 I copied vite's implement style https://github.com/vitejs/vite/blob/main/packages/vite/types/importMeta.d.ts. It seems that module augmentation is not allowed because `import` is a top-level scope. TS docs: > You can’t declare new top-level declarations in the augmentation — just patches to existing dec...
diff --git a/packages/wxt/e2e/tests/typescript-project.test.ts b/packages/wxt/e2e/tests/typescript-project.test.ts index 0e31ed419a..34c372af61 100644 --- a/packages/wxt/e2e/tests/typescript-project.test.ts +++ b/packages/wxt/e2e/tests/typescript-project.test.ts @@ -13,7 +13,6 @@ describe('TypeScript Project', () => { ...
1
1
0
[{"id": "G0", "claim": "The vitest globalSetup/teardown change (the new vitest.globalSetup.ts that cleans up the swelled e2e/dist) should be extracted into a separate pull request instead of being included here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
x-heep__x-heep__240
x-heep/x-heep
240
defect
d73efd5bd82a6d03d87f3a90bf6259f47f4d0f27
67ccf18009ab30d641a1ba39f15713bef8a3283d
rv_plic HAL refactor
Changed the HAL of the rv_plic according to the automatically-generated struct containing the info of the registers.
diff --git a/sw/applications/example_external_peripheral/main.c b/sw/applications/example_external_peripheral/main.c index 7a56781a6..86eddf837 100644 --- a/sw/applications/example_external_peripheral/main.c +++ b/sw/applications/example_external_peripheral/main.c @@ -11,33 +11,34 @@ #include "core_v_mini_mcu.h" #inc...
15
14
1
[{"id": "G0", "claim": "If the `_RV_PLIC_C_SRC` macro is not used in the header, remove this define from rv_plic.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The external_intr_flag variable should not live in the HAL: the reviewer does not ...
null
x-heep__x-heep__635
x-heep/x-heep
635
defect
c43c98d48a79052ba5bbd53a53b560c48b4c65ea
9972397fed9e17c22206ca345a245e5121220594
Add SPI slave
# :warning: PLEASE test so we can merge :) :pray: :green_square: Update documentation on SPI slave and SPI slave SDK :green_square: Check varying number of dummy cycles :green_square: Test on FPGA with external device :black_square_button: Test on Questasim :green_square: Revert removal of SPI flash from testh...
diff --git a/Makefile b/Makefile index e1c6deacf..728efac7f 100644 --- a/Makefile +++ b/Makefile @@ -249,6 +249,8 @@ vivado-fpga: vivado-fpga-nobuild: $(FUSESOC) --cores-root . run --no-export --target=$(FPGA_BOARD) $(FUSESOC_FLAGS) --setup openhwgroup.org:systems:core-v-mini-mcu ${FUSESOC_PARAM} 2>&1 | tee buildviv...
5
2
1
[{"id": "G0", "claim": "It may be good to add a register at a fixed location that acts as a place to feed arguments to the SPI slave (e.g. a pointer to a struct plus its size), either as an HW register in the SPI slave address space or in the SoC controller.", "category": "design", "verdict": "supported", "priority": "...
null
x-motemen__ghq__285
x-motemen/ghq
285
defect
4e4e86f1c22cbac98853e2ee896e10131ad6f3f8
daaf597e470c541c602a1bc3e8fad0d00aa832db
Refactor so that RemoteRepository#VCS can return an error
Thanks for the great tool `ghq`. I use `ghq` frequently. related #282 RemoteRepository's VCS methods cannot return an error. So there is a potential issues such as #281. I also found and fixed a bug `ghq create github.com/blog/johejo` would create a directory despite an invalid github URL.
diff --git a/.gitignore b/.gitignore index 47c27604..5d941f43 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /ghq /ghq.exe /dist +.vscode +.idea diff --git a/cmd_create.go b/cmd_create.go index e63ce7b9..e638cf04 100644 --- a/cmd_create.go +++ b/cmd_create.go @@ -35,12 +35,15 @@ func doCreate(c *cli.Contex...
1
1
1
[{"id": "G0", "claim": "Do not delete the self-hosted-VCS test case (url https://example.com/motemen/pusheen-explorer/ with vcsBackend nil) from TestNewRemoteRepository; adjust it as appropriate instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
x-motemen__ghq__411
x-motemen/ghq
411
defect
5bf53dc168693c8640e3de4420295e28d6c9fb57
cf15ec26ef73fbb7d4736aaf0b808956df22d921
feat: support NO_COLOR environment variable
Implement https://github.com/x-motemen/ghq/issues/330
diff --git a/logger/log.go b/logger/log.go index b16751f7..63ae860a 100644 --- a/logger/log.go +++ b/logger/log.go @@ -4,33 +4,63 @@ import ( "fmt" "io" "os" + "strings" "github.com/motemen/go-colorine" ) -var logger = colorine.NewLogger( - colorine.Prefixes{ - "git": colorine.Verbose, - "hg": ...
3
3
1
[{"id": "G0", "claim": "NO_COLOR support should live in the colorine library itself (as fatih/color does) rather than being implemented by each consumer of the library.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of selecting between two color...
null
x-motemen__ghq__446
x-motemen/ghq
446
defect
0661bf9429d45ddc94206cf0f4bc71311076a7cd
92e49a046353a1a0815a36d597d134029baece5f
migrate: Handle cross-device move (EXDEV fallback)
## Implementation Complete All functionality implemented and tested for handling cross-device moves (EXDEV fallback) in ghq migrate. ### Summary When `os.Rename` fails with an EXDEV error (invalid cross-device link), the implementation falls back to a copy-then-remove strategy using the `otiai10/copy` library, allow...
diff --git a/.gitignore b/.gitignore index 5d941f43..82dc3ee4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /dist .vscode .idea +coverage.out diff --git a/README.adoc b/README.adoc index 79e1c103..5fd4f737 100644 --- a/README.adoc +++ b/README.adoc @@ -20,6 +20,7 @@ ghq get [-u] [-p] [--shallow] [--vcs <v...
11
9
4
[{"id": "G0", "claim": "Follow the contribution instructions and run linting and formatting so the pull request's code meets the project's code-quality standards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation for the `ghq migr...
null
x-motemen__ghq__481
x-motemen/ghq
481
defect
c33ed436cf5f993d68b4d256e0f93e440078ca2e
8a99bf1670ad4c770b6d6eeb95d8650d38c1324f
feat(rm): make ghq rm worktree-aware
## Summary Closes #480 Makes `ghq rm` handle git worktrees properly instead of blindly calling `os.RemoveAll`: - **Removing a linked worktree**: uses `git worktree remove` to properly unregister it from the parent repo (running from the main repo directory via `commondir` resolution), with a fallback to direct remov...
diff --git a/cmd_migrate.go b/cmd_migrate.go index 67682ee4..d2e00756 100644 --- a/cmd_migrate.go +++ b/cmd_migrate.go @@ -7,7 +7,6 @@ import ( "os" "os/exec" "path/filepath" - "strings" "syscall" "github.com/otiai10/copy" @@ -160,126 +159,6 @@ func doMigrate(ctx context.Context, cmd *cli.Command) error { ...
4
3
3
[{"id": "G0", "claim": "When removing a linked worktree the code runs `git worktree remove` with `gitCmd.Dir` set to the directory being deleted, which Git generally refuses and which Windows cannot do, so it will likely always fail into the fallback path; run the command from outside `p` by resolving the main repo (e....
null
x448__float16__46
x448/float16
46
defect
db25b6ab13f29c4d22d6cf96caf259d352ee24d2
f4458718ba23df975ac214495f4432d78d4e5637
Added SmallestNonZero constant
* Added the SmallestNonZero constant (0.00006109476). * Changed `go.mod` to depend on go > 1.13, when support for binary constants was added. It is still very old (we are in go1.22 already).
diff --git a/float16.go b/float16.go index 4ca060d..e2e58c2 100644 --- a/float16.go +++ b/float16.go @@ -40,6 +40,10 @@ const ( PrecisionOverflow ) +// SmallestNonzero value that is possible to represent in float16: 0.00006109476 +// It's the float16 equivalent for [math.SmallestNonzeroFloat32] and [math.SmallestN...
2
2
2
[{"id": "G0", "claim": "The new SmallestNonzero constant should use the smallest denormal float16 value written as Float16(0x0001) (0.000000059604645) with an explanatory comment, instead of the smallest normal value 0b000010000000001 (0.00006109476).", "category": "correctness", "verdict": "supported", "priority": "P1...
null
x52dev__oas3-rs__138
x52dev/oas3-rs
138
defect
09127ce784dc7ea9ed7cc197e4a021a601436eab
8660ba1491a5c3ba0df3fc040c64606137540edd
feat: Adding support to parse discriminator field in ObjectSchema
Closes #131 Specification https://spec.openapis.org/oas/v3.1.0#discriminator-object Might be labeled as fix as well (e.g. fix discriminator field not parsed).
diff --git a/crates/oas3/src/spec/discriminator.rs b/crates/oas3/src/spec/discriminator.rs new file mode 100644 index 0000000..24f2df5 --- /dev/null +++ b/crates/oas3/src/spec/discriminator.rs @@ -0,0 +1,57 @@ +//! Schema specification for [OpenAPI 3.1](https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3....
1
1
1
[{"id": "G0", "claim": "The YAML in the new discriminator test is incorrectly indented and the test would not catch it because it asserts only that the discriminator is present rather than asserting on its content.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
x52dev__oas3-rs__226
x52dev/oas3-rs
226
defect
3426e0252ae962f2990718eab9010936d125fc0e
8ed57c5aa4c6a1d5e65fa2726e7fea4f39f58f55
feat: schema `prefixItems` support
This PR adds support for: - prefixItems - boolean Schemafor items Field # Implementation Plan: Add prefixItems Support ## Status: ✅ COMPLETED ## Background - **Location**: The TODO comment is in `crates/oas3/src/spec/schema.rs` at line 173 - **JSON Schema Spec**: https://json-schema.org/draft/2020-12/jso...
diff --git a/crates/oas3/src/spec/schema.rs b/crates/oas3/src/spec/schema.rs index be45ef41..9b11991a 100644 --- a/crates/oas3/src/spec/schema.rs +++ b/crates/oas3/src/spec/schema.rs @@ -165,12 +165,24 @@ pub struct ObjectSchema { /// /// Omitting this keyword has the same assertion behavior as an empty schem...
6
5
0
[{"id": "G0", "claim": "The round-trip unit tests (items_boolean_serialization_round_trip and prefix_items_serialization_round_trip) are not valid tests because they go YAML->parsed->YAML->parsed; they need to start and end with either the structure or the YAML.", "category": "testing", "verdict": "opposed", "priority"...
null
x52dev__oas3-rs__287
x52dev/oas3-rs
287
defect
4fc83b22fad43910341aa04dda7b9f153799dfb3
6364ad7dd9a1babc58da9a3e9d2699ce0652ff22
fix: Support callback references in Operation.callbacks
Changed Operation.callbacks from BTreeMap<String, Callback> to BTreeMap<String, ObjectOrReference<Callback>> to match the OpenAPI 3.1 specification which allows callbacks to be Reference Objects. Also implemented FromRef for Callback to enable reference resolution, and added a callbacks() helper method on Operation....
diff --git a/crates/oas3/src/spec/callback.rs b/crates/oas3/src/spec/callback.rs index b9fad51..6edb87f 100644 --- a/crates/oas3/src/spec/callback.rs +++ b/crates/oas3/src/spec/callback.rs @@ -2,7 +2,10 @@ use std::{collections::BTreeMap, error::Error as StdError}; use serde::{Deserialize, Serialize}; -use crate::...
3
1
0
[{"id": "G0", "claim": "Update the `Operation.callbacks` field docs to mention that values can be callback objects or references, since the field now stores `ObjectOrReference<Callback>`.", "category": "documentation", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Resolve `onD...
null
xaaha__hulak__118
xaaha/hulak
118
defect
e1cd5e43d6c0c0a81bf90e9f29aa582e014b2927
34dfe8fd42cbf0fe20d30a21963844f2931661ce
87 mouse support
- Adds mouse support for all the places where we have action. - Since Copy is already done with `Ctrl+y` I am adding mouse for copy. - Adds extensive tests.
diff --git a/go.mod b/go.mod index 74b9fcca..4c832c76 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,7 @@ require ( github.com/charmbracelet/x/exp/teatest v0.0.0-20260223200540-d6a276319c45 github.com/fatih/color v1.16.0 github.com/goccy/go-yaml v1.12.0 + github.com/lrstanley/bubblezone v1.0.0 github.com/wunderg...
1
1
1
[{"id": "G0", "claim": "RunSelector starts Bubble Tea without tea.WithMouseCellMotion(), so the new click-to-focus and click-to-select behavior works in tests but is unavailable to users in the real selector flows (main.go, envselect); enable mouse support when running the selector UI as well.", "category": "correctnes...
null
xaaha__hulak__168
xaaha/hulak
168
defect
a8ed76a6bf939586b61bafd5676d73bc3e78fadb
67fa45e6897a728779e2157fb0603e728f89f9cd
envparser: integrate encrypted store for environment loading
## Summary Closes #127. Part of #125 (Phase 2). - `FindProjectRoot()` now detects `.hulak/` (primary) and `env/` (legacy) - `DetectStore()` routes to encrypted store vs classic env files - `GenerateSecretsMap()` and `LoadSecretsMap()` load from vault when `store.age` exists - `EnvItems()` lists environments from vaul...
diff --git a/pkg/envparser/envparser.go b/pkg/envparser/envparser.go index bfa6a9c0..75e7d08c 100644 --- a/pkg/envparser/envparser.go +++ b/pkg/envparser/envparser.go @@ -12,6 +12,7 @@ import ( "strings" "github.com/xaaha/hulak/pkg/utils" + "github.com/xaaha/hulak/pkg/vault" ) /* @@ -168,6 +169,31 @@ func inf...
6
5
3
[{"id": "G0", "claim": "DetectStore() selects StoreClassic when env/ exists, but no deprecation warning is emitted for legacy env/ usage (or when both backends exist and StoreAge wins); a warning should be surfaced at detection/selection so users know to migrate.", "category": "design", "verdict": "uncertain", "priorit...
null
xaaha__hulak__33
xaaha/hulak
33
defect
4af7eef37fad0a09c2eef64919296cea6c2468c5
1da640948b6f0c3015354ab166151d7add0eb44b
31 implement debug mode
Adds Debug mode with --debug flag and other items that's mentioned here: https://github.com/xaaha/hulak/issues/31 Also - Bug Fixes (nil de-reference)
diff --git a/README.md b/README.md index ef2048ff..4b1552b7 100644 --- a/README.md +++ b/README.md @@ -170,11 +170,12 @@ Read more about response in [response documentation](./docs/response.md). ## Flags -| Flag | Description ...
2
2
0
[{"id": "G0", "claim": "The comment above processResponse incorrectly states it returns a string; update it to say it returns a CustomResponse struct.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GenerateSecretsMap comment misspells 'environ...
null
xaaha__hulak__74
xaaha/hulak
74
defect
b6f15c844e04e22f8078099bad43f227153d9513
5f2b152abb0dbb574f85507e1650c1b84e7ea103
72 select environment app
This pull request introduces several improvements and new features to the codebase, primarily focused on enhancing the terminal user interface (TUI) for environment selection and standardizing styles and key handling. It also updates dependency management, improves GraphQL file handling, and cleans up documentation and...
diff --git a/.gitignore b/.gitignore index 9d344f7d..a2330c05 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ test* !test.graphql !e2etests/test_collection/formdata.json !mise.toml +*plan.md diff --git a/Makefile b/Makefile index 51e7a604..093f7fd6 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ unit...
3
1
0
[{"id": "G0", "claim": "Use fmt.Sprintf instead of string concatenation to build the View return value in pkg/tui/envselect/envselect.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a brief comment explaining what the envselect.go file do...
null
xaf__qolsysgw__100
xaf/qolsysgw
100
defect
f36fac0c68c230d2027d9af7cbc129c06bc5fe31
5bd493020162f47614ebadfdeb01409269fc0a23
✨ [feature] Add support for `Temperature` sensor
Thank you for an awesome integration! This PR adds support for Visonic TMD-560 PG2 Temperature sensor. It's a low/high temp sensor, so I'm not sure if 'heat' is the right sensor type. I have not been able to test but added the baseline code for the new sensor subclass.
diff --git a/apps/qolsysgw/mqtt/updater.py b/apps/qolsysgw/mqtt/updater.py index 14519ad..66611fb 100644 --- a/apps/qolsysgw/mqtt/updater.py +++ b/apps/qolsysgw/mqtt/updater.py @@ -21,6 +21,7 @@ from qolsys.sensors import QolsysSensorMotion from qolsys.sensors import QolsysSensorSiren from qolsys.sensors import Qols...
9
8
6
[{"id": "G0", "claim": "The group value in the test data should be 'Temperature' with a capital T, as the real panel reports, in both the fixtures and the end-to-end expected states.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questi...
null
xaf__qolsysgw__143
xaf/qolsysgw
143
defect
a5405dbfe7478e986563030445892305604a57fa
11ec303d1b0b132d7adbd7966f6c8587c32a6924
✨ [feature] Add support for `Shock` sensor
Hi, First off, thanks for writing this App. It saved my IQPanel 2 from the scrap heap! I noticed my setup uses "shock" sensors which werent supported by the App. Error Seen: `2024-01-05 14:15:43.717826 WARNING qolsys_panel: sensor of unknown type: {'id': '170-7272', 'type': 'Shock', 'name': 'Upstairs Shock D...
diff --git a/apps/qolsysgw/mqtt/updater.py b/apps/qolsysgw/mqtt/updater.py index 756128e..e9e7875 100644 --- a/apps/qolsysgw/mqtt/updater.py +++ b/apps/qolsysgw/mqtt/updater.py @@ -20,6 +20,7 @@ from qolsys.sensors import QolsysSensorKeyFob from qolsys.sensors import QolsysSensorKeypad from qolsys.sensors import Qol...
5
5
3
[{"id": "G0", "claim": "The MQTT topic/device-class entry for QolsysSensorShock should probably be 'vibration' rather than 'safety'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The QolsysSensorShock mapping line should be moved above QolsysSensor...
null
xapian__xapian__168
xapian/xapian
168
defect
56689064282b66e4ff9f9ea165cce716e952da28
a56842ef151fef5afc0a8d86878abf04db35c7c5
Stemming
Added stemming and a subclass of Xapian::Stopper named Xapian::StemStopper for removal of stopwords as well as their stemmed equivalents.
diff --git a/xapian-core/cluster/cluster.cc b/xapian-core/cluster/cluster.cc index 3a20feda1fb..5cf23e77578 100644 --- a/xapian-core/cluster/cluster.cc +++ b/xapian-core/cluster/cluster.cc @@ -82,10 +82,17 @@ TermListGroup::add_document(const Document &document) TermIterator titer(document.termlist_begin()); ...
6
6
4
[{"id": "G0", "claim": "StemStopper should take the stemmer as a constructor parameter rather than offering set_stemmer(), since it is not useful to use the class without a stemmer or to change the stemmer mid-use.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
xapian__xapian__197
xapian/xapian
197
defect
8f4a659ea07d5ac0add8cf70d1ff1da2a5ab61d7
e21371735e8d4b45c8f03ab91109e51403431cae
Add C++11 move support for smart pointer classes
Address issue #642 - * Add move support for intrusive_ptr, intrusive_ptr_nonnull and opt_intrusive_ptr. * Add unit tests
diff --git a/xapian-core/include/xapian/intrusive_ptr.h b/xapian-core/include/xapian/intrusive_ptr.h index 65990541db9..514600dc869 100644 --- a/xapian-core/include/xapian/intrusive_ptr.h +++ b/xapian-core/include/xapian/intrusive_ptr.h @@ -113,6 +113,32 @@ template<class T> class intrusive_ptr if( px != 0 && ...
6
3
1
[{"id": "G0", "claim": "The intrusive_ptr_nonnull move constructor leaves the source object with px == 0, losing the class's non-null invariant; the reviewer recommends incrementing the reference count there instead, so the move does the same as the copy constructor.", "category": "design", "verdict": "supported", "pri...
null
xapian__xapian__205
xapian/xapian
205
defect
bd44294edeac50f19d4fcbc0f01d0d3fc796a919
08cf70dbe474f7b59af118c9586f9a6bae7a3305
Diversification: Optimise GLS-MPT
This PR implements C2-GLS which is an optimised version of GLS-MPT (current diversification implementation). Tasks: - [x] Implement C2-GLS - [x] Modify api_diversify.cc (functional test) - [x] Modify perftest_diversify.cc (performance test)
diff --git a/xapian-core/diversify/diversify.cc b/xapian-core/diversify/diversify.cc index ae1fc52e3c9..1c5a9e06436 100644 --- a/xapian-core/diversify/diversify.cc +++ b/xapian-core/diversify/diversify.cc @@ -46,12 +46,13 @@ Diversify& Diversify::operator=(Diversify&&) = default; Diversify::Diversify(unsigned int k...
3
3
1
[{"id": "G0", "claim": "The lack of a default value for r_ in the Diversify constructor is causing the api_generated tests to fail (they expect Xapian::Diversify foo(10) to work), and since r_ is a number of documents an integer type such as Xapian::doccount would seem more appropriate (perhaps for k_ too).", "category...
null
xapian__xapian__208
xapian/xapian
208
defect
ffb88e5afed0cbd42ec1e66e5d7160af2f97a13c
b40f72bb1190c2a3d9030b8f9ba0628c67414169
Implementation of LCD clustering
Contains implementation of the LC clustering algorithm for diversification which is adapted from [here](https://www.sciencedirect.com/science/article/pii/S1570866712001074) (algorithm 2, page 81).
diff --git a/xapian-core/cluster/Makefile.mk b/xapian-core/cluster/Makefile.mk index 410e3a1386b..0d35deb54c6 100644 --- a/xapian-core/cluster/Makefile.mk +++ b/xapian-core/cluster/Makefile.mk @@ -4,4 +4,5 @@ noinst_HEADERS +=\ lib_src +=\ cluster/cluster.cc \ cluster/cosine_sim.cc \ - cluster/kmeans.cc + cluster/...
8
8
2
[{"id": "G0", "claim": "The backslash-newline continuation in the InvalidArgumentError string inserts the following indentation spaces into the message; use multiple adjacent string constants instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
xapian__xapian__218
xapian/xapian
218
defect
b92f82f10d771d6532a9871a80144e3e0a37260f
9f28c4450b2a0a61eacacdd558ae2e5cde3b6182
emscripten: patches for compiling with emscripten, js example, ci-setup
This PR adds support for compiling with emscripten, a simple example that can be run with nodejs and ci-setup.
diff --git a/.travis.yml b/.travis.yml index e63130cc09f..e7da0310540 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,6 +57,35 @@ matrix: # We also have to disable an error, because (older?) # perl header files don't play nicely with clang. env: USE_CC=clang USE_CXX='clang++ -stdlib=libc++' CXXFL...
4
4
1
[{"id": "G0", "claim": "Adding -Oz to AM_CXXFLAGS in configure.ac will not work as intended, because compilation commands use $(AM_CXXFLAGS) $(CXXFLAGS) and CXXFLAGS defaults to -O2 -g, so -Oz ends up before -O2 and is effectively ignored; the reviewer suggests skipping emscripten-specific configure logic entirely.", "...
null
xarray-contrib__xarray-spatial__34
xarray-contrib/xarray-spatial
34
defect
7eefde65a970b58fdbbc4069a12f5817199ba112
8c4334115219b837f95ac95aa3cee971c9d96607
Add classify methods with Natural breaks and Equal Intervals
#30 - [x] add tests to `test_classify.py` - [x] finish all docstrings - [x] add to docs - [x] add test to see what happens with very small arrays (Example: `4 values with k=5`) - [ ] add `examples/classifcation_methods.ipynb` based on the user guide
diff --git a/.travis.yml b/.travis.yml index 2dada743e..6a39d82d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ install: # Install dependencies - conda create -n test-environment python=$TRAVIS_PYTHON_VERSION - source activate test-environment - - conda install -c conda-forge datashader pytest ...
2
2
0
[{"id": "G0", "claim": "The pull request should include very clear attribution for PySAL and Scikit-Learn, whose classification code it builds on.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new classification methods need a few more docs...
null
xarray-contrib__xarray-spatial__484
xarray-contrib/xarray-spatial
484
defect
eb5254e5d08ab5028c18dc9bf21d58493bdf9c8d
ea2bb75fb7626580f70cc18532b4625fda27cf03
true_color: added output name and attrs
- [x] Add name for output data array - [x] Keep attrs - [x] Add docs with example
diff --git a/xrspatial/multispectral.py b/xrspatial/multispectral.py index 23ffd570a..a30f758c4 100755 --- a/xrspatial/multispectral.py +++ b/xrspatial/multispectral.py @@ -1528,14 +1528,14 @@ def ebbi(red_agg: xr.DataArray, @ngjit -def _normalize_data_cpu(data, min_val, max_val, pixel_max): +def _normalize_data_c...
2
2
0
[{"id": "G0", "claim": "The docstring line for the new contrast parameter should read 'contrast : int, float numeric value' without the trailing period, for consistency with the other parameter descriptions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
xarray-contrib__xarray-spatial__572
xarray-contrib/xarray-spatial
572
defect
bcfc8718b0fa1ea6b3d0b35449afe61c92c57f1f
5cd5fe42706ebdb7de68ae833d0d1181280ff62a
zonal stats: speed up dask case
This PR uses the same approach as https://github.com/makepath/xarray-spatial/pull/568 to improve performance for zonal stats when input data arrays are dask-backed. It computes stats chunk by chunk and then summarizes all the results and return output as a dask DataFrame. This also limits stats that supported in da...
diff --git a/xrspatial/tests/test_zonal.py b/xrspatial/tests/test_zonal.py index 31d6af12d..2128325b5 100755 --- a/xrspatial/tests/test_zonal.py +++ b/xrspatial/tests/test_zonal.py @@ -56,18 +56,14 @@ def check_results(df_np, df_da, expected_results_dict): df_np[col], expected_results_dict[col], equal_nan=...
4
4
0
[{"id": "G0", "claim": "The type annotation `func: callable` should use the capitalised `Callable` type rather than the built-in function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable `sored_indices` is a typo and should be rename...
null
xataio__pgroll__137
xataio/pgroll
137
defect
7f4b90ef546bbaf76231e940c5c20a7bc9016973
c6641a2623e80bdeb7930968d31fe46200f1bed9
Reduce lock contention by backfilling new columns in batches
The previous approach to backfilling new columns with values from existing columns applied one `UPDATE` statement to the whole table, taking row locks on the entire table in one long-running transaction. This PR changes backfills to work in batches, copying 1000 records at a time, each in separate short transaction....
diff --git a/pkg/migrations/backfill/backfill.go b/pkg/migrations/backfill/backfill.go new file mode 100644 index 000000000..a12aca626 --- /dev/null +++ b/pkg/migrations/backfill/backfill.go @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: Apache-2.0 + +package backfill + +import ( + "context" + "database/sql" + "errors" ...
4
2
2
[{"id": "G0", "claim": "BackFill hard-requires a single-column primary key and errors on tables with multi-column primary keys, which the reviewer notes are not that strange.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The batch query hardcodes `ORDER B...
null
xataio__pgroll__258
xataio/pgroll
258
defect
9d2515963865ba4b5b71fe0ff9ea85e8ce9e2ddf
1cc2fa63e10588861ef06010020d8d70705392f5
Add drop `NOT NULL` operation to remove `NOT NULL` from a column
Add a new sub-operation to the 'alter column' operation to drop `NOT NULL` constraints from columns. Currently, it is only possible to **set** `NOT NULL` constraints on columns but not remove them. The syntax for doing this is: ```json { "name": "16_set_nullable", "operations": [ { "alter_colum...
diff --git a/docs/README.md b/docs/README.md index 9c0973783..7dc6e1ed5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -21,6 +21,7 @@ * [Add check constraint](#add-check-constraint) * [Add foreign key](#add-foreign-key) * [Add not null constraint](#add-not-null-constraint) + * [Dr...
1
1
0
[{"id": "G0", "claim": "The code comment saying the trigger rewrites only NULL values is inaccurate, since the trigger rewrites all values and they are NULL ones only if the `up` SQL does the typical `CASE`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xataio__pgroll__305
xataio/pgroll
305
defect
fb05aece0e16ba0c3957a317d74bdd0d95319831
0f7739030b98ad94d079884246243fffd24bc1e9
Fix duplicate inferred migrations when dropping columns outside of a migration
Ensure that only one `inferred` migration is created in the `pgroll.migrations` table when a column is dropped outside of a migration. From the Postgres [docs](https://www.postgresql.org/docs/current/event-trigger-definition.html): > The sql_drop event occurs just before the ddl_command_end event trigger for any op...
diff --git a/pkg/state/state.go b/pkg/state/state.go index d5db99ecf..605a2c66e 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -322,9 +322,8 @@ CREATE EVENT TRIGGER pg_roll_handle_ddl ON ddl_command_end EXECUTE FUNCTION %[1]s.raw_migration(); DROP EVENT TRIGGER IF EXISTS pg_roll_handle_drop; -CREATE E...
1
1
1
[{"id": "G0", "claim": "Restricting the pg_roll_handle_drop event trigger to DROP TABLE and DROP VIEW may miss other dropped objects (constraints, indices, triggers) that can only be detected on sql_drop, and the reviewer wants to make sure all object types are covered.", "category": "correctness", "verdict": "supporte...
null
xataio__pgroll__341
xataio/pgroll
341
defect
d4445bb6bbf039ae92ebf7bb5f96e6bb4569b3d5
234fd77497754ccdd2e0e9c7c8885ea7806c65a8
Allow rename-only 'alter-column' operations on unbackfillable columns
Allow rename-only 'alter column' operations on unbackfillable columns. Rename operations don't require backfills so there is no reason to impose such a restriction. Fixes #340
diff --git a/docs/README.md b/docs/README.md index 9b868192b..8658604ef 100644 --- a/docs/README.md +++ b/docs/README.md @@ -738,6 +738,8 @@ Example **add column** migrations: An alter column operation alters the properties of a column. The operation supports several sub-operations, described below. +An alter colu...
1
1
0
[{"id": "G0", "claim": "checkBackfill should be skipped entirely for rename-only alter-column operations, since the PR calls it even when it does not plan to backfill and discards its error.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xataio__pgroll__404
xataio/pgroll
404
defect
080ca6665cb77f1a90c310ce82d1cae677d6db9c
a263d636ad2bae2f7e2b569dd017ac8022f21b05
Add support for creating partial indexes on tables
This PR adds a new option to `create_index` operations called `predicate`. When `predicate` is the conditional expression of the partial index. When it is set, pgroll creates a partial index on the table. Example: ```json { "name": "37_create_partial_index", "operations": [ { "create_index": { ...
diff --git a/docs/README.md b/docs/README.md index 6563d6435..0164b337b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -963,6 +963,7 @@ A create index operation creates a new btree index on a set of columns. "table": "name of table on which to define the index", "name": "index name", "columns": [ "n...
3
2
2
[{"id": "G0", "claim": "The docs link to the partial-index example uses a broken path ('37_create_partal_index.json' instead of '37_create_partial_index.json').", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The field might be better called 'where' ...
null
xataio__pgroll__567
xataio/pgroll
567
defect
e6e45232e3160016f20c36bf18110c9992ec1d78
30b57d18dad8f1a1e8c065af2217fb2ce9c3dd72
Show completion estimate during backfill
Instead of only showing the number of rows backfills, show an estimate of the total number of tows completed as a percentage. For example: ``` 1500 records complete... (12.34%) ``` It attempts to estimate the total number of rows but will fall back to a full scan if the number of rows estimated is zero. C...
diff --git a/cmd/start.go b/cmd/start.go index 39d8fde4a..21e64b208 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -55,8 +55,20 @@ func runMigrationFromFile(ctx context.Context, m *roll.Roll, fileName string, co func runMigration(ctx context.Context, m *roll.Roll, migration *migrations.Migration, complete bool) err...
1
1
1
[{"id": "G0", "claim": "Using QueryRowContext defers errors until Scan so transaction (lock) timeouts cannot be checked and retried there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xataio__pgroll__660
xataio/pgroll
660
defect
bbdb2f8f03aad3a1e1db8df01b6ff43c0c33f0e0
4dcd097203430e94f9f89a37783d606d59fead9a
Move backfill options to `start` and `migrate` command
This PR moves the flags `backfill-batch-delay` and `backfill-batch-size` to the commands `start` and `migrate`. So these options no longer show up in the list of global flags. I created a new struct `backfill.Config` to store and pass the options down to the migration runner. I also moved the default values for b...
diff --git a/cli-definition.json b/cli-definition.json index 2efd91d27..86f3262ad 100644 --- a/cli-definition.json +++ b/cli-definition.json @@ -141,16 +141,6 @@ } ], "flags": [ - { - "name": "backfill-batch-delay", - "description": "Duration of delay between batch backfills (eg. 1s, 1000ms)", -...
9
8
2
[{"id": "G0", "claim": "The backfill flags should have moved to the start and migrate command entries in cli-definition.json, not just been removed, and the tool that generates this CLI description may not be working correctly.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
xataio__pgroll__690
xataio/pgroll
690
defect
81eee8bbd73d9d91b8db2ddf3edc84829c98e372
2ac7274ad161b6836492d96165298005edc07408
Support parsing multiple SQL statements in `sql2pgroll.Convert`
This PR introduces support for translating multiple SQL statements to pgroll operations in `sql2pgroll.Convert`. This PR required by the upcoming improvements to support reading complete SQL migration files produced by ORMs.
diff --git a/pkg/sql2pgroll/alter_table_test.go b/pkg/sql2pgroll/alter_table_test.go index 53f5549fe..ed26ac58c 100644 --- a/pkg/sql2pgroll/alter_table_test.go +++ b/pkg/sql2pgroll/alter_table_test.go @@ -286,12 +286,12 @@ func TestConvertAlterTableStatements(t *testing.T) { for _, tc := range tests { t.Run(tc.s...
4
4
3
[{"id": "G0", "claim": "Inside the loop `node` should come from `stmts[i]` rather than `stmts[0]`, which converts the first statement on every iteration.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "The \"empty SQL statement\" test case should sta...
null
xataio__pgroll__697
xataio/pgroll
697
defect
9dffe0222617e67e77866ab3295d1ba140a4b7c8
62b06b99ea794b3e3383d401310d22bb5a59b383
Improve `create_index` operation with extra index element settings
This PR adds a breaking change to `create_index` operation. From now on `columns` does not accept a list of column names. Instead it expects a map, so we can support for additional index elements settings. New settings: * `collation`: name of the collation to use on the column * `opclass`: `opclass.name` sets the ...
diff --git a/docs/operations/create_index.mdx b/docs/operations/create_index.mdx index 185284d6c..3ec108c1b 100644 --- a/docs/operations/create_index.mdx +++ b/docs/operations/create_index.mdx @@ -10,7 +10,20 @@ description: A create index operation creates a new index on a set of columns. "create_index": { "ta...
10
10
1
[{"id": "G0", "claim": "The pg_query_go version pinned in go.mod has to be updated after the upstream pg_query_go PR is merged, and this needs to happen before this pull request merges.", "category": "dependencies", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new schema....
null
xataio__pgroll__745
xataio/pgroll
745
defect
a422b3fbdac416842c63c6af88ab39092a5d3919
4875f20a271b18013c1583ef7fc46dc7fb215828
Improve error messages when `pgroll init` has not been run
Improve the error messages displayed by the CLI when attempting to run commands that require `pgroll init` to have been run. Old example of `pgroll start` before `pgroll init`: ``` ERROR Failed to start migration: pq: schema "pgroll" does not exist ``` New error message: ``` Error: pgroll is not initia...
diff --git a/cmd/analyze.go b/cmd/analyze.go index 5a2f2a638..82be5ad5a 100644 --- a/cmd/analyze.go +++ b/cmd/analyze.go @@ -25,6 +25,15 @@ var analyzeCmd = &cobra.Command{ } defer state.Close() + // Ensure that pgroll is initialized + ok, err := state.IsInitialized(cmd.Context()) + if err != nil { + retur...
2
1
0
[{"id": "G0", "claim": "The test should check the error returned by state.Init(ctx) with require.NoError to ensure initialization succeeded before continuing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message should be prefixed with 'Erro...
null
xataio__pgroll__747
xataio/pgroll
747
defect
3f2d340aced239f1620745674882bfc74374e8d2
ecb7182e64690b5ce8580697c9c5f6dd3beedee1
Implement creating a unique index concurrently as a `DBAction`
This PR implements creating unique indexes concurrently as a `DBAction`. Looking at the implementation of the action, we can refactor it in a later PR and introduce a `CreateIndexSQLWriter` similar to `ConstraintSQLWriter`. But this is a problem for a future PR.
diff --git a/pkg/migrations/dbactions.go b/pkg/migrations/dbactions.go index 82d01397c..5c9d3e796 100644 --- a/pkg/migrations/dbactions.go +++ b/pkg/migrations/dbactions.go @@ -6,6 +6,7 @@ import ( "context" "fmt" "strings" + "time" "github.com/lib/pq" "github.com/xataio/pgroll/pkg/db" @@ -47,3 +48,132 @@ f...
2
2
0
[{"id": "G0", "claim": "The retry loop in createUniqueIndexConcurrentlyAction.Execute can use a range-over-int statement (`for range 5`) instead of a classic counter loop.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "There are no automated tes...
null
xataio__pgroll__755
xataio/pgroll
755
defect
ebe6f78512a24e8f91a892ae5af57d8b6300bc5f
a9e116aeae7f62477e20996b16c344e51284b548
Initialize YAML migration file support
This PR adds basic support for reading YAML migration files. From now on users can read migrations from YAML files as well. A migration directory can store both JSON and YAML files at the same time. Ordering of the files is based on the filename without the file extension. The following migration folder content is v...
diff --git a/Makefile b/Makefile index f94721902..50b9fa8e5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ format: generate: # Generate the types from the JSON schema - docker run --rm -v $$PWD/schema.json:/mnt/schema.json omissis/go-jsonschema:0.17.0 --only-models -p migrations --tags json /mnt/schema.jso...
2
2
1
[{"id": "G0", "claim": "CollectFilesFromDir should sort migration files with slices.SortFunc instead of sort.Slice, since the godoc says the newer function is more ergonomic and runs faster.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Oper...
null
xataio__pgroll__760
xataio/pgroll
760
defect
9ded2f96f533668d637f2be8cc8c03d6a52a198f
27badf044570d0982247c63e2e5ae14adb524520
Dont require database access to `pgroll latest --local`
Ensure that the `latest` command does not require database access when the `--local` flag is provided. In this case the command should act only locally, with the migrations on disk and not require a connection to the database. The reason it used to require a DB connection was to support the `--with-schema` flag ...
diff --git a/cmd/latest.go b/cmd/latest.go index 44948849b..1caa0c16a 100644 --- a/cmd/latest.go +++ b/cmd/latest.go @@ -3,10 +3,13 @@ package cmd import ( + "context" "fmt" "os" "github.com/spf13/cobra" + "github.com/xataio/pgroll/cmd/flags" + "github.com/xataio/pgroll/pkg/roll" ) func latestCmd() *cob...
2
1
0
[{"id": "G0", "claim": "The error returned by os.Stat in latestVersionLocal should be wrapped with additional context (e.g. \"failed to stat directory\") to improve clarity compared to the previous version.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
xataio__pgroll__779
xataio/pgroll
779
defect
48f1d61d1c16bf4292d1b5e4a2d9b77dfd8aa0cc
e8e991274ff705c15bdfaa3a87f9c8df87b903e4
Add fallback method for backfilling records
Previously, `pgroll` could not backfill tables that did not have a primary key or a unique column. From now on, `pgroll` can fallback onto the internal column `_pgroll_needs_backfill` to find all columns that has to be backfilled. I also moved `CNeedsBackfillColumn` constant to the package `backfill` because it make...
diff --git a/pkg/backfill/backfill.go b/pkg/backfill/backfill.go index f547afe6b..c061ca812 100644 --- a/pkg/backfill/backfill.go +++ b/pkg/backfill/backfill.go @@ -9,11 +9,14 @@ import ( "fmt" "time" + "github.com/lib/pq" "github.com/xataio/pgroll/pkg/backfill/templates" "github.com/xataio/pgroll/pkg/db" "...
2
2
1
[{"id": "G0", "claim": "A comment explaining the CNeedsBackfillColumn constant would help.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Would it be possible to add some tests for the new fallback backfill case?", "category": "testing", "verdict"...
null
xataio__pgroll__815
xataio/pgroll
815
defect
542db444c9579de2c94627c5a3cd23c89aff957f
8d33af51186f52b8e2e1cfb02cd66c77d6be520b
Add new command: `create` to add new migrations
This PR adds a new command named `create`. It lets users create new migration files. It has three flags: `--empty` if the user wants to create an empty file and `--name` if the user wants to pass a name instead of being prompted. Similarly to `pull` command it also has a flag called `--json` to output the migration fil...
diff --git a/cli-definition.json b/cli-definition.json index 6092113d6..bc651475d 100644 --- a/cli-definition.json +++ b/cli-definition.json @@ -37,6 +37,34 @@ "migration-file" ] }, + { + "name": "create", + "short": "Create a new migration interactively", + "use": "create", + ...
14
11
4
[{"id": "G0", "claim": "The create command should not suggest a timestamp as the default migration name, at least until pgroll is more opinionated about migration file names.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Createable interface needs a...
null
xataio__pgroll__835
xataio/pgroll
835
defect
2aee64f097fcb9d449abc68f330a51d42c755651
808912d3d5c2d150392c211207ab224a6b75741e
[baseline] Make `start` and `migrate` fail on non-empty schema without migration histories
Make the `pgroll start` and `pgroll migrate` commands fail when run against a non-empty schema without a migration history. The error message suggests running `pgroll baseline` before re-running `start` or `migrate`. Running an initial migration against a non-empty schema is not recommended becauses it can result in...
diff --git a/cmd/migrate.go b/cmd/migrate.go index b27958862..dd8a52b03 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.go @@ -59,13 +59,23 @@ func migrateCmd() *cobra.Command { return fmt.Errorf("migrations directory %q is not a directory", migrationsDir) } + // Check whether the schema needs an initial bas...
2
1
0
[{"id": "G0", "claim": "Consider running `pgroll baseline` automatically as part of `start` and `migrate` when they are run against a non-empty schema, prompting the user and keeping them in control of naming and populating the baseline before other migrations proceed.", "category": "design", "verdict": "opposed", "pri...
null
xataio__pgroll__855
xataio/pgroll
855
defect
27f9da646f64439b5a015f42a8ea52adc2319868
97926a0a9888b20ddc593e50b760cee2bfdda40b
Add new subcommand to update migrations that contain breaking changes
This PR adds a new subcommand called `update`. It updates migrations that contain breaking changes in the selected folder. ``` Usage: pgroll update <directory> [flags] Examples: update ./migrations Flags: -h, --help help for update -j, --json Output migration file in JSON format instead of YAM...
diff --git a/cli-definition.json b/cli-definition.json index cbae5afa2..b4effc789 100644 --- a/cli-definition.json +++ b/cli-definition.json @@ -219,6 +219,30 @@ "flags": [], "subcommands": [], "args": [] + }, + { + "name": "update", + "short": "update outdated migrations in a direc...
14
12
2
[{"id": "G0", "claim": "The ignored error from json.Unmarshal in updateCreateIndexColumnsList is silently swallowed with no explanation.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added for the update workflow to ensure an old-fo...
null
xataio__pgroll__856
xataio/pgroll
856
defect
27f9da646f64439b5a015f42a8ea52adc2319868
a3053ddebb70c55fa35101b3d52460d6e65c7682
Add new subcommand to validate migration files
This PR adds a new subcommand to validate migration files called `validate`. ``` Usage: pgroll validate <file> [flags] Examples: validate migrations/03_my_migration.yaml Flags: -h, --help help for validate ``` It is first step towards providing a way to validate migration files before running the...
diff --git a/cli-definition.json b/cli-definition.json index cbae5afa2..956c4e4b5 100644 --- a/cli-definition.json +++ b/cli-definition.json @@ -219,6 +219,17 @@ "flags": [], "subcommands": [], "args": [] + }, + { + "name": "validate", + "short": "Validate a migration file", + ...
2
2
1
[{"id": "G0", "claim": "In cmd/start.go, the failure raised when m.Validate errors is reported as \"Failed to start migration\" and should read \"Failed to validate migration\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Roll.Start method sh...
null
xataio__pgroll__860
xataio/pgroll
860
defect
a7c4bb52fb3652236bfc29c03d9dd0b71e806a41
1033b6fc8d4542dac9d6f82517033bf63bc31578
Set default values for columns in new schema version views
At the moment, if you try to update or insert default values in a view of a new schema version, it fails because the default value is unset. This PR sets the default value for the new schema version. Closes #42
diff --git a/pkg/migrations/op_alter_column_test.go b/pkg/migrations/op_alter_column_test.go index 432b899cb..d814f9e24 100644 --- a/pkg/migrations/op_alter_column_test.go +++ b/pkg/migrations/op_alter_column_test.go @@ -211,6 +211,13 @@ func TestAlterColumnMultipleSubOperations(t *testing.T) { "id": "1", })...
2
2
0
[{"id": "G0", "claim": "The MustUpdate test helper need not support a general multi-column WHERE condition map; its call sites could use the simpler single-column form MustUpdate(t, db, schema, version, table, column, value, record).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
xataio__pgroll__884
xataio/pgroll
884
defect
44e4e00d932d814de77f5499ba1d33cb83b4e949
3dddf269b59d61c70016cd3d9047070d25a06ab5
Allow migration files to specify a `versionSchema` field
#852 removed support for specifying a migration name via the `name` field in a migration file. While having an unambiguous source of truth for the migration name (the filename) is good, it is still often desirable to decouple the filename from the name of the version schema that the migration will create when applied b...
diff --git a/cmd/migrate.go b/cmd/migrate.go index a5d8119c4..d56de8f7e 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.go @@ -36,7 +36,7 @@ func migrateCmd() *cobra.Command { } defer m.Close() - latestVersion, err := m.State().LatestVersion(ctx, m.Schema()) + latestMigration, err := m.State().LatestMigrati...
1
1
0
[{"id": "G0", "claim": "The `versionSchema` attribute name should be `version_schema` because every attribute name is `snake_case`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xataio__pgroll__931
xataio/pgroll
931
defect
b11758295d4921ef787b9d0a24824ea5681ceb15
fb7bbc41851374211676fbbcd9c778451ef42069
Add trigger configuration to `backfill.Task`
This PR introduces consolidates backfilling of the same column into a single trigger. I am merging all triggers for a table into a single trigger in a follow-up PR. I added a new data structure `OperationTrigger` that contains the trigger configuration of an operation. Trigger consolidation happens when a backfill t...
diff --git a/pkg/backfill/backfill.go b/pkg/backfill/backfill.go index c8bd96191..14b43fcf5 100644 --- a/pkg/backfill/backfill.go +++ b/pkg/backfill/backfill.go @@ -7,6 +7,7 @@ import ( "database/sql" "errors" "fmt" + "strings" "time" "github.com/lib/pq" @@ -22,13 +23,16 @@ const CNeedsBackfillColumn = "_pg...
5
4
0
[{"id": "G0", "claim": "Integration tests are needed to check how operations on the same column behave after this change.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The example pair of migrations with two operations on the same column fails at the c...
null
xataio__pgroll__940
xataio/pgroll
940
defect
c3c73e4c62f9f023efdea357f26c74ec3351ff7f
02aab16a0833b218ffd3156b0725dd142c2920cd
Add simple coordinator for executing `DBActions`
This PR adds a coordinator to migrations package. This component is responsible for executing all registered actions only once in the correct order. I integrated it already into `Roll` for the complete phase of the migrations.
diff --git a/pkg/migrations/coordinator.go b/pkg/migrations/coordinator.go new file mode 100644 index 000000000..5a7ce6de8 --- /dev/null +++ b/pkg/migrations/coordinator.go @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: Apache-2.0 + +package migrations + +import ( + "context" + "fmt" + "slices" +) + +// Coordinator is r...
12
11
1
[{"id": "G0", "claim": "The Coordinator's `order` field should be renamed to `orderedActions`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rename-duplicated action's ID should include the table name like other action IDs, so identical col...
null
xataio__pgroll__946
xataio/pgroll
946
defect
0794b545752d1da6123feead12f80ebae20d28b2
e4a9438756d849845533f72c15167ff4ab1a47da
Make column duplication idempotent
This PR makes column duplication idempotent. Previously, if the same column was altered in multiple operations in the same migration was not working. The modified column could not be duplicated in the second operation because the `ALTER TABLE` statement has failed. I added `IF NOT EXISTS` to make the column creation id...
diff --git a/pkg/backfill/backfill.go b/pkg/backfill/backfill.go index 401b7ff35..131034461 100644 --- a/pkg/backfill/backfill.go +++ b/pkg/backfill/backfill.go @@ -75,7 +75,9 @@ func (j *Job) AddTask(t *Task) { // CASE WHEN "review" = 'bad' THEN 'bad review' ELSE 'good review' END, it must be rewritten to: // ...
3
1
0
[{"id": "G0", "claim": "Rewriting each trigger's SQL with the trigger group's columns instead of the trigger's own columns was a bug in concatenating trigger SQL expressions: in the past it replaced the column names with the previous trigger's columns.", "category": "correctness", "verdict": "uncertain", "priority": "P...
null
xbmc__Kore__736
xbmc/Kore
736
defect
c44a5f061250ca5273352c8db73a7f7c0f4d0299
b381db45f9b8e5083e2813a7211c4f72e8027e42
Add support to sharing from Arte's video to Kodi
Add support to sharing from [Arte's video](https://www.arte.tv/) (The European Culture Channel) to Kodi, using the [Arte +7 plugin.](https://kodi.wiki/view/Add-on:Arte_%2B7) maintained by @known-as-bmf Two JUnit tests has beed added and runned on [Travis CI](https://travis-ci.org/github/stbland).
diff --git a/CHANGELOG.md b/CHANGELOG.md index a5245454d..b8d961380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog --------- +Version 2.5.1 +------------- +- Add support to sharing from Arte video (The European Culture Channel) to Kodi + Version 2.5.0 ------------- - Include search optio...
2
1
0
[{"id": "G0", "claim": "The copyright header of the new PluginUrlUtils.java should be updated to carry the author's own id instead of 'Copyright 2015 Synced Synapse'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Kore should switch the Arte plugi...
null
xbmc__xbmc__23840
xbmc/xbmc
23,840
defect
e0b42ee7cd099aff3c7fa9514e3a54c4cd901954
02231c78bf2edb8a3bafa65e1716e773b4ebabff
[Scraper] Support for filename identifiers
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Parse filenames for identifier tags and pass them through `getDetails` by providing an optional `uniqueIDs` parameter. ## Motivation and context <!--- Why is this chang...
diff --git a/xbmc/addons/Scraper.cpp b/xbmc/addons/Scraper.cpp index ad7b25105251c..cd1fb110d9d7e 100644 --- a/xbmc/addons/Scraper.cpp +++ b/xbmc/addons/Scraper.cpp @@ -913,6 +913,7 @@ std::vector<CScraperUrl> CScraper::FindMovie(XFILE::CCurlFile &fcurl, std::map<std::string, std::string> additionals{{"title", sTi...
1
1
1
[{"id": "G0", "claim": "Common patterns for finding DB identifiers in a filename should not be each individual scraper's responsibility; Kodi's own filename handling should be improved to take that responsibility instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xbmc__xbmc__25982
xbmc/xbmc
25,982
defect
65703fe91c077d8cc11be4ba10221b56cd38d30b
37dde755b5e3141aadd4e6fc8ddff006f6033ac6
[IFile][CFile] Rework `ReadString` into `ReadLine`
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> The function signature of `IFile::ReadString` and `CFile::ReadString` has a major shortcoming: There is no way to detect if a full line or only what fits into the buffer ...
diff --git a/xbmc/CueDocument.cpp b/xbmc/CueDocument.cpp index 3a5c0fae074f3..4ec435c52876a 100644 --- a/xbmc/CueDocument.cpp +++ b/xbmc/CueDocument.cpp @@ -80,10 +80,9 @@ class FileReader bool ReadLine(std::string &line) override { // Read the next line. - while (m_file.ReadString(m_szBuffer, 1023)) // B...
2
1
0
[{"id": "G0", "claim": "The reserve() calls added by the PR (e.g. strLine.reserve(4096) in PlayListPLS.cpp) are not really needed, and 4096 is too high for most cases - remove them or at least lower the high values (e.g. to 1024).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
xbmc__xbmc__26277
xbmc/xbmc
26,277
defect
3705cd35b087c05afac89e23edacf0b087a7cde3
a9f29cafb81137df5af4e858f3dd7e924540bec0
[Videoversions] Extend video version functionality to allow the selection of multiple versions (playlists) in the same Blu-ray ISO/folder - and add support for import/export of (multi) movie versions.
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Now that bluray:// file paths are implemented to point to individual playlists this PR extends the video version functionality to allow the selection of multiple playlsit...
diff --git a/xbmc/filesystem/BlurayFile.cpp b/xbmc/filesystem/BlurayFile.cpp index 077198a040bb6..829de77741dec 100644 --- a/xbmc/filesystem/BlurayFile.cpp +++ b/xbmc/filesystem/BlurayFile.cpp @@ -20,6 +20,17 @@ CBlurayFile::CBlurayFile(void) : COverrideFile(false) CBlurayFile::~CBlurayFile(void) = default; +std::...
2
1
1
[{"id": "G2", "claim": "BlurayFile.h should not use 'using namespace XFILE;' in a header (it can lead to weird compile problems and pollutes the global namespace), and the change wrongly takes CBlurayFile out of namespace XFILE; unrelated changes should go in a separate commit.", "category": "design", "verdict": "suppo...
null
xbmc__xbmc__26525
xbmc/xbmc
26,525
defect
3d517f306e0090b12b6e396408109714aa3243e5
108f47b7f32ba27d19396a036d20805e4d6adbc3
DNSNameCache: Add a Time To Live for cached names
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> So far the IP of the first successful lookup has been used indefinitely. This PR adds a TTL of 60 seconds for dynamically looked up hostnames and an infinity TTL for stat...
diff --git a/xbmc/network/DNSNameCache.cpp b/xbmc/network/DNSNameCache.cpp index 148c930f656de..654ebb28f275a 100644 --- a/xbmc/network/DNSNameCache.cpp +++ b/xbmc/network/DNSNameCache.cpp @@ -9,10 +9,11 @@ #include "DNSNameCache.h" #include "network/Network.h" -#include "threads/CriticalSection.h" #include "utils...
2
2
1
[{"id": "G0", "claim": "The static instance member `_instance` should be named `ms_instance` per the member-variable coding guidelines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DNS cache should be a CServiceBroker component rather than...
null
xbmc__xbmc__26664
xbmc/xbmc
26,664
defect
6fd582fd263251d67c9f62ab1c3c4e4a2a4d8340
3966f4a68bd52630202975de8ce61665d110937e
StringUtils: Fix MSVC iterator assertion
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> MSVC is very defensive in debug mode and doesn't allow interators past `end()` even if they are not dereferenced. Fixes this error: "cannot seek string_view iterator a...
diff --git a/xbmc/utils/StringUtils.cpp b/xbmc/utils/StringUtils.cpp index 3e3ba00f01cf1..4be37e856e6ee 100644 --- a/xbmc/utils/StringUtils.cpp +++ b/xbmc/utils/StringUtils.cpp @@ -17,6 +17,7 @@ //------------------------------------------------------------------------ #include <charconv> +#include <iterator> #ifd...
3
3
1
[{"id": "G0", "claim": "Unit tests for the changed AlphaNumericCompare behaviour should be added to the pull request.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The std::distance arguments in the digit-accumulation loops are reversed, so std::distan...
null
xbmc__xbmc__26724
xbmc/xbmc
26,724
defect
c95c0882be1efa77c7cf80db0bc0446352c35a3b
2383be7236a7c37b85a2d4fc667c0d3c99b19644
CAutoSwitch: simplify and clean up
## Description Simplifications by using standard algorithms and various cleanup in CAutoSwitch ## Motivation and context Cleaner code ## How has this been tested? It builds + I have added tests ## What is the effect on users? None ## Types of change <!--- What type of change does your code introduce? P...
diff --git a/xbmc/AutoSwitch.cpp b/xbmc/AutoSwitch.cpp index 0dd710f757165..35fd6623167b5 100644 --- a/xbmc/AutoSwitch.cpp +++ b/xbmc/AutoSwitch.cpp @@ -18,21 +18,29 @@ #include "settings/SettingsComponent.h" #include "view/ViewState.h" -#define METHOD_BYFOLDERS 0 -#define METHOD_BYFILES 1 -#define METHOD_BYTHUM...
1
1
0
[{"id": "G0", "claim": "The enum values in xbmc/AutoSwitch.cpp should be renamed to follow the enum naming rules of the project's code guidelines (docs/CODE_GUIDELINES.md section 8.3).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xbmc__xbmc__26830
xbmc/xbmc
26,830
defect
8fca3140aad3828a8381b022f1a68c5884472fe7
bf5d5500ffd000a821ef34a5b86ec41fd4047b0c
[CURL][tests] Fixed encoding of rar files to be consistent with zip etc...
[CURL][tests] Added tests checking for differences between URIUtils::* and CURL::* methods. Fixed issue found in testing when a service is unavailable. Check the service is non-null before calling its methods. ## Description The aim of this PR is to start a discussion on the differences found between the duplica...
diff --git a/xbmc/utils/URIUtils.cpp b/xbmc/utils/URIUtils.cpp index b13ebd6a689a0..2be0bc3f44a8f 100644 --- a/xbmc/utils/URIUtils.cpp +++ b/xbmc/utils/URIUtils.cpp @@ -823,7 +823,8 @@ bool URIUtils::IsHostOnLAN(const std::string& host, LanCheckMode lanCheckMode) if(address == INADDR_NONE) { std::string ip; ...
12
8
0
[{"id": "G0", "claim": "CURL::Parse's special-case check and early abort for the input \"?\" should be removed so that a local file named \"?\" is accepted as a valid filename.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "URIUtils::GetFileName(\...
null
xbmc__xbmc__26873
xbmc/xbmc
26,873
defect
8fca3140aad3828a8381b022f1a68c5884472fe7
c5c3eb033b1e9595b8d7bb2a3b0841b1e3987c9f
[CURL] Reduce the number of constructions of CURL objects.
## Description CURL objects are very expensive to create. The constructor calls `CURL::Parse` on every construction of a new object which analyses the string and parses it into many smaller strings; causing many allocations. Cache the `CURL` object on the `FileItem` object and invalidate the cache each time the `FileI...
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index ff17a6017893a..7ea51dec4a4f0 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -10,7 +10,6 @@ #include "CueDocument.h" #include "ServiceBroker.h" -#include "URL.h" #include "Util.h" #include "events/IEvent.h" #include "filesystem/CurlFile.h" @@ -97...
12
5
2
[{"id": "G0", "claim": "GetURL() should drop the const qualifier from its return type, since the object is copied anyway and returning by const value doesn't make much sense.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The cache members are written ...
null
xbmc__xbmc__26876
xbmc/xbmc
26,876
defect
189d4f1b9ac881155cca3b1d1159e5e5d079e6ee
d1d68b90a7d45c5a92ff18c114bdba994017e5da
[Mouse] Highlight mouse on pointer motion
## Description This PR adds highlighting of the mouse icon when the pointer is moved. Highlighting can be seen in the Player Viewer and the Peripherals Dialog. The PR contains 3 commits: 1. Removes unused function 2. Completes a TODO by refactoring mouse pointer handling 3. Completes anther TODO by connectin...
diff --git a/xbmc/games/addons/input/GameClientMouse.cpp b/xbmc/games/addons/input/GameClientMouse.cpp index 995cff68a13a7..66765da7cd85d 100644 --- a/xbmc/games/addons/input/GameClientMouse.cpp +++ b/xbmc/games/addons/input/GameClientMouse.cpp @@ -40,11 +40,10 @@ std::string CGameClientMouse::ControllerID(void) const ...
13
3
0
[{"id": "G0", "claim": "The rotation math mutates differenceX before computing the new differenceY, so the matrix multiply uses stale input and can produce incorrect results; store the original values in temporaries first.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, ...
null
xbmc__xbmc__26930
xbmc/xbmc
26,930
defect
3db7ba0e921edd8158090854b8415558bdd9690d
e8f2fc86d7e5ccec61a6f63b3c7acab0a1f4d915
[CURL] Trying to test functions which call DNSCache::Lookup failed du…
…ring testing. Check if the cache service is available before trying to use it. Safter for the test environment. ## Description Fixed issue found in testing when a service is unavailable. Check the service is non-null before calling its methods. ## Motivation and context Tests failed when I was adding to t...
diff --git a/xbmc/utils/URIUtils.cpp b/xbmc/utils/URIUtils.cpp index 04f99af161e64..eb5305fa1d158 100644 --- a/xbmc/utils/URIUtils.cpp +++ b/xbmc/utils/URIUtils.cpp @@ -826,7 +826,8 @@ bool URIUtils::IsHostOnLAN(const std::string& host, LanCheckMode lanCheckMode) if(address == INADDR_NONE) { std::string ip; ...
4
1
1
[{"id": "G0", "claim": "Consider bringing up a DNS cache for testing (e.g. in a test harness with known test values), since the added tests cannot exercise the cache itself.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding an inline comment ...
null
xbmc__xbmc__26956
xbmc/xbmc
26,956
defect
3585e764e09b96a71f42d60eca443f823e9eb2a0
c813ee8f2eb22cbb44ffcd21c755d9a76cf2635d
[Music][Audiobooks] Add support for nero type chapters in m4b files
## Description This PR adds the ability for Kodi to read and process nero type chapters (atom 'chpl') in m4b files. I've added it into utils rather than just into music as these chapters can apply just as much to video in mp4 files as to audio in m4b files. ## Motivation and context Nero Digital introduced the no...
diff --git a/xbmc/filesystem/AudioBookFileDirectory.cpp b/xbmc/filesystem/AudioBookFileDirectory.cpp index 95a58cda8e8fc..0d62e0a5cedba 100644 --- a/xbmc/filesystem/AudioBookFileDirectory.cpp +++ b/xbmc/filesystem/AudioBookFileDirectory.cpp @@ -17,6 +17,8 @@ #include "imagefiles/ImageFileURL.h" #include "settings/Adv...
15
14
1
[{"id": "G0", "claim": "The condition `(i <= ns)` allows `i == ns`, which is out of range for `nero`; it should be `i < ns`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Avoid `using namespace` in the header to prevent namespace pollution for cons...
null
xbmc__xbmc__26963
xbmc/xbmc
26,963
defect
7646467f9e93fdbcd85b3a4f8f71c91604546506
4f30ad6e99dbff550abf33834478793175eaca08
[Video] More path related refactoring for blurays, and associated tests.
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> I think (I hope!) I've now added tests for all routines that manipulate paths - to account for blurays (both ISO/BDMV paths and bluray:// paths where appropriate). The...
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index d6bcdd0a1c041..65dbd9ea28b8a 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -1902,7 +1902,7 @@ std::string CFileItem::GetLocalMetadataPath() const if (URIUtils::IsBlurayPath(GetDynPath()) || VIDEO::IsDVDFile(*this) || VIDEO::IsBDFile(*this)) re...
19
13
4
[{"id": "G0", "claim": "GetLocalArtBaseFilename checks IsBlurayPath(file) twice; consolidate the duplicate checks or extract a helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetDiscFile returns an empty string for non-Bluray paths, which...
null
xbmc__xbmc__26969
xbmc/xbmc
26,969
defect
5a1e8cb9e58b98b8227053bc39905f3f41cd35d6
56844a0bbb21e3835acca7bebec318d47b511348
[DirectoryCache] Fix bugs and add tests for CDirectoryCache
## Description Fixed bug and added test. RemoveSlashAtEnd() was not called on the key in the `ClearSubPaths` method; sometimes the parent path was not cleared. Fixed bug and added test. RemoveSlashAtEnd() was not called on the key in the `ClearFile` method; sometimes the parent path was not calculated correctly...
diff --git a/xbmc/filesystem/DirectoryCache.cpp b/xbmc/filesystem/DirectoryCache.cpp index e6679b99fa10f..942b68b406700 100644 --- a/xbmc/filesystem/DirectoryCache.cpp +++ b/xbmc/filesystem/DirectoryCache.cpp @@ -25,6 +25,41 @@ using namespace XFILE; +namespace +{ + +std::string getKey(const CURL& url) +{ + // Ge...
5
2
0
[{"id": "G0", "claim": "The new test names 'ClearSubPathsBug', 'ClearSubPathsBug2' and 'AddFileSlashBug' are not descriptive of the specific scenario each tests and should be given more descriptive names.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
xbmc__xbmc__27039
xbmc/xbmc
27,039
defect
805b5f0e28f46199f77b49ca428ace8f1143c680
ed9dc9bb410c217ec88027071100eb6e4f16286e
Random SonarQube findings which were introduced since July 18 2025
## Description Fixing SonarQube findings introduced between July 18 and August 3. Like always, no functional changes intended. * "std::move" should only be used where moving can happen cpp:S5415 * "auto" should be used to avoid repetition of types cpp:S5827 * The right-hand operands of && and || should not contai...
diff --git a/xbmc/NfoFile.cpp b/xbmc/NfoFile.cpp index 4fb7fb848d4e3..3cc741125082c 100644 --- a/xbmc/NfoFile.cpp +++ b/xbmc/NfoFile.cpp @@ -59,8 +59,15 @@ CInfoScanner::InfoType CNfoFile::Create(const std::string& strPath, if (m_type == AddonType::SCRAPER_MOVIES) { m_headPos = m_doc.find("<movies>"); ...
2
2
0
[{"id": "G0", "claim": "The repeated explicit casts of AddVideo()/AddSeason() return values to int at the call sites suggest a potential API design issue: the return-type mismatch should be addressed at the API level rather than with casts at each call site.", "category": "design", "verdict": "supported", "priority": "...
null
xbmc__xbmc__27049
xbmc/xbmc
27,049
defect
ae088763c7f37ffdcc76ec4c3e8a8498933974f7
5bf6a2efb221d51f4ac48fa0139b95950a0489bc
[Video] Improve episode range determination when scanning library and add further tests.
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Deal with some corner cases by improving range determination, limiting how ranges can be defined and instituting some safety checks on ranges. ## Motivation and contex...
diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp index a0c72b6a3da3b..e0acb3be85058 100644 --- a/xbmc/video/VideoInfoScanner.cpp +++ b/xbmc/video/VideoInfoScanner.cpp @@ -73,29 +73,39 @@ using KODI::UTILITY::CDigest; namespace { + +constexpr int MAX_EPISODE_RANGE = 50; + void ProcessE...
4
3
1
[{"id": "G0", "claim": "A '-' that is not followed by an E and at least one digit (e.g. 'S01E01-200', or the '1080' in '1080p') should not be treated as an episode range but as a single episode / not as an episode number.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
xbmc__xbmc__27077
xbmc/xbmc
27,077
defect
a851befdd102d1fccaeff99a495992fec8459ef5
c0a7c93633df57aeb87a73e6e51fe136d0a5b591
Add Season Plot
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Add storage for a season plot in the seasons table, videodb version bump, add the plumbing to make it visible in the GUI, to import from Python scraper and import/export ...
diff --git a/xbmc/CMakeLists.txt b/xbmc/CMakeLists.txt index 60214be862b06..af97d6b3ddfba 100644 --- a/xbmc/CMakeLists.txt +++ b/xbmc/CMakeLists.txt @@ -17,6 +17,7 @@ set(SOURCES AutoSwitch.cpp LangInfo.cpp MediaSource.cpp NfoFile.cpp + NfoUtils.cpp Passwor...
4
3
0
[{"id": "G0", "claim": "Use a helper method such as isEmpty() on SeasonAttributes instead of comparing against an anonymous struct, for readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The designated initializer sy...
null
xbmc__xbmc__27117
xbmc/xbmc
27,117
defect
3c414eca8840637f61a45df8f6dbe6863ccf5034
82f5572721d561db3b26fa26f34a5716a65678ec
[PasswordManager] Factor out common credentials code.
## Description Adding username and password to a URL is used in multiple places. Factor out this functionality into its own function. ## Motivation and context ## How has this been tested? Manually ## What is the effect on users? ## Screenshots (if appropriate): ## Types of change <!--- What type ...
diff --git a/xbmc/filesystem/Directory.cpp b/xbmc/filesystem/Directory.cpp index 5f9d1e20fd4a3..92159722de2f8 100644 --- a/xbmc/filesystem/Directory.cpp +++ b/xbmc/filesystem/Directory.cpp @@ -183,6 +183,7 @@ bool CDirectory::GetDirectory(const CURL& url, g_directoryCache.ClearDirectory(realURL); pDir...
8
3
1
[{"id": "G0", "claim": "The two AddCredentials overloads should be a single function taking CURL by value, which the reviewer says can handle both l-value and r-value cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Call sites of AddCredentials shou...
null
xbmc__xbmc__27261
xbmc/xbmc
27,261
defect
c3e9086875ca0ac928572d6ff8bca0df1c91ee6c
6c7b5c965865fd64b732e6545d152be1762c24de
Introduce a constexpr set class, similar to `CMap`
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> `CSet` is similar to `std::set` but constexpr. It will probably see less use than `CMap` but the implementation is very simple so maintenance burden shouldn't be a concer...
diff --git a/xbmc/addons/addoninfo/AddonType.cpp b/xbmc/addons/addoninfo/AddonType.cpp index 1acaafc5527f4..4fecbbec3b430 100644 --- a/xbmc/addons/addoninfo/AddonType.cpp +++ b/xbmc/addons/addoninfo/AddonType.cpp @@ -9,19 +9,20 @@ #include "AddonType.h" #include "addons/addoninfo/AddonInfo.h" +#include "utils/Set.h...
19
9
1
[{"id": "G0", "claim": "Fix the garbled wording of the class doc comment in Set.h (\"will figure the typ / ans size out\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing `static` may mean each user gets its own copy of the constants (rai...
null
xbmc__xbmc__27400
xbmc/xbmc
27,400
defect
2b5a899b37941847f7b44cbf8875692e09c7d9d9
a86c11e19b763d0b7d55ccdd0ba7793480101c58
[CDateTime][PVR] Fix Daylight Saving Time Switch Issues
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> This PR fixes along standing issue with PVR Guide showing wrong time for all EPG entries starting/ending after daylight saving time (DST) switch until Kodi gets restarted. ...
diff --git a/xbmc/XBDateTime.cpp b/xbmc/XBDateTime.cpp index c2a9a6b787d7c..5bd3b8c4c0ec3 100644 --- a/xbmc/XBDateTime.cpp +++ b/xbmc/XBDateTime.cpp @@ -10,6 +10,7 @@ #include "LangInfo.h" #include "guilib/LocalizeStrings.h" +#include "threads/SystemClock.h" #include "utils/Archive.h" #include "utils/StringUtils....
12
9
3
[{"id": "G0", "claim": "The static variables timezoneBias and biasRefreshTimeout in GetCurrentTimezoneBias() are accessed and modified without synchronization, causing data races and undefined behavior when multiple threads call it concurrently; add mutex protection around the function body or use std::atomic plus a lo...
null
xbmc__xbmc__27626
xbmc/xbmc
27,626
defect
996694cbb2ee98b75886ec48b2d0c2bec6d2e0c1
84c5e605647396ba5fda9904c750701d76111c90
Fix interference between unit tests and portable mode
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Run unit tests with a new storage location "test_data" for user directories (ex. special://home, ...) instead of portable_data in order to preserve the contents of portab...
diff --git a/xbmc/application/AppParamParser.cpp b/xbmc/application/AppParamParser.cpp index 4d214c9b81892..dea6fd7644116 100644 --- a/xbmc/application/AppParamParser.cpp +++ b/xbmc/application/AppParamParser.cpp @@ -102,8 +102,8 @@ void CAppParamParser::ParseArg(const std::string &arg) DisplayVersion(); else i...
2
2
1
[{"id": "G0", "claim": "The ternary tests the enum value itself (always truthy) instead of comparing loc, so TEST mode always gets PORTABLE_DIRECTORY in InitDirectoriesLinux (line 165) and InitDirectoriesOSX (line 264).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id"...
null
xbmc__xbmc__27921
xbmc/xbmc
27,921
defect
0b796b9fcb98815d4ce601eba2c534ad53b36fdf
22f5944ad2cb78e63029b5e570363afe0ac32c36
[Video] Adjust getting movie names from archives.
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> @CrystalP pointed out some cases where movies in archives weren't scanned correctly. There were two cases: 1) An archive file containing files in root of the archive:...
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index 6ea5475e1cc69..94b88de47c6a9 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -1922,30 +1922,49 @@ std::string CFileItem::GetBaseMoviePath(bool bUseFolderNames) const { strMovieName = CStackDirectory::GetBasePath(m_strPath); } - else if (bUse...
4
2
2
[{"id": "G0", "claim": "GetBaseMoviePath assigns the results of URIUtils::RemoveDiscPath and URIUtils::GetDirectory to strMovieName without checking for empty, so a BD/DVD path with no parent (e.g. BDMV/index.bdmv at an archive root) can blank strMovieName and break movie name extraction.", "category": "correctness", "...
null
xbmc__xbmc__28046
xbmc/xbmc
28,046
defect
bb38e26ea06633fd26f7cf578507d0fb85e23980
559d1043fd3caa6a35d283acfa4aab5dd5466468
Game API v5.1.0: Add "autoconnect" property to controller ports
## Description @kodiai generate the entire PR for me Eh, it got this far: Adds `autoconnect` property to Game API v5.1.0 controller ports to control whether ports are connected automatically at game session start. game.libretro companion: https://github.com/kodi-game/game.libretro/pull/156 ## Motivation and...
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/game.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/game.h index 7423775ce7fcd..9d1afb8769c68 100644 --- a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/game.h +++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-ins...
4
1
1
[{"id": "G0", "claim": "Kodi reading the new `autoconnect` field of a `game_input_port` received from an add-on compiled against the old API that does not initialize it reads garbage memory, so the struct should be zero-initialized on the Kodi side or the add-ons required to initialize it documented.", "category": "cor...
null
xbmc__xbmc__28185
xbmc/xbmc
28,185
defect
8a11b7ac8d828a6308ab1f27915fbdc510c3a628
3cb486d5c0b7c424f373826043832aad6d4d9710
[RegeExp] Fix incorrect bounds check in IsValidSubNumber() and add tests.
## Description <!--- Provide a general summary of your change in the Pull Request title above --> <!--- Describe your change in detail here. --> Looking at the pcre2 specs - https://www.pcre.org/current/doc/html/pcre2_match.html `The return from pcre2_match() is one more than the highest numbered capturing pair t...
diff --git a/xbmc/utils/RegExp.cpp b/xbmc/utils/RegExp.cpp index aee3476f650a0..0711dbe1fac58 100644 --- a/xbmc/utils/RegExp.cpp +++ b/xbmc/utils/RegExp.cpp @@ -575,7 +575,7 @@ void CRegExp::Cleanup() inline bool CRegExp::IsValidSubNumber(int iSub) const { - return iSub >= 0 && iSub <= m_iMatchCount && iSub <= m_M...
7
4
1
[{"id": "G0", "claim": "The new test name `boundsChecks` is inconsistent with the surrounding PascalCase `TestRegExp` test names; consider renaming it to `BoundsChecks`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `boundsChecks` test neve...
null
xbpeng__MimicKit__84
xbpeng/MimicKit
84
defect
7d0aa9e3795a3617c61cd0dc5a66c6ec8b99a403
730526afc0f3ac7f79b5bc8a58022c929900f74a
Add video recording to the job
Add 3 flags to control video rendering: ``` --video true ``` It renders a video during test_model The video is first stored in `wandb/{job_name}/files/media/videos/`, and synced to wandb. In wandb individual runs, you can see different snapshots by scrolling the process bar: <img width="1664" height="475"...
diff --git a/mimickit/engines/engine_builder.py b/mimickit/engines/engine_builder.py index 20314b80..e19bb47e 100644 --- a/mimickit/engines/engine_builder.py +++ b/mimickit/engines/engine_builder.py @@ -3,7 +3,7 @@ except: pass -def build_engine(config, num_envs, device, visualize): +def build_engine(config, nu...
9
9
4
[{"id": "G0", "claim": "The setuptools entry added to requirements.txt is unexplained and appears unnecessary and should be justified or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `if (self._video_recorder is not None):` guards ...
null
xd009642__tarpaulin__177
xd009642/tarpaulin
177
defect
fd88c013954ecf880a7b7cd75af811b3e78f9f9d
59685b490e3b392540a8c1cf9119aa32ad084fd3
[WIP] Improve error reporting with 'failure' crate
Attempts to tackle #163 As the title suggests, this is very much a work in progress.
diff --git a/Cargo.lock b/Cargo.lock index bf553c2866..be7c579f59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -131,10 +131,13 @@ dependencies = [ "cargo 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "coveralls-api 0.3.3 (reg...
6
4
2
[{"id": "G0", "claim": "The tests still destructure the old (TraceMap, bool) return of launch_tarpaulin and must be updated to use the new interface.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The raw println! messages in src/statemachine.rs still n...
null
xd009642__tarpaulin__1810
xd009642/tarpaulin
1,810
defect
9ba5f8d92d40710f4cda4a599b19233f9736c3c9
cbed18a2f51fc760b91277c1f3ee542b808f04ff
#1806: test folders in workspace members included in coverage
<!--- When contributing to tarpaulin all contributions should branch off the --> <!--- develop branch as master is only used for releases. --> <!--- Check CONTRIBUTING.md for more information--> <!--- Please describe the changes in the PR and them motivation below --> Issue #1806 : Remove the test folders from...
diff --git a/src/path_utils.rs b/src/path_utils.rs index 3c1ed7775..31c4d1c39 100644 --- a/src/path_utils.rs +++ b/src/path_utils.rs @@ -1,7 +1,7 @@ use crate::config::Config; use std::env::var; use std::ffi::OsStr; -use std::path::{Path, PathBuf}; +use std::path::{Component, Path, PathBuf}; use walkdir::{DirEntry,...
1
1
1
[{"id": "G0", "claim": "Revert the change of include-tests from true to false in tarpaulin.toml because it would change the output of the CI job where tarpaulin runs on tarpaulin, and it did not solve the failing tests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xd009642__tarpaulin__578
xd009642/tarpaulin
578
defect
547e15d234b108dc16ddb589ce566e0fb6fafc3b
be9401bf98ff324994dd83d5f20a249152d6679f
528 - rough version of fix.
<!--- When contributing to tarpaulin all contributions should branch off the --> <!--- develop branch as master is only used for releases. --> <!--- Check CONTRIBUTING.md for more information--> <!--- Please describe the changes in the PR and them motivation below -->
diff --git a/src/cargo.rs b/src/cargo.rs index 649b5cefc..55e71858c 100644 --- a/src/cargo.rs +++ b/src/cargo.rs @@ -5,11 +5,13 @@ use cargo_metadata::{diagnostic::DiagnosticLevel, CargoOpt, Message, Metadata, M use serde::{Deserialize, Serialize}; use std::collections::{HashMap, HashSet}; use std::env; -use std::fs...
5
5
3
[{"id": "G0", "claim": "The PR should look for a config file called `.cargo/config` rather than `.cargo/config.toml`, since the file may be toml format but is just called `.cargo/config`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unwraps in...
null
xdagiz__xytz__17
xdagiz/xytz
17
defect
110b065bc48a6c8dea12405e1d8d9912908d2296
80076ff7c866ec25b018063c9acc8c7b81f2d998
feat: thumbnail preview
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Thumbnail preview in the video list with configurable enable/disable, width/height and timeout; responsive two-pane layout, async loading, cancellation and local caching. * **Compatibility** ...
diff --git a/go.mod b/go.mod index cb6ec36..c135e3a 100644 --- a/go.mod +++ b/go.mod @@ -17,26 +17,34 @@ require ( require ( github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/aymanbagabas/go-udiff v0.3.1 // indirect + github.com/blacktop/go-termimg v0.1.26 // indirect github.com/charmbracelet/col...
19
15
8
[{"id": "G0", "claim": "Scaling down for height uses (height * 16) / 9, inconsistent with the forward (width * 9) / 32 mapping, so the aspect ratio may not be preserved when constrained by height and then by width; the reverse calculation should be (height * 32) / 9.", "category": "correctness", "verdict": "supported",...
null
xdagiz__xytz__20
xdagiz/xytz
20
defect
62d78fd5ae02557f23f09a1dbde0cfe91c51e8cd
33f6f43e2ef4958d641526bf285f3ba40d56bdf2
chore: migrate to bubbletea v2
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Upgraded UI framework and styling for more consistent, modern rendering and theme application. * Standardized keyboard and mouse input handling (new key event behavior) for more reliable, responsi...
diff --git a/cmd/root.go b/cmd/root.go index ea98e61..785896c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,8 +11,8 @@ import ( appctx "github.com/xdagiz/xytz/internal/tui/context" "github.com/xdagiz/xytz/internal/tui/models/search" - tea "github.com/charmbracelet/bubbletea" - zone "github.com/lrstanley/bubbl...
8
8
6
[{"id": "G0", "claim": "The new tea.MouseReleaseMsg handler in search.go returns early for every left-button release, so releases not on the open_github zone never reach later handlers and resume-list/input mouse interactions stop working; the guard should also require the click to be in bounds.", "category": "correctn...
null
xdebug__vscode-php-debug__245
xdebug/vscode-php-debug
245
defect
6e6261dcfb9ecba66f063b592eeeff725fbfcfb9
e03dd2b0a67d8cdee2e501ac0256a1e420d43347
Fixed Inconsistencies between Drive Paths on Windows (C:\ vs c:\)
It seems like VS Code or another dependency has begun using lowercase drive names in some places, but not in `${workspaceRoot}` This will make it match up.
diff --git a/src/paths.ts b/src/paths.ts index 0c574417..20445fed 100644 --- a/src/paths.ts +++ b/src/paths.ts @@ -53,7 +53,11 @@ export function convertClientPathToDebugger(localPath: string, pathMapping?: { [ let localSourceRoot: string | undefined let serverSourceRoot: string | undefined let localFile...
4
4
2
[{"id": "G0", "claim": "The CI build is failing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The callback parameter in the drive-letter lowercase replace is explicitly annotated `any`; it should be inferred as `string`.", "category": "maintainabi...
null
xdebug__vscode-php-debug__363
xdebug/vscode-php-debug
363
defect
fa881ceb5112fdda0bceb9abfcdee7a07abbfe13
4c42624a7e850e9a81bf396fb0bda081116ec419
feat: implement longest prefix matching for pathMappings (closes #331)
I decided to approach #331 and it turned out to be only a minor change. I also added longest prefix matching for the client to debugger mapping as there are use cases for this as well and it does not affect the existing mapping behavior (unless in actual use cases in which the change is most certainly welcome).
diff --git a/src/paths.ts b/src/paths.ts index f56b93d15..5dd21362a 100644 --- a/src/paths.ts +++ b/src/paths.ts @@ -46,9 +46,13 @@ export function convertDebuggerPathToClient( // normalize slashes for windows-to-unix const serverRelative = (serverIsWindows ? path.win32 : path.posix).relative(...
2
2
2
[{"id": "G0", "claim": "In the convertClientPathToDebugger test the mapping list should be built so that the test would fail without the longest-prefix-matching patch; move '/app/subdir1': '/home/felix/mysource/subdir' one line up, before '/app': '/home/felix/mysource'.", "category": "testing", "verdict": "supported", ...
null
xdp-project__xdp-tools__159
xdp-project/xdp-tools
159
defect
739e25fbf37c5d0707c31a18ca140595537613cc
83268abbeafb553a4340e39e0eea28b87eec5a08
testing: add test-tool to testing framework with basic load
This commit adds a test-tool compiled binary to the testing framework. The tool allows specific "C" tool needs to be bundled in a single binary. The first tool needed was a simple loader to get rid of the bpftool used by the xdp-dump self-test. Fixes #150 Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
diff --git a/.gitignore b/.gitignore index eeb9938ed..5042a5a0e 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,9 @@ *.idb *.pdb +# Test artifacts +/lib/testing/test-tool + # Kernel Module Compile Results *.mod* *.cmd diff --git a/lib/testing/Makefile b/lib/testing/Makefile index eb2274418..4649347b1 10064...
2
2
1
[{"id": "G0", "claim": "The test-tool ignore entry should go into a per-directory .gitignore in lib/testing instead of the top-level .gitignore, for consistency with the other tools directories.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Wit...
null
xdp-project__xdp-tools__362
xdp-project/xdp-tools
362
defect
9aba9e9aee38ee69ac2be4e728b82873cc2b3c03
5a17836a8106c79d03e7ce1623b407653c96ca4b
Support detaching xdp_link-based attachments fix #361
supporting force detach for link based attachments using `xdp-loader unload -a <intf>` fixes #361
diff --git a/lib/libxdp/libxdp.c b/lib/libxdp/libxdp.c index 13e2651f..0d7383e8 100644 --- a/lib/libxdp/libxdp.c +++ b/lib/libxdp/libxdp.c @@ -3223,6 +3223,43 @@ static int xdp_multiprog__unpin(struct xdp_multiprog *mp) return err; } +static void xdp_detach_links(uint32_t ifindex) { + struct bpf_link_info link_inf...
13
13
10
[{"id": "G0", "claim": "On the first loop iteration bpf_link_get_next_id() is passed an uninitialized `id`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In all the error branches of xdp_detach_links(), `err` should be set to -errno and the functio...
null
xdp-project__xdp-tools__365
xdp-project/xdp-tools
365
defect
6ce30637951949212344f1968c3fd5e5adf1ffc3
3425694786c64d626a2af8b9aa414c0d50628ebd
need to support xdp detach link for skb and native modes
we need to be able to handle skb and native modes to avoid this ```sh # xdp-loader unload -a bond0 Unable to detach XDP program: Device or resource busy # xdp-loader status CURRENT XDP PROGRAM STATUS: Interface Prio Program name Mode ID Tag Chain actions ---------------------...
diff --git a/lib/libxdp/libxdp.c b/lib/libxdp/libxdp.c index 8f9cf1a2..9127454a 100644 --- a/lib/libxdp/libxdp.c +++ b/lib/libxdp/libxdp.c @@ -3299,7 +3299,7 @@ static int xdp_multiprog__attach(struct xdp_multiprog *old_mp, err = xdp_attach_fd(prog_fd, old_fd, ifindex, mode); if (err < 0) { - if (errno == EBUSY ...
1
1
0
[{"id": "G0", "claim": "The selftest should be updated so it repeats the test with both generic and native attachment modes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
xdp-project__xdp-tools__462
xdp-project/xdp-tools
462
defect
abff006c6568ba84cff7d88006439506076e4add
48e59418bf725a050ef6b1865a087dfb1adb732e
libxdp: Modify semantic of fill and comp in xsk_socket_opts, with tests edited
Use `umem`'s `fill_save` and `fill_comp` if `fill` and `comp` in opts are both unset when calling `xsk_socket__create_opts()`, otherwise use what they are set in opts. Add validation for only one of `fill` and `comp` are set. This is to keep the same semantic as `xsk_socket__create()` and `xsk_socket__create_shared()`...
diff --git a/headers/xdp/xsk.h b/headers/xdp/xsk.h index 80826ccd..d7b9f2e6 100644 --- a/headers/xdp/xsk.h +++ b/headers/xdp/xsk.h @@ -258,11 +258,13 @@ struct xsk_socket_config { * The following fields are optional: * * @fill, @comp, @rx_size, @tx_size, @libxdp_flags, @xdp_flags, - * @bind_flags + * @bind_flags...
2
2
2
[{"id": "G0", "claim": "The newly added `shared` field provides no extra information: simply setting `fill` and `comp` (or, conversely, leaving them both unset/NULL) should be enough to signal the caller's intention, so the extra field is unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "s...
null
xdp-project__xdp-tools__477
xdp-project/xdp-tools
477
defect
7b3bbe2f6f16d658bb09a7b7e5958f4a49825ee6
d2a4b8bb5241623173ac3b03d7948ebf54ab15d4
libxdp: Fix incorrect setsockopt xdp_umem_reg size.
The commit in the fixes tag made an uneccesary and incorrect attempt at backwards compatibility with kernels that do not support tx_metadata_len. The kernel will either expect a size matching its version of struct xdp_umem_reg, if it encounters a shorter size, clamp it to 24 byte struct xdp_umem_reg_v1 [0]. The c...
diff --git a/lib/libxdp/xsk.c b/lib/libxdp/xsk.c index 2e593f50..023f267b 100644 --- a/lib/libxdp/xsk.c +++ b/lib/libxdp/xsk.c @@ -343,9 +343,6 @@ struct xsk_umem *xsk_umem__create_opts(void *umem_area, mr.tx_metadata_len = OPTS_GET(opts, tx_metadata_len, XSK_UMEM__DEFAULT_TX_METADATA_LEN); mr_size = sizeof(mr);...
3
2
1
[{"id": "G0", "claim": "Get rid of the mr_size variable completely, passing sizeof(mr) directly to setsockopt instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Document in the commit message that the regression only affects users that set ...
null
xeipuuv__gojsonschema__269
xeipuuv/gojsonschema
269
defect
be0936907f66b716b8a0410d12dcaf72070a5fc7
9fced130cbef4738f1903ae2002262edd4845308
add check for schema map[string]interface{} asssertion
When you use `GoLoader` and put something that is not `map[string]interface{}` the library panic on nil value, because in `draft.go`, line 95 `m := documentNode.(map[string]interface{})`, assertion is not checked. [our issue](https://github.com/kyma-incubator/compass/issues/256)
diff --git a/draft.go b/draft.go index 7a0123c..7318dd5 100644 --- a/draft.go +++ b/draft.go @@ -92,7 +92,10 @@ func parseSchemaURL(documentNode interface{}) (string, *Draft, error) { if isKind(documentNode, reflect.Bool) { return "", nil, nil } - m := documentNode.(map[string]interface{}) + m, ok := documentNod...
2
1
0
[{"id": "G0", "claim": "errcheck reports many more unchecked type assertions across the library (draft.go, jsonLoader.go, schema.go, schemaPool.go, utils.go, validation.go) besides the one this PR fixes, and the author says he is going to fix them too.", "category": "correctness", "verdict": "opposed", "priority": "P1"...
null
xeipuuv__gojsonschema__280
xeipuuv/gojsonschema
280
defect
82fcdeb203eb6ab2a67d0a623d9c19e5e5a64927
e0f2fa08060305193ea0873bb5f49e489962793a
Support for custom formats on all primitive types
You can only create custom format checkers for `number` and `string` types. https://github.com/xeipuuv/gojsonschema/blob/82fcdeb203eb6ab2a67d0a623d9c19e5e5a64927/validation.go#L845-L855 It is currently not possible to define a custom format for the type `array` for example. ```json {"type": "array", "format"...
diff --git a/schema_test.go b/schema_test.go index c05ddf0..8c6db37 100644 --- a/schema_test.go +++ b/schema_test.go @@ -27,6 +27,7 @@ package gojsonschema import ( "bytes" + "encoding/json" "fmt" "io" "io/ioutil" @@ -380,3 +381,119 @@ func TestIncorrectRef(t *testing.T) { assert.Nil(t, s) assert.Equal(t...
2
2
1
[{"id": "G0", "claim": "validateFormat should not be a standalone type-specific validate* function called from validateRecursive; the format check should be applied regardless of the validated object's type, which is the role of validateCommon.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ...
null
xen0n__go-workwx__255
xen0n/go-workwx
255
defect
d07440839e25a64ce4691b335bc524b6d3bfe9ff
0912b88fa4e03a3b786cd45b73cf2ddb262e8790
Feat: 增加获取应用列表、获取应用信息的接口
新增了两个 获取 Agent 信息的接口,对应企业微信官方文档: - 获取指定的应用详情: GET /cgi-bin/agent/get [获取指定的应用详情](https://work.weixin.qq.com/api/doc#90000/90135/90227) - 获取 access_token 对应的应用列表: GET /cgi-bin/agent/list [获取access_token对应的应用列表](https://work.weixin.qq.com/api/doc#90000/90135/90227)
diff --git a/agent.go b/agent.go new file mode 100644 index 0000000..ea9db9d --- /dev/null +++ b/agent.go @@ -0,0 +1,79 @@ +package workwx + +// AgentInfo 应用信息 +type AgentInfo struct { + // AgentID 企业应用id + AgentID int64 + // Name 企业应用名称 + Name string + // SquareLogoURL 企业应用方形头像 + SquareLogoURL string + // Description ...
2
2
0
[{"id": "G0", "claim": "GetCurrentAgentInfo could simply `return c.GetAgentInfo(c.AgentID)` instead of assigning c.AgentID to the intermediate variable agentId first.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the lint issue by renaming ...
null
xen0n__go-workwx__48
xen0n/go-workwx
48
defect
8fab05bfcc21700c57a8950f87debb4e3a3c9c95
b348815c0b285765ffc0d9b9efa1dc5771f4be25
feat: add GetUserInfoByCode and Event ChangeExternal
Support identity apis GetUserInfoByCode doc: https://work.weixin.qq.com/api/doc/90000/90135/91023 Support manage externalcontact callback apis EventAddExternalContact doc: https://work.weixin.qq.com/api/doc/90000/90135/92130#添加企业客户事件 EventEditExternalContact doc: https://work.weixin.qq.com/api/doc/90000/90135/921...
diff --git a/README.md b/README.md index efd5493..1c13695 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,21 @@ in at least 2 of Qiniu's internal systems. - [x] 获取客户列表 - [x] 获取客户详情 - [x] 修改客户备注信息 +* [x] 变更回调通知 + - [x] 添加企业客户事件 + - [x] 编辑企业客户事件 + - [x] 外部联系人免验证添加成员事件 + - [x] 删除企业客户事件 + ...
1
1
0
[{"id": "G0", "claim": "The newly added `ChatId` field and `GetChatId` method on `rxEventChangeExternalChat` should be respelled `ChatID`/`GetChatID` to match the library's uniform casing for that field name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xenia-project__xenia__1108
xenia-project/xenia
1,108
defect
6b8a34c9ba7e4886d7c42de1658682acfffd0a11
15d28d26e0a0e19060d07c1de47ae34b47b6b99f
Memory tests
Add base tests for memory. Running memory tests on Linux revealed inconsistent behaviour of `_mm_load_si128` and `_mm_store_si128` where pointers not aligned with 128 bits address space would cause segmentation fault. A patch for this issue is included.
diff --git a/.travis.yml b/.travis.yml index 430b2f08a3b..87823fa70e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,7 +59,7 @@ script: # Run linter. - if [[ $LINT == true ]]; then ./xenia-build lint --all; fi - # Build and run our simple hello world test. + # Build and run base tests - if [[ $BUILD =...
5
4
3
[{"id": "G0", "claim": "When src_ptr is already 16-byte aligned, the new unaligned_words formula yields 8, so the aligned routine needlessly copies 8 words through the slow scalar path.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The aligned copy...
null
xenia-project__xenia__1397
xenia-project/xenia
1,397
defect
05a62673f7aa08f091368b51d4f0c590e38e7882
55cc875e4d415b9cabb044ed08e7450fa9f7a406
Linux memory Fixes
Here are various memory implementation Fixes for Xenia to run on Linux. As of this draft, they go as far as getting something on screen, but they do go farther in the initialization. ### Changes * Cherry picked some improvements from @uytvbn from another unmerged PR * Moved some Windows specific code about Virtua...
diff --git a/src/xenia/base/memory.h b/src/xenia/base/memory.h index e1125a5e3f7..c0dfba3c6bd 100644 --- a/src/xenia/base/memory.h +++ b/src/xenia/base/memory.h @@ -101,7 +101,8 @@ typedef void* FileMappingHandle; FileMappingHandle CreateFileMappingHandle(const std::filesystem::path& path, ...
3
3
2
[{"id": "G0", "claim": "The two read/write loops in the read_write_view test, specifically writing `*p_value = i`, make the test fail with SIGSEGV on Windows (per the linked CI run); the reviewer asks the author to check it on Windows.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "int...
null
xenia-project__xenia__1797
xenia-project/xenia
1,797
defect
b099d74f78f6eb3aa42edeec438c535440634e8a
747f3c80a0756682f382ae2c2793b1a4dc223d3d
Improve GCC/Std compatibility and Linux dev experience
This fixes a bunch of issues when compiling with GCC (10). One issue still left: * `xe::gpu::RenderTargetCache::RenderTargetKey` initializes its key value to `0` and therefore has an implicit constructor. It is used in a union and thus throws a warning. According to @Triang3l there will be changes to it "soon", s...
diff --git a/src/xenia/apu/audio_system.cc b/src/xenia/apu/audio_system.cc index 67bf34ae3f2..02d5f1589cc 100644 --- a/src/xenia/apu/audio_system.cc +++ b/src/xenia/apu/audio_system.cc @@ -223,7 +223,7 @@ void AudioSystem::UnregisterClient(size_t index) { } bool AudioSystem::Save(ByteStream* stream) { - stream->Wr...
11
11
1
[{"id": "G0", "claim": "The Hasher parameter in render_target_cache.h should follow the codebase's render_target_key naming instead of renderTargetKey.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FourCC magic constants should be expressible i...
null
xenia-project__xenia__1952
xenia-project/xenia
1,952
defect
975eadf17e8a4af93530d595ce06b14c8be7209b
25e106ab2cb6771c802344c945ac9e3a6977bdc1
[CPU] Remove `use_haswell_instructions` in favor of `x64_extension_mask`
Rather than having a single bool to conditionally detect haswell-level instruction features. The granularity is increased with a new `x64_extension_mask` where individual features within the x64 backend can be turned on or off in a bit-mask manner. Since we have an ARM backend on the horizon, I've added this to the...
diff --git a/src/xenia/cpu/backend/x64/x64_backend.cc b/src/xenia/cpu/backend/x64/x64_backend.cc index 130d8445678..fe132692024 100644 --- a/src/xenia/cpu/backend/x64/x64_backend.cc +++ b/src/xenia/cpu/backend/x64/x64_backend.cc @@ -26,10 +26,23 @@ #include "xenia/cpu/processor.h" #include "xenia/cpu/stack_walker.h" ...
5
2
0
[{"id": "G0", "claim": "The new cvar should default to all available extensions instead of defaulting to Haswell specifically.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "Directly mapping the internal enum onto the config cvar is awkward, though the revi...
null
xenia-project__xenia__1959
xenia-project/xenia
1,959
defect
617b17e25b85f4164524895e5b13c81be6157f3d
2f482b36df55a12283ad7c41c7fbcca9921e2a9c
[Base, aarch64] `copy_and_swap` implementations
probably one of the last things on the priority list for an aarch64 port
diff --git a/src/xenia/base/memory.cc b/src/xenia/base/memory.cc index 8acbf43bd9b..f4b99d307f6 100644 --- a/src/xenia/base/memory.cc +++ b/src/xenia/base/memory.cc @@ -11,6 +11,10 @@ #include "xenia/base/cvar.h" #include "xenia/base/platform.h" +#if XE_ARCH_ARM64 +#include <arm_neon.h> +#endif + #include <algorit...
5
3
1
[{"id": "G0", "claim": "Wrapping the 64-bit NEON table literals in UINT64_C (from <cstdint>) may be desirable to explicitly disambiguate their type for safety across compilers, even though literals of this width may be fine everywhere.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "int...
null
xenia-project__xenia__1963
xenia-project/xenia
1,963
defect
564a6d6238c2187fde4da21af2f79d30303e59ae
12bbc29ee0e29e14ccba65245440c3bd29ecb66c
[x64] Add `GFNI`-based optimization for `VECTOR_SH{R,L}_V128(Int8)` and tests
In the `Int8` case of `VECTOR_SH{R,L}_V128`, when all the values are the same, then a single-instruction `gf2p8affineqb` can be emitted that does an int8-based arithmetic-shift, utilizing GF(8) arithmetic. More info here: https://wunkolo.github.io/post/2020/11/gf2p8affineqb-int8-shifting/ Also fixes the iterat...
diff --git a/src/xenia/cpu/backend/x64/x64_seq_vector.cc b/src/xenia/cpu/backend/x64/x64_seq_vector.cc index c428018bac7..72761aa6fc8 100644 --- a/src/xenia/cpu/backend/x64/x64_seq_vector.cc +++ b/src/xenia/cpu/backend/x64/x64_seq_vector.cc @@ -731,6 +731,25 @@ struct VECTOR_SHL_V128 static void EmitInt8(X64Emitter&...
2
2
1
[{"id": "G0", "claim": "The constant 0x0102040810204080 needs a ULL suffix (or, per M002, the UINT64_C macro) so it is a 64-bit literal.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shift amount can overflow, and the code does not handle that ...
null
xenia-project__xenia__2220
xenia-project/xenia
2,220
defect
c5e6352c349ca65b7119bab08d19797e95eb1509
e80d96dca73bb2a0246a837c23e925d324b9f2d3
[Testing] Added test project for vfs
- Added test case for: decode_fat_timestamp - Changed location of: decode_fat_timestamp - Fixed invalid month decoding in decode_fat_timestamp
diff --git a/src/xenia/vfs/devices/stfs_container_device.cc b/src/xenia/vfs/devices/stfs_container_device.cc index 1381786322d..2400da0e0c3 100644 --- a/src/xenia/vfs/devices/stfs_container_device.cc +++ b/src/xenia/vfs/devices/stfs_container_device.cc @@ -17,33 +17,9 @@ #include "xenia/base/math.h" #include "xenia/v...
4
4
2
[{"id": "G0", "claim": "The header redefines the platform function name via `#define timegm _mkgmtime`, which is dangerous in a header because it may affect other headers included after it; instead dispatch with `#if XE_PLATFORM_WIN32` at the call location (or at most a base wrapper / XE_ definition).", "category": "de...
null
xerial__sqlite-jdbc__1035
xerial/sqlite-jdbc
1,035
defect
7d44a45f3baee81674ae20389540709b9ab0cb4c
72605a1155a467462871a945abd0f50ccf26e16f
feat(jdbc): reintroduce improved support for Statement#getGeneratedKeys
Hello @gotson, Over in https://github.com/xerial/sqlite-jdbc/issues/1018#issuecomment-1813516287 you mentioned that you'd be willing to look at a PR that restores getGeneratedKeys functionality if it could resolve the safety issues originally reported in #329. This PR seeks to do that by adding back support for ...
diff --git a/src/main/java/org/sqlite/core/CoreStatement.java b/src/main/java/org/sqlite/core/CoreStatement.java index e63325799..cf9f03569 100644 --- a/src/main/java/org/sqlite/core/CoreStatement.java +++ b/src/main/java/org/sqlite/core/CoreStatement.java @@ -17,6 +17,7 @@ import java.sql.ResultSet; import java.sq...
1
1
0
[{"id": "G0", "claim": "The empty-result-set branch's `SELECT last_insert_rowid() WHERE 0 <> 0;` may still execute the last_insert_rowid() function even when the condition is false; the reviewer suggests a simpler query such as `select 1 where 1 = 2;`.", "category": "design", "verdict": "supported", "priority": "P2", "...
null