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
PriorLabs__tabpfn-extensions__165
PriorLabs/tabpfn-extensions
165
defect
4fa9d52fdd6e543f8e880f17a52b22ef349ed954
d467dbbf5d4dc84c57a7a61a42b9f3803107f9d4
Fix bug in AutoTabPFN due to renamed infer_devices() method in tabpfn 2.1.4.
https://github.com/PriorLabs/TabPFN/pull/496 renamed infer_device_and_type() to infer_devices(), and updated it to return a tuple of devices. Update tabpfn-extensions to use this new method, and select the first device if multiple devices are returned. Manually tested by installing tabpfn 2.1.3 and 2.2.0 and running...
diff --git a/examples/unsupervised/density_estimation_outlier_detection.py b/examples/unsupervised/density_estimation_outlier_detection.py index 86696790..9343df26 100644 --- a/examples/unsupervised/density_estimation_outlier_detection.py +++ b/examples/unsupervised/density_estimation_outlier_detection.py @@ -10,10 +10...
2
2
1
[{"id": "G0", "claim": "Some unit tests, concerning RF PFN, are still failing in CI and need to be fixed before the pull request is merged.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "A unit test should be added for the infer_device() fix so that i...
null
PriorLabs__tabpfn-extensions__194
PriorLabs/tabpfn-extensions
194
defect
f902877a200a257c096a67a3c0ecc9122ba1df25
34f0d68079187e707794a958dac0837b948a9f59
Fix SurvivalTabPFN documentation and clean ranking logic
## Summary - document the actual SurvivalTabPFN initialiser parameters and expand fit target handling - streamline risk ranking in fit and update survival example to use structured arrays directly - stabilise survival tests with deterministic samples and add coverage for the two-event boundary ## Testing - pytest test...
diff --git a/examples/survival/survival_pfn_example.py b/examples/survival/survival_pfn_example.py index 96f5c9f2..a93282ce 100644 --- a/examples/survival/survival_pfn_example.py +++ b/examples/survival/survival_pfn_example.py @@ -26,8 +26,8 @@ model.fit(X_train, y_train) risk_scores = model.predict(X_test) score = ...
1
1
0
[{"id": "G0", "claim": "Extracting y_event and y_time with list comprehensions is not ideal for performance, especially when y is already a NumPy array, and a more idiomatic vectorized approach (ensuring y is a NumPy array and then slicing) should be used instead.", "category": "performance", "verdict": "supported", "p...
null
PriorLabs__tabpfn-extensions__218
PriorLabs/tabpfn-extensions
218
defect
5cbf6f36d683c9212ec4d9d9c6161ef1169325b2
afae0fcd7a77b9844e0f1b0b8c695b8ec6474fb9
Fixed `validate_data` for `ManyClassClassifier` when using string inputs.
This PR fixes the issues reported in #216 by correcting the `dtype` assertion in `validate_data` to `None`. This allows string columns to be passed directly to the underlying estimator, which works with TabPFN. I also created a test case based on the example code provided by the user to make sure that we pass throug...
diff --git a/src/tabpfn_extensions/many_class/many_class_classifier.py b/src/tabpfn_extensions/many_class/many_class_classifier.py index 1516b02b..a60f5045 100644 --- a/src/tabpfn_extensions/many_class/many_class_classifier.py +++ b/src/tabpfn_extensions/many_class/many_class_classifier.py @@ -193,6 +193,7 @@ def fit(s...
2
2
0
[{"id": "G0", "claim": "Move the `import pandas as pd` and `import random` statements out of the new `get_pandas_classification_data` helper to the top of the module, per PEP 8, for readability and to avoid re-import overhead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
PriorLabs__tabpfn-extensions__237
PriorLabs/tabpfn-extensions
237
defect
1960cc63a419f9022e902c17bb2c5407ed9e5431
f3694b73174fdc95df80c59e6ff4f152471f76c0
Adds Conditional Randomization Test (CRT) based p-value/hypothesis testing extension using TabPFN
### Summary This PR adds a new extension (`pval_crt`) implementing feature-level hypothesis testing using the Conditional Randomization Test (CRT) with TabPFN as a fixed predictive model. The method tests conditional independence of individual features by resampling from an estimated conditional distribution \( X_j...
diff --git a/examples/pval_crt/pval_crt_demo.py b/examples/pval_crt/pval_crt_demo.py new file mode 100644 index 00000000..b2915366 --- /dev/null +++ b/examples/pval_crt/pval_crt_demo.py @@ -0,0 +1,30 @@ +import numpy as np +from tabpfn_extensions.pval_crt import tabpfn_crt + + +def make_synthetic(n=300, seed=0): + r...
13
13
4
[{"id": "G0", "claim": "is_categorical's check `len(uniq) < max_unique` has an off-by-one error: a variable with exactly max_unique unique values is treated as continuous although the max_unique_cat docstring says variables with at most that many unique values are modeled as categorical, so it should be `<= max_unique`...
null
PriorLabs__tabpfn-extensions__76
PriorLabs/tabpfn-extensions
76
defect
b45420395dff6842d47773db597c14a9c34e62da
6aca64946002ede119c48acf50c5f67073ce1460
Fix Many Class Codebook generation and tests
Fixes #68 Notebook to test: https://colab.research.google.com/drive/1HWF5IF0IN21G8FZdLVwBbLBkCMu94yBA?usp=sharing Note: ManyClassClassification works much worse than when we use the regular bounds. It's not recommended to go to high class numbers such as 80. Would be curious what you see @MaxSchambach
diff --git a/src/tabpfn_extensions/many_class/many_class_classifier.py b/src/tabpfn_extensions/many_class/many_class_classifier.py index 57a2be48..33f205d0 100644 --- a/src/tabpfn_extensions/many_class/many_class_classifier.py +++ b/src/tabpfn_extensions/many_class/many_class_classifier.py @@ -1,392 +1,489 @@ -# Copyr...
2
2
0
[{"id": "G0", "claim": "The test helper function name 'get_classifcation_data' has a typo and should be renamed to 'get_classification_data' for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The replication test should use a logging fr...
null
PriorLabs__tabpfn-extensions__79
PriorLabs/tabpfn-extensions
79
defect
b45420395dff6842d47773db597c14a9c34e62da
fb94a8d23d3db5e28fc0cb77d6e0e68f8c22a8c7
Hpo refactor
**Title:** HPO Refactor **Description:** This PR refactors the Hyperparameter Optimization (HPO) module for `tabpfn-extensions`, focusing on enhanced robustness, flexibility, and scikit-learn integration. **Key Improvements:** * **Enhanced HPO Core (`TunedTabPFNBase`, `tuned_tabpfn.py`):** * Added supp...
diff --git a/src/tabpfn_extensions/__init__.py b/src/tabpfn_extensions/__init__.py index d489b38d..ff1e44dd 100644 --- a/src/tabpfn_extensions/__init__.py +++ b/src/tabpfn_extensions/__init__.py @@ -7,6 +7,11 @@ # Create alias for test_utils from . import test_utils +from .embedding import TabPFNEmbedding +from .hp...
4
1
1
[{"id": "G0", "claim": "Renaming the hyperparameter key from 'n_ensemble_repeats' to 'n_estimators' may break existing consumer code; ensure the change is intentional and that downstream logic and documentation are updated accordingly.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduc...
null
PriorLabs__tabpfn-extensions__97
PriorLabs/tabpfn-extensions
97
defect
8e21c919b5a0e6d1d7ab6a801f64023ec027f2c3
7d491b0efdd1153c05c7603534eefb73c3bfb9b3
Better setup
### PR Description This PR introduces several improvements to the Hyperparameter Optimization (HPO) module and testing framework for better robustness and clarity. **Key Changes:** * **Stricter HPO Failure:** `TunedTabPFN` now raises a `ValueError` if hyperparameter optimization fails to find a best model. Thi...
diff --git a/pyproject.toml b/pyproject.toml index d39a29a2..e8f28e3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ dependencies = [ "pandas>=1.4.0,<3", "scikit-learn>=1.2.0,<1.7", "scipy>=1.11.1,<2", - "tabpfn>=2.0.6", + #"tabpfn>=2.0.6", ] requires-python = ">=3.9" @@ -63...
3
2
1
[{"id": "G0", "claim": "Raising a RuntimeError in pytest_configure will abort the entire test suite; use pytest.skip() or pytest.exit() instead so the run is stopped properly when no backend is configured.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
PrismJS__prism__1801
PrismJS/prism
1,801
defect
3e00bb9c412b2b83b17e7857c3ec0ae1c2c19a6b
a80c1bc2f9717193f6d4bbe8b41921adbd0eb52a
Tests: Pretty-printed token stream
This adds support for pretty-printed simplified token streams via the `--pretty` modifier. E.g. `npm test -- --pretty` or `npm test -- --language=xxxx --pretty` Only the current token stream of failed tests will be pretty-printed. This can then be copypasted into `.test`-files. Because most consoles convert tabs i...
diff --git a/test-suite.html b/test-suite.html index 5aeebf2aee..936ed1aa68 100644 --- a/test-suite.html +++ b/test-suite.html @@ -120,6 +120,8 @@ <h2>Explaining the simplified token stream</h2> <li>All strings that are either empty or only contain whitespace, are removed from the token stream.</li> <li>All emp...
1
1
0
[{"id": "G0", "claim": "The closing parenthesis of the filter call should be moved onto the same line as the filter callback's closing brace (style nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PrismJS__prism__2032
PrismJS/prism
2,032
defect
2d858e0a35f0f8176f3d8ebe18d1881f905da8d6
4af2875b305d8b5ecc24a649926ae3797188682d
Core: Fixed greedy matching bug
This fixes #1492 and all issues caused by it. Instead of the old rematching algorithm, which only allowed for at most one match, the new one matches until a certain point is reached (called `rematchReach`). The idea is that greedy matches if the change the token stream, won't change the entire token stream but o...
diff --git a/components/prism-core.js b/components/prism-core.js index 70afd3b672..90129788b7 100644 --- a/components/prism-core.js +++ b/components/prism-core.js @@ -286,7 +286,7 @@ var _ = { return Token.stringify(_.util.encode(env.tokens), env.language); }, - matchGrammar: function (text, strarr, grammar, ind...
1
1
0
[{"id": "G0", "claim": "We can delete this comment ya? (remove the outdated issue-reference comment line in tests/core/greedy.js).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
PrismJS__prism__2515
PrismJS/prism
2,515
defect
388ad996c4b576205de4d4feda69202bd26c1345
47c272b5b8617f22fab9091eb29a097430198721
Tests: Added an option to accept the actual token stream
Running `npm run test:languages -- --accept` will now insert the actual token stream of a test case to be the expect JSON. This will only be done if no expected JSON is specified. ### Example Test case: ``` var foo = 0; ``` Run `npm run test:languages -- --accept`. Test case: ``` var foo = 0; --...
diff --git a/test-suite.html b/test-suite.html index 2e2e171b3b..0d2d3e6582 100644 --- a/test-suite.html +++ b/test-suite.html @@ -93,8 +93,8 @@ <h2 id="writing-tests-writing-your-test">Writing your test</h2> <p>Your file is built up of two or three sections, separated by ten or more dashes <code>-</code>, starting...
1
1
1
[{"id": "G0", "claim": "The docs should say the token-stream section is \"optional\" (it cannot be both required and optional) and explain the behavior when it is not present.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PrismJS__prism__2802
PrismJS/prism
2,802
defect
a68f1fb6e23143ada9676fa6f66af72a3b1eebe8
c30bd7585ada705cd3951e74a4f7beafd2b638b1
Add False
Resolves #2801.
diff --git a/components.js b/components.js index 1ff7f99926..29fc5c99d5 100644 --- a/components.js +++ b/components.js @@ -1,2 +1,2 @@ -var components = {"core":{"meta":{"path":"components/prism-core.js","option":"mandatory"},"core":"Core"},"themes":{"meta":{"path":"themes/{id}.css","link":"index.html?theme={id}","excl...
3
3
0
[{"id": "G0", "claim": "The operator regex should use the characters ß and ø directly instead of the \\xdf and \\xf8 escapes, since the source files are UTF-8 encoded.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-standard regex should ...
null
PrismJS__prism__2978
PrismJS/prism
2,978
defect
3432b4b1e4440d6592ed82b6b5b9e72f660e43a8
fff79e8473a2943246ff3565893265188b30f6bc
components: add hoon programming language
We're using this downstream on https://urbit.org (in a site using next.js and remark-prism), so passing this language definition upstream. Derived from our [tmLanguage definition](https://github.com/urbit/urbit/blob/master/extras/hoonSublime/hoon.tmLanguage) and the documentation.
diff --git a/components.js b/components.js index 81a91e9207..fa179a4e1f 100644 --- a/components.js +++ b/components.js @@ -1,2 +1,2 @@ -var components = {"core":{"meta":{"path":"components/prism-core.js","option":"mandatory"},"core":"Core"},"themes":{"meta":{"path":"themes/{id}.css","link":"index.html?theme={id}","excl...
14
13
5
[{"id": "G0", "claim": "The hoon entry in components.json should be indented with tabs, not spaces.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Wrapping every pattern in a `{ pattern: ... }` object is unnecessary; the simple bare-regex notati...
null
PrismLauncher__PrismLauncher__1192
PrismLauncher/PrismLauncher
1,192
defect
a4502f44c291fad2174e84bf883cdb754aa08e28
811c79423fa048c5f4dd567b1121630d16aa3b0c
Added new migration for special characters
<!-- Hey there! Thanks for your contribution. Please make sure that your commits are signed off first. If you don't know how that works, check out our contribution guidelines: https://github.com/PrismLauncher/PrismLauncher/blob/develop/CONTRIBUTING.md#signing-your-work If you already created your commits, you can...
diff --git a/launcher/settings/INIFile.cpp b/launcher/settings/INIFile.cpp index cb909ae753..ad600ab91b 100644 --- a/launcher/settings/INIFile.cpp +++ b/launcher/settings/INIFile.cpp @@ -50,7 +50,7 @@ INIFile::INIFile() {} bool INIFile::saveFile(QString fileName) { if (!contains("ConfigVersion")) - insert...
3
3
0
[{"id": "G0", "claim": "The new tests should use QTemporaryFile instead of fixed file names with manual cleanup.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test names misspelling 'Aleardy' should be corrected to 'Already'.", "category": "maintai...
null
PrismLauncher__PrismLauncher__1306
PrismLauncher/PrismLauncher
1,306
defect
c523765c197cf63d6830d205f1554cd73e38109e
3c96d5e0d568408e0505841af39aa2d539ebaf36
Enable address sanitizer in debug builds
Turns on Address Sanitizer in Debug builds. turn it off with `-DDEBUG_ADDRESS_SANITIZER=off`
diff --git a/CMakeLists.txt b/CMakeLists.txt index 70a5531909..bb9906691b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,37 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTOML_ENABLE_FLOAT16=0") # set CXXFLAGS for build targets set(CMAKE_CXX_FLAGS_RELEASE "-O2 -D_FORTIFY_SOURCE=2 ${CMAKE_CXX_FLAGS_RELEAS...
5
4
1
[{"id": "G0", "claim": "The Intel compiler branch is redundant since the final else already covers it and can be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The status message misspells 'enabled' as 'enabeled'.", "category": "documen...
null
PrismLauncher__PrismLauncher__1617
PrismLauncher/PrismLauncher
1,617
defect
ba3a1b628087c9e40b6c217f68f747bb0e12dbe1
b16085f66c9083a1ec6d0feb08b96ce9173baccd
Add functionality for components in resource pack descriptions.
Attempt to Fix #1602 Allows for pack.mcmeta file descriptions that are written using components to now be readable while still allowing for normal strings. I tested this fix on Windows, and it reads in as expected. Colors are not implemented. They would either have to be converted to original color codes, or...
diff --git a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp index 73cbf891c4..c2aef06d53 100644 --- a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp +++ b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp @@ -26,6 +26,7 @@...
10
10
6
[{"id": "G0", "claim": "The raw JSON text format is recursive and the PR should handle that (reading nested components and, ideally, displaying the description with formatting).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Convert colors/formats t...
null
PrismLauncher__PrismLauncher__1658
PrismLauncher/PrismLauncher
1,658
defect
0406e168e716031e3cee1a23d70d508d0eb63dd2
4ee6a6711d462d4f85c84afe6bc0e0e6640b1244
Added version check for neoforge filter
<!-- Hey there! Thanks for your contribution. Please make sure that your commits are signed off first. If you don't know how that works, check out our contribution guidelines: https://github.com/PrismLauncher/PrismLauncher/blob/develop/CONTRIBUTING.md#signing-your-work If you already created your commits, you can...
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp index 9e42c5dd62..31974cd00b 100644 --- a/launcher/minecraft/PackProfile.cpp +++ b/launcher/minecraft/PackProfile.cpp @@ -1018,8 +1018,8 @@ std::optional<ModPlatform::ModLoaderTypes> PackProfile::getSupportedModLoaders() // TODO: ...
2
2
1
[{"id": "G0", "claim": "The added version comparison (instance_ver <= Version(\"1.20.1\")) does not work with Minecraft snapshot versions, which TheKodeToad expects will be supported in future; he suggests dropping the automatic `|= Forge` entirely.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
PrismLauncher__PrismLauncher__4430
PrismLauncher/PrismLauncher
4,430
defect
92738feebae6e25bd2c06985516f66cc19eae01d
c018b608169a58bc51cccaeeb8c0a7a071cb2726
Only continue log level if line starts with whitespace
Makes the log rendering closer to 9.4, but still slightly better as some lines following exceptions weren't properly detected before Indiscriminately making *all* lines following a leveled line have that level until another level is explicitly specified has caused some... issues... <img width="784" height="423" a...
diff --git a/launcher/launch/LaunchTask.cpp b/launcher/launch/LaunchTask.cpp index 4468a2a77e..a0d3b90905 100644 --- a/launcher/launch/LaunchTask.cpp +++ b/launcher/launch/LaunchTask.cpp @@ -257,10 +257,7 @@ bool LaunchTask::parseXmlLogs(QString const& line, MessageLevel::Enum level) MessageLevel::Enum new...
2
1
1
[{"id": "G0", "claim": "The pull request should have kept the crash report header guess (\"---- Minecraft Crash Report ----\" mapping to Error) that it removed.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The failing tests should be fixed.", "category":...
null
PrismLauncher__PrismLauncher__4455
PrismLauncher/PrismLauncher
4,455
defect
2e3097d5ca577ecb3107c041a33053bada882813
a120ce5cbfd9a42c8a11798f2e1e0842e89d8a04
chore: Re-simplify `IndexVersionType` and `MessageLevel` with c++20
Since we have c++20 we can keep the nice api surface without needing all the boilerplate overloads. This sets our compiler requirements to gcc 11 and clang 13. If we forgo the use of `using enum` we can drop to gcc 10 and clang 10 but that means using `MessageLevel::Enum::Unknown` for direct enum access <!-- He...
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index ac6d7a114a8..601ccaeff1d 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -241,7 +241,7 @@ void appDebugOutput(QtMsgType type, const QMessageLogContext& context, const QSt QString out = qFormatLogMessage(type, context, ...
6
2
0
[{"id": "G0", "claim": "Rename `MessageLevel::fromString` to `fromName` and `fromQtMsgType` to `fromQt` (via a suggestion block on the new MessageLevel.h).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In `IndexedVersion::getVersionDisplayString` use th...
null
PrismarineJS__mineflayer__1341
PrismarineJS/mineflayer
1,341
defect
f2bc07ef4c1faef657f9bba6c0e9768f3fe19ed4
c1d339bd6d68a81d03bb7f9b6e177a1ca81e0b4b
Fix trade tests
- Fixes trading tests by using a command block to spawn the villager - Fixes a litle bug in lib/plugins/villager.js: In some versions inputItem2 is an Item instance with no atributes so the old condition tought the trade had a inputItem2 and throwed Closes #973 Related to #1323
diff --git a/lib/features.json b/lib/features.json index c5f54c1c7e..740f1cb0aa 100644 --- a/lib/features.json +++ b/lib/features.json @@ -203,5 +203,10 @@ "name": "usesAdvCmd", "description": "Uses MC|AdvCmd to set command block information", "versions": ["1.9", "1.10", "1.11", "1.12"] + }, + ...
2
1
0
[{"id": "G0", "claim": "The indexed-array NBT syntax `{Recipes:[0:{}]}` used in the summon command may be incorrect.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use `commandBlockPos.toArray().join(' ')` inline instead of the misleadingly named `com...
null
PrismarineJS__mineflayer__1352
PrismarineJS/mineflayer
1,352
defect
52bf0c8f9ea47804914b3b97e4190b0186e88ff2
bb7a4b3078d82c469915413184f2262db8473162
Fix furnace and add tests
Closes #1350
diff --git a/index.d.ts b/index.d.ts index 3b07b37506..da73fbb3ec 100644 --- a/index.d.ts +++ b/index.d.ts @@ -625,12 +625,14 @@ export class Furnace extends (EventEmitter as new () => TypedEmitter<FurnaceEven putInput( itemType: number, metadata: number | null, + count: number, cb?: (err?: Error) ...
1
1
1
[{"id": "G0", "claim": "The pull request's furnace changes are missing tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PrismarineJS__mineflayer__1407
PrismarineJS/mineflayer
1,407
defect
1b1907d48d4eaf5be990a1b53dd17cac18b11c53
6d54b7bfc5e49e9988661f7f7b2620dd71b8af96
Fix bed packet
Closes #1398 and #1400
diff --git a/lib/features.json b/lib/features.json index b08ba99f1e..506b2c8fd2 100644 --- a/lib/features.json +++ b/lib/features.json @@ -233,5 +233,10 @@ "name": "usesMultiblock3DChunkCoords", "description": "In the multi_block_change packet, all 3 axis coords are defined.", "versions": ["1.16.2", "1.1...
3
3
2
[{"id": "G0", "claim": "Collapse the nested `if (pose) { if (pose.value === 2) { ... } }` into a single combined condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The superflat block reset only covers a 3x3 area, which appears to leave t...
null
PrismarineJS__mineflayer__1586
PrismarineJS/mineflayer
1,586
defect
83e67818caafee4a270d3983a3f7ea25f1e105f7
5a2cbace3aadeda21b5b375104e58763bcd2dcdf
Promisify testCommon
This PR replaces all `bot.test.*` methods which took callbacks with methods that now return promises instead. Support for callbacks is still retained however, using `callbackify`. Because of this, I have chosen not to promisify all the tests themselves for now. `bot.test.callbackChain` is unmodified as well, so all exi...
diff --git a/test/externalTests/plugins/testCommon.js b/test/externalTests/plugins/testCommon.js index dd2875aaf5..033704748f 100644 --- a/test/externalTests/plugins/testCommon.js +++ b/test/externalTests/plugins/testCommon.js @@ -3,6 +3,7 @@ const Vec3 = require('vec3').Vec3 const { spawn } = require('child_process')...
3
2
0
[{"id": "G0", "claim": "resetState should use Promise.all to run the independent setup steps (e.g. clearInventory, teleport, waitForChunksToLoad) in parallel instead of awaiting them strictly sequentially.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
PrismarineJS__mineflayer__1855
PrismarineJS/mineflayer
1,855
defect
53785cd91e739ade84ea4db84705191b4f920e8b
4611a8c7611b4f468db8c05439eda67bf80103e5
Respawn event now correctly parsed + added test
Before now there was a bug where gamemode was being set to survival when the bot died in creative because the packet's `packet.gameMode` would be undefined (and added a test since this was tricky to fix), this fixes that + adds the newest supportfeature for dimension parsing as it was missing.
diff --git a/lib/plugins/game.js b/lib/plugins/game.js index 5de9f21d66..5f4838d3f2 100644 --- a/lib/plugins/game.js +++ b/lib/plugins/game.js @@ -63,9 +63,11 @@ function inject (bot) { bot.game.dimension = dimensionNames[packet.dimension] } else if (bot.supportFeature('dimensionIsAString')) { bot.ga...
1
1
1
[{"id": "G0", "claim": "The gameMode/gamemode mismatch should be fixed in protocol.json instead of papering over it with a packet.gameMode ?? packet.gamemode fallback in lib/plugins/game.js.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PrismarineJS__mineflayer__1941
PrismarineJS/mineflayer
1,941
defect
f6eab29caa38c0247eb5d71d735b1682f8aaac44
76fd3beb8f0ae614ad72753a170883aaee84bf76
Adds bot oxygenLevel and breath level change emitter.
Closes #1882 and adds a test about breathing
diff --git a/docs/api.md b/docs/api.md index fb254252ee..fb6463321a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -106,6 +106,7 @@ - [bot.health](#bothealth) - [bot.food](#botfood) - [bot.foodSaturation](#botfoodsaturation) + - [bot.oxygenLevel](#botoxygenlevel) - [bot.physics](#botphys...
3
1
1
[{"id": "G0", "claim": "The new breath plugin breaks something on Minecraft 1.8 (it was intended to work on 1.8-1.16.5 but only works on 1.9-1.16.5), and the author says it will be fixed asap and asks if someone has an idea for fixing it.", "category": "correctness", "verdict": "opposed", "priority": "P0", "scope": "in...
null
PrismarineJS__mineflayer__1984
PrismarineJS/mineflayer
1,984
defect
1de3f67c3aad1f8c2ef45fc70c299284a75f9757
9f04e0135319587d0d012ab4aaf5cd59f34b1925
Add support for teams
In this PR I'll be adding support for teams. ### TODO - [x] finish Team class implementation - [x] pre-1.13 support - [x] add a display method to scoreboards - [x] tests - [x] documentation Related: https://github.com/PrismarineJS/mineflayer/issues/1377, https://github.com/PrismarineJS/mineflayer/issues/1714...
diff --git a/lib/loader.js b/lib/loader.js index 9bfb9e81a7..f7e14a6ab0 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -31,6 +31,7 @@ const plugins = { ray_trace: require('./plugins/ray_trace'), resource_pack: require('./plugins/resource_pack'), scoreboard: require('./plugins/scoreboard'), + team: require(...
1
1
1
[{"id": "G0", "claim": "Move the packet handling out of the Team class into the team plugin, so the class takes the fields ({name, friendlyFire, ...}) explicitly instead of a packet object and stays independent of packets.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PrismarineJS__mineflayer__2007
PrismarineJS/mineflayer
2,007
defect
55247dbf39f642ab9de8ba4ad3e6682d46edee3a
700a1609fcb4fecfa62a846dc376fbee9daf2c90
Fix bot.equip failing with off-hand
Fixes #2006
diff --git a/lib/plugins/simple_inventory.js b/lib/plugins/simple_inventory.js index 8e6b102802..b2484fd785 100644 --- a/lib/plugins/simple_inventory.js +++ b/lib/plugins/simple_inventory.js @@ -61,7 +61,7 @@ function inject (bot) { } async function equipEmpty () { - for (let i = 0; i < 9; ++i) { + for (l...
2
2
2
[{"id": "G0", "claim": "The change to equipEmpty's loop bound is unexplained and the pull request should add a test to make sure the equip behaviour doesn't break.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added condition `QUICK_BAR_START > (QU...
null
PrismarineJS__mineflayer__2112
PrismarineJS/mineflayer
2,112
defect
8ef7e03657c01b15cdf4eeea5d8cb722f17a992d
a1b0c6bb416bce24d4218860148bc9d9142e34a9
Add bot.usingHeldItem
This adds bot.usingHeldItem (also to the docs and tests) which is necessary for eventually fixing #91 since you can't sprint while using the item in your hand. Also the API table of contents was outdated so a VSC plugin I have fixed that too.
diff --git a/docs/api.md b/docs/api.md index 5bc7e54675..2f1aaf1ff6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -86,6 +86,7 @@ - [bot.username](#botusername) - [bot.spawnPoint](#botspawnpoint) - [bot.heldItem](#bothelditem) + - [bot.usingHeldItem](#botusinghelditem) - [bot.game.levelT...
2
2
2
[{"id": "G0", "claim": "The pull request accidentally commits unresolved git merge-conflict markers ('<<<<<<< Updated upstream' / '=======' / '>>>>>>> Stashed changes') into docs/api.md.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The set_cooldow...
null
PrismarineJS__mineflayer__2492
PrismarineJS/mineflayer
2,492
defect
c2a0ee4e918cf41c7295bbf29da9ab524d7c6bef
ccd97ab3044b9addb0d6032a4af0edcb8cf4ad25
Mineflayer physics refactor
This PR will have some physics refactors to be more like vanilla client. I will try to make each commit readable and add a comment explaining what each commit does. Issues that PR does not fix: lastSentYaw and lastSentPitch not be accounted for in prismarine-physics
diff --git a/lib/plugins/game.js b/lib/plugins/game.js index 25946d994d..55cd79c673 100644 --- a/lib/plugins/game.js +++ b/lib/plugins/game.js @@ -67,7 +67,6 @@ function inject (bot, options) { bot.emit('login') bot.emit('game') - bot._client.write('held_item_slot', { slotId: 0 }) // varint length...
18
11
5
[{"id": "G0", "claim": "Physics still needs a reliable way to check that the chunk where the bot is standing is loaded (as vanilla requires login > map_chunk > position) before running.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A more reliable ...
null
PrismarineJS__mineflayer__2617
PrismarineJS/mineflayer
2,617
defect
748629ca81bcd4bdaaecc4840a24e78a89c721e8
06bfc4cb61a96964c82786a615c133a7ed5b9427
Added method to wait until sleep function is in reality sleeping
- [x] The [FAQ](https://github.com/PrismarineJS/mineflayer/blob/master/docs/FAQ.md) doesn't contain a resolution to my issue ## Versions - mineflayer: 4.3.0 - server: vanilla 1.18.1 - node: Dockerized: node:16.13-bullseye ## Detailed description of a problem If the bot click on bed at same time when othe...
diff --git a/lib/plugins/bed.js b/lib/plugins/bed.js index 8afa4c9c93..7c59f48881 100644 --- a/lib/plugins/bed.js +++ b/lib/plugins/bed.js @@ -147,15 +147,26 @@ function inject (bot) { } await bot.activateBlock(bedBlock) + + const err = await waitUntilSleep() + if (err) { + throw new Er...
3
3
1
[{"id": "G0", "claim": "The hardcoded 3-second sleep wait may be unreliable because the time it takes the bot to fall asleep varies with the server's TPS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This pull request appears to break the sleep test.",...
null
PrismarineJS__mineflayer__2813
PrismarineJS/mineflayer
2,813
defect
803024cbc348276abc780c0d7ec810b3740e5782
15458079e1703d7150f3f108bf1bd1d0c8ccadca
Add a native mineflayer event for particles
Closes #1887
diff --git a/docs/api.md b/docs/api.md index 83a56f10ec..81a081add7 100644 --- a/docs/api.md +++ b/docs/api.md @@ -75,6 +75,15 @@ - [BossBar.isDragonBar](#bossbarisdragonbar) - [BossBar.createFog](#bossbarcreatefog) - [BossBar.color](#bossbarcolor) + - [mineflayer.Particle](#mineflayerparticle) ...
7
7
6
[{"id": "G0", "claim": "The class with all its getters and setters should be replaced by a simpler Particle.fromNetwork(packet) => Particle factory, since constructor-based field mapping is not future proof if fields change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
PrismarineJS__mineflayer__2894
PrismarineJS/mineflayer
2,894
defect
e5c7f7bad35a4778ade759297d4a63a8524c38a8
08e30ee7060d7836a146ade40e113067e32f1f84
1.19.2 support
Depends on ~~https://github.com/PrismarineJS/minecraft-data/pull/670~~ Depends on ~~PrismarineJS/node-minecraft-protocol#1055~~ and ~~PrismarineJS/node-minecraft-protocol#1054~~ for full 1.19.2 support. Mineflayer part is done - Chat parsing using NMP convenience events `playerChat` and `systemChat` - Chat se...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e362c294a..8033677e5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: mcVersion: '1.18.2' - javaVersion: 17 mcVersion: '1.19' + - javaVersion: 17 + mcV...
11
5
4
[{"id": "G0", "claim": "1.19.2 needs to be added to the tested versions in lib/version.js and to the CI matrix in .github/workflows/ci.yml.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bot should expose the unsigned chat content alongside the form...
null
PrismarineJS__mineflayer__2897
PrismarineJS/mineflayer
2,897
defect
52f7935c8985abdd6b33e787b9a313d72d94e910
082727df13a6e4b60a0d85afc8f622a31166480b
Update chat parsing
Depends on https://github.com/PrismarineJS/node-minecraft-protocol/pull/1068 - Adds targetName to ChatMessage parameters for parsing chat types `minecraft:msg_command_outgoing`, `minecraft:team_msg_command_incoming` and `minecraft:team_msg_command_outgoing`
diff --git a/lib/plugins/chat.js b/lib/plugins/chat.js index 044932243b..84322f6229 100644 --- a/lib/plugins/chat.js +++ b/lib/plugins/chat.js @@ -113,30 +113,18 @@ function inject (bot, options) { const verified = data.verified let msg if (bot.supportFeature('clientsideChatFormatting')) { - let sen...
2
1
1
[{"id": "G0", "claim": "The pull request's CI is failing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the try/catch that parsed data.senderName with a fallback sender object was removed, questioning whether it was useless.",...
null
PrismarineJS__mineflayer__2928
PrismarineJS/mineflayer
2,928
defect
5b04880a1b92f81f3df22930e5f7bc306a08ade1
23ced03fc0cac96030d4cabc7ea150f7b159707a
Run long tests once a day
Runs all tests every day at 00:00 UTC Closes #2397
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39d91139cd..00fb504f7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ on: branches: - master pull_request: + schedule: + - cron: "0 0 * * *" jobs: Lint: @@ -52,3 +54,6 @@ jobs: ...
2
1
1
[{"id": "G0", "claim": "Make the scheduled CI trigger run every hour to verify it works, then switch it back to daily.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The scheduled (hourly) CI run failed, and the maintainer asks the author to disable it,...
null
PrismarineJS__mineflayer__3088
PrismarineJS/mineflayer
3,088
defect
9968c945293b91ded99c104de6df288e32dca7e1
705ce04f4bda99f8189ccfa5add268b2b0c5d958
1.20
After: https://github.com/PrismarineJS/minecraft-data/pull/723 https://github.com/PrismarineJS/prismarine-block/pull/87 https://github.com/PrismarineJS/prismarine-physics/pull/99 https://github.com/PrismarineJS/prismarine-chunk/pull/226 And probably after: https://github.com/PrismarineJS/mineflayer/pull/3090 Also i...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 859675833f..15ed113598 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,10 @@ jobs: mcVersion: '1.19.3' - javaVersion: 17 mcVersion: '1.19.4' + - javaVersion: 17 + ...
7
6
1
[{"id": "G0", "claim": "The node 18 update should be split out of this PR into a separate PR (merged before the 1.20 work) instead of bundling it with the 1.20 support here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of a boolean, updateSign'...
null
PrismarineJS__mineflayer__3259
PrismarineJS/mineflayer
3,259
defect
48c3ca71ea5822c4304ec74951970dbefd5026eb
c94f4836121980c02f9e8d67ac229c99f99fef89
Fix version check
Now throws ``` Error: Version '1.20.2' is not supported. Latest supported version is '1.20.1'. at Client.next (/workspaces/mineflayer/lib/loader.js:121:13) at Object.onceWrapper (node:events:628:28) at Client.emit (node:events:526:35) at /workspaces/mineflayer/node_modules/minecraft-protocol/src/c...
diff --git a/lib/loader.js b/lib/loader.js index 590caf9423..3c37974f01 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -45,8 +45,10 @@ const plugins = { particle: require('./plugins/particle') } -const supportedVersions = require('./version').supportedVersions -const testedVersions = require('./version').teste...
4
4
3
[{"id": "G0", "claim": "The version check should verify the server version falls inside an explicitly declared supported version range in version.js, including a lower bound so too-old versions are rejected, instead of only comparing against the latest tested version.", "category": "correctness", "verdict": "supported"...
null
PrismarineJS__mineflayer__3542
PrismarineJS/mineflayer
3,542
defect
3187368397e880ba8b32bb03affa18203cbcbb42
0f39a4bfb71b325b5795041fc0e4594541376ec1
Patches isInWater for digSpeed
If the bot is standing in water it should not be slowed, however passing isInWater is slowing it, while digSpeed should only be slowed if the block at eyeHeight is water
diff --git a/lib/plugins/digging.js b/lib/plugins/digging.js index 39d3efbc52..492fde9f22 100644 --- a/lib/plugins/digging.js +++ b/lib/plugins/digging.js @@ -242,7 +242,7 @@ function inject (bot) { return block.digTime( type, creative, - bot.entity.isInWater, + bot.blockAt(bot.entity.posit...
3
1
0
[{"id": "G0", "claim": "The inline block-at-eye-level expression passed to digTime would be clearer if extracted into a named helper function such as bot._getBlockAtEyeLevel.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Asks where the in-water...
null
PrismarineJS__mineflayer__3712
PrismarineJS/mineflayer
3,712
defect
e3f89d17418ece9e9fac4b111d8243dfe1a5d376
ad5be4499814d8f4ac6caa37931950ff4dd5ebed
Fix crash issue when trying to parse bad skin JSON
Bad skin JSON sometimes occur with NPC players on servers, this will fix the JSON by adding missing quotes if found. Example of JSON of a NPC player (notice the missing quotes) : ```js {textures:{SKIN:{url:"http://textures.minecraft.net/texture/b67168621fdb0cf3f7e57cb5166d48e9e9c87d677494339f3b8feec8c3a36b"}}} ``...
diff --git a/lib/plugins/entities.js b/lib/plugins/entities.js index 666b0b382f..19c5e9d366 100644 --- a/lib/plugins/entities.js +++ b/lib/plugins/entities.js @@ -1,5 +1,6 @@ const { Vec3 } = require('vec3') const conv = require('../conversions') +const mojangson = require('mojangson') // These values are only accur...
3
3
3
[{"id": "G0", "claim": "The PR should remove its custom string-parsing of skin textures and use the mojangson library instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The linting errors in the pull request should be fixed.", "category": "maintainabil...
null
PrismarineJS__mineflayer__3807
PrismarineJS/mineflayer
3,807
defect
79d3bd5db115293e3dc70f55561806d70063d5dd
e6283463d91339d6a4106b228d4c68171709b7a5
Pc 1.21.9
After https://github.com/PrismarineJS/node-minecraft-protocol/pull/1453
diff --git a/lib/plugins/entities.js b/lib/plugins/entities.js index 57069cc33b..db30539298 100644 --- a/lib/plugins/entities.js +++ b/lib/plugins/entities.js @@ -271,7 +271,12 @@ function inject (bot) { entity.pitch = conv.fromNotchianPitchByte(packet.pitch) entity.headPitch = conv.fromNotchianPitchByte(pack...
3
1
0
[{"id": "G0", "claim": "The new velocity field parsed from the 1.21.9 packet should be named .velocity instead of .movement for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added 500ms wait in the crafting test may serve no purpo...
null
PrismarineJS__mineflayer__3824
PrismarineJS/mineflayer
3,824
defect
48586138f560991de60bea639c71fa82954cf50f
f4f7941d17522726a8d9617062bbf1263a6ada27
Fix flaky time test race condition and add timeouts to promise chains
## Fix Flaky Tests Related to Time and Promise Timeouts ### Analysis Complete - [x] Analyze time test failure (race condition in time updates) - [x] Analyze digger test failure (missing timeouts in waitForChunksToLoad) - [x] Identify all await statements without proper timeouts - [x] Review all manual Promise creation...
diff --git a/lib/plugins/blocks.js b/lib/plugins/blocks.js index f128f71a97..4c98d575a8 100644 --- a/lib/plugins/blocks.js +++ b/lib/plugins/blocks.js @@ -70,7 +70,7 @@ function inject (bot, { version, storageBuilder, hideErrors }) { async function waitForChunksToLoad () { const dist = 2 // This makes sure...
2
2
0
[{"id": "G0", "claim": "waitForTime should use onceWithCleanup from promise_utils with checkCondition instead of raw once calls with manual retry waits.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Similar timeout handling with onceWithCleanup should a...
null
PrismarineJS__mineflayer__876
PrismarineJS/mineflayer
876
defect
5d3ac3942b8c80893daee4450dd2dfaf62ee080a
64791a4384a866364d0676b7242b9a5760f486fa
Fix #873
I'm matching whole replaced string so I don't have to add `": "` later. Also I'm replacing every matched string which fixes #873
diff --git a/lib/plugins/tablist.js b/lib/plugins/tablist.js index 4bc21c362a..40589f5a09 100644 --- a/lib/plugins/tablist.js +++ b/lib/plugins/tablist.js @@ -1,7 +1,7 @@ module.exports = inject const escapeValueNewlines = str => { - return str.replace(/": *"((?:\\"|[^"])+)/, (_, match) => '":"' + match.replace('\...
2
2
0
[{"id": "G0", "claim": "The commented-out debug line `// logErrors: false` in the test should be removed (it was left from debugging).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should explain in the PR description what the purpos...
null
ProbablyClem__utoipauto__19
ProbablyClem/utoipauto
19
defect
f8092281a2b73996a20ff8ff897117345a830af2
aa78d94a47fbea8043972d2e4373305afa1f6941
Add support for generic schemas
## TODOs: - [x] support for multiple aliases - [x] cleanup - [x] support for multiple generics - [x] support for nested generics ## Full module path - [x] basic support - [x] support for `as` use - [x] detect if we used use statement or full path declaration
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf0c225..df3d6bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,11 @@ jobs: - name: add cargo caching uses: Swatinem/rust-cache@v2 - name: Build - run: cargo build --verbose + r...
3
2
0
[{"id": "G0", "claim": "The sub-crates must not depend on each other via local path dependencies because crates.io publishes them independently, so the added `path =` dependency entries in Cargo.toml and utoipauto-macro/Cargo.toml need to be changed before merging.", "category": "design", "verdict": "uncertain", "prior...
null
ProbablyClem__utoipauto__31
ProbablyClem/utoipauto
31
defect
ef500ab38c4eed1d07180b70f641165a527f4d4e
0c62e0294019ae754a651f917b8b0c6ee490247c
skip module path segments
Paths like this: #[utoipauto(paths = "(./src/lib/bin/module from crate::bin)"] Are getting resolved like: crate::lib::bin::module::etc And it should look like: crate::bin::module::etc -> removing "lib" as we know that the module starts in "bin", same thing that is done with "src"
diff --git a/utoipauto-core/src/file_utils.rs b/utoipauto-core/src/file_utils.rs index fa9db3d..f9b4094 100644 --- a/utoipauto-core/src/file_utils.rs +++ b/utoipauto-core/src/file_utils.rs @@ -81,19 +81,34 @@ pub fn extract_module_name_from_path(path: &str, crate_name: &str) -> String { // `./crates/subcrate/src/m...
4
4
1
[{"id": "G0", "claim": "Replace the unwrap in `crate_segments.next().unwrap()` with expect and a descriptive error message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Document the new skip-module-path-segments feature in the readme.", "categ...
null
ProbablyClem__utoipauto__42
ProbablyClem/utoipauto
42
defect
eb04cbae37ac84ebd0763a27a856baeff3d3fa3d
898dacdbe79cf2ab33061978b0b5b82ea54661d2
feat: discover schema with lifetimes and const generics
Fixed as issue where schema with lifetimes were ignored due to the overly eager `.generics.params.is_empty()` found [here](https://github.com/ProbablyClem/utoipauto/blob/eb04cbae37ac84ebd0763a27a856baeff3d3fa3d/utoipauto-core/src/discover.rs#L89) and [here](https://github.com/ProbablyClem/utoipauto/blob/eb04cbae37ac84e...
diff --git a/utoipauto-core/src/discover.rs b/utoipauto-core/src/discover.rs index 081a592..3491d2f 100644 --- a/utoipauto-core/src/discover.rs +++ b/utoipauto-core/src/discover.rs @@ -86,7 +86,8 @@ fn parse_module_items( .map(|item| DiscoverType::Fn(build_path(module_path, &item))) .c...
6
3
1
[{"id": "G0", "claim": "Questions whether the new is_generic check should match all GenericParam kinds instead of only Lifetime, since filtering lifetimes out seems no better than the old plain is_empty() check.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
ProgressiveCoders__Spoke__1096
ProgressiveCoders/Spoke
1,096
defect
85439a2660e9fa03c4d37a88655fded0c6da9427
572352b8f5f31ca0b9405e81261e2e39a22e6eac
add permissions for campaign queries
and add a shortcut for texters with campaign data. closes up a security hole (this is ported from scaling branches)
diff --git a/__test__/backend.test.js b/__test__/backend.test.js index d1973f9f2..ccf63e340 100644 --- a/__test__/backend.test.js +++ b/__test__/backend.test.js @@ -297,6 +297,7 @@ it('should assign texters to campaign contacts', async () => { describe('Campaign', () => { let organization + const adminUser = { i...
2
2
2
[{"id": "G0", "claim": "currentEditors is not a query attached to the campaign cache - it still lives in the user cache - so the editors resolver's call to cacheableData.campaign.currentEditors errors (seen on the admin campaign edit page).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope":...
null
ProgressiveCoders__Spoke__1099
ProgressiveCoders/Spoke
1,099
defect
85439a2660e9fa03c4d37a88655fded0c6da9427
29aa78257c310187010a7b059b036c499c37cbc4
update user cache to be more performant for permission testing
This is a port of @azuzunaga 's work from last September. To make sure credit is attributed, I've marked him as the author, but any mistakes in porting are mine.
diff --git a/src/api/user.js b/src/api/user.js index 55b632fa8..139849995 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -10,8 +10,9 @@ export const schema = ` todos(organizationId: String): [Assignment] roles(organizationId: String!): [String] assignedCell: Phone - assignment(campaignId: Strin...
1
1
1
[{"id": "G0", "claim": "cacheableData.assignment comes up as undefined, so the texter texting view (e.g. http://localhost:3000/app/1/todos/28/text) renders blank.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
ProgressiveCoders__Spoke__1284
ProgressiveCoders/Spoke
1,284
defect
fa5dc518a7e2afa441180d0f39442f235139a51e
6fd2b2de4a34c55c1c922fadb186530c90e51180
Fix bulk send
# Fixes #1283 ## Description This PR fixes bulk send, which is used outside the USA to send more than one initial message with a single button click. It hadn't gotten any love in a while and when Australian Youth Climate Action tried to use the feature, no messages got sent. This is bigger than 300 lines be...
diff --git a/__test__/server/api/campaign.test.js b/__test__/server/api/campaign.test.js index a69731ec1..790b0df7e 100644 --- a/__test__/server/api/campaign.test.js +++ b/__test__/server/api/campaign.test.js @@ -28,7 +28,8 @@ import { createCannedResponses, startCampaign, getCampaignContact, - sendMessage + ...
3
3
1
[{"id": "G0", "claim": "Remove the console.time/console.timeEnd debugging calls from the new Bulk Send test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test confirming that bulkSend fails or errors when NOT_IN_USA and/or ALLOW_SEND_ALL...
null
ProgressiveCoders__Spoke__1365
ProgressiveCoders/Spoke
1,365
defect
f3703eee7f4ae85c91edd22b169fb96d77d7c61d
63cfbac5bc423bfe09fb354d17df26f291069f10
Add alias name
# Fixes #1109 ## Description This feature allows user to send messages using an alias. If there is no alias for that texter, the message will include texter's first name when the interactions is _{ texterAliasOrFirstName }_ I had to change the resolver implementation for texter [here](https://github.com/filaf...
diff --git a/__test__/backend.test.js b/__test__/backend.test.js index 74854d11e..db8b47772 100644 --- a/__test__/backend.test.js +++ b/__test__/backend.test.js @@ -1,7 +1,7 @@ -import { resolvers } from "../src/server/api/schema"; -import { schema } from "../src/api/schema"; -import { assignmentRequired } from "../src...
10
9
5
[{"id": "G0", "claim": "Use the prettier defaults (such as double quotes) in __test__/backend.test.js so it is easier to see what has changed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether displayName should show the first name or ...
null
ProgressiveCoders__Spoke__1462
ProgressiveCoders/Spoke
1,462
defect
638f30ff6abc284818e1896e145f0917306f9fe4
7cdbfe3a41ff75d4c88dfbaf70447f3f26b072f1
Tags/db schema
# New Feature: Tags 🎉 ## Description Schema representation: https://dbdiagram.io/d/5e72b4424495b02c3b887056 This PR includes the migration file - up and down methods - for two new tables and their models representation. I included a few unit tests that, when we have GraphQL schema and resolvers, we can use/ad...
diff --git a/__test__/backend.test.js b/__test__/backend.test.js index a09121a38..61e365ac6 100644 --- a/__test__/backend.test.js +++ b/__test__/backend.test.js @@ -11,7 +11,10 @@ import { r, CannedResponse, InteractionStep, - UserOrganization + UserOrganization, + Tag, + Message, + TagCampaignContact } ...
7
6
4
[{"id": "G0", "claim": "Wrap the .foreign() calls in the tags migration (organization_id on tag, and tag_id/campaign_contact_id on tag_campaign_contact) in an `if (!isSqlite)` guard, as init_db.js does, so the migration works on sqlite.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in...
null
ProgressiveCoders__Spoke__1475
ProgressiveCoders/Spoke
1,475
defect
638f30ff6abc284818e1896e145f0917306f9fe4
4d7c4e309f1d0c2ef86eafab1580571aa1606aca
retryable timeoutable fetch
## Description Because VAN integration relies on API calls to VAN, it would be nice to have a way to retry and timeout those API calls. `isomorphic-fetch` doesn't have retry behavior and timeout support is BYO. This PR introduces * `nock` (which allows us to mock http requests in tests -- 170K in dev only, and...
diff --git a/__test__/server/lib/http-request.test.js b/__test__/server/lib/http-request.test.js new file mode 100644 index 000000000..319659907 --- /dev/null +++ b/__test__/server/lib/http-request.test.js @@ -0,0 +1,186 @@ +import each from "jest-each"; +import nock from "nock"; + +import requestWithRetry from "../../...
5
3
2
[{"id": "G0", "claim": "Questions why the retry delay incorporates randomness at all.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The retry-option setup would be much easier to read using ES6 default destructured arguments, e.g. `const requestWithRetr...
null
ProgressiveCoders__Spoke__1551
ProgressiveCoders/Spoke
1,551
defect
8191cccd15697f7e84624e48faf1520e740652b8
e9dff34fe602d32b869bb3febfed9454a7f0b3fc
Remove CampaignContact.questionResponses
## Description - Remove `CampaignContact.questionResponses` since it was not being used in the code base, and it was broken, and it was untested - Add a test for `updateQuestionResponses` - to allow us to test it when we make changes that impact it and refactor around it in future PRs - to illustrate how int...
diff --git a/__test__/server/api/campaign.test.js b/__test__/server/api/campaign.test.js index 1588a0f91..762858d20 100644 --- a/__test__/server/api/campaign.test.js +++ b/__test__/server/api/campaign.test.js @@ -32,7 +32,8 @@ import { getCampaignContact, sendMessage, bulkSendMessages, - runGql + runGql, + ...
3
3
1
[{"id": "G0", "claim": "The new \"records answers for a contact\" test times out on Travis (jest 15000ms async callback timeout), possibly because a paren is missing somewhere.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new describe block puts e...
null
ProgressiveCoders__Spoke__1689
ProgressiveCoders/Spoke
1,689
defect
92581d94cf8073ae3495cdf044cb695b20bc04fd
2aa708115f8feaf0990cc785b1275215670502ba
Enable action handlers to know if a response was added, updated, or deleted
## Solution - Have `cacheable_queries.QuestionResponse.save` return information about which question responses were - added or updated - deleted - If a response was deleted, call processDeletedQuestionResponse - If a response was updated, pass previousValue to the action handler - an action handler could ...
diff --git a/__test__/server/api/campaign/updateQuestionResponses.test.js b/__test__/server/api/campaign/updateQuestionResponses.test.js index 8a7782c4b..d7f2b5b63 100644 --- a/__test__/server/api/campaign/updateQuestionResponses.test.js +++ b/__test__/server/api/campaign/updateQuestionResponses.test.js @@ -680,6 +680,...
2
2
1
[{"id": "G0", "claim": "If the PR is going to inform action handlers about added or updated question responses, it should also inform them when the relevant question response is deleted, since the toReturn value is not changed in the delete path; and existing responses should not be fetched unless there are action hand...
null
ProgressiveCoders__Spoke__1725
ProgressiveCoders/Spoke
1,725
defect
97f83b58737bf4d35abdb78a9dc690a83b61de16
0bbbf048911ed591bf8a627a910963e299072dd2
work-in-progress: add support for organization management
# Fixes #1719 ## Description WIP - here's what we have so far to create/manage organizations. Looking for intermediate feedback! # Checklist: - [ ] I have manually tested my changes on desktop and mobile - [ ] The test suite passes locally with my changes - [ ] If my change is a UI change, I have attach...
diff --git a/.env.example b/.env.example index b92349f32..f79f08b65 100644 --- a/.env.example +++ b/.env.example @@ -49,4 +49,5 @@ TWILIO_MESSAGE_VALIDITY_PERIOD= DST_REFERENCE_TIMEZONE='America/New_York' PASSPORT_STRATEGY=local EXPERIMENTAL_TAGS=1 -TEXTER_SIDEBOXES=contact-reference,tag-contact \ No newline at end ...
8
7
1
[{"id": "G0", "claim": "The MULTI_TENANT environment variable and its conditions are unnecessary because every Spoke instance is multi-tenant, and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test fixture field should be named is...
null
ProgressiveCoders__Spoke__2053
ProgressiveCoders/Spoke
2,053
defect
9df39844315414721417f9e88e13ea49b406442e
a6c46a480bd441fa0f93b30ef52563bd6dfafee5
Stage main 11.1 release candidate
The goals of 11.1 are first to fix any bugs that surface from 11.0; # Included * [Redash](https://redash.io/) contact-loader to pull in contacts from a saved Redash query. * #2041 bugfix: CampaignTextersForm * #2040 bugfix: twilio config buttons * #2052 add twilio hook to support service-manager changes to accou...
diff --git a/__test__/extensions/service-vendors/twilio.test.js b/__test__/extensions/service-vendors/twilio.test.js index 68c8e51be..931a2b171 100644 --- a/__test__/extensions/service-vendors/twilio.test.js +++ b/__test__/extensions/service-vendors/twilio.test.js @@ -475,7 +475,9 @@ describe("twilio", () => { descr...
1
1
0
[{"id": "G0", "claim": "The console.log debugging statements added by the pull request (in ContactController and the redash contact-loader) should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ProgressiveCoders__Spoke__2189
ProgressiveCoders/Spoke
2,189
defect
36e55956c170add240523c9d75c490cd85adbde6
fa9486276a6ac3db848d24041eb724ac393c9605
JWT-powered Delegated Authentication
## Description This PR adds a new passport strategy based on `passport-jwt` that will use JSON Web Tokens to delegate authentication to a third-party app. This essentially is a stripped down version of what Auth0 provides, but meant to use where both systems are maintained by the same group. Note about length of ...
diff --git a/.env.example b/.env.example index df0c74f9a..981a84eff 100644 --- a/.env.example +++ b/.env.example @@ -50,3 +50,10 @@ DST_REFERENCE_TIMEZONE='US/Eastern' PASSPORT_STRATEGY=local TEXTER_SIDEBOXES=celebration-gif,default-dynamicassignment,default-releasecontacts,contact-reference,tag-contact,freshworks-wi...
3
2
0
[{"id": "G0", "claim": "Move the example token-auth configuration out of `.env.example` and into the documentation folder.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `COPY --from=builder /spoke/migrations migrations` line in the Docker...
null
ProgressiveCoders__Spoke__2198
ProgressiveCoders/Spoke
2,198
defect
36e55956c170add240523c9d75c490cd85adbde6
c375bf522249e033c7e33543b45bf1cbae04d9b0
Per-org VAN settings redux
# Fixes #1693 ## Description This is a rework of #1813, implementing a per-organization VAN credential interface as a service manager. A few notes: - I added a `setFeatures` method to cacheable organization. This mirrors the setFeatures method available on campaigns, and should make it easier for future extensi...
diff --git a/__test__/extensions/contact-loaders/ngpvan/ngpvan.test.js b/__test__/extensions/contact-loaders/ngpvan/ngpvan.test.js index be96dab56..c108bf912 100644 --- a/__test__/extensions/contact-loaders/ngpvan/ngpvan.test.js +++ b/__test__/extensions/contact-loaders/ngpvan/ngpvan.test.js @@ -469,6 +469,7 @@ describ...
1
1
1
[{"id": "G0", "claim": "The NGPVAN user guide omits the step of enabling the new ngpvan service manager (and its per-organization setup instructions are stale), so a user following it cannot get the integration working on their end.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "intr...
null
ProgressiveCoders__Spoke__2360
ProgressiveCoders/Spoke
2,360
defect
301289c92f01dc4fd91df351c99e6b9a49d00d86
f0a36b834773e1b717303000c424f460d1f4b339
New node 20 branch texter side boxes
# Fixes # (issue) - Added support for forms that require integers (`GSIntegerFile.jsx`) - Adjusted .env.example to better represent the dynamic assignment features - Added clarifying text and linked the github doc for batch strategies - Added clarifying text to Dynamic Assignment drop down about adding multiple str...
diff --git a/.env.example b/.env.example index 9564b79b6..a92a1e597 100644 --- a/.env.example +++ b/.env.example @@ -49,6 +49,7 @@ TWILIO_MESSAGE_VALIDITY_PERIOD= DST_REFERENCE_TIMEZONE='US/Eastern' PASSPORT_STRATEGY=local TEXTER_SIDEBOXES=celebration-gif,default-dynamicassignment,default-releasecontacts,contact-ref...
3
2
1
[{"id": "G0", "claim": "A cypress test is failing (which is odd), and the author needs more time to look into it prior to merging.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The docs need to be updated (docs/REFERENCE-environment_variables.md) f...
null
ProgressiveCoders__Spoke__495
ProgressiveCoders/Spoke
495
defect
e44d21907b4be39b2cef94357325a9ab8caef9d0
3b90c3dfdebb2aaec62ec4a57b5857ec86967a85
Adds completed convos filter, new toolbar and ability to revisit mess…
…aged contacts Fixes #182 TODO: - [x] fix tests to account for new button, filter
diff --git a/src/components/AssignmentSummary.jsx b/src/components/AssignmentSummary.jsx index 2ed21ce06..dd475d5f8 100644 --- a/src/components/AssignmentSummary.jsx +++ b/src/components/AssignmentSummary.jsx @@ -79,7 +79,7 @@ class AssignmentSummary extends Component { } render() { - const { assignment, unm...
1
1
1
[{"id": "G0", "claim": "The 'Revisit convos' button should not be hidden when NOT_IN_USA is set, since even non-US users may want to revisit conversations.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ProgressiveCoders__Spoke__562
ProgressiveCoders/Spoke
562
defect
17fcc5326be3c41b42a77147e4058d797ed6df7c
adb0689ec792f6e449a0666f412d731c3c441f0f
faqs: initial implementation with placeholder question/answers added
Related issue: https://github.com/MoveOnOrg/Spoke/issues/314 Pushing this with placeholder questions for now. We should determine the FAQs before merging in.
diff --git a/src/components/TexterFAQs.jsx b/src/components/TexterFAQs.jsx new file mode 100644 index 000000000..4be710e2b --- /dev/null +++ b/src/components/TexterFAQs.jsx @@ -0,0 +1,33 @@ +import React from 'react' +import { Card, CardTitle, CardText } from 'material-ui/Card' + +const FAQs = () => { + const faqs = [...
2
1
1
[{"id": "G0", "claim": "The FAQ page still shows placeholder question/answer text, so the initial FAQ list ErikKirkstein provided should replace it in src/lib/faqs.js.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request exports 'FAQs' ...
null
ProgressiveCoders__Spoke__642
ProgressiveCoders/Spoke
642
defect
d4a5f38998a5a2acce4397f2957856cdebcc161b
8c9c6a09591daf1aadedb0b1a30f3d1120637287
Initial configuration of End-to-end automation tests
## Summary Relating to #609, this initial test simply opens the landing page for a new user and hits the login button. This is sufficient to know that jest is playing nicely with Selenium and not interfering with the existing unit tests. ## Developer notes The development guidelines didn't specify, but let me ...
diff --git a/.gitignore b/.gitignore index d011a3420..d0a3c1727 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ test.sqlite coverage/ .idea/ *sqlite +*.vscode diff --git a/__test__/e2e/hello_spoke.test.js b/__test__/e2e/hello_spoke.test.js new file mode 100644 index 000000000..485959c22 --- /dev/null +++ ...
2
1
0
[{"id": "G0", "claim": "Add a sample script to run to the End-To-End testing doc, like `npm run dev`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Clarify what 'Setup DB' means in the End-To-End testing doc, being as clear as the startup guide."...
null
ProgressiveCoders__Spoke__72
ProgressiveCoders/Spoke
72
defect
2d81f5d57b6944714c5dfef0f1d3ea417ad8ca46
49a37be3078493176f83fd5330140a53d0d346f3
Jest tests
Some example backend Jest tests are set up in /__test__ To run them, checkout this branch and: ``` npm install npm run dev npm run jest-test ```
diff --git a/.gitignore b/.gitignore index 1af3ea381..4df496e87 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ npm-debug.log .DS_Store rethinkdb_data -.env \ No newline at end of file +.env +__test__/test_data/* \ No newline at end of file diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js new file...
1
1
1
[{"id": "G0", "claim": "The new tests still need a way to load the new environment variables (the test setup reads process.env.DB_HOST/DB_PORT/DB_KEY but nothing loads them).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Project-HAMi__HAMi__1041
Project-HAMi/HAMi
1,041
defect
e8bdea59ed0527abfefc4f0fe181c4b9c70a8efc
1adc6d4e25f67abde6f454d40e9833cbccd3c5dc
fix: Skip admission webhook when Pod's scheduler is already assigned.
**What type of PR is this?** /kind bug **What this PR does / why we need it**: If pod has a scheduler already assigned, we should not override user's explicit scheduler choice. **Which issue(s) this PR fixes**: **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**:
diff --git a/pkg/scheduler/webhook.go b/pkg/scheduler/webhook.go index 563f372a39..19b5bf7c9d 100644 --- a/pkg/scheduler/webhook.go +++ b/pkg/scheduler/webhook.go @@ -60,6 +60,10 @@ func (h *webhook) Handle(_ context.Context, req admission.Request) admission.Res klog.Warningf(template+" - Denying admission as pod ha...
2
1
1
[{"id": "G0", "claim": "The early-allow branch added at webhook.go:63 also fires when pod.Spec.SchedulerName equals config.SchedulerName (i.e. when len(config.SchedulerName) > 0), so pods already assigned to HAMi's own scheduler skip the webhook's admission check.", "category": "correctness", "verdict": "supported", "p...
null
Project-HAMi__HAMi__1061
Project-HAMi/HAMi
1,061
defect
6218d7e4a0c1a42644fb8a89e5e3cbcf6f5d1133
5795f26ebeaa9ac0363bda5a7a62ec08f9a39eec
fix: Dynamic GPU partitioning lacks single-GPU-level granularity. (#1…
…054) **What type of PR is this?** <!-- /kind bug --> **What this PR does / why we need it**: fix: Dynamic GPU partitioning lacks single-GPU-level granularity. (#1… **Which issue(s) this PR fixes**: Fixes #1054 **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**:
diff --git a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go index 8c1b3df770..516ae7c5d6 100644 --- a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go +++ b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go @@ -236,14 +236,12 @@...
3
3
2
[{"id": "G0", "claim": "MigDevices is a map, a reference type, so copying migConfigs[\"current\"][idx] by value shares the MigDevices map between the per-device configs, and when device 0 is modified, devices 1/2 are modified too; a deep copy of the map type is needed.", "category": "correctness", "verdict": "supported...
null
Project-HAMi__HAMi__1195
Project-HAMi/HAMi
1,195
defect
2122e64f5a7be97c82bd68d93d6d43aaf4cf4636
b3ec2f8ce9281e87097c55e02a5053ffae6f6f9b
refactor: clean up code and improve maintainability
**What type of PR is this?** /kind cleanup **What this PR does / why we need it**: - Remove unused comments - Add logs for easier troubleshooting - Rename variables to be more descriptive **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR introduce a user-...
diff --git a/cmd/vGPUmonitor/feedback.go b/cmd/vGPUmonitor/feedback.go index 5a6254e521..4a0e3a0c26 100644 --- a/cmd/vGPUmonitor/feedback.go +++ b/cmd/vGPUmonitor/feedback.go @@ -85,87 +85,6 @@ func getUsedGPUPid() ([]uint, nvml.Return) { return result, nvml.SUCCESS } -//func setHostPid(pod corev1.Pod, ctr corev1....
1
1
0
[{"id": "G0", "claim": "The newly added 'pod allocated unknown node resources' debug log should use verbosity level 5 instead of level 4.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Project-HAMi__HAMi__1271
Project-HAMi/HAMi
1,271
defect
bc5dc023b8896721a911cfb86e5bc782bfb445ec
16ab6f1df80045acf1d72aa74c13d6a57f1748e4
fix: release dangling node lock
**What type of PR is this?** /kind bug **Which issue(s) this PR fixes**: Fixes #714 Fixes #810 Fixes #1244 ## **Background** The background details of the above issues and the history of the fixes are summarised here: The root of the problem originates from the poor design of the device-plugin fr...
diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index 191bee76af..f61ea04ee6 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -417,7 +417,7 @@ func (s *Scheduler) Bind(args extenderv1.ExtenderBindingArgs) (*extenderv1.Exten err = util.PatchPodAnnotations(current, tmppat...
5
5
2
[{"id": "G0", "claim": "The dangling-lock condition must require a valid namespace and pod name from the lock before attempting the pod lookup, because older lock formats yield empty values and would trigger a Pods(\"\").Get call whose error is not IsNotFound, incorrectly blocking pod scheduling.", "category": "correct...
null
Project-HAMi__HAMi__1295
Project-HAMi/HAMi
1,295
defect
9c5e939cb3a713c79bf1ee69ddd30e9a1a94b410
640bcc4789138e5fdec20d66ebcc4f87a12c0007
Support Metax sGPU device health check
**What type of PR is this?** /kind feature **What this PR does / why we need it**: filter unhealthy device **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**:
diff --git a/pkg/device/metax/sdevice.go b/pkg/device/metax/sdevice.go index c335683047..db16826ae5 100644 --- a/pkg/device/metax/sdevice.go +++ b/pkg/device/metax/sdevice.go @@ -177,6 +177,11 @@ func (sdev *MetaxSDevices) NodeCleanUp(nn string) error { func (sdev *MetaxSDevices) checkType(annos map[string]string, d...
1
1
0
[{"id": "G0", "claim": "The log message misspells \"unhealthy\" as \"unhealty\" and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Project-HAMi__HAMi__1315
Project-HAMi/HAMi
1,315
defect
48ccab239d31b31d5e3a4dfc89bbf2f06d22ef5c
1a99897d3821225371789620da4d0876563136ba
cleanup: Clear and correct ascend device name
**What type of PR is this?** /kind cleanup /kind documentation **What this PR does / why we need it**: This pr split ascend 910B to 910A or 910B3 to reduce confusion. **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**: T...
diff --git a/.github/workflows/call-e2e.yaml b/.github/workflows/call-e2e.yaml index 4f084e9b47..b1e942d29a 100644 --- a/.github/workflows/call-e2e.yaml +++ b/.github/workflows/call-e2e.yaml @@ -23,7 +23,7 @@ jobs: # - device: nvidia # type: rtx-4090 # - device: huawei -# type...
2
2
1
[{"id": "G0", "claim": "The two Notes bullets in docs/ascend910b-support.md should use the generic `Ascend910Bx` naming for consistency with line 192, so they clearly apply to the whole 910B series (B2, B3, B4) rather than just the 910B3.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
Project-HAMi__HAMi__1336
Project-HAMi/HAMi
1,336
defect
00ea0c71fb34d4099340dcc3e66af56ce8ddbdc1
d163cea8cf308812aec65047434d45f0e81c03db
bugfix: Nvidia card abnormal pod will still continue to schedule
**What type of PR is this?** /kind bug **What this PR does / why we need it**: Fixes a scheduling flaw where Pods requesting **abnormal/unhealthy NVIDIA GPUs** (health=false) were **still admitted** by the scheduler, leading to **pod not running** . **Which issue(s) this PR fixes**: Fixes abnormal NVIDIA G...
diff --git a/pkg/device/common/common.go b/pkg/device/common/common.go index 85cda90cb6..c64d2ae0aa 100644 --- a/pkg/device/common/common.go +++ b/pkg/device/common/common.go @@ -28,6 +28,7 @@ const ( CardComputeUnitsExhausted = "CardComputeUnitsExhausted" CardInsufficientMemory = "CardInsufficie...
1
1
1
[{"id": "G0", "claim": "The new test case \"fit fail: CardNotHealth\" configures the device with Health: true, so it is healthy and will not trigger the CardNotHealth health-check failure the case is meant to verify; the device's health status should be set to false.", "category": "testing", "verdict": "supported", "pr...
null
Project-HAMi__HAMi__1345
Project-HAMi/HAMi
1,345
defect
d77d0ebdb9978506119309c0232d4ade15f973c1
257ee7bca8e6ae6cecc260530c79102210cd120f
FIx CI, add 910B4-1 template and fix vGPUmonitor metrics error
/kind bug 1. Fix Ci which blocks HAMi from building 2. add 910B4-1 template 3. fix vGPUmonitor metrics error
diff --git a/charts/hami/templates/scheduler/device-configmap.yaml b/charts/hami/templates/scheduler/device-configmap.yaml index 7501d0a45c..3d8f478934 100644 --- a/charts/hami/templates/scheduler/device-configmap.yaml +++ b/charts/hami/templates/scheduler/device-configmap.yaml @@ -176,6 +176,23 @@ data: mem...
2
1
1
[{"id": "G0", "claim": "Slicing s.sr.procs with int(s.sr.procnum) could panic if procnum ever exceeds the procs array capacity (1024); a bounds check, ideally centralized in a shared helper used by DeviceMemoryContextSize, DeviceMemoryModuleSize, DeviceMemoryBufferSize and the other similar functions, should be added b...
null
Project-HAMi__HAMi__1362
Project-HAMi/HAMi
1,362
defect
7668eec4eaa3b0d7e54a9083d664565f7c51be01
ab5810febd2736d2f79ad741a7b174f4801b561f
add podInfos in DeviceUsage to enhance scheduling decision
**What type of PR is this?** /kind feature **What this PR does / why we need it**: add podinfos in `DeviceUsage` struct to enhance scheduling decision. When scheduling, we can know tasks(Pods) on a device **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR in...
diff --git a/pkg/device/devices.go b/pkg/device/devices.go index dd8fc80664..9c060ef7af 100644 --- a/pkg/device/devices.go +++ b/pkg/device/devices.go @@ -71,6 +71,13 @@ type AllowedMigGeometries struct { Geometries []Geometry `yaml:"allowedGeometries"` } +type PodInfo struct { + *corev1.Pod + NodeID string + Dev...
1
1
1
[{"id": "G0", "claim": "The logic adding pod information to d.Device.CustomInfo in getNodesUsage fails silently when CustomInfo[\"PodInfos\"] already exists with a type other than []*device.PodInfo, so new pod information would not be added and scheduling could rely on incomplete data; it should handle the unexpected t...
null
Project-HAMi__HAMi__1444
Project-HAMi/HAMi
1,444
defect
b27a042503fd6b60fc93fcea5f41eb4d455a083c
033bafb05695b62f22adf4bc57c4523df0a43b23
optimize schedule failure event
**What type of PR is this?** /kind feature **What this PR does / why we need it**: 1. delete duplicate event type definition, use common package 2. support vendor device report custom event **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR introduce a user...
diff --git a/pkg/device/common/common.go b/pkg/device/common/common.go index 750cbe95d7..4191df0824 100644 --- a/pkg/device/common/common.go +++ b/pkg/device/common/common.go @@ -46,3 +46,20 @@ func GenReason(reasons map[string]int, cards int) string { } return strings.Join(reason, ", ") } + +func ParseReason(reas...
2
1
0
[{"id": "G0", "claim": "The `cards` variable in ParseReason is declared and assigned but never used and would be flagged by go vet; it should be removed from the declaration and the second integer discarded.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
Project-HAMi__HAMi__1472
Project-HAMi/HAMi
1,472
defect
8bae006f12c16bc072841df8b8f51a5a0d4f938c
a9b3078a80fc16012b5c459b45a41a9bc8255de0
Add AMDMi300x device monitoring & fix CI
/kind feature /kind bug Add AMDMi300x whole card monitoring in prepare for kubeCon NA #2025 fix CI Also, i'm working on AMD slicing, it will be provided in the future
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ec6ca77c6f..444026bad3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -123,7 +123,6 @@ jobs: runs-on: ubuntu-22.04 if: needs.get_info.outputs.e2e_run == 'true' steps: - - uses: actions/checkout@master...
8
5
5
[{"id": "G0", "claim": "Fit returns true after finding a single suitable device even when the request is for more than one (request.Nums > 1), so the scheduler treats the pod's resource needs as met while only a fraction of the requested devices are allocated; the loop must continue until all requested devices are foun...
null
Project-HAMi__HAMi__1476
Project-HAMi/HAMi
1,476
defect
04efe02bff43165c756294dbb0c3c8fe4832df04
1da054b72b73c9431d98fcba7276e8aedc536161
Fix concurrent map read write fatal error.
**What type of PR is this?** Bug **What this PR does / why we need it**: Fix fatal error **Which issue(s) this PR fixes**: Fixes #1467 **Special notes for your reviewer**: Thanks **Does this PR introduce a user-facing change?**: No
diff --git a/pkg/scheduler/nodes.go b/pkg/scheduler/nodes.go index 9ff4e87399..148844a0b2 100644 --- a/pkg/scheduler/nodes.go +++ b/pkg/scheduler/nodes.go @@ -111,5 +111,18 @@ func (m *nodeManager) GetNode(nodeID string) (*device.NodeInfo, error) { func (m *nodeManager) ListNodes() (map[string]*device.NodeInfo, error)...
2
1
1
[{"id": "G0", "claim": "ListNodes shallow-copies the Devices slice, so nested reference-type fields (MIGTemplate, CustomInfo, DevicePairScore.Scores) are shared and a caller mutating them can race with the nodeManager's internal state; a deep copy of each DeviceInfo is needed to make the function fully thread-safe.", "...
null
Project-HAMi__HAMi__1547
Project-HAMi/HAMi
1,547
defect
1b39ea9ad512038971f534ccd0eb3228fa0f13f2
f91c1f06e722c2f5527fb17b93b995cca1d36f39
Add a LockNode mechanism for Iluvatar devices
**What type of PR is this?** /kind feature **What this PR does / why we need it**: This PR adds a LockNode mechanism for Iluvatar devices to ensure exclusive access and prevent conflicts during device allocation and usage. **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Doe...
diff --git a/pkg/device/iluvatar/device.go b/pkg/device/iluvatar/device.go index 31e0fc8400..72eea928da 100644 --- a/pkg/device/iluvatar/device.go +++ b/pkg/device/iluvatar/device.go @@ -26,12 +26,17 @@ import ( "github.com/Project-HAMi/HAMi/pkg/device" "github.com/Project-HAMi/HAMi/pkg/device/common" "github.com...
4
2
0
[{"id": "G0", "claim": "The \"Test with non-zero resource requests\" cases in TestDevices_LockNode and TestDevices_ReleaseNodeLock should use a pod that actually requests an Iluvatar device and a named node, because as written they never exercise the locking/unlocking logic.", "category": "testing", "verdict": "uncerta...
null
Project-HAMi__HAMi__1550
Project-HAMi/HAMi
1,550
defect
1b39ea9ad512038971f534ccd0eb3228fa0f13f2
5a7a71e3dc3b85add634adc3ec5fab5c33e9e4a0
chore: remove repeated var
**What type of PR is this?** /kind cleanup <!-- Add one of the following kinds: /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> **What this PR does / why we need it**: **Which issue(s) this PR fixes**: Fixes None **Special...
diff --git a/pkg/scheduler/policy/constant.go b/pkg/scheduler/policy/constant.go index 451a0b2b8b..4c74890ac4 100644 --- a/pkg/scheduler/policy/constant.go +++ b/pkg/scheduler/policy/constant.go @@ -16,30 +16,6 @@ limitations under the License. package policy -type SchedulerPolicyName string - -const ( - // NodeSc...
1
1
0
[{"id": "G0", "claim": "Remove pkg/scheduler/policy/constant.go and move its single remaining constant (Weight) to the util package, since only one constant is left in the file after this PR's change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Project-HAMi__HAMi__1553
Project-HAMi/HAMi
1,553
defect
46735631de11c72862288e51235a7ef14a8918f5
5d878641b486148aad7795c714db5f47a0ea73eb
Implementing leader-follower high availability using leader-election
**What type of PR is this?** /kind feature **What this PR does / why we need it**: The current HAMi implementation lacks sufficient support for multi-replica high availability. Whilst the kube-scheduler has implemented master-slave election via Kubernetes' built-in leader election mechanism, the vgpu-schedule...
diff --git a/charts/hami/templates/scheduler/deployment.yaml b/charts/hami/templates/scheduler/deployment.yaml index 9024d4b385..c9750df0d6 100644 --- a/charts/hami/templates/scheduler/deployment.yaml +++ b/charts/hami/templates/scheduler/deployment.yaml @@ -109,6 +109,9 @@ spec: - --gpu-scheduler-policy={...
7
5
4
[{"id": "G0", "claim": "The leaderManager struct will not compile because it does not correctly implement the LeaderManager interface (embedded cache.ResourceEventHandler with FilteringResourceEventHandler gives a different OnAdd signature), causing a build failure.", "category": "correctness", "verdict": "opposed", "p...
null
Project-HAMi__HAMi__1569
Project-HAMi/HAMi
1,569
defect
8a3666339b385d6abc8416e323bc9e524621b2f2
a39ef5565b8c47a493de75b2bf21f4745f24e33c
Fix kunlunxin vxpu issue
/kind bug related issue: https://github.com/Project-HAMi/HAMi/issues/1548
diff --git a/pkg/device/kunlun/topo.go b/pkg/device/kunlun/topo.go index 39f3f20c1c..7e9fd512cb 100644 --- a/pkg/device/kunlun/topo.go +++ b/pkg/device/kunlun/topo.go @@ -225,7 +225,7 @@ func graghSelect(devices []*device.DeviceUsage, request device.ContainerDeviceRe leftwing := 0 rightwing := 0 for idx, val := r...
1
1
1
[{"id": "G0", "claim": "In FitVXPU, when device.Used == 0 the function returns true before the newly added memory capacity check, so a request larger than the device's total memory could still be accepted (over-allocation on first use); the memory check should be performed for all cases, including an empty device.", "c...
null
Project-HAMi__HAMi__1581
Project-HAMi/HAMi
1,581
defect
2acd27da74f8cc9ed59fed9cddb39a16cc8e4dc0
6313ff86bca9e7a7d037c556867fdf65f82dab6c
feat: Add hami_build_info metrics and version print
**What type of PR is this?** <!-- Add one of the following kinds: /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> /kind feature **What this PR does / why we need it**: Add `hami_build_info` metrics for component upgrade. ...
diff --git a/Makefile b/Makefile index 996f42d280..e1edec9df7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,23 @@ ##### Global variables ##### include version.mk Makefile.defs +HAMI_VERSION_PKG=github.com/Project-HAMi/HAMi/pkg + +ifndef GITHUB_ACTIONS + REVISION?=$(shell git rev-parse --short HEAD) +else + REVISI...
3
1
1
[{"id": "G0", "claim": "The JSON tag for the Info struct's Revision field is misspelled `revison`, so the struct marshals to JSON with an incorrect field name; it should be `revision`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Makefile gene...
null
Project-HAMi__HAMi__1605
Project-HAMi/HAMi
1,605
defect
07543402aaaa7c0dc82ed7f5aaaed51ae2446fd5
781311f022946383905c8e276b0e0477a92b6410
feat: check resource quota in webhook
**What type of PR is this?** /kind feature **What this PR does / why we need it**: currently, resource quotas are validated in the hami-scheduler's `Fit` phase. If validation fails, the pod remains in `Pending` state. This behavior is inconsistent with Kubernetes' native validation. However, some resources su...
diff --git a/pkg/scheduler/webhook.go b/pkg/scheduler/webhook.go index 5fc8660177..547a50124b 100644 --- a/pkg/scheduler/webhook.go +++ b/pkg/scheduler/webhook.go @@ -29,6 +29,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook/admission" "github.com/Project-HAMi/HAMi/pkg/device" + "github.com/Project-HAMi/...
1
1
0
[{"id": "G0", "claim": "Casting `resourceNames.ResourceCountName` to `corev1.ResourceName` twice looks like a typo and should be a single cast.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Project-HAMi__HAMi__1610
Project-HAMi/HAMi
1,610
defect
07543402aaaa7c0dc82ed7f5aaaed51ae2446fd5
1ba6374d1bb1c94c6af5910641ea3e28566e1fa7
feat: support module-pair allocation for Ascend 910C devices in SuperPod environments
This PR enhances the HAMi scheduler to properly handle Ascend 910C devices in Huawei SuperPod clusters by enforcing module-pair allocation: - Ascend 910C hardware consists of **2 NPUs per physical module**, and valid allocations must respect this topology (i.e., allocate either 1 NPU — auto-rounded to 2 — or an even...
diff --git a/pkg/device/ascend/device.go b/pkg/device/ascend/device.go index 6f571d10b8..6652f507b6 100644 --- a/pkg/device/ascend/device.go +++ b/pkg/device/ascend/device.go @@ -40,6 +40,7 @@ import ( const ( NodeLockAscend = "hami.io/mutex.lock" Ascend910Prefix = "Ascend910" + Ascend910CType ...
10
6
2
[{"id": "G0", "claim": "When a fit reason contains common.CardReqNumInvalid, common.ParseReason yields an empty map so failureReason is not populated and no scheduling failure event is recorded for the pod; the CardReqNumInvalid case should be handled separately so the failure reason is recorded.", "category": "correct...
null
Project-HAMi__HAMi__1650
Project-HAMi/HAMi
1,650
defect
b368a2c488edbdfa7c56e76db8f86eaf3cf735bc
904f2825635c33be3a9070b635fc9828ed03bf80
fix: support device allocation for multi-container with init containers
**What type of PR is this?** <!-- Add one of the following kinds: /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> /kind bug **What this PR does / why we need it**: This commit fixes the 'device request not found' error that oc...
diff --git a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/util.go b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/util.go index 6a6adfdb3d..a161f0e65e 100644 --- a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/util.go +++ b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/util.go @@ -61,9 +61,27 @@ func GetNe...
4
2
1
[{"id": "G0", "claim": "The loops processing init containers and regular containers in Resourcereqs are nearly identical and should be refactored into a helper function or a single loop structure to improve maintainability and readability.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scop...
null
Project-HAMi__HAMi__1677
Project-HAMi/HAMi
1,677
defect
07543402aaaa7c0dc82ed7f5aaaed51ae2446fd5
bffeffe3d890ffa61e580aaf8b7fa1174149583c
fix: failing readiness probe when replica > 1
**What type of PR is this?** /kind bug <!-- Add one of the following kinds: /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> **What this PR does / why we need it**: As described in #1617, the PR #1553 brings the readinessProbe ...
diff --git a/charts/hami/templates/scheduler/deployment.yaml b/charts/hami/templates/scheduler/deployment.yaml index 6364cae31f..31e848ca19 100644 --- a/charts/hami/templates/scheduler/deployment.yaml +++ b/charts/hami/templates/scheduler/deployment.yaml @@ -85,6 +85,14 @@ spec: image: {{ include "hami.sched...
5
4
2
[{"id": "G0", "claim": "The constant value has a typo: HAMiRoleLabelValueFollower is \"folloer\" instead of \"follower\", which could lead to incorrect behavior in label selection and filtering.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The log...
null
Project-HAMi__HAMi__1700
Project-HAMi/HAMi
1,700
defect
6609804f2d33feb4cb9f739be0d710b8996575d9
5060e7339dfd2515325a8f9c9fd4a2c8cd10c263
fix(scheduler): correct slot usage prediction and add device type fil…
This PR resolves scoring and slot allocation bugs in `ComputeScore`. **Changes:** * **Fixed slot consumption:** Allocated containers now consume exactly 1 time-slicing slot (`request += 1`) instead of scaling by requested GPUs, preventing `usedScore` inflation. * **Added device filtering:** Added a check (`devTyp...
diff --git a/pkg/scheduler/policy/gpu_policy.go b/pkg/scheduler/policy/gpu_policy.go index e171875d40..24dea1c7b4 100644 --- a/pkg/scheduler/policy/gpu_policy.go +++ b/pkg/scheduler/policy/gpu_policy.go @@ -59,11 +59,16 @@ func (l DeviceUsageList) Less(i, j int) bool { func (ds *DeviceListsScore) ComputeScore(requests...
3
2
1
[{"id": "G0", "claim": "The multiplication `ds.Device.Totalmem * container.MemPercentagereq` could overflow int32, so the calculation should be performed in int64 to be robust.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case for `Cont...
null
Project-HAMi__HAMi__1715
Project-HAMi/HAMi
1,715
defect
cae06cf5f7ed6d8052b429cec20e4e3ee3ab4111
bac8197058a429ba6fbbd020f65d3848654ba4cc
fix vastai fit loop iteration direction
**What type of PR is this?** <!-- /kind bug --> **What this PR does / why we need it**: - fix vastai fit loop iteration direction **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**:
diff --git a/pkg/device/vastai/device.go b/pkg/device/vastai/device.go index a395654981..3121272551 100644 --- a/pkg/device/vastai/device.go +++ b/pkg/device/vastai/device.go @@ -231,7 +231,7 @@ func (va *VastaiDevices) Fit(devices []*device.DeviceUsage, request device.Conta tmpDevs := make(map[string]device.Containe...
2
1
0
[{"id": "G0", "claim": "The devices slice can potentially contain nil elements, which would lead to a panic when dev is dereferenced in the Fit loop, so a check that dev is not nil should be added before using it.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
Project-HAMi__HAMi__1719
Project-HAMi/HAMi
1,719
defect
b20540f8c5037265e6a97eee9b7f911b92236ac0
5830162acf9e7215b601df2f6121696aefbe61eb
fix: retain terminating pod in cache to prevent premature eviction
**The Fix:** This PR updates the scheduler to retain pods in the device cache while they are in the `Terminating` state. The cache will now only evict the pod once the Kubelet fully reports it as terminated (reaching a `Succeeded` or `Failed` phase). Fixes #1368 ## Verification / Testing Performed - [x] Ran...
diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index 8d35acb1ef..39f5288696 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -152,6 +152,10 @@ func (s *Scheduler) onAddPod(obj any) { s.podManager.DelPod(pod) return } + if util.IsPodTerminating(pod) { + klog.V(5)...
2
1
1
[{"id": "G0", "claim": "Returning early for terminating pods preserves the cache entry but leaves the cached pod object stale (its DeletionTimestamp is never updated), which may cause bugs for logic relying on podManager being up-to-date, so the pod object in the cache should be updated before returning.", "category": ...
null
Project-HAMi__HAMi__1728
Project-HAMi/HAMi
1,728
defect
68ab26a5d0b0203078aa96edcbc5ff6e7d6d93f7
1a5f58556ed1877a83f2f0e317ae1ca971cfcd79
chore: resolve staticcheck and modernize linter warnings
## Description This PR addresses failing `make verify` checks by resolving multiple warnings flagged by the `golangci-lint` tools (specifically `staticcheck` and `modernize`). It optimizes string building across the device packages and removes the use of deprecated Go standard library functions in our hack tools. Bef...
diff --git a/go.sum b/go.sum index 8374e8287a..35b70f6650 100644 --- a/go.sum +++ b/go.sum @@ -251,19 +251,12 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz...
4
4
1
[{"id": "G0", "claim": "Checking `parseErr == nil` silently ignores files that fail to parse, regressing the tool's previous error-reporting behavior; the error should be logged and `a.failed` set, while still appending a non-nil partial AST to `files`.", "category": "correctness", "verdict": "supported", "priority": "...
null
Project-HAMi__HAMi__1743
Project-HAMi/HAMi
1,743
defect
7f5e97f8d22e31e14d83a83919134e1da24564e4
edd2b367230c5a9fefa52ba6bb3c2e2d5fbc4cac
fix(device-plugin): align kubelet allocation with scheduler annotations (#1741)
## Problem When using HAMi with 8 H100 GPUs and a pod requesting 8 GPUs, the scheduler correctly assigns 8 GPUs (as seen in pod annotations), but the kubelet `Allocate` request only contains 5 unique physical GPU devices. This causes downstream tools like DCGM Exporter to only see 5 GPU-Pod associations instead of 8. ...
diff --git a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go index 721d341680..238002f90d 100644 --- a/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go +++ b/pkg/device-plugin/nvidiadevice/nvinternal/plugin/server.go @@ -61,6 +61,7 @@ imp...
3
2
2
[{"id": "G0", "claim": "physicalDeviceID may incorrectly truncate a physical GPU UUID that ends with a dash followed by digits (strconv.Atoi succeeds on the last segment), and the suffix check should be restricted (e.g. only short suffixes) to tell virtual devices apart.", "category": "correctness", "verdict": "support...
null
Project-HAMi__HAMi__1748
Project-HAMi/HAMi
1,748
defect
7f5e97f8d22e31e14d83a83919134e1da24564e4
c65854dac4edf8adf005ddf2107398b61233f91c
test: improve coverage for pkg/version/version.go
**What type of PR is this?** /kind cleanup **What this PR does / why we need it**: Adds unit coverage for `pkg/version/version.go` by testing: - `Version()` field population - `VersionCmd` command output This improves the package coverage for the `#569` UT coverage improvement task. **Which issue(s) this PR fixes*...
diff --git a/pkg/version/version_test.go b/pkg/version/version_test.go index dd197f9cac..117c3a45c4 100644 --- a/pkg/version/version_test.go +++ b/pkg/version/version_test.go @@ -18,8 +18,9 @@ package version import ( "fmt" + "io" + "os" "runtime" - "testing" ) @@ -74,3 +75,57 @@ platform: ` + fmt.S...
2
2
1
[{"id": "G0", "claim": "TestVersionCmd never closes the read end of the pipe, leaking a file descriptor on every run, and calls io.ReadAll(r) only after VersionCmd.Run, which can block indefinitely if the command's output exceeds the pipe buffer; the reviewer asks for a concurrent goroutine read with all resources rele...
null
Project-HAMi__HAMi__1749
Project-HAMi/HAMi
1,749
defect
7f5e97f8d22e31e14d83a83919134e1da24564e4
6f746adf9e16a66f720d4cf396a55c146f23a3e4
fix: suppress scheduler cleanup noise for unrelated vendors
**What type of PR is this?** /kind cleanup **What this PR does / why we need it**: Suppresses misleading scheduler cleanup noise for GPU vendors that are not actually tracked on a node. Previously, if a device implementation reported `health=false` for a vendor that was not present in the scheduler cache, the sched...
diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index 837dc13fde..fdbeba438f 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -393,6 +393,15 @@ func (s *Scheduler) register(labelSelector labels.Selector, printedLog map[strin klog.V(5).InfoS("Device health check result...
4
4
1
[{"id": "G0", "claim": "The two skip branches log the identical message 'Skipping device cleanup for vendor not present in scheduler cache' for the node-missing case and the vendor-missing case; the node-missing branch should log a message that says 'node not present in scheduler cache' to improve debuggability.", "cat...
null
Project-HAMi__HAMi__1771
Project-HAMi/HAMi
1,771
defect
10dc163b898d38dd66effb430e414d29a9254b98
03a6343e7176dc763c90b97e01f4bbbfac5e9ce5
feat: add Ascend ResourceCoreName to support hami-vnpu-core virtualization
**What type of PR is this?** /kind feature **What this PR does / why we need it:** This PR adds the `ResourceCoreName` definition for Ascend NPUs in **Hami-scheduler**. When Ascend NPUs use **hami-vnpu-core** for computing power soft-segmentation (Time-slicing), the scheduler must be able to recognize and corre...
diff --git a/charts/hami/templates/scheduler/device-configmap.yaml b/charts/hami/templates/scheduler/device-configmap.yaml index 7b1487d4ce..f3b1b0ed6f 100644 --- a/charts/hami/templates/scheduler/device-configmap.yaml +++ b/charts/hami/templates/scheduler/device-configmap.yaml @@ -337,6 +337,7 @@ data: commonWo...
6
6
2
[{"id": "G0", "claim": "The injected postStart command uses a hardcoded debug path `/hami-vnpu-core/target/debug/limiter`, which should be a production-ready path; using `bash` may also limit compatibility with minimal images.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
Project-HAMi__HAMi__328
Project-HAMi/HAMi
328
defect
cabb7fb52abf6d1ed62a23c8a5c0ad00d2fcf7ab
a08cc3674bd529f0fefaa31ddc3801f553046542
[Optimization] Fix the issue where scheduling can still occur on the node when the device-plugin crashes.
**What type of PR is this?** /kind feature <!-- Add one of the following kinds: /kind bug /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> **What this PR does / why we need it**: The scheduler heavily relies on a temporary memory variabl...
diff --git a/pkg/scheduler/nodes.go b/pkg/scheduler/nodes.go index 41c94f4c50..dfac2a0694 100644 --- a/pkg/scheduler/nodes.go +++ b/pkg/scheduler/nodes.go @@ -57,7 +57,7 @@ func (m *nodeManager) addNode(nodeID string, nodeInfo *util.NodeInfo) { } } -func (m *nodeManager) rmNodeDevice(nodeID string, nodeInfo *util....
2
1
0
[{"id": "G0", "claim": "The new log message uses the key \"node \" with a trailing space and should use \"node\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When NodeCleanUp returns an error, the loop should `continue` to the next device ins...
null
Project-HAMi__HAMi__376
Project-HAMi/HAMi
376
defect
8b5e5b88e75a68019c46a2caaa05e1995744a13d
ff5a520b69a845cc98bd9b881b2f795866f522a9
feat: Add GPU node selector to scheduler deployment
The code changes in `deployment.yaml` add the GPU node selector to the scheduler deployment. This change allows the scheduler to select nodes with the `gpu` label set to `"on"`. The environment variables are updated accordingly to include the `NODE_SELECTOR_GPU` variable. **What type of PR is this?** <!-- Add on...
diff --git a/charts/hami/templates/scheduler/deployment.yaml b/charts/hami/templates/scheduler/deployment.yaml index 566f4f751c..87834ce257 100644 --- a/charts/hami/templates/scheduler/deployment.yaml +++ b/charts/hami/templates/scheduler/deployment.yaml @@ -67,6 +67,13 @@ spec: - name: vgpu-scheduler-extender...
3
3
2
[{"id": "G0", "claim": "The values.yaml should not enable the `gpu: \"on\"` scheduler nodeSelector by default, because some clusters have no NVIDIA GPUs; users should opt in by adding the field themselves.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
Project-HAMi__HAMi__417
Project-HAMi/HAMi
417
defect
38313a439860ce141677bc7eccbcab30261c7414
27b4e01247f0fcb2aeac50a4edf5a32036af8463
add event handlers registration
**What type of PR is this?** /kind feature **What this PR does / why we need it**: Current, if a pod schedule fails, it's too difficult to troubleshoot, because the pod doesn't have the scheduler event . This feature wants to add the scheduler process(filter and binding) event to accolated the pod Sure. ...
diff --git a/go.mod b/go.mod index 32d063af3e..f94290cde8 100644 --- a/go.mod +++ b/go.mod @@ -47,6 +47,7 @@ require ( github.com/go-openapi/jsonreference v0.20.4 // indirect github.com/go-openapi/swag v0.22.9 // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/groupcache v0.0.0-2021033122...
1
1
0
[{"id": "G0", "claim": "The reviewer asks whether the latest code was tested, noting the PR's screenshot shows `[]` in the event information while the code contains no `[]`, so the shown test evidence appears stale.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Project-HAMi__HAMi__804
Project-HAMi/HAMi
804
defect
72621e89120e80737ecce8b263a278e21fc865ed
55c7d09142dc0f6d019152192518c550cec5d047
fix: handle the node nil issue & E2E test failure
**What type of PR is this?** <!-- Add one of the following kinds: /kind cleanup /kind deprecation /kind design /kind documentation /kind failing-test /kind feature /kind flake --> /kind bug **What this PR does / why we need it**: This pull request includes extensive changes to improve the deploym...
diff --git a/cmd/scheduler/metrics.go b/cmd/scheduler/metrics.go index 8474a7973a..370f1d1b3f 100644 --- a/cmd/scheduler/metrics.go +++ b/cmd/scheduler/metrics.go @@ -189,9 +189,17 @@ func (cc ClusterManagerCollector) Collect(ch chan<- prometheus.Metric) { for _, podSingleDevice := range val.Devices { for ctridx...
1
1
0
[{"id": "G0", "claim": "The log-optimization changes (e.g. the metrics.go logging rewrite) should be removed from this bug-fix PR and submitted as a separate PR, which should focus only on the bug fix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Project-MONAI__MONAI__8429
Project-MONAI/MONAI
8,429
defect
b58e883c887e0f99d382807550654c44d94f47bd
0550ce832d4bdac48579696b5b222e16039db1f1
Updates for Pytorch 2.7
### Description This will update MONAI to be compatible with PyTorch 2.7.1. There appear to be few code changes with this release so hopefully this will be simply a matter of updating versions. The versions tested in the actions are now fixed to explicit version strings rather than including "latest" as a PyTorch ve...
diff --git a/.github/workflows/pythonapp-min.yml b/.github/workflows/pythonapp-min.yml index afc9f6f6d4f..7bc2cb38fae 100644 --- a/.github/workflows/pythonapp-min.yml +++ b/.github/workflows/pythonapp-min.yml @@ -124,7 +124,7 @@ jobs: strategy: fail-fast: false matrix: - pytorch-version: ['2.3...
5
4
0
[{"id": "G0", "claim": "The minimum torch requirement in pyproject.toml may need raising from >=2.4.1 to >=2.7.0 to match the PR's PyTorch 2.7 title.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pythonapp.yml install command torch>=2.4.1 may n...
null
Project-MONAI__MONAI__8531
Project-MONAI/MONAI
8,531
defect
b92b2ce8aa25e53c8e1824da0a063b9e5239f1e4
7560a372dea42d267eb3642939dbba4d61e24f9c
added ReduceTrait and FlattenSequence
Fixes #8528. ### Description This PR adds the `FlatttenSequence` transform (a flavor of the also newly added `ReduceTrait`) which can flatten a nested data structure by one level. This way, #8528 can be tackled without the need to change the `apply_transform` of `Compose` significantly. ### Types of changes <...
diff --git a/monai/transforms/transform.py b/monai/transforms/transform.py index 1a365b8d8ed..73c4093792e 100644 --- a/monai/transforms/transform.py +++ b/monai/transforms/transform.py @@ -90,12 +90,22 @@ def _apply_transform( """ from monai.transforms.lazy.functional import apply_pending_transforms_in_order ...
6
4
4
[{"id": "G0", "claim": "The doc advertises recursive integer-depth mapping via map_items but the changed code maps only one level with no depth decrement, so either implement the recursion or correct the doc, and add unit tests for two or more stacked transforms returning lists/tuples.", "category": "correctness", "ver...
null
Project-MONAI__MONAI__8551
Project-MONAI/MONAI
8,551
defect
d4ba52e31574982300b37a99305d772ba41a1ac4
c30d291f1fda9e815f8d030a99e25693ae6a6d8f
Correct H&E stain ordering heuristic in ExtractHEStains
### Description I noticed when attempting to extract the hematoxylin stain from an H&E stained image that the previous heuristic for ordering hematoxylin first and eosin second incorrectly assumed hematoxylin has a higher red channel value, when the opposite is typically true. I've corrected this and implemented a m...
diff --git a/monai/apps/pathology/transforms/stain/array.py b/monai/apps/pathology/transforms/stain/array.py index 5df9ad7ef32..676cec01134 100644 --- a/monai/apps/pathology/transforms/stain/array.py +++ b/monai/apps/pathology/transforms/stain/array.py @@ -85,7 +85,12 @@ def _deconvolution_extract_stain(self, image: np...
2
1
0
[{"id": "G0", "claim": "The epsilon guard should avoid the Unicode identifier ε and drop the redundant [0,0]/[2,0] indexing on the ratio lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new R/B ratio heuristic should take absolute value...
null
Project-MONAI__MONAI__8553
Project-MONAI/MONAI
8,553
defect
0968da200ec86a4fb4216acc9257ab4a8eabce41
71b66830b38798f04a41a6e79745930b4e4db2e6
Fix box_iou returning 0 for floating-point results less than 1. #8369
Fixes # 8369 ### Description Fixes an issue where the result of `box_iou` was 0 when the first argument was an integer, as described in #8369. IOU values range from 0 to 1. If the first argument is an integer, the function could return an integer less than 1, resulting in a return value of 0. This pull request ch...
diff --git a/monai/data/box_utils.py b/monai/data/box_utils.py index a982b014279..f1d25830e58 100644 --- a/monai/data/box_utils.py +++ b/monai/data/box_utils.py @@ -826,7 +826,9 @@ def box_iou(boxes1: NdarrayOrTensor, boxes2: NdarrayOrTensor) -> NdarrayOrTensor boxes2: bounding boxes, Mx4 or Mx6 torch tensor o...
11
5
1
[{"id": "G0", "claim": "box_giou and box_pair_giou still cast their results back to boxes1's dtype (truncating sub-1 values to 0 for integer inputs) and their docstrings still say 'same data type as boxes1'; apply the same always-floating output rule as box_iou.", "category": "correctness", "verdict": "supported", "pri...
null
Project-MONAI__MONAI__8554
Project-MONAI/MONAI
8,554
defect
0968da200ec86a4fb4216acc9257ab4a8eabce41
66edcb508243f53c4f10af93d6ebfca9a32fe4ef
feat: add activation checkpointing to unet
### Description Introduces an optional `use_checkpointing` flag in the `UNet` implementation. When enabled, intermediate activations in the encoder–decoder blocks are recomputed during the backward pass instead of being stored in memory. - Implemented via a lightweight `_ActivationCheckpointWrapper` wrapper around ...
diff --git a/monai/networks/nets/unet.py b/monai/networks/nets/unet.py index eac0ddab398..3fe20dc12fa 100644 --- a/monai/networks/nets/unet.py +++ b/monai/networks/nets/unet.py @@ -13,9 +13,11 @@ import warnings from collections.abc import Sequence +from typing import cast import torch import torch.nn as nn +fr...
15
12
4
[{"id": "G0", "claim": "Guard the wrapper against torch.no_grad()/no-grad inputs and fall back to a plain checkpoint call for older PyTorch versions that lack use_reentrant.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a docstring to the _Acti...
null
Project-MONAI__MONAI__8566
Project-MONAI/MONAI
8,566
defect
b5bc69d0306c16cba61de58a403190689bb192b3
5f1f57c87ad04e921489f423eb3c398e540d6e6b
Torch and Pickle Safe Load Fixes
Fixes #8355. ### Description This modifies the use of `torch.load` to load weights-only everywhere. This will change some behaviour in that data needs to be converted to tensors where possible, ie. converting Numpy arrays to tensors. This issue was reported by @h3rrr in https://github.com/Project-MONAI/MONAI/...
diff --git a/monai/apps/nnunet/nnunet_bundle.py b/monai/apps/nnunet/nnunet_bundle.py index e358cd4b992..df8f09bf4bb 100644 --- a/monai/apps/nnunet/nnunet_bundle.py +++ b/monai/apps/nnunet/nnunet_bundle.py @@ -133,7 +133,7 @@ def get_nnunet_trainer( cudnn.benchmark = True if pretrained_model is not None:...
12
2
0
[{"id": "G0", "claim": "The PersistentDataset docstring added by the PR misspells \"safetly\" and its wording should be tightened.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The torch.load call sites touched by the PR (StateCacher.retrieve, Pe...
null
Project-MONAI__MONAI__8568
Project-MONAI/MONAI
8,568
defect
b5bc69d0306c16cba61de58a403190689bb192b3
f7937403c23228d5971b57b78156c33cecef94f9
Path traversal issue security fix
The path traversal issue in the previously submitted vulnerability report has been fixed and has been verified and fixed locally. https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-x6ww-pf9m-m73m ### Description Added a security function to fix a security issue caused by directly using extractall in...
diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000000..8b4158eb73f --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,18 @@ +# Security Policy + +## Reporting a Vulnerability +MONAI takes security seriously and appreciate your efforts to responsibly disclose vulnerabilities. If you discover a security i...
14
3
3
[{"id": "G0", "claim": "Consider custom exception types instead of the current ValueError usage for better error categorization.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add unit tests in tests/apps/test_download_and_extract.py demonstrating that a...
null