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
you-dont-need__You-Dont-Need-Lodash-Underscore__244
you-dont-need/You-Dont-Need-Lodash-Underscore
244
defect
5665d8aa99a532b195091c2b23036683c553e220
419ea3bc37ee577a3bf48a94cdb9e2a4df0fb993
New faster _.extend alternative
During the process of dropping lodash for [hexo](https://github.com/hexojs/hexo) project, we have faced serious obstacles when replacing `lodash.assignIn` with native javascript. We have tried the example function from the README but soon run into serious performance regression. After some investigations, it turns out ...
diff --git a/README.md b/README.md index 62a6d5a6..8fcb3e93 100644 --- a/README.md +++ b/README.md @@ -2078,12 +2078,23 @@ The method is used to copy the values of all enumerable own and inherited proper // output: { 'c': 3, 'd': 4, 'e': 5, 'f': 6 } //Or using a function - const extend = (target, ...sources) =...
1
1
0
[{"id": "G0", "claim": "The new extend implementation can be optimized further: the third loop that collects each source's keys into an array and then iterates it is unnecessary, since the copy can be done directly as `obj[key] = source[key];` inside the `for..in` loop, which is much faster.", "category": "performance"...
null
you-dont-need__You-Dont-Need-Lodash-Underscore__251
you-dont-need/You-Dont-Need-Lodash-Underscore
251
defect
fbb6fd18e34024a6151f7b0f4473ad1eeba36333
d9c0a397a185ec9fd6e2bf69dd4e0db678f9c0dc
Add lodash-es support
Closes #250
diff --git a/lib/rules/all.js b/lib/rules/all.js index 833130de..39efb8b8 100644 --- a/lib/rules/all.js +++ b/lib/rules/all.js @@ -2,6 +2,8 @@ const kebabCase = require('kebab-case'); const rules = require('./rules'); +const forbiddenLibs = ['lodash', 'lodash-es']; + function getAssignmentLeftHandSide(node) { /...
1
1
0
[{"id": "G0", "claim": "The new test-case name `Import lodash-es.isnan` is a typo, since there is no `lodash-es.isnan` package.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
you-dont-need__You-Dont-Need-Lodash-Underscore__324
you-dont-need/You-Dont-Need-Lodash-Underscore
324
defect
c7e113b14bbbf15f521c7bc4f4fdf57ac9927335
f71de192d6c16a52151c4c293589c8081fe30412
Fix _.isString alternative
Fixed #304
diff --git a/README.md b/README.md index 49780313..7c328041 100644 --- a/README.md +++ b/README.md @@ -2750,7 +2750,7 @@ Checks if value is classified as a String primitive or object. // Native function isString(str){ - if (str && typeof str.valueOf() === "string") { + if (str != null && typeof str.valueO...
1
1
0
[{"id": "G0", "claim": "The isString implementation should drop the explicit if/return and directly return the boolean expression, as in the reviewer's suggested version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
you-dont-need__You-Dont-Need-Momentjs__38
you-dont-need/You-Dont-Need-Momentjs
38
defect
829d89444171d180d1a3e542cb2964e9479e5ffc
5cf7b452758f0f32183d9f9ee105454957e63cab
Added 'is a Date, Is a Leap Year, Is Before, Subtract, Day of Year'
I also added `is a Date`, `Is a Leap Year`, `Is Before`, `Subtract`, Partial `Day of Year` - added `get` but i've got some issue with `set`
diff --git a/README.md b/README.md index 0726d73..59c53d6 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,16 @@ moment().dayOfYear(); moment().dayOfYear(256); // => "2018-09-13T09:12:49.695Z" +// Native +Math.round( + (new Date(time) - new Date(new Date(time).getFullYear(), 0, 0)) / + 1000 / + 60 / + ...
2
2
1
[{"id": "G0", "claim": "The README's native Subtract example uses an undefined `time` variable copied from the test suite, so the docs snippet is not runnable as shown.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Subtract test would read be...
null
you-dont-need__You-Dont-Need-Momentjs__42
you-dont-need/You-Dont-Need-Momentjs
42
defect
5d1ce62af3eab4e552cf1e4f50949c13f7b1bf59
e0eddbeaf6d499047ca93f9e3e4073be7536652d
Add performance tests
I just started to write some performance tests and i was wondering if test it this way is okey for you guys :D If it's fine i will add more tests in this pull request if something is wrong. Tell me how you see it and i will try to write your way ;)
diff --git a/__tests__/performance.js b/__tests__/performance.js new file mode 100644 index 0000000..61821b2 --- /dev/null +++ b/__tests__/performance.js @@ -0,0 +1,54 @@ +const moment = require('moment'); +const { getSeconds, getHours } = require('date-fns'); +const dayjs = require('dayjs'); +const iterations = 100000...
2
1
1
[{"id": "G0", "claim": "The added testPathIgnorePatterns entry should be dropped so that `npm test` also runs the benchmark, which the reviewer thinks would be good.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The timing code in performanceTest should ...
null
yougov__mongo-connector__560
yougov/mongo-connector
560
defect
5332a89d89b43d2a54fc5131f6fb84019c1a0267
01dda2598039ef4ce9edd7c1cb046094b9f0d12a
Bug fixes for tests and expand test matrix
Test changes: - Add test matrix for MongoDB versions 2.6.12, 3.0.12, 3.2.10, 3.4.0-rc0. - Drop testing of MongoDB 2.4. - Drop testing of Python 3.4 (still testing Python 3.3 and 3.5). - Drops Travis sudo requirement so tests startup faster and are run in docker containers rather than full VMs. - Require mongo-orchest...
diff --git a/.travis.yml b/.travis.yml index 17412333..9b0c8458 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,33 @@ +sudo: false language: python python: - 2.6 - 2.7 - 3.3 - - 3.4 - 3.5 +env: + global: + - MO_ADDRESS=127.0.0.1:20000 + matrix: + - MONGODB=2.4.14 + - MONGODB=2.6.12 + ...
1
1
0
[{"id": "G0", "claim": "The oplog-entry lookup in rollback() could reuse the existing _get_oplog_timestamp() helper (refactored to accept an optional timestamp) instead of duplicating the query inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
yougov__mongo-connector__575
yougov/mongo-connector
575
defect
8b60f7843987dd7f8550df5addcc3e81bddf8d8b
ad14ec6b98543df62ee0119c3a17e884a273ea4a
Log startup info including versions of mongo-connector, Python, OS, and DocManagers
Add the idea of a `__version__` to a DocManager class. Downstream DocManager implementations should add their package version to the class similar to what is done by MongoDB DocManager in this pull request. Change the default logging `verbosity` to 1 (warnings and above). Add `LOG.always` which is always logged no ma...
diff --git a/mongo_connector/__init__.py b/mongo_connector/__init__.py index 032be510..5882aa3a 100644 --- a/mongo_connector/__init__.py +++ b/mongo_connector/__init__.py @@ -11,7 +11,23 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing...
5
5
2
[{"id": "G0", "claim": "The Logger.always monkey patch should call the public log method instead of the private _log, and should pass *args rather than args.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc manager version detection should also che...
null
yougov__mongo-connector__612
yougov/mongo-connector
612
defect
b3f3df6bdc30c3631a078ac85566e096b753aec4
b9209900eae8f73f49fcd9d983c1fb3d73bb9396
Filter fields per namespace and unify namespace options
This change implements https://github.com/mongodb-labs/mongo-connector/issues/497 and enhances the refactoring of https://github.com/mongodb-labs/mongo-connector/pulls/601 by unifying all the namespace options into a new format. In addition, `gridfs` namespaces now have support for wildcard (`*`) globbing. The new f...
diff --git a/config.json b/config.json index e7f3773e..b68b8375 100644 --- a/config.json +++ b/config.json @@ -37,18 +37,41 @@ "__fields": ["field1", "field2", "field3"], - "namespaces": { - "__include": ["db.source1", "db.source2", "db2.*"], - "__exclude": ["db3.source1", "db3.*"], - "...
6
4
2
[{"id": "G0", "claim": "The new _construct_namespace_options helper mixes old- and new-style namespace configuration handling and should be split or made clearly single-purpose.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_validate_collection rejects ...
null
youki-dev__youki__1544
youki-dev/youki
1,544
defect
149860cd96b0dfa94071b33982b4e36160f8e365
facabd2871a0f75c1e3f360792d74d92703f98ec
Add domainname test
Add domainname test. nix does't have getdomainname function, So used libc crate. Signed-off-by: higuruchi <fumiya2324@gmail.com>
diff --git a/Cargo.lock b/Cargo.lock index e2f19cb501..03ffc12beb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3100,6 +3100,7 @@ name = "runtimetest" version = "0.0.1" dependencies = [ "anyhow", + "libc", "nix", "oci-spec", ] diff --git a/tests/rust-integration-tests/integration_test/src/main.rs b/tests/rust-i...
2
2
2
[{"id": "G0", "claim": "The wildcard arm for unexpected execute test names got duplicated in the master merge (the PR adds a second `_ => eprintln!` arm next to the existing one), and clippy is giving an error on it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "...
null
youki-dev__youki__1638
youki-dev/youki
1,638
defect
ff5dba9c4d7940a7e8f7c13313f9a7f258a1e3ab
cf32ef6ce61416c10b384ae3c7826b49001755f0
Fix clippy warning
Not sure why these slipped through the crack. I will also file an issue to track why CI did not catch these.
diff --git a/.github/workflows/integration_tests_validation.yaml b/.github/workflows/integration_tests_validation.yaml index 455eba2a74..baa0b9d3d0 100644 --- a/.github/workflows/integration_tests_validation.yaml +++ b/.github/workflows/integration_tests_validation.yaml @@ -18,7 +18,8 @@ jobs: id: filter ...
1
1
0
[{"id": "G0", "claim": "The `integration_test` and `test_framework` filter entries in .github/workflows/main.yml should also get `/**` added, as was done for the other entries.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
youki-dev__youki__1642
youki-dev/youki
1,642
defect
fe58002c312296e43164061b22a162745309c901
8ca9bbd34b772a7825770e1f8675041ccf84d255
add rrelatime mount test
issue: https://github.com/containers/youki/issues/1534 - [x] rrelatime - [x] rnorelatime - [x] rnoatime - [x] rstrictatime
diff --git a/.gitignore b/.gitignore index 0dd74a3f7f..7ea5f3968d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ tags.temp /bundle.tar.gz /test.log +/tests/integration/ +/contrib/ \ No newline at end of file diff --git a/tests/rust-integration-tests/integration_test/src/tests/hooks/invoke.rs b/tests/rus...
4
3
0
[{"id": "G0", "claim": "The author should run `make lint` to make sure clippy passes before merging, since the PR's Rust code may fail clippy.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The additions of /tests/integration/ and /contrib/ to .giti...
null
youki-dev__youki__1822
youki-dev/youki
1,822
defect
42a0210f30a2985dfc660b2afc8ce6aba12fc6a2
50a9ccdf146267b1e22fd063dee4e82ec057733f
Add support to Intel RDT.
Add support to Intel RDT. Fixes: #443. This PR implements also the suggested additions to OCI runtime spec here: https://github.com/opencontainers/runtime-spec/pull/1196
diff --git a/Cargo.lock b/Cargo.lock index 6aa4e492e1..3f331d1e9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1607,6 +1607,7 @@ dependencies = [ "crossbeam-channel", "fastrand", "futures", + "lazy_static", "libc", "libcgroups", "libseccomp", @@ -1619,6 +1620,7 @@ dependencies = [ "procfs", "quickcheck"...
3
3
1
[{"id": "G0", "claim": "Use the project's existing `once_cell` dependency instead of adding `lazy_static` to libcontainer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the redundant explicit `bool` type annotation on the new `need_to_clea...
null
youki-dev__youki__1973
youki-dev/youki
1,973
defect
65aceec1980d29cdb9b627c99fe4eda2951592d9
4dbf3c04625a65087cfb58a2678fed04f5c78135
do not log error in the syscall crate
Related to #1974. The integration tests uses `stderr` to check if there are any errors. However, there are a number of cases where we want to mount with ENOTDIR or ENOENT error but we ignore these errors. Therefore, we do not want to log these errors. Otherwise the integration tests would be broken. tag along: Bump ...
diff --git a/crates/libcontainer/src/syscall/linux.rs b/crates/libcontainer/src/syscall/linux.rs index c425a63e98..5e0e54abf2 100644 --- a/crates/libcontainer/src/syscall/linux.rs +++ b/crates/libcontainer/src/syscall/linux.rs @@ -481,6 +481,7 @@ impl Syscall for LinuxSyscall { Ok(()) } + #[tracing::...
1
1
1
[{"id": "G0", "claim": "Tracing of errors belongs at the caller; it is beyond the role of the syscall mod to determine the type of error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youki-dev__youki__2369
youki-dev/youki
2,369
defect
79837a6da8ac4da1869d75b483fbf30dcc5d6c0c
48d5a5de7c7aff36e0b9d7e9be86b205f5e8ae87
update nix to 0.27.1
I'm currently working on issue #2317. **note: the following content is now outdated** In the code changes I've made, there are two things that might raise questions: 1. The use of `std::mem::forget()`. 2. The use of an `unsafe` function `OwnedFd::from_raw_fd()`. I use `forget()` because some functions in the...
diff --git a/Cargo.lock b/Cargo.lock index 4cee8d2cad..4278114c9e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1758,7 +1758,7 @@ dependencies = [ "flate2", "libcgroups", "libcontainer", - "nix", + "nix 0.27.1", "num_cpus", "oci-spec", "once_cell", @@ -1917,7 +1917,7 @@ source = "registry+https://github.com/...
11
7
1
[{"id": "G0", "claim": "Wrapping the nix-returned OwnedFds in std::mem::forget leaves the file descriptors unmanaged, which utam0k considers too dangerous security-wise for a low-level container runtime, and he will not merge before forget() is removed.", "category": "security", "verdict": "supported", "priority": "P1"...
null
youki-dev__youki__2495
youki-dev/youki
2,495
defect
ed0ddfa72b2dbf6626ac41eff4cc17d279a4809c
6208c6aa992d0e94af0f2812cb7531a1f69d55bc
add schedule entity
issue https://github.com/containers/youki/issues/1706
diff --git a/Cargo.lock b/Cargo.lock index 32649a74ff..f564826814 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1934,6 +1934,7 @@ dependencies = [ "libc", "libcgroups", "libseccomp", + "nc", "nix 0.27.1", "oci-spec", "once_cell", @@ -2209,6 +2210,15 @@ dependencies = [ "tempfile", ] +[[package]] +name =...
6
5
3
[{"id": "G0", "claim": "The pull request should add the e2e (rust OCI) test for the new scheduler functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment `////////// ANCHOR: create_spec policy: u32` in the test should be removed.", "...
null
youki-dev__youki__2647
youki-dev/youki
2,647
defect
4d9f4e1b3e08189b0a1128e2fc2b9e3ca9abfbd0
240584ef31faea0ee60260bc63f73cf204cf1374
Re enable skipped e2e tests
closes #2616 There are some tests which are (for now) only supported by youki, and not by the latest release of runc. Instead of not running those tests, we instead check an env var to see what runtime we are running, and skip those for runc.
diff --git a/justfile b/justfile index 853a0cf1bc..cc8e6b90ef 100644 --- a/justfile +++ b/justfile @@ -55,11 +55,11 @@ test-oci: # run rust oci integration tests test-contest: youki-release contest - {{ cwd }}/scripts/contest.sh {{ cwd }}/youki + sudo {{ cwd }}/scripts/contest.sh {{ cwd }}/youki # validate...
1
1
0
[{"id": "G0", "claim": "The duplicated RUNTIME_KIND runc-check closures in scheduler_policy.rs (and the same pattern in the other tests, e.g. domainname) should be turned into a shared function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
youki-dev__youki__2719
youki-dev/youki
2,719
defect
ed2c08d00fd6d32df3a07fd1b0780d59866c7ffa
4e2a9cb4898c17a96ca01fd9f6be92a79feb5592
Add support for rsvd hugetlb cgroup
Adds support for rsvg hugetlb cgroup. More Info on why this is necessary: https://github.com/opencontainers/runtime-spec/pull/1116. Should fix #1707.
diff --git a/crates/libcgroups/src/v1/hugetlb.rs b/crates/libcgroups/src/v1/hugetlb.rs index ae301d02f3..51d92f09a3 100644 --- a/crates/libcgroups/src/v1/hugetlb.rs +++ b/crates/libcgroups/src/v1/hugetlb.rs @@ -1,10 +1,10 @@ -use std::{collections::HashMap, num::ParseIntError, path::Path}; - use crate::{ common::...
5
4
2
[{"id": "G0", "claim": "utam0k asks the author to add an end-to-end (rust_oci_test) test for the PR's hugetlb behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR reorders the `use std::...` import line in v1/hugetlb.rs as unrelated churn, an...
null
youki-dev__youki__2728
youki-dev/youki
2,728
defect
0b89e1d52089c8c328496dab02dcc2bcf5e1b53c
593024fac5e8bff82db061777c1c462e80bbae9b
Update nix to 0.28.0
Updates nix to 0.28.0. Changed the deprecated functions to new recommended ones. Another noticeable change was the write() ~and close()~ function~s~ in nix now take in `OwnedFd` instead of `RawFd`. Included changes for them as well.
diff --git a/Cargo.lock b/Cargo.lock index e5e12f75e2..c77608240a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -417,6 +417,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_a...
8
7
2
[{"id": "G0", "claim": "The PR description claims that nix 0.28 changed the write() and close() functions to take OwnedFd instead of RawFd, but that change cannot be found in the nix changelog.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The co...
null
youki-dev__youki__2884
youki-dev/youki
2,884
defect
13e9fc0ffda1ecbfb7d41af91774872ec5f00e00
980f6ce094908b50a8ec1a71b3f2e5a065d63c58
Update nc dependency to 0.9.2
Hi, new to youki here. Hope to start my contribution from a simple issue #2874. 1. Instead of updating to 0.9.1, I update to 0.9.2 2. Since the `size` parameter is needless, I remove it. Please let me know if I do anything wrong. Thank you and hope to do more contribution.
diff --git a/Cargo.lock b/Cargo.lock index db96ac4a66..89cf7b9c69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -383,12 +383,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.6" +version = "1.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aba8f4e9906c7ce3c73463f62a7...
1
1
1
[{"id": "G0", "claim": "The PR's conflict resolution accidentally downgraded libc from 0.2.158 to 0.2.157 in tests/contest/runtimetest/Cargo.toml; only the nc version should be changed, so libc should be restored to 0.2.158.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youki-dev__youki__2923
youki-dev/youki
2,923
defect
0b92791222322fa804bae50feed49983d47005ec
c82496b64539d0b776a82022cca1979e448e5b9e
fix(libcontainer) no_pivot args is not used
fix the problem that no_pivot args is not used when create container when we prepare rootfs with chroot, we should move_mount the rootfs before chroot, otherwise we will not able to use the new rootfs when exec into the container
diff --git a/crates/libcontainer/src/container/builder_impl.rs b/crates/libcontainer/src/container/builder_impl.rs index ed2cd07dd5..0a9e43f52a 100644 --- a/crates/libcontainer/src/container/builder_impl.rs +++ b/crates/libcontainer/src/container/builder_impl.rs @@ -49,6 +49,8 @@ pub(super) struct ContainerBuilderImpl ...
10
7
2
[{"id": "G0", "claim": "The PR should add an integration test covering its no_pivot behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author should check whether the no_pivot handling for the create and run commands from PR #2597 needs to be...
null
youki-dev__youki__3090
youki-dev/youki
3,090
defect
a8b8fe2423282cfaface461b252165dcc0a3a641
bc42e8d4809fa6b0b23ebeac29065fa38ae6f077
fix(libcgroup): fix disable_oom_killer in cgroup v1
The intended behavior is to enable the OOM killer when disable_oom_killer is not set, which is the common case. However, since 0 means enable and 1 means disable, the if condition is currently reversed. This is a really critical issue, as it will cause processes in the container to hang. ## Description <!-- Prov...
diff --git a/crates/libcgroups/src/v1/memory.rs b/crates/libcgroups/src/v1/memory.rs index a55e3fe81c..8557d3a346 100644 --- a/crates/libcgroups/src/v1/memory.rs +++ b/crates/libcgroups/src/v1/memory.rs @@ -111,11 +111,7 @@ impl Controller for Memory { )?; } - if controller_op...
1
1
0
[{"id": "G0", "claim": "The function name `set_disable_oom_killer` reads as unconditionally disabling the OOM killer while its behavior actually depends on the option, so it should be renamed (or the option checked on the caller side).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
youki-dev__youki__3168
youki-dev/youki
3,168
defect
d550f3cf1ba875508aa181835a26aed31b0e21a1
df8b982e5e21ba764426c89a662eb6d93fe47d8e
fix typos and outdated typos ci action
## Description <!-- Provide a clear and concise description of your changes --> ## Type of Change <!-- Mark the appropriate option with an [x] --> - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that wo...
diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 799f54ecdd..bb54c9d74e 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -91,7 +91,7 @@ jobs: - name: Install nightly rustfmt run: rustup toolchain install nightly --component rustfmt --profile minim...
3
2
2
[{"id": "G0", "claim": "The typos CI run fails on `.typ`, so an exception for `.typ` needs to be added to the typos configuration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The `.typ` string also occurs in an md file, so the typos exception nee...
null
youki-dev__youki__3202
youki-dev/youki
3,202
defect
6a1a32a624e526ff9e69eee5bf48a1b7347cd6d9
550fcab6a8bca4180b74d26ec2e0766eacee5f0f
feat(3199): Add Linux personality support
## Description <!-- Provide a clear and concise description of your changes --> ## Type of Change <!-- Mark the appropriate option with an [x] --> - [x] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that wo...
diff --git a/crates/libcontainer/Cargo.toml b/crates/libcontainer/Cargo.toml index ff6e9e2be8..ef67e7a8c0 100644 --- a/crates/libcontainer/Cargo.toml +++ b/crates/libcontainer/Cargo.toml @@ -63,4 +63,4 @@ rand = "0.9.1" scopeguard = "1" [package.metadata.cargo-machete] -ignored = ["protobuf"] \ No newline at end of...
10
10
3
[{"id": "G0", "claim": "The pull request ships Linux personality support without integration tests; the author notes he is testing only manually and asks where the integration test should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the ...
null
youki-dev__youki__3210
youki-dev/youki
3,210
defect
532ea307f70ae0fa874f31d9299bda6b708c713e
3791b0871bc4065b7c73935355626ae4efeea1ae
fix(3207, 3209) Difference between the exec command in runc and youki
## Description <!-- Provide a clear and concise description of your changes --> ## Type of Change <!-- Mark the appropriate option with an [x] --> - [x] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that wo...
diff --git a/.typos.toml b/.typos.toml index 0e0d808dd2..7791911930 100644 --- a/.typos.toml +++ b/.typos.toml @@ -13,6 +13,10 @@ extend-exclude = [ # instance than write a regex. 569d5ce3afe1074769f67 = "569d5ce3afe1074769f67" +[default.extend-words] +# This is the capabilities used in the exec integration test +I...
13
9
3
[{"id": "G0", "claim": "The tests added by this pull request are failing (capabilities_by_flag_test_case2 fails on a CapAmb mismatch in CI and locally), and the author is asked to fix them.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "In the exist...
null
youki-dev__youki__3230
youki-dev/youki
3,230
defect
8bd3f38a88a42d58844fa9d7d25a52f724177c18
c7f6d7429ecce5058f4365896dbe007a965d0156
Implement Linux memory policy
## Description This PR adds support for the new `linux.memoryPolicy` field introduced in the OCI Runtime Spec (opencontainers/runtime-spec#1282). With this change, youki can configure NUMA memory policies for containers by calling `set_mempolicy(2)` during container initialization. - Implemented mapping of `Me...
diff --git a/crates/libcontainer/src/process/init/error.rs b/crates/libcontainer/src/process/init/error.rs index dbcbc5bf19..ca05bccae9 100644 --- a/crates/libcontainer/src/process/init/error.rs +++ b/crates/libcontainer/src/process/init/error.rs @@ -61,6 +61,8 @@ pub enum InitProcessError { IoPriorityClass(String...
16
15
2
[{"id": "G0", "claim": "Reference the memory-policy spec types through use imports instead of fully qualified oci_spec::runtime:: paths in the setup code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add an integration test for the memory-poli...
null
youki-dev__youki__3256
youki-dev/youki
3,256
defect
532ea307f70ae0fa874f31d9299bda6b708c713e
686013636ed17aa3728cdd4f8b1a65256bd5c3d2
fix hooks order
## Description <!-- Provide a clear and concise description of your changes --> ### 1. Fix order I’ll modify it to execute the hooks in the following order: (refer runtime-spec: https://github.com/opencontainers/runtime-spec/blob/62106c19fd422dc70b92c2abbeb4c51d9e39b5d0/runtime.md#lifecycle) ``` prestart cr...
diff --git a/crates/libcontainer/src/container/builder_impl.rs b/crates/libcontainer/src/container/builder_impl.rs index 0494331226..38df4324c4 100644 --- a/crates/libcontainer/src/container/builder_impl.rs +++ b/crates/libcontainer/src/container/builder_impl.rs @@ -16,8 +16,8 @@ use crate::process::intel_rdt::delete_r...
3
2
1
[{"id": "G0", "claim": "The `container_args` binding made mutable by this pull request should stay immutable if `mut` is not really needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The implementation contradicts the PR description's stated hook ord...
null
youki-dev__youki__3274
youki-dev/youki
3,274
defect
692ee220b1fce0d58b47ac316b8bd21764e81b5b
7ca6388c710ce4a02f715b6df7849543eb2cad1e
Update/runc 1.3.2
## Description <!-- Provide a clear and concise description of your changes --> - Bump the vendored runc used by contest / CI pipelines to v1.3.2 (first release that carries the new log-based CPU shares → weight conversion). - cf. https://github.com/opencontainers/runc/releases/tag/v1.3.2 - Port that conversion i...
diff --git a/.github/workflows/integration_tests_validation.yaml b/.github/workflows/integration_tests_validation.yaml index ce3eca840c..61a99d34a5 100644 --- a/.github/workflows/integration_tests_validation.yaml +++ b/.github/workflows/integration_tests_validation.yaml @@ -92,9 +92,9 @@ jobs: run: sudo add-ap...
1
1
0
[{"id": "G0", "claim": "The new shares-to-weight conversion code in crates/libcgroups/src/systemd/cpu.rs and crates/libcgroups/src/v2/cpu.rs should have explanatory comments (similar to runc's) to make the changes easier to understand.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
youki-dev__youki__3345
youki-dev/youki
3,345
defect
1c0ebeb1771c1d5c4463f76e98f93309f741f74c
f60a1ea0740377ab25ef9d1de4fd54066c4af106
Fix recursive mount_setattr handling for rec_attr and improve mounts_recursive tests
## Description <!-- Provide a clear and concise description of your changes --> * Fix recursive mount_setattr handling for rec_attr * The scope of `mount_setattr` was not clearly defined, which could cause options that should apply only to the top-level mount to be mixed with options that should be applied recu...
diff --git a/Cargo.lock b/Cargo.lock index 5fc047b0eb..363776a5d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -584,7 +584,6 @@ dependencies = [ "procfs", "rand 0.9.2", "regex", - "scopeguard", "serde", "serde_json", "tar", diff --git a/crates/libcontainer/src/rootfs/mount.rs b/crates/libcontainer/src/rootfs...
4
4
0
[{"id": "G0", "claim": "The new inner binding shadows the name `mount_attr` (reusing the same variable name for the rec_attr binding), which can cause confusion, so it should use a different name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
youki-dev__youki__3385
youki-dev/youki
3,385
defect
90e529cbfefb0fbbd0537599a2857866dc096c78
75dd9d881fec7d58a96c416049001fa74e244248
Sync the state to confirm hooks execution
## Description <!-- Provide a clear and concise description of your changes --> The hooks test was flaky because it does not wait for delete operation unlike [the runtime-tools test](https://github.com/opencontainers/runtime-tools/blob/master/validation/hooks/hooks.go). This adds: - `wait_for_state()` in utils to ...
diff --git a/tests/contest/contest/src/tests/hooks/invoke.rs b/tests/contest/contest/src/tests/hooks/invoke.rs index 10fa492f9e..18843c7531 100644 --- a/tests/contest/contest/src/tests/hooks/invoke.rs +++ b/tests/contest/contest/src/tests/hooks/invoke.rs @@ -1,38 +1,43 @@ -use std::fs::File; -use std::io::Read; +use st...
6
6
1
[{"id": "G0", "claim": "delete_hook_output_file should simply remove the file and ignore a NotFound error instead of checking path.exists() before deleting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"does not exist\" && expected_state ...
null
youki-dev__youki__3452
youki-dev/youki
3,452
defect
76b913d4d63eb356d4ec66b5bd383ce9358dfda0
206dfc15c4af6768806938be11c3153cf5dc6200
Support manage-cgroup-mode option for checkpoint
## Description <!-- Provide a clear and concise description of your changes --> Add support for CRIU's `--manage-cgroup-mode` option in checkpoint command. This primarily affects restore behavior, and with "ignore" mode, cgroup information will not be dumped. ## Type of Change <!-- Mark the appropriate option wit...
diff --git a/crates/libcontainer/src/container/container.rs b/crates/libcontainer/src/container/container.rs index 7a05c3495f..0f69e84635 100644 --- a/crates/libcontainer/src/container/container.rs +++ b/crates/libcontainer/src/container/container.rs @@ -223,6 +223,7 @@ pub struct CheckpointOptions { pub shell_job...
10
10
3
[{"id": "G0", "claim": "The leftover \"TODO: Cgroups mode\" comment in liboci-cli's Checkpoint struct should be deleted now that the option is implemented.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The manage-cgroup-mode argument should be validated...
null
yourlabs__django-autocomplete-light__1054
yourlabs/django-autocomplete-light
1,054
defect
e62c2fc88146ae73095894c35665535668745f44
6e39cabc09dfe464c4bfec5135797696f317f6f7
Remove phantomjs
- fixes the breaking change of django-querysetsequence v0.9 keeping backward compatibility #1050. - comments out a test case that needs some attention to be fixed.
diff --git a/src/dal_queryset_sequence/fields.py b/src/dal_queryset_sequence/fields.py index 9cea89c49..6894a0b70 100644 --- a/src/dal_queryset_sequence/fields.py +++ b/src/dal_queryset_sequence/fields.py @@ -19,7 +19,11 @@ def get_queryset_for_content_type(self, content_type_id): """Return the QuerySet from t...
2
1
0
[{"id": "G0", "claim": "The hasattr ternary used to pick _querysets in mixup_querysets (and likewise in fields.py) could use try/except AttributeError instead, preferring the newer querysetsequence case.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
yourlabs__django-autocomplete-light__1200
yourlabs/django-autocomplete-light
1,200
defect
10d7f2c5f2bf6a1f39207f861ef2f47616420e3a
8bb6d5f63c70a165f20a4b130afbaa587b1a2bb3
Added ability to specify value on list and group-list selections
- Updated Select2ListView, Select2GroupListView, & Select2ListChoiceField to account for the extra functionality - Added tests - Updated docs to reflect Have successfully run the tests, and implemented multiple versions of the resulting view & form variations in my own project.
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index e6c9c1b4a..93815a0ab 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -737,9 +737,42 @@ make it easier to avoid problems when using Select2ListView. For example: widget=autocomplete.ListSelect2(url='country-list-autocomplete') ) -...
1
1
0
[{"id": "G0", "claim": "The new docs/tutorial.rst code block example might be missing an indentation level (the `def get_list(self):` body line is not indented inside the class).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yourlabs__django-autocomplete-light__1287
yourlabs/django-autocomplete-light
1,287
defect
4adff74ac4b20a644f57d2a40a283ed79264543d
6a103380211462ebf372815d243e8a4fc02baca1
Two isolated unadorned simple test cases added
Something sorely lacking from the test_project seems to be a really stripped down, isolated test of the single and multiselect widgets. Very useful and important, I believe, for seeing the very bare minimum configuration for a working widget without a lot of very distracting dressing in templates and views. These a tot...
diff --git a/test_project/templates/base.html b/test_project/templates/base.html index cd11c4e92..86a60e3e5 100644 --- a/test_project/templates/base.html +++ b/test_project/templates/base.html @@ -28,6 +28,21 @@ <h2>Welcome to django-autocomplete-light's demo project !</h2> >Example using select2 outsi...
4
3
1
[{"id": "G0", "claim": "The first isolated test page added by this pull request (dal_single) is broken, and its author would like to understand why and how to fix it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The site-breaking issue (issue #128...
null
yourlabs__django-autocomplete-light__733
yourlabs/django-autocomplete-light
733
defect
19cc14b85789a49cd49431725c173e13a961cb7b
f68ca745ad7c2417405eba85b06bf1453eb139bf
Advanced forward features
This commit adds arrow notation for client-side forwarded fields renaming. Let's suppose you have a form with fields `owner` and `test`. `test` autocomplete forwards field `owner` and server side expects `owner` as a key for the forwarded value. Then you want to create another form that uses the same autocomplete for `...
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index ec6041af5..c2beda76a 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -349,7 +349,7 @@ by default. Filtering results based on the value of other fields in the form ================================================================ -- Example source cod...
2
2
0
[{"id": "G0", "claim": "The tutorial's rename-forward example would read better as a minimalist example showing just one renamed field instead of the full two-field-set shipping form.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The forward-pars...
null
yourlabs__django-autocomplete-light__813
yourlabs/django-autocomplete-light
813
defect
6d8378ad20fdd4bb50ed6b7e8d92e05dc8888687
5d27d1c967e6ee6c170d9c3bb7c83fcecf9d1aef
Return 400 on invalid input
A simple patch to return proper information to the client side that its input data is invalid. This is especially useful to silence errors that are not server-side when coupled with reporting tools such as [sentry](https://sentry.io/welcome/), [Airbrake](https://airbrake.io/), etc. I did not add unittests as I got ...
diff --git a/src/dal/views.py b/src/dal/views.py index b23aa5c3d..9f49e71c1 100644 --- a/src/dal/views.py +++ b/src/dal/views.py @@ -5,6 +5,7 @@ from django import http from django.contrib.auth import get_permission_codename from django.core.exceptions import ImproperlyConfigured +from django.http import HttpRespons...
3
3
0
[{"id": "G0", "claim": "Reduce SLOCS in dispatch by reading 'forward' with a single getattr expression, e.g. self.forwarded = getattr(request, 'POST' if request.method == 'POST' else 'GET').get('forward', '{}'), instead of the if/else json.loads pair.", "category": "maintainability", "verdict": "supported", "priority":...
null
yourlabs__django-autocomplete-light__836
yourlabs/django-autocomplete-light
836
defect
7650a4ee2c7e9b7eae6c0d415cf96bcb2c08dee1
9d275817c021cf004cf8ee7c6f57b1d0a5f9270a
Queryset sequence view to display actual model name
The change set here uses the actual model, instead of the QuerySetSequence proxy model. Before ![qss-before](https://cloud.githubusercontent.com/assets/23966/25242832/06d582ba-25c9-11e7-93f9-7609064e4b70.png) After ![qss-after](https://cloud.githubusercontent.com/assets/23966/25242850/137d5fce-25c9-11e7-964a-f4...
diff --git a/src/dal_select2_queryset_sequence/views.py b/src/dal_select2_queryset_sequence/views.py index e2c4953dd..cf6b198fb 100644 --- a/src/dal_select2_queryset_sequence/views.py +++ b/src/dal_select2_queryset_sequence/views.py @@ -43,9 +43,19 @@ def get_results(self, context): groups.setdefault(type(...
2
2
0
[{"id": "G0", "claim": "The except clause should not have redundant parentheses — write `except IndexError:` instead of `except (IndexError, ):`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A unit test should be added for get_model_name so co...
null
youzan__vant__11173
youzan/vant
11,173
defect
22f832342afb5959b8aca2a059cb48d13ae2fbe4
a5fb0eb43f67f8a868cf257d853e2aa8460bba3a
feat(skeleton-item): add skeleton-item component
### Feature * 增加 `skeleton-paragraph` `skeleton-image` `skeleton-title` `skeleton-avatar` 组件 * 更新 `Skeleton` 中英文文档 * 增加对应组件的测试用例 * 新增两个 CSS 变量 `--van-skeleton-image-size` `--van-skeleton-image-radius`。图片占位图尺寸和圆角大小。 ### Break change * `--van-skeleton-row-height` -> `--van-skeleton-paragraph-height` * `--van...
diff --git a/packages/vant/src/skeleton/Avatar.tsx b/packages/vant/src/skeleton/Avatar.tsx new file mode 100644 index 00000000000..0206858aecb --- /dev/null +++ b/packages/vant/src/skeleton/Avatar.tsx @@ -0,0 +1,35 @@ +import { defineComponent, ExtractPropTypes } from 'vue'; + +// Utils +import { + numericProp, + get...
8
7
0
[{"id": "G0", "claim": "The inline SVG image placeholder could be replaced with the existing van-icon photo icon to save some bundle-size overhead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bem() modifier array does not need a leading empty...
null
youzan__vant__11721
youzan/vant
11,721
defect
34634f645d59d407e1605a5dec6b58db244afe8d
1b20608984fabd93383cd58d6a2167d2074fab3a
feat(watermark): add watermark component
https://github.com/youzan/vant/issues/11697 用的SVG方案,好处是直接支持传HTML,坏处是需要拿到实际渲染的HTML然后再次渲染。 感觉直接支持写HTML更加好用一些= =。 (ˊ•͈ ꇴ •͈ˋ)
diff --git a/packages/vant/src/watermark/README.md b/packages/vant/src/watermark/README.md new file mode 100644 index 00000000000..8aa32a0a3df --- /dev/null +++ b/packages/vant/src/watermark/README.md @@ -0,0 +1,107 @@ +# Watermark + +### Intro + +Add watermark for page. + +### Install + +Register component globally vi...
5
5
1
[{"id": "G0", "claim": "The default watermark font color could be a light gray so it does not interfere with the display of page content.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Besides a custom color, the watermark could support custom opacity, b...
null
youzan__vant__11832
youzan/vant
11,832
defect
6b517ccdbbedeebfe04c99bce22e2bfe48d6a9c3
bdb67cdb35cda11dec1afe7cbefc0daddbf6f1e9
feat(FloatingPanel): add new FloatingPanel component
### 问题描述 新增 浮动面板 `FloatingPanel` 组件,close #11344 ### 预览地址 https://vant-git-patch-floating-panel-zhousg.vercel.app/#/zh-CN/floating-panel
diff --git a/packages/vant/src/floating-panel/FloatingPanel.tsx b/packages/vant/src/floating-panel/FloatingPanel.tsx new file mode 100644 index 00000000000..ba009d92cdf --- /dev/null +++ b/packages/vant/src/floating-panel/FloatingPanel.tsx @@ -0,0 +1,134 @@ +import { computed, defineComponent, ref, type ExtractPropType...
11
11
1
[{"id": "G0", "claim": "The prop allowDraggingContent would be better named contentDraggable, since it uses fewer words.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The background-color declared on the panel header seems redundant.", "categor...
null
youzan__vant__11839
youzan/vant
11,839
defect
56bb381c820a0c211193430900da87be2462c9a6
b6f1324231383523fd5bbd81cc408c7309a72a9f
fix(DatePicker): should display correctly when modelValue is updated from external
This PR fixes #11829
diff --git a/packages/vant/src/date-picker/DatePicker.tsx b/packages/vant/src/date-picker/DatePicker.tsx index 9bebb67bfba..b6795c11d0b 100644 --- a/packages/vant/src/date-picker/DatePicker.tsx +++ b/packages/vant/src/date-picker/DatePicker.tsx @@ -53,6 +53,7 @@ export default defineComponent({ setup(props, { emit...
1
1
1
[{"id": "G0", "claim": "Resetting updatedByExternalSources inside the currentValues watcher can leave the flag stale when the following if does not execute, possibly triggering wrong judgments later, so chenjiahan asks to reset it right after formatValueRange in the modelValue watcher instead, making the flag's scope e...
null
youzan__vant__11854
youzan/vant
11,854
defect
127b5b28d34a92b0d842f57a02422ea80c334f4b
8f2092645d83d6ddc1988954dfb6de3115ea7bc8
feat(Uploader): add reupload
### 问题描述 close #11587 ### 预览地址 https://vant-git-patch-uploader-zhousg.vercel.app/#/zh-CN/uploader#kai-qi-fu-gai-shang-chuan
diff --git a/packages/vant/src/uploader/README.md b/packages/vant/src/uploader/README.md index fafcbf978f1..da92934e503 100644 --- a/packages/vant/src/uploader/README.md +++ b/packages/vant/src/uploader/README.md @@ -298,6 +298,26 @@ export default { }; ``` +### Open Reupload + +```html +<van-uploader v-model="file...
2
2
0
[{"id": "G0", "claim": "The English reupload prop docs row should read \"Whether to enable reupload, if enabled, the image preview will be disabled\" instead of the current wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Chinese reuplo...
null
youzan__vant__11888
youzan/vant
11,888
defect
08f82392b7b1173a2b299c57b8176aed03e0063b
48489df8d35c63d13a20125d7a43dec0a401e637
feat(Popover): add actions-direction prop
Implement an edit menu effect similar to iOS. <img width="340" alt="image" src="https://github.com/youzan/vant/assets/18509404/473c4d37-30c5-44ac-8dc1-66698488c75a"> <img width="321" alt="image" src="https://github.com/youzan/vant/assets/18509404/f3b5f5cf-0ea3-4182-91e0-6e9643223529">
diff --git a/packages/vant/src/popover/Popover.tsx b/packages/vant/src/popover/Popover.tsx index 39682aab8dc..e1aada4b5b9 100644 --- a/packages/vant/src/popover/Popover.tsx +++ b/packages/vant/src/popover/Popover.tsx @@ -21,6 +21,7 @@ import { truthProp, numericProp, unknownProp, + BORDER_RIGHT, BORDER_BOT...
5
4
0
[{"id": "G0", "claim": "The array wrapper around props.actionsDirection in the bem('content', ...) call is unnecessary and the modifier can be passed as a plain string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The demo button label in READ...
null
youzan__vant__11916
youzan/vant
11,916
defect
1dcfd2dac0fea085d039fd839947600402ba8271
2fed541c5a31ce01f6a6eda550cccbddb96ca73a
feat(TimePicker): filter support values param to help get current values
It allows for more flexible filtering of available time ranges.
diff --git a/packages/vant/src/date-picker/utils.ts b/packages/vant/src/date-picker/utils.ts index 41c7cdf754e..9ef1a778d4d 100644 --- a/packages/vant/src/date-picker/utils.ts +++ b/packages/vant/src/date-picker/utils.ts @@ -1,9 +1,20 @@ -import { extend, padZero, makeArrayProp, clamp } from '../utils'; +import { + ex...
1
1
0
[{"id": "G0", "claim": "The README filter example should keep the original simple demo and add the complex values-based demo as a separate, progressive example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
youzan__vant__11969
youzan/vant
11,969
defect
9cdbbbdc99b781a02c25fe78ee6d607e9bd6424d
9d21458c7fa278579ecd3986d31deec14d869e48
feat(Rate): add clearable prop
resolve #11968
diff --git a/packages/vant/src/rate/README.md b/packages/vant/src/rate/README.md index c729d4e301e..219aa36bb3e 100644 --- a/packages/vant/src/rate/README.md +++ b/packages/vant/src/rate/README.md @@ -76,6 +76,14 @@ export default { <van-rate v-model="value" :count="6" /> ``` +### Clearable + +When the `clearable` ...
1
1
0
[{"id": "G0", "claim": "The tap threshold constant should be moved to src/utils/constant.ts to join the similar TAP_OFFSET constant from ImagePreviewItem.tsx, and the 3px threshold should be raised to the 5px commonly used in the community.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
youzan__vant__12117
youzan/vant
12,117
defect
3326547cf1680f5ab55163181497c50ec60f7a52
2be5133cc42ad5910104df56933fd0b34ad69a4e
feat(DropdownMenu): add swipe-threshold prop
resolve #12107
diff --git a/packages/vant/src/dropdown-menu/DropdownMenu.tsx b/packages/vant/src/dropdown-menu/DropdownMenu.tsx index 64b009779d6..66c80fc3110 100644 --- a/packages/vant/src/dropdown-menu/DropdownMenu.tsx +++ b/packages/vant/src/dropdown-menu/DropdownMenu.tsx @@ -44,6 +44,7 @@ export const dropdownMenuProps = { act...
2
2
0
[{"id": "G0", "claim": "Add a demo example for the swipe-threshold prop so the feature is easier to understand.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comma in the swipe-threshold row for readability.", "category": "documentation", "...
null
youzan__vant__12240
youzan/vant
12,240
defect
0e1874d689bdc4cf1cc58631064dd29ca395f0f6
e17d61bef1bc5f19727f53ac68a1d666e414c5ae
feat(ConfigProvider): add theme-vars-scope props enable root affects
add theme-vars-scope props enable root affects close #12235
diff --git a/packages/vant/src/config-provider/ConfigProvider.tsx b/packages/vant/src/config-provider/ConfigProvider.tsx index 57185ed430d..c89ea257b97 100644 --- a/packages/vant/src/config-provider/ConfigProvider.tsx +++ b/packages/vant/src/config-provider/ConfigProvider.tsx @@ -42,6 +42,7 @@ export const configProvid...
3
3
2
[{"id": "G0", "claim": "The 100 ms debounced setTimeout around syncThemeVarsInRoot can cause the page's styles to render inconsistently.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The themeVarsInRoot boolean prop should be replaced by a themeVar...
null
youzan__vant__12310
youzan/vant
12,310
defect
829afd5dbdfdd0bbeab9ec22d47eadf2660429fa
24af82d805116599ff3dbba2d9cb660ca820a076
feat(AddressEdit): add change event for name and tel input
close #12307
diff --git a/packages/vant/src/address-edit/AddressEdit.tsx b/packages/vant/src/address-edit/AddressEdit.tsx index 73ccb73b76e..eec2212a3ab 100644 --- a/packages/vant/src/address-edit/AddressEdit.tsx +++ b/packages/vant/src/address-edit/AddressEdit.tsx @@ -95,6 +95,7 @@ export default defineComponent({ emits: [ ...
1
1
1
[{"id": "G0", "claim": "The zh-CN docs for the new change event should state that only the name and tel input fields trigger it, instead of implying any input change fires it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youzan__vant__12394
youzan/vant
12,394
defect
8a7f8d7aa56d93f8f38a9404f308df17228d6e31
26760ba0a2c318dc26edf6320730a84dd62f3528
feat(Tab): add showTitle prop for Tab
Before submitting a pull request, please read the [contributing guide](https://vant-contrib.gitee.io/vant/#/en-US/contribution). 在提交 pull request 之前,请阅读 [贡献指南](https://vant-contrib.gitee.io/vant/#/zh-CN/contribution)。 close https://github.com/youzan/vant/issues/12389
diff --git a/packages/vant/src/back-top/test/__snapshots__/demo-ssr.spec.ts.snap b/packages/vant/src/back-top/test/__snapshots__/demo-ssr.spec.ts.snap index 853e9e7883f..e03ce59766c 100644 --- a/packages/vant/src/back-top/test/__snapshots__/demo-ssr.spec.ts.snap +++ b/packages/vant/src/back-top/test/__snapshots__/demo-...
1
1
1
[{"id": "G0", "claim": "The new `titleless` prop should be named `showTitle` (Vant names display-related props showXXX) with a default value of `true`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youzan__vant__12426
youzan/vant
12,426
defect
5accade26567d6b8824a31cce1680f05ae7d37ba
21898c821782e49fb1ee676dc52fd2b4f8a9e33d
feat(ImagePreview): expose resetScale method
resolve #12422
diff --git a/packages/vant/src/image-preview/ImagePreview.tsx b/packages/vant/src/image-preview/ImagePreview.tsx index 0aa0a7d86fc..ae15d79966f 100644 --- a/packages/vant/src/image-preview/ImagePreview.tsx +++ b/packages/vant/src/image-preview/ImagePreview.tsx @@ -38,7 +38,10 @@ import { Popup, PopupCloseIconPosition }...
1
1
0
[{"id": "G0", "claim": "The component should define its props as `props: imagePreviewItemProps`, reusing the extracted constant instead of the duplicated inline props object.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
youzan__vant__12439
youzan/vant
12,439
defect
f72903b576160a27eb79e3e9da2a826ae2d1b691
b68955261a47a5dd07c622558792d5036d4f4a63
feat(Row): gutter support vertical space
The `gutter` property of the `Row` component supports setting both horizontal and vertical spacing as an array. close #12431
diff --git a/packages/vant/src/col/Col.tsx b/packages/vant/src/col/Col.tsx index 25b03cd3403..d705f675399 100644 --- a/packages/vant/src/col/Col.tsx +++ b/packages/vant/src/col/Col.tsx @@ -31,13 +31,15 @@ export default defineComponent({ return; } - const { spaces } = parent; + const { space...
7
7
2
[{"id": "G0", "claim": "The PR's initial implementation sets vertical spacing with CSS row-gap on the Row, whose compatibility in flex layouts on mobile devices may be poor (unlike in grid layouts).", "category": "compatibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
youzan__vant__12740
youzan/vant
12,740
defect
f53e13468b430e6a3121c4a0c1c1cfaaf845ba74
d85c2b13fb87bf2c1a82239002317ba1bd84b4cc
feat(image-preview): export onLoad and style for image slot
close #12656
diff --git a/packages/vant/src/image-preview/ImagePreviewItem.tsx b/packages/vant/src/image-preview/ImagePreviewItem.tsx index 8a34f28ec41..f80d84edf52 100644 --- a/packages/vant/src/image-preview/ImagePreviewItem.tsx +++ b/packages/vant/src/image-preview/ImagePreviewItem.tsx @@ -407,7 +407,11 @@ export default defineC...
2
1
0
[{"id": "G0", "claim": "The image-slot props object should use the shorthand `onLoad,` instead of the redundant `onLoad: onLoad,`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "An example showing users when to use the image slot's `style` and `...
null
youzan__vant__12857
youzan/vant
12,857
defect
8cb3fe54b930c7a371b2491264583a5149065100
a3e464f6dca3cd4a75e28566e7104bd442dfc9b4
fix(area): columns-placeholder prop rendering error
Before submitting a pull request, please read the [contributing guide](https://vant-ui.github.io/vant/#/en-US/contribution). 在提交 pull request 之前,请阅读 [贡献指南](https://vant-ui.github.io/vant/#/zh-CN/contribution)。 bugfix [#12856](https://github.com/youzan/vant/issues/12856) 当传入 placeholder 后,处理 `市`、`区` 数据有点问题,尝试如下...
diff --git a/packages/vant/src/area/README.md b/packages/vant/src/area/README.md index 0e0dba1c67a..0bed79c09dd 100644 --- a/packages/vant/src/area/README.md +++ b/packages/vant/src/area/README.md @@ -113,7 +113,7 @@ export default { <van-area title="Title" :area-list="areaList" - :columns-placeholder="['Choose...
2
2
1
[{"id": "G0", "claim": "The PR should add a unit test that actually covers the columns-placeholder fix (one that fails before the PR and passes after), since only demo snapshot tests were added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use English...
null
youzan__vant__12972
youzan/vant
12,972
defect
50f7889935cd82733eb98748de7f4de73449b861
172f427136d8e09dc5cfaf039763219b9f796546
fix(NumberKeyboard): lose the number 0 key in some configs
Before submitting a pull request, please read the [contributing guide](https://vant-ui.github.io/vant/#/en-US/contribution). 在提交 pull request 之前,请阅读 [贡献指南](https://vant-ui.github.io/vant/#/zh-CN/contribution)。
diff --git a/packages/vant/src/number-keyboard/NumberKeyboard.tsx b/packages/vant/src/number-keyboard/NumberKeyboard.tsx index 4a702d1615b..bde3a6f947e 100644 --- a/packages/vant/src/number-keyboard/NumberKeyboard.tsx +++ b/packages/vant/src/number-keyboard/NumberKeyboard.tsx @@ -123,7 +123,9 @@ export default defineCo...
1
1
1
[{"id": "G0", "claim": "Add a unit test case for this issue — the PR's changed behaviour (rendering the 0 key when extraKey is an empty array) is left untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youzan__vant__13075
youzan/vant
13,075
defect
cb4d268834b0da0473789f7cb8fb83a46243cca0
f3b5128a837ac9b4ca306a6e0fa35eca4492ae41
fix(Calendar): fix getInitialDate function error
getInitialDate 方法的形参在接收到一个长度为 1 的数组时,将可能发生意料之外的情况。 原方法如下,如果入参为 `[new Date(2025, 7, 21)]`,并且日历 `type` 为 `range` 时: ```js const getInitialDate = (defaultDate = props.defaultDate) => { // ... if (type === 'range') { if (!Array.isArray(defaultDate)) { defaultDate = []; } ...
diff --git a/packages/vant/src/calendar/Calendar.tsx b/packages/vant/src/calendar/Calendar.tsx index 2da16a6a4a6..fa4a513d1e2 100644 --- a/packages/vant/src/calendar/Calendar.tsx +++ b/packages/vant/src/calendar/Calendar.tsx @@ -165,6 +165,10 @@ export default defineComponent({ defaultDate = []; } ...
3
3
2
[{"id": "G0", "claim": "A defaultDate array containing only one item is allowed input, so if erroneous input needs guarding, only the erroneous input should be reset rather than resetting all length-1 cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
youzan__vant__13127
youzan/vant
13,127
defect
6134ded4d7bfba2c5e53f35f65439daf0e699c70
31b8c9a8cb578d251dd024b4b11485554d2b250b
feat(Calendar): support `text` slot
Sometimes, we want to custom the text render on calendar, like this: <img width="281" alt="image" src="https://github.com/user-attachments/assets/985049fb-e0c1-4462-9c6f-18d01f652c07"> This PR add a new `text` slot to implement it.
diff --git a/packages/vant/src/calendar/Calendar.tsx b/packages/vant/src/calendar/Calendar.tsx index fae18ad9374..6c5a763ad4e 100644 --- a/packages/vant/src/calendar/Calendar.tsx +++ b/packages/vant/src/calendar/Calendar.tsx @@ -518,7 +518,12 @@ export default defineComponent({ const showMonthTitle = index !== 0...
2
2
1
[{"id": "G0", "claim": "The `div` wrapper around the `text` slot's rendered output is unnecessary and should be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use `slots.text` instead of `slots['text']` to access the slot.", "category": "maintai...
null
youzan__vant__13425
youzan/vant
13,425
defect
b9e7801d2398b281dca69b7aa0b6ab16abc218df
0ed022a815fe69dbcdce251f36ba4e3a2a8548ed
fix(Picker): makesure confirm params' behavior consistent (#13423)
fix: [#13423 ](https://github.com/youzan/vant/issues/13423)
diff --git a/packages/vant/src/picker/Picker.tsx b/packages/vant/src/picker/Picker.tsx index 81ee1b80e95..60747676c2c 100644 --- a/packages/vant/src/picker/Picker.tsx +++ b/packages/vant/src/picker/Picker.tsx @@ -147,7 +147,9 @@ export default defineComponent({ }; const getEventParams = () => ({ - sele...
1
1
1
[{"id": "G0", "claim": "Add test cases covering this change to the Picker's confirm event params.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
youzan__vant__13429
youzan/vant
13,429
defect
b9e7801d2398b281dca69b7aa0b6ab16abc218df
33a320bf49cf1a6416ae40afa8f713ee85be2cd2
feat(FloatingBubble): allow gap xy to be set separately (#13297)
期望如標題所述,這樣我就能貼近側邊設定離底部多高。 兼容 `number` 同時,新增 `{ x: number, y: number }` 類型,採用此類型而不是數組的原因是與 `v-model:offset` 同類型較統一。 close #13297
diff --git a/packages/vant/src/floating-bubble/FloatingBubble.tsx b/packages/vant/src/floating-bubble/FloatingBubble.tsx index 52e859c86d0..d2441f38efd 100644 --- a/packages/vant/src/floating-bubble/FloatingBubble.tsx +++ b/packages/vant/src/floating-bubble/FloatingBubble.tsx @@ -20,7 +20,7 @@ import { addUnit, c...
1
1
0
[{"id": "G0", "claim": "In the README docs, the gap prop's type column should read `number | { x: number, y: number }` instead of the internal type name `GapType`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
youzan__vant__13773
youzan/vant
13,773
defect
7f1c0e63d24b6b700006a24a4fc6ec1bdc1e9cd7
18ca9f8794fa7e9b04737992aa9f4d885421fdf3
feat(FloatingPanel): add draggable prop
close: https://github.com/youzan/vant/issues/13770 Before submitting a pull request, please read the [contributing guide](https://vant-ui.github.io/vant/#/en-US/contribution). 在提交 pull request 之前,请阅读 [贡献指南](https://vant-ui.github.io/vant/#/zh-CN/contribution)。
diff --git a/packages/vant/src/floating-panel/FloatingPanel.tsx b/packages/vant/src/floating-panel/FloatingPanel.tsx index 61f8b19b51a..1d03b786b79 100644 --- a/packages/vant/src/floating-panel/FloatingPanel.tsx +++ b/packages/vant/src/floating-panel/FloatingPanel.tsx @@ -29,6 +29,7 @@ export const floatingPanelProps =...
1
1
0
[{"id": "G0", "claim": "The onTouchend handler logic added by the pull request can be simplified to improve readability and remove redundancy by first checking whether a drag was in progress, then updating the dragging state, and finally checking whether dragging is permitted.", "category": "maintainability", "verdict"...
null
youzan__vant__13777
youzan/vant
13,777
defect
7f1c0e63d24b6b700006a24a4fc6ec1bdc1e9cd7
389b3e5b6a295bf1b234493b555b0c0698700bfb
feat(Progress): add pivot slot for custom content
close: https://github.com/youzan/vant/issues/13401
diff --git a/packages/vant/src/progress/Progress.tsx b/packages/vant/src/progress/Progress.tsx index 07f9aaff707..1a1c814f882 100644 --- a/packages/vant/src/progress/Progress.tsx +++ b/packages/vant/src/progress/Progress.tsx @@ -32,7 +32,7 @@ export default defineComponent({ props: progressProps, - setup(props)...
1
1
0
[{"id": "G0", "claim": "The default pivot text is derived from the raw `percentage` prop instead of the clamped `safePercentage`, so when the percentage is outside 0-100 the displayed text can mismatch the visually clamped progress bar, and it should use `safePercentage` for consistency.", "category": "correctness", "v...
null
yquake2__yquake2__1025
yquake2/yquake2
1,025
defect
0e92c704c9dd0a8212c4b2c62f0357e9cf90d631
f4e6ecd3a2c1aec91a6aafe5793b97efa2352ae4
Cinematic JPG/PNG image support
Add support of JPG/PNG format and small cleanup in soft render.
diff --git a/src/client/cl_cin.c b/src/client/cl_cin.c index c798ac5958..076c678b53 100644 --- a/src/client/cl_cin.c +++ b/src/client/cl_cin.c @@ -30,6 +30,20 @@ #include "header/client.h" #include "input/header/input.h" +// don't need HDR stuff +#define STBI_NO_LINEAR +#define STBI_NO_HDR +// make sure STB_image u...
3
3
3
[{"id": "G0", "claim": "Declaring 'data' as const in RDraw_StretchRaw leads to new compiler warnings further down in gl1_draw.c (lines 451 and 482: assignment discards 'const' qualifier from pointer target type).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
yquake2__yquake2__1030
yquake2/yquake2
1,030
defect
218ac53ce9e27f1ce0275389cc6beca5547d3cdf
53ea45007298be6de98e1070048044461859667c
adding compile time assertion support whenever possible
and convert some runtime which deserve to be evaluated earlier.
diff --git a/src/client/refresh/gl3/gl3_main.c b/src/client/refresh/gl3/gl3_main.c index 65ed48645a..57b45a4e7e 100644 --- a/src/client/refresh/gl3/gl3_main.c +++ b/src/client/refresh/gl3/gl3_main.c @@ -1011,7 +1011,7 @@ GL3_DrawParticles(void) GLfloat dist; GLfloat color[4]; } part_vtx; - assert(sizeof(par...
2
2
0
[{"id": "G0", "claim": "The indentation of the newly added YQ2_ASSERT lines in src/common/header/shared.h is inconsistent with the surrounding tab-indented lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new macro should be named YQ2_S...
null
yquake2__yquake2__1077
yquake2/yquake2
1,077
defect
4967b9d0caaa3d58488f4e2fcf0e145917fc6287
089a1cd53f334c78e1c74e535b1bb5bf9613b3f6
Fix duplicate menu key keyboard entries
Fixes a bug where duplicate keyboard entries would occur in menu fields when using the keypad keys with num-lock on. Menu fields now mirror behaviour of the console field. Removed keypad left arrow case from console key ignore list.
diff --git a/src/client/header/keyboard.h b/src/client/header/keyboard.h index 9c421d9f1..e05644ac3 100644 --- a/src/client/header/keyboard.h +++ b/src/client/header/keyboard.h @@ -276,6 +276,7 @@ extern int chat_bufferlen; extern int chat_cursorpos; extern qboolean chat_team; +qboolean IN_NumpadIsOn(); void Cha...
3
3
1
[{"id": "G0", "claim": "The first approach alters numpad behavior for the whole game (key bindings become dependent on the num key state) and makes console behavior inconsistent (numpad left allowed in console, numpad up/down not); the reviewer asks instead for a backend query function such as Sys_NumpadIsOn() with the...
null
yquake2__yquake2__1163
yquake2/yquake2
1,163
defect
b64ae0ed6ee9bec21dd48a67ec05e386a38772e5
0babeb62c184d659b9957cdaafcded9876c4c5d7
Simplify compiling for targets that lack GL drivers
I also improved the logging of a couple of uncommon errors and warnings
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df4dc97f..64a5d61c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,11 @@ option(CURL_SUPPORT "cURL support" ON) option(OPENAL_SUPPORT "OpenAL support" ON) option(SYSTEMWIDE_SUPPORT "Enable systemwide installation of game assets" OFF) option(SDL3_SUPP...
1
1
1
[{"id": "G0", "claim": "The OpenGL-linking condition should be just `if(GL1_RENDERER)` because `GLES2_RENDERER` does not exist (a typo, apparently for `GLES3_RENDERER`) and GL1 is the only renderer that needs the OS's OpenGL implementation, the other three using glad loaders.", "category": "correctness", "verdict": "su...
null
yquake2__yquake2__1238
yquake2/yquake2
1,238
defect
dd328ffa1b5c3b489ffd5da957f51639b81ecf9b
ff217fd17749fbeb27558ec113b2eb7243ae32ea
Temp ent refactoring and temp ent model state cleared on renderer restarts
The following was done: * Fixes issue https://github.com/yquake2/yquake2/issues/1236. * Temp ent static state is now cleared on renderer restarts/changes * Added `static` to a few private functions in the temp ent code file * Created utility functions to simply the beams/sustains code (DRY principle) * `CL_ClearTE...
diff --git a/src/client/cl_tempentities.c b/src/client/cl_tempentities.c index e5ef4bbdf..3c9f34ca8 100644 --- a/src/client/cl_tempentities.c +++ b/src/client/cl_tempentities.c @@ -82,7 +82,9 @@ void CL_Explosion_Particle(vec3_t org, float size, qboolean large, qboolean rocket); #define EXPLOSION_PARTICLES(x) CL_...
3
3
1
[{"id": "G0", "claim": "The !model validation in CL_ParsePlayerBeam should sit above the last MSG_Read calls to keep the reads ordered, since with either static model var NULL the current placement could desync the client message buffer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
yquake2__yquake2__1254
yquake2/yquake2
1,254
defect
a216d5aa4c4a5f0fe75e5904710fb41eca0dc641
ba0c48d2ecdd6c0e5052bdb0f2657af1050b6c1e
Fix prefast warings
Fix prefast warnings as msvc does not aware about no return attribute, and remove maps auto complete limit to 1024.
diff --git a/.github/workflows/linux_aarch64.yml b/.github/workflows/linux_aarch64.yml index 0586f7da6..1146a0b59 100644 --- a/.github/workflows/linux_aarch64.yml +++ b/.github/workflows/linux_aarch64.yml @@ -35,8 +35,8 @@ jobs: - name: Build run: | # Public runners come with 4 CPUs. - make ...
4
1
1
[{"id": "G0", "claim": "In GetMapsInFolderList the write into 'mapnames' may overrun the buffer (writable size 'nummapslen' bytes but '16' bytes might be written) and invalid data may be read from 'mapnames' (code scanning alerts 233 and 234).", "category": "security", "verdict": "uncertain", "priority": "P1", "scope":...
null
yquake2__yquake2__273
yquake2/yquake2
273
defect
472f55c5bfe97845e1994aa2bf1eb2b12b817b68
603bf55b3e0e3348b3cce4fc06619ebd793505d6
Soft render clean up.
Removed unused function and variables and added 'static' to local variables and functions.
diff --git a/src/client/refresh/gl1/gl1_light.c b/src/client/refresh/gl1/gl1_light.c index fca09ee03e..73519dd901 100644 --- a/src/client/refresh/gl1/gl1_light.c +++ b/src/client/refresh/gl1/gl1_light.c @@ -46,7 +46,7 @@ R_RenderDlight(dlight_t *light) GLfloat vtx[3*18]; GLfloat clr[4*18]; - unsigned int index_vt...
3
2
0
[{"id": "G0", "claim": "Add to the commit message an explanation of why index_vtx starts at 3 (the first loop fills vtx[0]..vtx[2], while the old value 4 left vtx[3] uninitialized and wrote past the end of the array), because the compiler error alone is not specific about what goes wrong there.", "category": "documenta...
null
yquake2__yquake2__285
yquake2/yquake2
285
defect
c11149730cd522ff37cc848baed9606b5182f746
540f6b3d0b680f17da5106addb64c764d7d776af
Fixes scale particles in soft render
* window height as multiple for particles size. * Add custom particle shape by sw_custom_particles. 0 - use rectangle (default shape) 1 - use hexagon
diff --git a/src/client/refresh/files/wal.c b/src/client/refresh/files/wal.c index 1999d67dd0..343b45fff5 100644 --- a/src/client/refresh/files/wal.c +++ b/src/client/refresh/files/wal.c @@ -34,14 +34,21 @@ void GetWalInfo(char *name, int *width, int *height) { miptex_t *mt; + int size; - ri.FS_LoadFile(name, (vo...
4
3
1
[{"id": "G0", "claim": "Particles in the soft renderer do not scale properly with resolution: the d_pix_shift hack fails at around 1600x1200 and higher and keeps particles a roughly constant pixel size, so particle size should scale with resolution as in the GL renderers (via a real formula or a multiplication by a res...
null
yquake2__yquake2__382
yquake2/yquake2
382
defect
3b296c43a05ef0e9971522a7cd5fe2c7cee75c07
025764db79e805c035dd634a08e86289409fe850
Add auto detect resolution
* Add auto detect resolution #355 * code cleanups for make cppcheck little more happy * additional sanitize checks * move code patches authors from code comments to about menu
diff --git a/src/client/menu/menu.c b/src/client/menu/menu.c index 2c010fda3..992c5eb93 100644 --- a/src/client/menu/menu.c +++ b/src/client/menu/menu.c @@ -1559,6 +1559,11 @@ static const char *idcredits[] = { "Marty Stratton", "Henk Hartong", "", + "+Patches authors:", + "PGM", + "PMM", + "eliasm", + "", "+YA...
3
3
2
[{"id": "G0", "claim": "The soft renderer declares refexport as a file-scope (static) variable in the renderer DLL although it is only used inside GetRefAPI() and is not supposed to be a global variable in the ref DLLs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
yquake2__yquake2__412
yquake2/yquake2
412
defect
1f1a45a56209fc90464514fe264142938ae69ee7
0da8099de8352691892e7fd92748a0a6e3b8efc1
Multi-Monitor Management
This pull request adds an option to the "VIDEO" menu that allows you to specify which display/monitor you want the game to run on, and can be seen in the screenshot. ![20190616043855_1](https://user-images.githubusercontent.com/8671884/59561714-5a83fb00-8ff1-11e9-8bab-2a487458cda5.jpg) If this option is not desir...
diff --git a/src/client/menu/videomenu.c b/src/client/menu/videomenu.c index 6d3db7547..9662d3951 100644 --- a/src/client/menu/videomenu.c +++ b/src/client/menu/videomenu.c @@ -32,6 +32,7 @@ extern void M_ForceMenuOff(void); static cvar_t *r_mode; +static cvar_t *vid_displayindex; static cvar_t *r_hudscale; stati...
1
1
1
[{"id": "G0", "claim": "0lvin suggests changing the window-position code to something like `if (last_position_x == SDL_WINDOWPOS_UNDEFINED || last_position_y == SDL_WINDOWPOS_UNDEFINED) { last_position_x = last_position_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY( (int)vid_displayindex->value ); }` and saving `vid_displayindex...
null
yquake2__yquake2__442
yquake2/yquake2
442
defect
cd93737eb7b00c1760a07b611c4f1b2e8ce13a0d
2b6096aa8200bb01ddae6e73e6f270e7543f6169
Add zBuffer damage logic
* Save current player position and compare with a position in the previous frame, if position is same refresh only changed rectangle in zbuffer. zBuffer can be damaged by models, particles and static transparent spans. zBuffer damage is not useful for the screen refresh minimize for now, as result of explosion can ...
diff --git a/src/client/cl_main.c b/src/client/cl_main.c index cc0ad7239e..5c6a1e5d14 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -487,6 +487,13 @@ void CL_CurrentMap_f(void) Com_Printf("%s\n", cl.configstrings[CS_MODELS + 1]); } +void CL_CurrentView_f(void) +{ + Com_Printf("org: %f, %f, %f\nan...
1
1
1
[{"id": "G0", "claim": "Enhance the existing `viewpos` command to also print the view angles instead of introducing a new `currentview` command.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yquake2__yquake2__551
yquake2/yquake2
551
defect
ff9f9accd34dc773f0bc3cb133f0a12c4ccb63da
1bda2e4a169f8daa2a223b0056a9ab3b9429daea
Scancodes for Input and other keyboard input improvements
Fixed several things that have to do with `K_*` constants and add `K_SC_*` for scancodes that are used as fallbacks for otherwise unknown keys. See commit messages for more details.
diff --git a/src/client/cl_inventory.c b/src/client/cl_inventory.c index 6cfd076263..7c3ba7e374 100644 --- a/src/client/cl_inventory.c +++ b/src/client/cl_inventory.c @@ -130,7 +130,7 @@ CL_DrawInventory(void) cl.configstrings[CS_ITEMS + item]); bind = ""; - for (j = 0; j < 256; j++) + for (j = 0; j < K_LAS...
1
1
0
[{"id": "G0", "claim": "The commented-out debug code in SV_RunGameFrame should be removed, or else be commented in and hidden behind something like the developer cvar.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yquake2__yquake2__592
yquake2/yquake2
592
defect
93d1dfe60d05a439db8d88dffa4d2804531c07da
2b3ee3c0cce58d7457d04a3ac6f3a416d67bc467
Start Server Menu: reload "maps.lst" after "game" dir is changed
The data read from "maps.lst" is only ever read once currently, but this change implemented in "FS_BuildGameSpecificSearchPath" causes it to be read again if the "game" cvar/directory is updated. NOTE: I made this change on an older branch (I'm no longer able to compile locally from about 7.40 onward) but it looks lik...
diff --git a/src/client/menu/menu.c b/src/client/menu/menu.c index c42e9d439a..84bfc0c9f5 100644 --- a/src/client/menu/menu.c +++ b/src/client/menu/menu.c @@ -2836,8 +2836,8 @@ M_Menu_JoinServer_f(void) */ static menuframework_s s_startserver_menu; -static char **mapnames = NULL; -static int nummaps = 0; +char **m...
1
1
1
[{"id": "G0", "claim": "The `char **mapnames;` definition and the `mapnames = NULL;` reset added to src/common/filesystem.c should be removed / guarded by `DEDICATED_ONLY`, since the declaration is redundant with the extern in common.h, it won't link with gcc10 / clang10, and the menu isn't linked into the dedicated se...
null
yquake2__yquake2__657
yquake2/yquake2
657
defect
449776d3f6a684e7e0d08a3f5e561dbd882cd92f
76f56458b1e3705848c3a6a370480e0762d13657
Fullscreen Vulkan fixes
This branch fixes a number of problems present in Vulkan when in fullscreen mode, and other related problems. * First off and most importantly, it fixes #648, making fullscreen images look correctly and have the right aspect ratio when vid_fullscreen is 1. * Second, it restores textured borders around the world vie...
diff --git a/src/client/refresh/vk/header/local.h b/src/client/refresh/vk/header/local.h index 046206551..6e781e722 100644 --- a/src/client/refresh/vk/header/local.h +++ b/src/client/refresh/vk/header/local.h @@ -287,6 +287,8 @@ typedef struct VkPipeline current_pipeline; qvkrenderpasstype_t current_renderpass; +...
4
3
1
[{"id": "G0", "claim": "The pull request disables the whole body of RE_Draw_TileClear with #if 0 and replaces clearing tiles with black bars drawn during the UI pass; the reviewer asks whether this function is still needed and whether it is used only to clean up borders.", "category": "design", "verdict": "supported", ...
null
yquake2__yquake2__680
yquake2/yquake2
680
defect
11bcb785d0da60e21e2c9fbbe7bcc4179947a26e
17c2c94f078542202c7db35c94350a351e1bbae5
Vulkan restart tweaks
This pull request essentially fixes two issues: * ERROR: Mod_PointInLeaf: bad model when restarting the Vulkan renderer. This is solved by making the restart happen at the end of the frame instead of at the beginning of it, and signaling the server the client needs to be re-registered again to rebuild the list of mo...
diff --git a/src/client/refresh/vk/header/local.h b/src/client/refresh/vk/header/local.h index b1ffc7d9d..b2760ddcd 100644 --- a/src/client/refresh/vk/header/local.h +++ b/src/client/refresh/vk/header/local.h @@ -152,6 +152,7 @@ extern cvar_t *vk_pixel_size; extern cvar_t *r_fixsurfsky; extern cvar_t *vid_fullscree...
2
1
0
[{"id": "G0", "claim": "A crash can still be reproduced when Alt+Tabbing out of fullscreen to the desktop and back under Gnome; it is probably related to #647 and this pull request does not attempt to solve it.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1",...
null
yquake2__yquake2__849
yquake2/yquake2
849
defect
a80f5b6cd7f911370840e5c2dc6f2bf83d0b92f8
df399576a2a65df02b744e8c222c31d60951a80e
Gyro aiming
Game controllers with a gyroscopic sensor has been a thing since years, and Steam and some input remappers provide support for mouse-controlled games to use it, since a gyro is in practice a mouse that is controlled through rotation instead of translation. With Nintendo, Sony, and now the Steam Deck supporting it, this...
diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index f8df6633c..fa5c91399 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -139,13 +139,6 @@ it's `+set busywait 0` (setting the `busywait` cvar) and `-portable` during gameplay and released otherwise (in menu, videos, console or if game is paus...
2
2
0
[{"id": "G0", "claim": "The renamed in_delay variable should have a comment explaining that its meaning changed, since the old name no longer describes what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A code comment should explain th...
null
yquake2__yquake2__869
yquake2/yquake2
869
defect
1dfeddc40f727313229b09c035c31fc549390834
50a4c8cb3f611a839f86d2a4fcbce8ecc9494009
Add step sound and reverberation
* Cherrypick of commits from https://github.com/SkacikPL/Q2RTX #782 * Add monster spawn command * Add monster step sound * Add reverberation effect * Sync function definitions in game.so
diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index 25d38cde4d..dfdf6dc03b 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -205,6 +205,9 @@ Set `0` by default. may not be generated in all circumstances, especially when the player is moving over stairs and slopes. +* **g_monsterfootsteps**...
5
5
3
[{"id": "G0", "claim": "Fix the typo in the new s_occlusion_strength cvar documentation (\"occusion\" should be \"occlusion\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AL_SetReverb indexes ReverbPresets before validating reverb_effect, so a...
null
yquake2__yquake2__871
yquake2/yquake2
871
defect
98a4522b1bba21c9e7b8bbb259ac5ccf49aad6bb
6eae0bb205040a43cd4c520dd0eb256f7b97f7ff
Add new cheats spawn commands
* Spawn entity by coordinates: `spawnentity` * Spawn entity to start point: `spawnonstart` * Add optional animation for player model preview.
diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index 15b6314e22..25d38cde4d 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -140,6 +140,14 @@ Set `0` by default. * **cl_showfps**: Shows the framecounter. Set to `2` for more and to `3` for even more informations. +* **cl_model_preview_start**...
1
1
1
[{"id": "G0", "claim": "The new spawn commands allocate the entity classname with strdup(), which may need specific handling because that memory is never freed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yquake2__yquake2__944
yquake2/yquake2
944
defect
e37da07a5a788cdf5734374acb71bc10214aacad
48987b709118f6786e9babd5fae87063ab839248
Restore haptic feedback functionality.
Rumble feedback will be default. Checked in both modes with: * LibSDL2: 2.24.2+dfsg-1 (debian testing) * Microntek USB Joystick (DragonRise hid-dr.ko)
diff --git a/doc/040_cvarlist.md b/doc/040_cvarlist.md index 76d9aabf93..0678374770 100644 --- a/doc/040_cvarlist.md +++ b/doc/040_cvarlist.md @@ -275,6 +275,11 @@ Set `0` by default. `-1`: Disable reverb effect, `>=0`: select predefined effect. +* **s_feedback_kind**: Select kind of controller feedback to use....
6
5
0
[{"id": "G0", "claim": "In Haptic_Feedback() the name parameter should be a const char *, and the original typos \"hapric\" and \"efffect\" still exist and should be corrected.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The s_feedback_kind d...
null
yshavit__mdq__252
yshavit/mdq
252
defect
ae48ae813768c02ea1627a602e1d967c3c9529e9
0f017da99309cec50017153a4acdde27e7f1b822
add `--output plain` option
Add new output option that will just print the plain text of the markdown, with no formatting marks whatsoever. This may have multiple applications, but the most immediate one is to be able to extract code blocks and run them. In doing so, this resolves #244. <!-- This is an auto-generated comment: release notes by...
diff --git a/Cargo.lock b/Cargo.lock index 80f02062..8f61745c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,6 +242,7 @@ dependencies = [ "indoc", "lazy_static", "markdown", + "memchr", "paste", "pest", "pest_derive", diff --git a/Cargo.toml b/Cargo.toml index df715e9c..a68c0e3a 100644 --- a/Cargo.toml ++...
10
3
0
[{"id": "G0", "claim": "Handle I/O errors more gracefully in write_plain instead of panicking via .expect(\"while writing output\"); consider returning a Result to the caller.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an extra blank line after c...
null
yshavit__mdq__282
yshavit/mdq
282
defect
b682d3ccfe3c74f527edc2999b3053e8bb594f44
4e321edb4d647d26e5065b4c9a1b04afb85d956e
test stderr in integ tests
Rather than having bad queries always just `eprintln` to stderr and then return false, have the `lib.rs` runners return a Result, where the error case is that invalid query's error. Then, use that to test for the error string.
diff --git a/build.rs b/build.rs index 2220acc8..4f42297c 100644 --- a/build.rs +++ b/build.rs @@ -133,6 +133,7 @@ struct TestExpect { output_json: Option<bool>, expect_success: Option<bool>, ignore: Option<String>, + output_err: Option<String>, } #[derive(Deserialize, Copy, Clone)] @@ -148,6 +149...
5
2
0
[{"id": "G0", "claim": "run_in_memory panics when the command output is not valid UTF-8 because it unwraps String::from_utf8; the decode error should be handled instead (e.g., converted to a dedicated Error variant).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id":...
null
yshavit__mdq__289
yshavit/mdq
289
defect
b0c26671211ecc28ccc8d7b4364ce70d3c3c099f
9e5c3c354b5496cdb1889941a67e6467822f744f
read extra positional args as files
Treat the first positional arg as a selector (as before), but any subsequent ones as files to read. This resolves #275. From the new docs: > An optional list of Markdown files to parse, by path. If not provided, standard input will be used. > > If these are provided, mdq will act as if they were all concatenate...
diff --git a/build.rs b/build.rs index 4f42297c..277e5985 100644 --- a/build.rs +++ b/build.rs @@ -46,6 +46,18 @@ fn generate_integ_test_cases(out_dir: &String) -> Result<(), String> { } }); + out.write("const FILES: [(&str, &str); "); + out.write(&format!("{}", &sp...
6
3
1
[{"id": "G0", "claim": "RealOs::read_file returns the bare io error; wrap file-read failures with descriptive context naming the failed path.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "run_in_memory and run_stdio call expect(\"failed to read...
null
yshavit__mdq__325
yshavit/mdq
325
defect
a3478707c89b7b33ae29ea4e3f0516a7b9d0c5fc
908158512a79b7b2c83dac64df697d5539249742
rm MdElemRef
Just use MdElem directly. This simplifies the API (which we'll soon be making public). Resolves #327.
diff --git a/src/md_elem/mod.rs b/src/md_elem/mod.rs index 3f52d5d6..b3ff3436 100644 --- a/src/md_elem/mod.rs +++ b/src/md_elem/mod.rs @@ -2,7 +2,6 @@ mod tree; mod tree_ref; pub use tree::*; -pub use tree_ref::*; #[cfg(test)] pub(crate) mod tree_test_utils; diff --git a/src/md_elem/tree.rs b/src/md_elem/tree.r...
2
1
0
[{"id": "G0", "claim": "Update the remaining documentation references to the removed `TableSlice` type (the doc comments in src/select/sel_table.rs and the comment in src/md_elem/tree_ref.rs) so they match the new `Table` variant name and avoid confusion.", "category": "documentation", "verdict": "uncertain", "priority...
null
yshavit__mdq__336
yshavit/mdq
336
defect
99ac29a30429c7e35931885b46a8bcd43c3ac4b8
c900c05ced7ef01159259cf38fc56b9bc10567aa
fix public API for various output-related classes
In service of #213. This basically cleans up the `output::` mod, and presents a nicer interface to it. I wanted to keep the existing code more or less in place, so a lot of this is just setting up appropriate facades, and `pub use`ing those instead of the underlying.
diff --git a/src/output/fmt_md.rs b/src/output/fmt_md.rs index d2e75621..a406d271 100644 --- a/src/output/fmt_md.rs +++ b/src/output/fmt_md.rs @@ -1,6 +1,6 @@ use crate::md_elem::elem::*; use crate::md_elem::*; -use crate::output::fmt_md_inlines::{MdInlinesWriter, MdInlinesWriterOptions}; +use crate::output::fmt_md_i...
5
1
0
[{"id": "G0", "claim": "The new public types and functions (MdWriter, serializable) should get brief doc comments explaining their purpose and usage.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MdWriter::write silently drops errors from write_m...
null
yshavit__mdq__337
yshavit/mdq
337
defect
dd78373fc4387bb93ef9b14d24eb59916ab37fbb
b04ff2a4e259b14c504e5391c1a121d8f178754f
expose Cli args as RunOptions
- CliOptions still exists, but is hidden - RunOptions is visible, and that's what people should use - define the args via a macro, so that they're in sync This doesn't hide clap from the dependencies, but it does hide it from the public-facing API. In service of #307.
diff --git a/src/main.rs b/src/main.rs index 93a0b958..04f2355e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use clap::Parser; -use mdq::run::{Cli, Error, OsFacade}; +use mdq::run::{CliOptions, Error, OsFacade}; use std::io; use std::io::{stdin, stdout, Read}; use std::process::ExitCode; @@ -28,9 +28,...
4
1
1
[{"id": "G0", "claim": "The take_selector_string method can only safely be invoked once, which creates a risk of subtle bugs; redesign it to avoid the single-call restriction.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The hidden-argument trick for -...
null
yshavit__mdq__393
yshavit/mdq
393
defect
2e75806900ea0ef364140b487c9e2e382c6e4dbc
aecb1dc39b0d9461b4a0bc036bbb2348dcc957f1
simplify link transformation
Remove `LinkTransform::Reference`, replacing it with `LinkTransform::NeverInline`. This keeps collapsed and shortcut links as they were (unlike `Reference`, which replaced them with `[full references][1]`). Additionally, collapsed and shortcut links whose display text is just a number (e.g. `[1][]` or `[2]`) will no...
diff --git a/src/md_elem/tree.rs b/src/md_elem/tree.rs index 61b88f2f..1c16d90e 100644 --- a/src/md_elem/tree.rs +++ b/src/md_elem/tree.rs @@ -53,6 +53,14 @@ impl MdContext { empty_md_elems: Vec::new(), } } + + /// Creates an empty context, which will not allocate. + pub(crate) fn zero_...
19
6
1
[{"id": "G0", "claim": "Compilation will fail because `reserved.into()` in the NumberAssigner test helper does not convert an array into a `BTreeSet`.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the build_from_link comment: \"disp...
null
ysugimoto__falco__228
ysugimoto/falco
228
defect
9965f08642d63c8b77e886d5eb04c228b930265b
ee86db008bdbeec7de3fffe8765f1039978d69e6
User defined function fixes
## Unable to call user defined functions The primary issue this PR addresses is the fact that currently user defined functions with return values can't be called in tests or in the simulator. The interpreter returns an error `Function <name> is not defined`. ### Example `main.vcl` ``` backend dummy { .h...
diff --git a/__generator__/interpreter.go b/__generator__/interpreter.go index 9bacf536..3e2ec297 100644 --- a/__generator__/interpreter.go +++ b/__generator__/interpreter.go @@ -330,7 +330,7 @@ var typeMap = map[string]string{ "TABLE": "value.IdentType", "STRING": "value.StringType", "IP": "value.IpType"...
1
1
1
[{"id": "G0", "claim": "The IsValueType helper this PR adds on ast.Ident should not live in the ast package: it should be a helper function in the interpreter packages somewhere instead of an ast method, and its tests should also move out of ast accordingly.", "category": "design", "verdict": "supported", "priority": "...
null
ysugimoto__falco__263
ysugimoto/falco
263
defect
ac087cbde6d55ed7de2ba58c1de0a26a83c3d4ab
6802148a860184b87ac7345643c7fc5c2fe2404f
fix base64 decode related builtin function
Fixes #255 Fastly terminates null-byte on a decoded string in base64 decoding functions: - `digest.base64_decode` - `digest.base64url_decode` - `digest.base64url_decode_nopad` Additionally, `digest.base64url_decode_nopad` also stops decoding when a padding sign (`=`) is found. This PR follows Fastly behavio...
diff --git a/interpreter/function/builtin/digest_base64_decode.go b/interpreter/function/builtin/digest_base64_decode.go index 357ec983..c2bd0285 100644 --- a/interpreter/function/builtin/digest_base64_decode.go +++ b/interpreter/function/builtin/digest_base64_decode.go @@ -3,6 +3,7 @@ package builtin import ( + "b...
3
3
2
[{"id": "G0", "claim": "digest.base64url_nopad_decode handles padding characters incorrectly: per the documented Fastly behavior the nopad variant ignores '=' like any other invalid character, so any '=' in the input should be removed before decoding instead of stopping the decode at the first '='.", "category": "corre...
null
ysugimoto__falco__485
ysugimoto/falco
485
defect
030dd8a8d40bfdf4465af87d93463b977725bbe3
c84fb8fce964bf16cdb08f6e5939b3b0013e6d3a
Implement `director.{NAME}.healthy` and fix segfaults
### **User description** This implements the [director.{NAME}.healthy](https://www.fastly.com/documentation/reference/vcl/variables/miscellaneous/director-healthy/) variable with both the linter and interpreter. Oddly, Fastly seems to treat this identically to [backend.{NAME}.healthy](https://www.fastly.com/documentati...
diff --git a/__generator__/predefined.yml b/__generator__/predefined.yml index cad0e4b9..922bc6af 100644 --- a/__generator__/predefined.yml +++ b/__generator__/predefined.yml @@ -203,6 +203,11 @@ backend.%any%.healthy: on: [RECV, HASH, HIT, MISS, PASS, FETCH, ERROR, DELIVER, LOG] get: INTEGER +director.%any%.he...
1
1
1
[{"id": "G0", "claim": "Specific error handling is needed for getFromRegex() in each scope's Get() (all.go, error.go, fetch.go, log.go, miss.go, pass.go): val may be nil even when err is nil, so the added `if val, err := v.getFromRegex(name); val != nil { return val, err }` can drop errors; err should be checked and re...
null
ysugimoto__falco__511
ysugimoto/falco
511
defect
f15a3f83705ecb5bc47d9482aaec1d2e73b42c2b
5b95dff87dab076412abc28fbb40e52c22c6c61d
feat: add functionality for setting backend health during testing 🆕
# Changes - Create README.md for backend failover testing example 📄 - Implement backend definitions and directors in backend_failover.vcl 🔧 - Add tests for backend health status and restoration in backend_failover.test.vcl 🧪 - Introduce testing.set_backend_health function for mocking backend health 🛠️ - Add un...
diff --git a/docs/testing.md b/docs/testing.md index ae26546a..ccccadd2 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -310,6 +310,7 @@ We describe them following table and examples: | testing.restore_all_mocks | FUNCTION | Restore all mocked subroutines ...
1
1
0
[{"id": "G0", "claim": "Delete the commented-out debug print statement (pp.Println(\"dynamic boolean\")) left in getOriginHostHeader in interpreter/transport.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ysugimoto__falco__514
ysugimoto/falco
514
defect
f15a3f83705ecb5bc47d9482aaec1d2e73b42c2b
8b48c271c5731508d48cbcf2377eed872ad89d12
feat: add assert.not_restart function and tests 🆕
# Changes - Implement assert.not_restart validation logic in assert_not_restart.go 🔧 - Add assert.not_restart documentation in testing.md 📚 - Create test cases for assert.not_restart in assert_not_restart_test.go 🧪 - Update assertion.test.vcl to include no_restart subroutine 🔄 - Register assert.not_restart in ...
diff --git a/cmd/falco/runner_test.go b/cmd/falco/runner_test.go index 52fd0eda..97048209 100644 --- a/cmd/falco/runner_test.go +++ b/cmd/falco/runner_test.go @@ -345,7 +345,7 @@ func TestTester(t *testing.T) { name: "assertions test", main: "../../examples/testing/assertion/assertion.vcl", filter: "*as...
1
1
0
[{"id": "G0", "claim": "Fix the tiny issue reported by golangci-lint in the new assert.not_restart code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ysugimoto__falco__521
ysugimoto/falco
521
defect
743384ca593c293ca6f8571ee258c48d0fddf127
1258498eac8354e50399998a4ff687d4770f2796
feat: add support for linting VCL snippets with @scope annotation
Fastly VCL snippets are code fragments injected into specific subroutine phases rather than standalone VCL files with subroutine declarations. Previously, falco couldn't lint these files because they lack the `sub vcl_*` wrapper that provides scope context for variable validation. The `@scope` annotation solves this...
diff --git a/ast/vcl.go b/ast/vcl.go index 9975d935..1f9b4d61 100644 --- a/ast/vcl.go +++ b/ast/vcl.go @@ -9,6 +9,7 @@ import ( // VCL is a root of program type VCL struct { Statements []Statement + IsSnippet bool // True if parsed as a snippet (statements without subroutine wrapper) } func (v *VCL) String() s...
2
2
1
[{"id": "G0", "claim": "The documentation's list of available snippet @scope values omits `hit`, which is also a valid scope.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly allocated slice is immediately copied, so ParseVCLOrSnippet coul...
null
ysugimoto__falco__524
ysugimoto/falco
524
defect
0b7c179a9d0d43f247abe34446805a2363d3d193
47000d5551541d2c39cf6f67941fb69b52b49f4a
Json escape fixes
This PR: 1. Relaxes argument type requirements for json.escape accepting non-string variables (ACL and Ident types are still rejected). It also accepts bool literals which matches fastly behavior. 2. Fixes escaping double quote and backslash characters.
diff --git a/interpreter/function/builtin/json_escape.go b/interpreter/function/builtin/json_escape.go index 47c2e285..b31ac04b 100644 --- a/interpreter/function/builtin/json_escape.go +++ b/interpreter/function/builtin/json_escape.go @@ -13,23 +13,27 @@ import ( const Json_escape_Name = "json.escape" -var Json_es...
1
1
0
[{"id": "G0", "claim": "The edit to the `input` field value in Test_Json_escape looks like it reduces whitespace length, and the reviewer asks whether this is intentional.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ysugimoto__falco__525
ysugimoto/falco
525
defect
0b7c179a9d0d43f247abe34446805a2363d3d193
84faab73de73975857a92bb2ef9c405e05930fb7
Req hash handling fix
This PR reimplements '+=' operator for _req.hash_ variable relaxing type requirements so that the behavior better matches fastrly. Allows for STRING and BOOL literals to be used as arguments as well as variables of all types except for
diff --git a/interpreter/assign/addition.go b/interpreter/assign/addition.go index 508361e5..05e9d904 100644 --- a/interpreter/assign/addition.go +++ b/interpreter/assign/addition.go @@ -1,6 +1,8 @@ package assign import ( + "crypto/sha256" + "encoding/hex" "fmt" "math" "time" @@ -9,6 +11,21 @@ import ( "gi...
3
2
0
[{"id": "G0", "claim": "Add test cases for the new req.hash update logic (UpdateHash), even though the logic is simple, to keep consistency for future implementation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since doUpdateHash now handles strings,...
null
ysugimoto__falco__527
ysugimoto/falco
527
defect
0b7c179a9d0d43f247abe34446805a2363d3d193
8a22aff295d3019c259ef0e405bead7ed8a7317d
Fix logical condition with notset string
fixes: https://github.com/ysugimoto/falco/issues/523 Since I implemented `notset` string, I forgot to pay attention for logical operator expression evaluation. Before, we simply compared with empty string like `left.value != ""` but this implementation causes unexpected behavior. This PR fixes this problem and comp...
diff --git a/interpreter/operator/operator.go b/interpreter/operator/operator.go index 73a1c5e2..7856f073 100644 --- a/interpreter/operator/operator.go +++ b/interpreter/operator/operator.go @@ -831,7 +831,7 @@ func LogicalAnd(left, right value.Value) (value.Value, error) { fmt.Errorf("logical AND operator: could ...
2
2
0
[{"id": "G0", "claim": "The test case added in operator_logical_or_test.go duplicates the case at line 127 and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test case added in operator_logical_or_test.go duplicates the case at li...
null
ysugimoto__falco__540
ysugimoto/falco
540
defect
9f59233ae45a7e517f7be5302f9ead43cb62a546
6faca58f2c50cff3bdaa55ed0d7822f0dc708b4a
feat(linter): infer subroutine scope from call graph analysis
- Build call graph by extracting `call` statements from subroutine bodies - Propagate scope from Fastly lifecycle subroutines (vcl_recv, vcl_miss, etc.) to callees - Support transitive inference through call chains - Union scopes when subroutine is called from multiple lifecycle subroutines - Preserve priority: exp...
diff --git a/docs/linter.md b/docs/linter.md index 900ac0d0..4bd788e2 100644 --- a/docs/linter.md +++ b/docs/linter.md @@ -39,11 +39,67 @@ Your VCL will have dependent modules loaded via `include [module]`. `falco` acce ## User defined subroutine -On linting, `falco` could not recognize when the user-defined subro...
3
2
2
[{"id": "G0", "claim": "The new fastlyScopes map in inferSubroutineScopes omits vcl_pipe, so Fastly-generated VCL containing a vcl_pipe subroutine cannot be linted, and the PR should handle vcl_pipe.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
ysugimoto__falco__543
ysugimoto/falco
543
defect
c5b6fef78e5da0361d384947478488ace31c0675
acde33eca6486aab46ece1e6ad774eb476a7e182
Fix random_* functions
- randomstr: fix off-by-one error where last character was never selected and fix default charset typo (missing g/G, duplicate d/D) - randomstr: return `null `for empty charset - randombool: use integer-based comparison instead of float - randombool: return true when `denom <= 0` and `num > 0` - randomint: return 0...
diff --git a/interpreter/function/builtin/randombool.go b/interpreter/function/builtin/randombool.go index 87f55835..4430f406 100644 --- a/interpreter/function/builtin/randombool.go +++ b/interpreter/function/builtin/randombool.go @@ -4,7 +4,6 @@ package builtin import ( "math/rand" - "time" "github.com/ysugim...
1
1
1
[{"id": "G0", "claim": "In Randomstr, the empty-characters branch should return an explicit NotSet string (&value.String{IsNotSet: true}) instead of value.Null, which is only falco's internal value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ysugimoto__falco__544
ysugimoto/falco
544
defect
c5b6fef78e5da0361d384947478488ace31c0675
6996bda87604282fe9a27407d4edf7dc587a91b7
Fix utf8_* functions
- utf8.codepoint_count: return 0 for invalid UTF-8 instead of counting replacement characters - utf8.strpad: the functions used to count bytes instead of codepoint counts for padding calculation. That has been fixed. Also, it now returns NULL for invalid UTF-8 and handles the INT64_MIN edge case - utf8.substr: retur...
diff --git a/interpreter/function/builtin/utf8_codepoint_count.go b/interpreter/function/builtin/utf8_codepoint_count.go index f95d6564..b2d6e034 100644 --- a/interpreter/function/builtin/utf8_codepoint_count.go +++ b/interpreter/function/builtin/utf8_codepoint_count.go @@ -37,6 +37,11 @@ func Utf8_codepoint_count(ctx ...
2
2
2
[{"id": "G0", "claim": "Utf8_strpad should return an explicit NotSet string (&value.String{IsNotSet: true}) instead of the internal value.Null so the interpreter keeps running without error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Utf8_substr...
null
ysugimoto__falco__545
ysugimoto/falco
545
defect
c5b6fef78e5da0361d384947478488ace31c0675
6355dc752fe3694151f846c2af74139dd5ef0c8f
std.anystr2ip: add IPv6 support
Previously, std.anystr2ip explicitly rejected IPv6 addresses with an error. The function now supports IPv6 by falling back to standard parsing after attempting flexible IPv4 parsing (hex/octal notation). Also adds localhost support and returns null when both primary and fallback addresses are invalid.
diff --git a/interpreter/function/builtin/std_anystr2ip.go b/interpreter/function/builtin/std_anystr2ip.go index 119296ac..4070ef54 100644 --- a/interpreter/function/builtin/std_anystr2ip.go +++ b/interpreter/function/builtin/std_anystr2ip.go @@ -132,16 +132,39 @@ func Std_anystr2ip(ctx *context.Context, args ...value....
1
1
1
[{"id": "G0", "claim": "Instead of returning the internal value.Null, the function should explicitly return a NotSet IP as &value.IP{IsNotSet: true} when the interpreter should keep running without error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ysugimoto__falco__552
ysugimoto/falco
552
defect
86ce2c225af0aa4c4b579c13ed7498dd55489cad
0d4381ee4f59c463c16541ecd582e6cb7bb0c0c7
Fix: rate limiter persistence
This PR attempts to fix 2 simulator issues:: 1. currently both ratecounter and penaltybox variables are recreated from scratch for every HTTP request which essentially defeats their purpose. 2. data collection in rate counter implementation is snapped to the nearest second which is unnecessary and make rate counter b...
diff --git a/interpreter/interpreter.go b/interpreter/interpreter.go index a3dfb85a..a1ceaf46 100644 --- a/interpreter/interpreter.go +++ b/interpreter/interpreter.go @@ -33,6 +33,8 @@ type Interpreter struct { ctx *context.Context process *process.Process cache *cache.Cache + rateCounters...
3
3
2
[{"id": "G0", "claim": "The assertEqual helper added in the rate limiter test is not used anywhere and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Bucket calculation still snaps windows to whole 10-second boundaries, while ...
null
ysugimoto__falco__566
ysugimoto/falco
566
defect
28346ebd817fa51cd7f645a3ff47b33e31ed2d56
72c8f008399392ea8c24342c99737f64fbba49c8
implement overwriting req.protocol, closes #565
I took a stab at implementing req.protocol for test and simulate. I hope this is in our interest. If you would like any changes i would be happy to implement.
diff --git a/cmd/falco/runner.go b/cmd/falco/runner.go index 3ea8aced..24e5c8b8 100644 --- a/cmd/falco/runner.go +++ b/cmd/falco/runner.go @@ -430,6 +430,25 @@ func (r *Runner) Simulate(rslv resolver.Resolver) error { options = append(options, icontext.WithInjectEdgeDictionaries(sc.OverrideEdgeDictionaries)) } +...
2
2
1
[{"id": "G0", "claim": "In cmd/falco/runner.go the parseOverrideVariables conditions on strconv.ParseInt/ParseFloat look inverted (should be err == nil), so numeric overrides like -o \"server.port=3124\" are returned as strings, not integers; the reviewer suggests it may be worth fixing.", "category": "correctness", "v...
null