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
zizmorcore__zizmor__1954
zizmorcore/zizmor
1,954
defect
db5ed6b3bb445848a8e7b1920a12c9c664d08a33
120e410a5296b26b31f32b54684608874216e59b
fix(cache-poisoning): evaluate certain cache control expressions
<!-- Thank you for opening a PR! Please make sure to fill out the sections below. --> ## Pre-submission checks Please check these boxes: - [x] **Mandatory**: This PR corresponds to an issue #1940 . - [ ] Having read the [AI policy], I hereby disclose the use of an LLM or other AI coding as...
diff --git a/crates/zizmor/src/audit/cache_poisoning.rs b/crates/zizmor/src/audit/cache_poisoning.rs index 08e5cbb62..22143864b 100644 --- a/crates/zizmor/src/audit/cache_poisoning.rs +++ b/crates/zizmor/src/audit/cache_poisoning.rs @@ -1,5 +1,11 @@ use std::sync::LazyLock; +use github_actions_expressions::call::{Ca...
2
2
1
[{"id": "G0", "claim": "The many consecutive let-else's in the new cache-control parsing/extraction code are displeasing, and the author asks whether there is a better construct around them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tri...
null
zizmorcore__zizmor__849
zizmorcore/zizmor
849
defect
25169a4f0bb9350f870de416a9b3370c7b0151bc
af2236f2833361b3d2cbabf7c231ae9e3d90c333
feat: add CodeQL injection sink data
Closes #743. Closes #417. TODOs: - [x] Finish integrating - [x] Add tests - [x] Credit @Marcono1234 in the commit + release notes (since this is heavily adapted from their PR).
diff --git a/Makefile b/Makefile index 41f52197a..c4ba46f99 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,15 @@ refresh-schemas: .PHONY: webhooks-to-contexts webhooks-to-contexts: support/known-safe-contexts.txt - uv run --script --only-group codegen ./support/webhooks-to-contexts.py + +support/known-safe-conte...
4
4
0
[{"id": "G0", "claim": "Consider storing the sinks as a Vec of (RepositoryUsesPattern, ...) pairs instead of a HashMap keyed by RepositoryUsesPattern, so the pattern type does not advertise (error-prone) equality-based map access and the derived Hash/PartialEq can be dropped.", "category": "design", "verdict": "support...
null
zk-org__zk__154
zk-org/zk
154
defect
73dfc83aeb52ac5b73d319c465c3ae01dfe4e73d
8ae21a93c798b67e70e24a9b3b9ae4a328c2bca8
Make FzF options configurable
This adds the ability to configure the FzF options used by the NewNoteFilter. Here are the sources for the FzF options, in order of precedence (first precedes the second): 1. tool.fzf-additional-args in the note directory config file 2. Default arguments set by zk in `internal/adapter/fzf/fzf.go` 3. Environment...
diff --git a/internal/adapter/fzf/fzf.go b/internal/adapter/fzf/fzf.go index 9e5658be..29c0da5c 100644 --- a/internal/adapter/fzf/fzf.go +++ b/internal/adapter/fzf/fzf.go @@ -26,6 +26,8 @@ var ( type Opts struct { // Preview command executed by fzf when hovering a line. PreviewCmd opt.String + // Optionally preovi...
5
5
3
[{"id": "G0", "claim": "Splitting FZF_DEFAULT_OPTS (and the fzf options) on plain spaces is wrong: use shellquote.Split instead and check the returned error, returning it wrapped, so that a term between quotes is not split at the inner space characters.", "category": "correctness", "verdict": "supported", "priority": "...
null
zk-org__zk__268
zk-org/zk
268
defect
404ef9d6f57f04c19eaabc71775ecd02c74042f8
062b3525699704e1e65665d7e249e6bcfed32ae8
Mmmmulti match
Alternative to #266 - [x] update at least one `docs/` file - [x] update all `zk help` output - [x] confirm `copy()` requirements?
diff --git a/internal/adapter/sqlite/note_dao.go b/internal/adapter/sqlite/note_dao.go index b63f9dfc..af2db829 100644 --- a/internal/adapter/sqlite/note_dao.go +++ b/internal/adapter/sqlite/note_dao.go @@ -12,7 +12,6 @@ import ( "github.com/mickael-menu/zk/internal/util" "github.com/mickael-menu/zk/internal/util/e...
15
14
1
[{"id": "G0", "claim": "Consider copying opts.Match before appending the mention queries, to avoid mutating the caller's slice.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The multi-match AND behaviour should be applied to all match strategies (e...
null
zk-org__zk__304
zk-org/zk
304
defect
a8d1db4c5738b8ae549bf87c079b829396bcbe9e
ad3f63156d663682fc1c00c31d34b7b97b145550
Add `notebook` configuration to set default notebook path
As mentioned on https://github.com/mickael-menu/zk/issues/300. This is the proposed solution to add the default notebook path on the `config.toml`.
diff --git a/docs/config-notebook.md b/docs/config-notebook.md new file mode 100644 index 00000000..25a76b98 --- /dev/null +++ b/docs/config-notebook.md @@ -0,0 +1,13 @@ +# Notebook configuration + +The `[notebook]` section from the [configuration file](config.md) is used to set the default notebook directory. +If the ...
1
1
1
[{"id": "G0", "claim": "Parsing `notebook.dir` from every config.toml is wrong because the key makes no sense (and could be incorrect) in a notebook-local config, so it should be parsed only from the global config file, ideally with an error when set inside a local config.toml.", "category": "correctness", "verdict": "...
null
zk-org__zk__402
zk-org/zk
402
defect
45b68121cec9fb0f844a3dc5295dbc149765018a
a9c5e8c88df6f3af555b5666b389f32f73be041a
allow notebook as hidden dir
resolves: #271 The `index` function of `zk` calls a directory walk. That walk function was set to ignore all directories and files that had a period as a prefix. This applied then to the notebook root directory itself. This also effected commands such as `zk list`. This fix is an initial approach to solving that by c...
diff --git a/internal/core/note_index.go b/internal/core/note_index.go index 6bdf95ea..f2dcb44f 100644 --- a/internal/core/note_index.go +++ b/internal/core/note_index.go @@ -150,7 +150,8 @@ func (t *indexTask) execute(callback func(change paths.DiffChange)) (NoteIndexin return false, nil } - source := paths.Wal...
1
1
0
[{"id": "G0", "claim": "The new notebookPath line in note_index.go uses spaces where the file uses tabs and should be reformatted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zk-org__zk__442
zk-org/zk
442
defect
4a51e398ae4572b2a1338fd9017ceeff30e5ffda
7a4f2ac6860936b23819d24e7742a5737b2f6967
Refactor tilde expansion
We added tilde expansion for note.template so users can share template files between notebooks in https://github.com/zk-org/zk/pull/431. We however overlooked that tilde / home dir expansion was already being implemented in isolation for the global notebook directory in container.go. I've refactored that code int...
diff --git a/internal/adapter/handlebars/handlebars.go b/internal/adapter/handlebars/handlebars.go index 6b89fa07..f1c4d80e 100644 --- a/internal/adapter/handlebars/handlebars.go +++ b/internal/adapter/handlebars/handlebars.go @@ -61,7 +61,6 @@ type LoaderOpts struct { } // NewLoader creates a new instance of Loade...
6
4
1
[{"id": "G0", "claim": "The tesh test suite fails on GitHub CI although it passes locally, with no known cause.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "If expanding the note template path returns an error, config parsing stops entirely instea...
null
zk-org__zk__60
zk-org/zk
60
defect
dba28a6436d155f0d2683b182b0f35a34ba7601a
4d893b9bd6934170d181b5dafe460802700bec1c
Add "abs-path" to template-format
Adds a full path for the note to the list template to make integration easier.
diff --git a/docs/template-format.md b/docs/template-format.md index bd6e39a6..ce136c1d 100644 --- a/docs/template-format.md +++ b/docs/template-format.md @@ -5,6 +5,7 @@ The following variables are available in the templates used when formatting note | Variable | Type | Description ...
2
2
1
[{"id": "G0", "claim": "Rename the new template variable `full-path` to `abs-path`, as used in a similar context.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unit tests no longer pass with this change and should be fixed (`make test`).", "category...
null
zk-org__zk__638
zk-org/zk
638
defect
fb45445d3ceb7f21094beefbf9118f9e33f87e1b
a0feefc6859634badd16585f551875631d99b631
Use AST to find links in LSP
Commented links are recognised by the LSP as "real" links, despite them not being actual links on the document. Parsing by the LSP is done with its own bespoke logic, but we already have a perfectly working markdown parser which we use in non-LSP contexts. Use the same markdown parser in the LSP, so we don't have to...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c4ba6043..5ddf6393 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ Format: `<description> (by <contributor>, <pr number>)` ### Fixed -... +- Ignore commented links for LSP diagnostics. Use an AST to parse files, fixing + other similar edge cases. ##...
1
1
0
[{"id": "G0", "claim": "The CHANGELOG entry added by this PR omits the contributor name and PR number that the file's documented format `<description> (by <contributor>, <pr number>)` prescribes, and tjex asks whether that attribution pattern should be kept since it aids traceability and recognises contributors.", "cat...
null
zk-org__zk__667
zk-org/zk
667
defect
7f88ba47fd77fe5b5c2808bebe649df346435241
a9201d07486ffb0152171b9ac0626f40cc375548
Prevent out-of-bounds crashes of `textDocument/completion`
## Description The `zk` LSP server panics and crashes when receiving a `textDocument/completion` request with a `position.character` that exceeds the current line's length. ## Panic Log ```text panic: runtime error: slice bounds out of range [:8] with capacity 7 goroutine 13 [running]: github.com/zk-org/z...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c216e7fd..992f9899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ Format: `<description> (by <contributor>, <pr number>)` - Links in markdown footnotes now included in :ZkLinks (by @WhyNotHugo, 639) - Indexing notebook now 35% and 74% faster for full and ...
1
1
1
[{"id": "G0", "claim": "In IsTagPosition, charIdx is a UTF-16 offset but the bounds check compares it against len(line) in UTF-8 bytes, so there are cases where invalid out-of-range input would slip by.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zk-org__zk__671
zk-org/zk
671
defect
8cfe960b1552a99a27dd3d9e06b47143e1ca4186
6fd8a8e78ef45919c638f102041c7becfdd1c4fb
lsp: Provide completion after [[ on lines with multi-byte characters
## Description The `zk` LSP server doesn't provide completion items under specific conditions. ## Reproduction Context 1. Open `tests/fixtures/completion/Item2.md` with the editor that supports LSP. 2. Put the cursor at the end of line 4. (`日本語 [[|`) 3. Invoke `textCompletions/completion` manually. * tr...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 992f9899..91077e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Format: `<description> (by <contributor>, <pr number>)` - Indexing notebook now 35% and 74% faster for full and incremental indexing respectively (by @WhyNotHugo, 642) - Stop crashing ls...
6
5
1
[{"id": "G0", "claim": "The completion fixture's zk config file is over 200 lines, largely comments from the original example, and should be reduced to the strictly minimal lines necessary for the tests to work.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
zkVerify__zkVerify__233
zkVerify/zkVerify
233
defect
f6c7012b4fe6839dda55024fd225a0b41ecb2572
5bb6ee9a42e2c9a3296051a25f4feba1a2845d64
Update consensus params
This PR updates many consensus parameters. See individual commit titles for a quick overview. Tests are updated accordingly.
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index ae0318329..38b6d2656 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -105,7 +105,7 @@ pallet-proofofsql-verifier = { workspace = true } authority-discovery-primitives = { workspace = true, optional = true } -polkadot-primitives = { workspace = ...
6
4
1
[{"id": "G0", "claim": "The payout tests should expose/use adjustable constants so that expected values do not have to be manually modified in every test when inflation and reward distribution rules change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
zkVerify__zkVerify__3
zkVerify/zkVerify
3
defect
24abcb4240d388c0fb6b92b27526d1759bb6d364
1c2580b6e9e21bc9cebef38b1236e4084f4ce0f9
Test framework proposal
This PR adds: - a sample unit test - a sample integration test, disguised as unit test - a few examples (along with a lot of documentation)for writing and executing end-to-end tests with zombienet
diff --git a/Cargo.lock b/Cargo.lock index e004bda8a..84932bdbc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4421,6 +4421,7 @@ dependencies = [ "sp-core", "sp-genesis-builder", "sp-inherents", + "sp-io", "sp-offchain", "sp-runtime", "sp-session", diff --git a/Cargo.toml b/Cargo.toml index 0c8d5c5a5..70be046...
17
16
1
[{"id": "G0", "claim": "The test function should be named check_aura_config_in_genesis_block, since it verifies the aura configuration in the genesis block, not babe.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mock runtime passed to cons...
null
zkVerify__zkVerify__32
zkVerify/zkVerify
32
defect
ba1fc32c84d82db2f5dfdc8d59e16f18fe74893c
7a76b90ee45b0c0946033063b7ea021a2777585b
Add runtime tests
This PR adds few runtime tests to check the correct configuration of several pallets (e.g. those involved with staking). It also extends the proofPath E2E test to verify that the expected timeout is respected when publishing a new attestation after the submission of its first proof.
diff --git a/e2e-tests/js_scripts/0005-proofPath_rpc.js b/e2e-tests/js_scripts/0005-proofPath_rpc.js index f8c7edbe7..b564f6688 100644 --- a/e2e-tests/js_scripts/0005-proofPath_rpc.js +++ b/e2e-tests/js_scripts/0005-proofPath_rpc.js @@ -10,8 +10,8 @@ const Keccak256 = require('keccak256') // Hardcoded proof hashes ...
8
7
0
[{"id": "G0", "claim": "Put the authorship tests in their own `authorship` module and factor the digest-initialisation logic into an `initialize` function called by each of those tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `assert_...
null
zkVerify__zkVerify__97
zkVerify/zkVerify
97
defect
8a176d03f67a52a6ccaa7311b5b517a27dcb2fb5
ac93edf03b6a83bec268464dd9e948f09d29073b
Restore ignored benches
This PR introduces 2 main changes. First, it updates the runtime configuration for the `dev` chain, in order to fix the automatic benchmarks for `pallet_session`. Second, it includes manually computed weights for BABE and GRANDPA. Such weights have been computed following what has been done for the default Substr...
diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 40b2c59d5..a9cdaed23 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -345,7 +345,7 @@ fn genesis( .collect::<Vec<_>>(), }, "staking": { - "minimumValidatorCount": 2, + "minimum...
4
4
1
[{"id": "G0", "claim": "Avoid the conditional in node/zkv-deploy-weight-template.hbs by renaming the election-provider-support entry in the define_benchmarks macro in runtime lib.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment in runti...
null
zkat__cacache-rs__35
zkat/cacache-rs
35
defect
1b29e7435c43ea6df6689f8450ee92f69e5febcb
0c5433628b5ebf2e1b564ec7b2d3392928c22dae
Fixes issue #34: set tmpfile length in async writer
The async `poll_write()` implementation was creating a tempfile as a backing for its inner mmap, but it was failing to set the length on the file to match the incoming data. Compare with the sync implementation! This bug was exposed when the `memmap2` crate was swapped in for `memmap`. The older crate was likely mor...
diff --git a/src/content/write.rs b/src/content/write.rs index 677bb2b..4471c37 100644 --- a/src/content/write.rs +++ b/src/content/write.rs @@ -10,6 +10,7 @@ use async_std::task::{self, Context, JoinHandle, Poll}; use futures::io::AsyncWrite; use futures::prelude::*; use memmap2::MmapMut; +// use memmap::MmapMut; ...
1
1
0
[{"id": "G0", "claim": "Remove the commented-out `// use memmap::MmapMut;` line left over from experimentation in src/content/write.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zkat__miette__170
zkat/miette
170
defect
0a4cf4ad24eb668d6668400b9ab3e8c896b33e3a
2b9b6af79e3588ece435a188487f0e5fcf802769
Render inner diagnostics
Previously `#[diagnostic_source]` did not correctly render the inner diagnostic. This PR fixes that. There's a change here that can be considered controversial: - Only print newlines when there is an actual header (in ad9d0378ddd6dd4a6b9e650dd6aa62116da65910) I am fine with removing it, but then the nested dia...
diff --git a/miette-derive/src/diagnostic_source.rs b/miette-derive/src/diagnostic_source.rs index 949defed..d423aaa4 100644 --- a/miette-derive/src/diagnostic_source.rs +++ b/miette-derive/src/diagnostic_source.rs @@ -59,7 +59,8 @@ impl DiagnosticSource { }; quote! { ...
4
2
0
[{"id": "G0", "claim": "The change adds extra blank-line whitespace to the rendered report output (e.g. for related errors) and there should not be extra whitespace there.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rendering inner diagnostics in...
null
zkat__miette__273
zkat/miette
273
defect
91e5f5b7e347b921921bac7135c56c600abb1fab
3a962ab5e363b656115857a1b2d52a4b910f6ad3
fix(protocol): add StdError impl for Box<dyn Diagnostic + Send + Sync>
Adds `std::error::Error` impls for `Box<dyn Diagnostic + Send + Sync>` (and other variants). Fixes #272.
diff --git a/src/protocol.rs b/src/protocol.rs index 7531db1f..f516984f 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -69,14 +69,26 @@ pub trait Diagnostic: std::error::Error { } } -impl std::error::Error for Box<dyn Diagnostic> { - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - ...
1
1
1
[{"id": "G0", "claim": "The `Report` import in tests/test_derive_source_chain.rs is unused, which makes the tests fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
zkat__miette__313
zkat/miette
313
defect
d37ada876a5831d3f47622274e334c9a24aa5d2b
ba65bae4d38741fb0b920272c8db96a5f2ce7c9f
add syntax highlighting support with syntect crate
To do after finalizing design: * test cases * better docs
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 912bfcc4..da04558c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: + features: [fancy, syntect] rust: [1.56.0, stable] ...
10
8
5
[{"id": "G0", "claim": "A bunch of tests currently fail with the syntect feature flag because highlighting inserts unexpected ANSI codes into their output, so a helper to disable highlighting should be added for those tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ...
null
zkat__miette__39
zkat/miette
39
defect
5d5e33d108f6c1340501927d15b0afff23a9e5f3
57ab15068a2148997b97d2d6580ee53660ff3bfd
Show snippet message for unnamed sources
Fixes #38
diff --git a/src/printer/graphical_printer.rs b/src/printer/graphical_printer.rs index 897c65f4..fdd5cf70 100644 --- a/src/printer/graphical_printer.rs +++ b/src/printer/graphical_printer.rs @@ -189,23 +189,34 @@ impl GraphicalReportPrinter { .len(); // Header + write!( + f, + ...
1
1
0
[{"id": "G0", "claim": "The new unnamed_snippet_shows_message test should compare against the entire rendered message instead of only asserting that the snippet message substring is present.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zkat__miette__52
zkat/miette
52
defect
eb07d5bd66928457b4f3affe96aa6a0d39f642f7
84f54339989276be28fdd9b72a5ca7c075fc06cb
Fix end of previous line wrongly being included in highlight
when the highlight span starts at the very begining of a line, the highlight currently includes the line above Before: ![image](https://user-images.githubusercontent.com/1283854/132992741-b8b45eb7-4a44-46fe-a508-facfae4a62d5.png) After: ![image](https://user-images.githubusercontent.com/1283854/132992745-81...
diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs index 7de496e7..f64c3882 100644 --- a/src/handlers/graphical.rs +++ b/src/handlers/graphical.rs @@ -592,7 +592,7 @@ impl Line { fn span_applies(&self, span: &FancySpan) -> bool { // Span starts in this line - (span.offset() >= sel...
3
3
3
[{"id": "G0", "claim": "The pull request's change breaks some of the existing tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The header lines in the test expectations are meant to span the full 80-character terminal width, so the header diffs...
null
zkat__miette__82
zkat/miette
82
defect
979722da3bf139f99c89b4ec7e0e2c6244184e4e
5228153c4214e846f8d105e910f4e29f75c010e4
Add replace tabs with spaces option
Closes #73 Makes it possible to replace tabs with spaces. This is needed because highlight line renderers are not aware of displayed tab width and appear in wrong places if line contains tabs.
diff --git a/README.md b/README.md index 4d19c5cf..055d372b 100644 --- a/README.md +++ b/README.md @@ -389,6 +389,7 @@ miette::set_hook(Box::new(|_| { .terminal_links(true) .unicode(false) .context_lines(3) + .with_tab_width(4) .build()) })) diff --git a/src/handlers/graphi...
3
2
1
[{"id": "G0", "claim": "The README example should call `.tab_width(4)` instead of `.with_tab_width(4)`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `.tab_width()` option should also be exposed through `MietteHandler`'s options, since that is the r...
null
zkcrypto__ff__88
zkcrypto/ff
88
defect
9b9a8d9c363ecbf7bb4c79998aaed32c1f8ce027
bb3799848b28875990f7626732ecbe257c952e9e
Use `checked_shr` instead of `>>` in `Field::random`
In some edge cases, `REPR_SHAVE_BITS` could be 64, causing an overflow if using `>>`. So use `checked_shr` instead. This overflow can be reproduced using the following modulus: ``` #[derive(PrimeField)] #[PrimeFieldModulus = "394020061963944792122790401001436138050797392704654466679482934042457217714968703290472...
diff --git a/ff_derive/src/lib.rs b/ff_derive/src/lib.rs index 4c670cf..0edab29 100644 --- a/ff_derive/src/lib.rs +++ b/ff_derive/src/lib.rs @@ -1233,7 +1233,9 @@ fn prime_field_impl( }; // Mask away the unused most-significant bits. - tmp.0.as_mut()[#top_l...
2
2
1
[{"id": "G0", "claim": "Add a comment explaining why `checked_shr(...).unwrap_or(0)` is always sufficient, given that `REPR_SHAVE_BITS` could be 64 and there will be at most one spare limb to accommodate values of up to twice the modulus.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
zkoss__zk__2312
zkoss/zk
2,312
defect
eb736b513b147bc023f4cd21477ef6ebc3987b87
b8b018314ee9cf0946d5ece33b2b768bf4faf6bd
ZK-3317:Listbox with hflex="min" produces a horizontal scrollbar
ZK-3317:Listbox with hflex="min" produces a horizontal scrollbar
diff --git a/zkdoc/release-note b/zkdoc/release-note index 89e22a106d4..60da2e41af3 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -72,6 +72,9 @@ ZK 9.5.1 ZK-4717: Interrupted Fileupload cause further createComponents without parent to fail ZK-4720: show a hidden panel causes Uncaught RangeError: Max...
2
2
1
[{"id": "G0", "claim": "Handle the no-scroll case: the scrollbar width should only be added when the widget body has a vertical scroll, as suggested (zk(wgt.ebody).hasVScroll() ? jq.scrollbarWidth() : 0).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
zkoss__zk__2325
zkoss/zk
2,325
defect
ea7c08f122fde84a8d1ad16225b4af8b626d13f7
dcbad95dc5ece49a7f8b3c8c55f9b489c07ffe3b
refine ZK-3317: Listbox with hflex="min" produces a horizontal scrollbar
refine ZK-3317: Listbox with hflex="min" produces a horizontal scrollbar
diff --git a/zktest/test/java/org/zkoss/zktest/zats/test2/B95_ZK_3316Test.java b/zktest/test/java/org/zkoss/zktest/zats/test2/B95_ZK_3316Test.java index ebfa76f5e99..feb25a61119 100644 --- a/zktest/test/java/org/zkoss/zktest/zats/test2/B95_ZK_3316Test.java +++ b/zktest/test/java/org/zkoss/zktest/zats/test2/B95_ZK_3316T...
2
2
0
[{"id": "G0", "claim": "Use the component-id selectors $grid1 and $grid2 instead of the positional class selectors (grid.eq(0), jq(\".z-grid\").eq(1)) in B95_ZK_3316Test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Use find(\".z-listcell-co...
null
zkoss__zk__2337
zkoss/zk
2,337
defect
e34749eeda2758e6a74656715f2a3de301da176b
031deea2d3ffa5f165f2949631c40719dc4638f2
ZK-4742: client side http error handling not reachable
ZK-4742: client side http error handling not reachable
diff --git a/zk/src/archive/web/js/zk/au.js b/zk/src/archive/web/js/zk/au.js index 92c4b695e33..1c540c8f5b0 100644 --- a/zk/src/archive/web/js/zk/au.js +++ b/zk/src/archive/web/js/zk/au.js @@ -917,7 +917,7 @@ zAu.beforeSend = function (uri, req, dt) { _onResponseReady: function (response) { var reqInf = zAu.ajaxRe...
2
2
2
[{"id": "G0", "claim": "The new test B95_ZK_4742Test should declare a @ClassRule ExternalZkXml CONFIG (pointing at the test's own zk.xml) so it runs with the custom error-uri config it is meant to exercise.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
zkoss__zk__2385
zkoss/zk
2,385
defect
041b846ba88720b79058a977ad6137c6fd86f7c9
eade7e27bc6c6823c660b23e40d1cdfc03338ff4
ZK-4760: default error message box hard coded width (too small)
ZK-4760: default error message box hard coded width (too small)
diff --git a/zkdoc/release-note b/zkdoc/release-note index bb38edcec7f..bec37b0cf32 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -109,6 +109,7 @@ ZK 9.5.1 ZK-4774: ZK-4754 follow-up javascript error if pdfviewer detach before content loaded ZK-4775: ZK client engine stops, after single connection f...
4
4
1
[{"id": "G0", "claim": "The new test entry should be marked runnable in zats (##zats##) instead of ##manually## in zktest config.properties.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The message box should be capped with max-width: 100vw instead of...
null
zkoss__zk__2405
zkoss/zk
2,405
defect
65a7d66f8533cb1531b04c12de4cbc0faea1ab5d
7e9c630cad6fd5a026ed5e6954cec381bf65d025
ZK-4631: Add option to choose toolbar overflow icon
ZK-4631: Add option to choose toolbar overflow icon
diff --git a/zkdoc/release-note b/zkdoc/release-note index bec37b0cf32..0bbc5c66e65 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -1,3 +1,7 @@ +ZK 9.6.0 +* Features + ZK-4631: Add option to choose toolbar overflow icon + ZK 9.5.1 * Features ZK-4118: Add zk.edge_legacy for old version Microsoft Edge ...
6
6
2
[{"id": "G0", "claim": "The new toolbar attribute should be named overflowPopupIconSclass instead of iconSclass.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The overflow-icon sclass handling should follow the existing Bandbox iconSclass pattern rather...
null
zkoss__zk__2411
zkoss/zk
2,411
defect
8ebd2e496313af5851788eceb3aeeb95baa52609
0c6c1f6de44f882b770f66481fbc4b609d35f049
ZK-4597: Disabled Combobutton should not be able to focus or controlled by keyboard
ZK-4597: Disabled Combobutton should not be able to focus or controlled by keyboard
diff --git a/zkdoc/release-note b/zkdoc/release-note index 757264a958c..ba1a1d14346 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -3,6 +3,7 @@ ZK 9.6.0 * Bugs ZK-4762: listbox with frozen columns cannot show all headers under non-100% zoom level(non-smooth) + ZK-4597: Disabled Combobutton should no...
4
3
1
[{"id": "G0", "claim": "Add a test case that toggles the combobutton's disabled state dynamically.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Zats test should use isZKLogAvailable to check the Clients.log output instead of the current assertions...
null
zkoss__zk__2418
zkoss/zk
2,418
defect
c0a6e25cf3ad051d178bd8e5dbac9e037d18a893
e193b6b9f04eb00585c0e9b38ce4b574d75491e1
ZK-4783: Modify error message box CSS design (provide scrollbar while word-break fail)
ZK-4783: Modify error message box CSS design (provide scrollbar while word-break fail)
diff --git a/zkdoc/release-note b/zkdoc/release-note index 1c10e2cf0b0..48400107b39 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -1,5 +1,6 @@ ZK 9.6.0 * Features + ZK-4783: Modify error message box CSS design (provide scrollbar while word-break fail) * Bugs ZK-4762: listbox with frozen columns c...
4
4
0
[{"id": "G0", "claim": "The five theme tests repeat the same click-and-assert block, so extract it into a shared test method instead of duplicating it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Assertions are written without a space after t...
null
zkoss__zk__2443
zkoss/zk
2,443
defect
e6e9176bf05984e5cc4f20f07dced25162f67cc2
d783876e494bacf9ab2613a1f74afffd60265c8e
refine ZK-4330 nested tree item checkmark disappears automatically
refine ZK-4330 nested tree item checkmark disappears automatically
diff --git a/zul/src/org/zkoss/zul/Tree.java b/zul/src/org/zkoss/zul/Tree.java index 2b9fa7061be..8a1dbce6032 100644 --- a/zul/src/org/zkoss/zul/Tree.java +++ b/zul/src/org/zkoss/zul/Tree.java @@ -244,7 +244,7 @@ public class Tree extends MeshElement { addClientEvent(Tree.class, ZulEvents.ON_PAGE_SIZE, CE_DUPLICATE_...
1
1
1
[{"id": "G0", "claim": "Find out why onSelect(item) becomes chgSel \"\" (the PR's change makes the onSelect event fire with an empty selection).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zkoss__zk__2612
zkoss/zk
2,612
defect
9429e81e34dc5c306f1d913ddd72efc8269443b1
caf57ed63396cd48827ea21ad22c38f44221609a
ZK-4543: Calendar should respect the constraint while Month changing
ZK-4543: Calendar should respect the constraint while Month changing
diff --git a/zkdoc/release-note b/zkdoc/release-note index c4e8569a8bb..33bfabea835 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -125,6 +125,7 @@ ZK 9.6.0 ZK-4922: zEmbedded upload fails ZK-4923: zEmbedded download fails ZK-4937: incorrect content-type response header of a request to fontawesome...
4
4
1
[{"id": "G0", "claim": "The null-value default date should live in a _getSelectedValue helper returning this._selectedValue || today instead of being assigned inside getTime().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new _isSelectDisabled stat...
null
zkoss__zk__2637
zkoss/zk
2,637
defect
3b48bed20f7219cb488058c8749e381aef06306b
f893d73982b46b56ddcb506aa6a676e6b55727f7
ZK-4868: signature background color should be white while setBackgroundColor(null)
ZK-4868: signature background color should be white while setBackgroundColor(null)
diff --git a/zkdoc/release-note b/zkdoc/release-note index f6bf910037b..5eb5e392b59 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -147,6 +147,7 @@ ZK 9.6.0 ZK-4535: Combobutton toolbar mold has a border ZK-4944: zEmbedded doesn't clean client-side object and references on destroy ZK-4953: zEmbedd...
2
2
0
[{"id": "G0", "claim": "The test instruction misspells 'should' as 'shoud' and should read 'should'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should get the canvas color to verify the background, using the linked canvas pixel-color ...
null
zkoss__zk__2859
zkoss/zk
2,859
defect
b6186cfd37c10e9762b6b6f776b6c5ac3f366dda
947d3a1be54c8348702dc78e87f06caad7b575f4
ZK-5177: signature saves a background image into a larger one
should commit alongside with https://github.com/zkoss/zkcml/pull/971
diff --git a/zkdoc/release-note b/zkdoc/release-note index 97cd7e3ed2a..702667d4bf5 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -23,6 +23,7 @@ ZK 9.6.3 ZK-5223: the if element doesn't keep the position of its child component ZK-5176: signature backgroundImage doesn't accept an absolute path ZK-...
1
1
0
[{"id": "G0", "claim": "Add the test steps and expected result to the new B96-ZK-5177.zul test case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zkoss__zk__2992
zkoss/zk
2,992
defect
15fbfc21bfdf8cd22511127a73b2d86de268b838
b69f9bfb6e7d024c2009579cae5394dea70de49e
ZK-5502: Allow users to customize tooltip on the icon, ZK-5503: Allow users to set multiple icons and tooltips on the same LabelImageElement
This PR should be merge alongside zkoss/zkcml#1043.
diff --git a/zkdoc/release-note b/zkdoc/release-note index 8e084bb8524..241c4b6ac07 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -8,6 +8,8 @@ ZK 10.0.0 ZK-5270: Adjust ID generation mechanism in ZHTML Component ZK-5422: Provide some utile APIs to update IComponent Tree ZK-5215: Support load loca...
2
2
2
[{"id": "G0", "claim": "The icon-font setter should not keep the array-capable name setIconSclass; a separate setIconSclasses method should be used for array values.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The icon-font getter should not return an...
null
zlabjp__nghttpx-ingress-lb__460
zlabjp/nghttpx-ingress-lb
460
defect
fe2c0ad8a7095d25d87d9dc38b55e924906dc32b
ea9e22d5b992019ec0d06b6c4f42b388a95f71df
Remove OCSP
Remove OCSP because the next version of nghttpx does not support it.
diff --git a/Dockerfile b/Dockerfile index dbf5048d..1c7796bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,7 +91,7 @@ COPY --from=build --link /usr/local/bin/nghttpx /usr/local/bin/ COPY --from=build --link /usr/local/lib/nghttp2/reuseport_kern.o \ /usr/local/lib/nghttp2/ COPY --link image/var/log/nghttpx /va...
2
2
0
[{"id": "G0", "claim": "The writeTLSCred comment's phrase \"tlsCred in their files\" is unclear and should be reworded to say the TLS private key and certificate content are written to the file paths in tlsCred.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
zlib-ng__zlib-ng__1033
zlib-ng/zlib-ng
1,033
defect
e128537d4db2a4bec431d75b92b7b8e01fbf8bd7
3a5d6dcf4ae05f49a1a13c7c4653c0cc026de2fe
Reorganize inflate window layout
This commit merges in the Intel inflate changes for crc32 pclmulqdq: https://github.com/jtkukunas/zlib/commit/62b7616b0bad4ff088f1a73d0fa11159b6925fbb Here is Jim Kukunas original notes from the commit: > This commit significantly improves inflate performance by reorganizing the window buffer into a contiguous w...
diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml new file mode 100644 index 0000000000..865508a939 --- /dev/null +++ b/.github/workflows/perf.yml @@ -0,0 +1,79 @@ +name: CI Perf +on: [push] +jobs: + ci-perf: + name: Windows + runs-on: [self-hosted, Windows, X64] + + steps: + - name: Che...
7
6
5
[{"id": "G0", "claim": "The new inflate_fast pointer setup over the single window allocation is wrong: out is recomputed from window+wsize+wnext instead of caching the output start, safe subtracts both STD_MAX_MATCH and chunksize which makes no sense, and the guard bytes are included in the window size rather than in a...
null
zlib-ng__zlib-ng__1049
zlib-ng/zlib-ng
1,049
defect
b418e9c85ba06ff3bf8bc23f0704be2f308f732b
23ae6d26245dc6d27af0f6a1a465db8f7907045f
IBM Z: Adjust compressBound() for DFLTCC (and several other fixes)
Hi, a bug with `compressBound()` + DFLTCC was discovered in zlib. While porting the fix to zlib-ng, I also stumbled upon several other problems. This PR fixes them all. Best regards, Ilya
diff --git a/Makefile.in b/Makefile.in index 8e855e456d..928805fc58 100644 --- a/Makefile.in +++ b/Makefile.in @@ -231,7 +231,7 @@ infcover.o: $(SRCDIR)/test/infcover.c zlib$(SUFFIX).h zconf$(SUFFIX).h zlib_name $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/test/infcover.c infcover$(EXE): infcover.o $(STATICLIB) ...
3
3
0
[{"id": "G0", "claim": "The magic numbers in DEFLATE_BOUND_COMPLEN should get a comment detailing what the numbers mean and/or how to verify they are correct after future changes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In compressBound(), ...
null
zlib-ng__zlib-ng__1071
zlib-ng/zlib-ng
1,071
defect
5b0ffa63f22d4870ae68de38c34f7ec437e7edb1
4134223230dec7382fcc7d50f99b13331efeb429
Fix deflateBound and compressBound returning very small size estimates.
Fixes deflateBound and compressBound returning very small size estimates. Remove workaround in switchlevels.c, so we do actual testing of this. I also made a few of the magic numbers more understandable by using defines, I would have liked to do so with the rest too. ## I reasoned that the `+ 13` comes from co...
diff --git a/compress.c b/compress.c index de45e29e6a..b3177c681a 100644 --- a/compress.c +++ b/compress.c @@ -92,9 +92,10 @@ z_size_t Z_EXPORT PREFIX(compressBound)(z_size_t sourceLen) { #ifndef NO_QUICK_STRATEGY /* Quick deflate strategy worse case is 9 bits per literal, rounded to nearest byte, - plus ...
3
2
1
[{"id": "G0", "claim": "The 7 bits used for rounding in the new bound formula seem wrong - they round the overhead up to 20 bits where 16 or 24 would be expected, leaving the extra +1 byte at the end that a 16- or 24-bit-aligned constant would make unnecessary.", "category": "correctness", "verdict": "supported", "prio...
null
zlib-ng__zlib-ng__1132
zlib-ng/zlib-ng
1,132
defect
81f19715ba9337f76622aaa082ef2f7d2d76fdd4
ad18ebafdb211569264011c495ae8ecfc626d283
Move macros from zutil.h to zbuild.h
This removes the dependency of zutil.h in several files. Why does it matter? Because zutil.h includes zlib.h. We should only include zlib.h or zlib-ng.h where it is absolutely necessary.
diff --git a/adler32.c b/adler32.c index 499adbb60b..42e7b0fe25 100644 --- a/adler32.c +++ b/adler32.c @@ -4,7 +4,6 @@ */ #include "zbuild.h" -#include "zutil.h" #include "functable.h" #include "adler32_p.h" diff --git a/arch/x86/adler32_avx2.c b/arch/x86/adler32_avx2.c index 3d49a5b848..bd3547d0b1 100644 --- ...
3
2
1
[{"id": "G0", "claim": "The added `#include <malloc.h>` in zutil_p.h is unnecessary because posix_memalign only requires stdlib.h, which is already included.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some files such as inftrees.c need the n...
null
zlib-ng__zlib-ng__1352
zlib-ng/zlib-ng
1,352
defect
d38dd9240f2de436769c9ce9549e15cb0d0cfd32
cef8ed568fb2f24b852b02c3e2f5efd69d54a064
Introduce ZLIB_COMPAT_TESTS
This patch adds the ability to run zlib-ng test suite against the original zlib as follows: cmake -DZLIB_COMPAT=ON -DZLIB_COMPAT_TESTS=ON LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu make test The benefit of this is that modifications to the original zlib can be tested with a more extensive zlib-ng's testsu...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ca63a30f4..2e4a5f9e99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,7 @@ endif() option(WITH_GZFILEOP "Compile with support for gzFile related functions" ON) option(ZLIB_COMPAT "Compile with zlib compatible API" OFF) option(ZLIB_ENABLE_TESTS "Build ...
3
3
1
[{"id": "G0", "claim": "The option name ZLIB_COMPAT_TESTS is confusing (it implies testing conformity of the zlib-compatible API, the opposite of what is documented) and should be renamed, with the reviewer suggesting a name like ZLIBNG_ENABLE_TESTS defaulted to ON.", "category": "design", "verdict": "supported", "prio...
null
zlib-ng__zlib-ng__1377
zlib-ng/zlib-ng
1,377
defect
3eab3173ac7d1d53457452f3cd1eaeea5b2d43df
dde89a791f419963948b50c9669be9f27981f723
Fix definition of z_size_t to match documentation of legacy zlib API.
Legacy zlib changed definition of `z_size_t` to smallest unsigned type that can hold a pointer value after we forked, but this was never merged in. We currently avoid including standard headers in our own headers as some standard headers must be included in specific order, otherwise we could just include `stddef.h` ...
diff --git a/PORTING.md b/PORTING.md index 3875ccc965..521a02b775 100644 --- a/PORTING.md +++ b/PORTING.md @@ -43,7 +43,8 @@ certain value will need to be updated. - Static library is *libz.a* on Unix and macOS, or *zlib.lib* on Windows - Shared library is *libz.so* on Unix, *libz.dylib* on macOS, or *zlib1.dll* o...
3
2
0
[{"id": "G0", "claim": "The type introduced for the legacy-compat lengths should be a distinctly named, self-describing type (suggestions: zng_size_t, zng_max_t, zng_uintmax_t) instead of z_ulong_t, whose name invites confusion with size_t.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int...
null
zlib-ng__zlib-ng__1625
zlib-ng/zlib-ng
1,625
defect
fb753015a5d5e48853a6e5ad9d6140c5ee246c3a
0ff2e706cb5acb8524ec4b64069de0b193802c63
Add linter workflow for whitespace errors.
zlib-ng/zlib-ng#1190 Example of a failure run: https://github.com/nmoinvaz/zlib-ng/actions/runs/7332708222/job/19967228971
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..6d9ba5d718 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint +on: [pull_request] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout repositor...
2
2
0
[{"id": "G0", "claim": "It is unclear that disabling core.autocrlf in the lint workflow is useful when the repository otherwise actively enables autocrlf via .gitattributes, so the setting should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
zlib-ng__zlib-ng__1654
zlib-ng/zlib-ng
1,654
defect
1aa53f40fc84cd3e9264ef9b5878d641b5ee500a
db5af24667a2fe5e50066b291bc38ee587a1dd53
Sync changes with zlib 1.3.1
A lot of the other changes didn't apply to us because either we don't have those contribs or we have already made such changes.
diff --git a/LICENSE.md b/LICENSE.md index adb48d4729..e866d7ac18 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -(C) 1995-2013 Jean-loup Gailly and Mark Adler +(C) 1995-2024 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the au...
4
3
0
[{"id": "G0", "claim": "The unconditionally declared and defined gz_intmax() is not required — it is not exported in zlib and its removal does not affect the ABI — and, if it is kept to maintain compatibility of internal interfaces for static ZLIB_COMPAT builds, it should be wrapped in #ifdef ZLIB_COMPAT as phprus sugg...
null
zlib-ng__zlib-ng__1713
zlib-ng/zlib-ng
1,713
defect
af8169a724bd607e4e8c7de2a705ab17206217d6
e9c7f0857dae66874823e725397b61c95cabf25c
Rewrite deflate memory allocation.
This PR currently lacks s390x support entirely. @iii-i is working on updating that support. This PR moves all allocations to come from a single buffer allocated during init, this has many positive sides such as being faster overall, and in the case of inflate; ensuring that as much as possible of the startup cost is...
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef69f86458..7d847724b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -484,6 +484,22 @@ if(HAVE_ATTRIBUTE_ALIGNED) add_definitions(-DHAVE_ATTRIBUTE_ALIGNED) endif() +# +# Check for __builtin_assume_aligned(x,n) support in the compiler +# +check_c_source_co...
10
5
0
[{"id": "G0", "claim": "The static function free_deflate added by this pull request is unreachable and never called.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in zbuild.h misspells \"calculates\" as \"caluclates\".", "category":...
null
zlib-ng__zlib-ng__1980
zlib-ng/zlib-ng
1,980
defect
a9ef3eb4c0c87ac4c6a41e4c3401b14a45fc5a56
1f3e6b5e62acdf105b404b9b618f106397178f93
Fix type mismatch on platforms where int32_t and uint32_t use long instead of int
Introduce two new private types, `z_int32_t`and `z_uint32_t` in `zbuild.h` to be used in C source files during compiling zlib-ng when the API differs between zlib-compat and zlib-ng, and toolchain use `long` instead of `int` for `int32_t`; and `unsigned long` instead of `unsigned int` for `uint32_t`. * Based on PR #...
diff --git a/compress.c b/compress.c index 66118e4f4b..cc6e8d9601 100644 --- a/compress.c +++ b/compress.c @@ -28,8 +28,8 @@ memory, Z_BUF_ERROR if there was not enough room in the output buffer, Z_STREAM_ERROR if the level parameter is invalid. */ -int Z_EXPORT PREFIX(compress2)(unsigned char *dest, z_uintmax...
5
2
0
[{"id": "G0", "claim": "The new comment above the z_int32_t/z_uint32_t mappings in zbuild.h can easily be misunderstood (it could be read as saying (u)int32_t varies in size) and should be rewritten for clarity or removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
zlib-ng__zlib-ng__330
zlib-ng/zlib-ng
330
defect
bac13dc2c80434636c716c204e83a88319d6ce95
8e63348da77137efd6bb2dce0358e2a5d8c04a84
Add support for IBM Z hardware-accelerated deflate
Corresponding zlib pull request: https://github.com/madler/zlib/pull/410 --- Future versions of IBM Z mainframes will provide DFLTCC instruction, which implements deflate algorithm in hardware with estimated compression and decompression performance orders of magnitude faster than the current zlib-ng and ratio...
diff --git a/arch/s390/Makefile.in b/arch/s390/Makefile.in new file mode 100644 index 0000000000..179291235a --- /dev/null +++ b/arch/s390/Makefile.in @@ -0,0 +1,28 @@ +# Makefile for zlib +# Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler +# For conditions of distribution and use, see copyright notice in zlib.h +...
20
17
5
[{"id": "G0", "claim": "zlib-ng should not read environment variables, since that opens applications using it as a library to security holes they do not control; the env-var code should be removed or at least put behind a compile-time option that is disabled by default.", "category": "security", "verdict": "supported",...
null
zlib-ng__zlib-ng__348
zlib-ng/zlib-ng
348
defect
563263bb1c508cf74314f8d623477898ea7a996a
4a0a6b4d65d31e01ff5983107404ef1c3b26def5
Remove duplicate gz functions in test code
This PR removes duplicate gz functions in several source files in the test directory. This will help anybody trying to maintain these functions as there will only be one place to change them. If the user specifies WITH_GZFILEOP=OFF in cmake or configure: - GZ file sources will NOT be compiled into zlib, and zlibs...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c619bccc3..8e1d0d406d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -711,18 +711,13 @@ set(ZLIB_SRCS uncompr.c zutil.c ) -if (WITH_GZFILEOP) - set(ZLIB_GZFILE_SRCS - gzclose.c - gzlib.c - gzread.c - gzwrite.c - ) -els...
3
2
1
[{"id": "G0", "claim": "The function declarations moved to the top of test/example.c are needlessly split across continuation lines; zlib-ng uses 120-character lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "This change makes the test prog...
null
zlib-ng__zlib-ng__647
zlib-ng/zlib-ng
647
defect
80f1afb5a86aa67642b7e4af4826fe5f5e1e896a
3c6111ae99a56162d8c8f5a41a6c0df3da80ed85
Add optimized adler32 for POWER and new adler32 tests
This PR adds an optimized adler32 implementation for POWER processors. The work was originally developed by @racardoso (madler/zlib#458). In addition, we provide a new set of tests for adler32 that applies to all archs. To measure the performance improvement, we used [Chromium's zlib_bench.cc](https://cs.chromium.o...
diff --git a/.gitignore b/.gitignore index b6512f145a..d4870861fc 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ *.gcno *.gcov +/adler32_test +/adler32_testsh /example /example64 /examplesh diff --git a/CMakeLists.txt b/CMakeLists.txt index 8097722994..297f976e41 100644 --- a/CMakeLists.txt +++ b/CMa...
13
12
0
[{"id": "G0", "claim": "The new POWER8 adler32 code should be gated by the POWER8_VSX_ADLER32 macro instead of the plain POWER8 macro: wrap adler32_power8.c in it, use it for the extern declaration and the dispatch in functable.c, and add the corresponding -D flag in configure.", "category": "maintainability", "verdict...
null
zlib-ng__zlib-ng__661
zlib-ng/zlib-ng
661
defect
ad89d5131b29d15f752ac3ef977784ded1fd12a3
2fc1acf1d9148c98a0f67819e2d17423c5bfb72c
Fixed bad shift operation warning in deflatePrime.
``` CID 293475 (#2-4 of 4): Bad bit shift operation (BAD_SHIFT) In expression 1UL << put, left shifting by more than 63 bits has undefined behavior. ```
diff --git a/deflate.c b/deflate.c index 02d8c736cd..6a6b69e729 100644 --- a/deflate.c +++ b/deflate.c @@ -590,7 +590,7 @@ int32_t ZEXPORT PREFIX(deflatePrime)(PREFIX3(stream) *strm, int32_t bits, int32_ s->sym_buf < s->pending_out + ((BIT_BUF_SIZE + 7) >> 3)) return Z_BUF_ERROR; do { - pu...
3
2
2
[{"id": "G0", "claim": "The S1 fix is the wrong approach: putting (BIT_BUF_SIZE-1) - s->bi_valid effectively reduces the bit buffer size by one bit; instead, when s->bi_valid == 0 the value should just be copied and zero-extended into s->bi_buf rather than masked and shifted.", "category": "correctness", "verdict": "su...
null
zlib-ng__zlib-ng__875
zlib-ng/zlib-ng
875
defect
aeffa9bbf4ef114ebccddfe45a38c6128437333d
0f4673f65f83cf9e21e79b770987758729a503ea
Fix bi_valid handling in deflate_quick()
The attached test started failing after commit ad89d5131b29 ("Don't write end of last block when returning finish_started."): either with "bi_buf not flushed" message in debug builds, or by producing corrupted output in release builds. The problem is that we must not return finish_started when bi_buf is not ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f5bb42bdc..1f54e96a06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,7 +254,7 @@ endif() # Replace optimization level 3 added by default with level 2 if(NOT MSVC AND NOT CMAKE_C_FLAGS MATCHES "([\\/\\-]O)3") string(REGEX REPLACE "([\\/\\-]O)3" "\\12" ...
1
1
0
[{"id": "G0", "claim": "New code in the new test should not use the deprecated `Bytef` type, which is deprecated in zlib-ng.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zloirock__core-js__1346
zloirock/core-js
1,346
defect
f1303f38bd80474f950cadb3e802db1c2618a2c5
59eeca3a410b179feb96b461186e29eae120d83d
update http to https
fix #1345
diff --git a/packages/core-js/internals/url-constructor-detection.js b/packages/core-js/internals/url-constructor-detection.js index fd828f8e7b0a..5a67c99da5b9 100644 --- a/packages/core-js/internals/url-constructor-detection.js +++ b/packages/core-js/internals/url-constructor-detection.js @@ -8,7 +8,7 @@ var ITERATOR ...
1
1
0
[{"id": "G0", "claim": "The same http to https update done in packages/core-js/internals/url-constructor-detection.js should also be applied in tests/compat/tests.js (around line 94).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
zloirock__core-js__1361
zloirock/core-js
1,361
defect
76460cef2f1186178abedc2d03bbb66a1694a933
b3e76ef21779b7aab4969260059780ab04e22ad4
Percent decode
fix #1357
diff --git a/packages/core-js/modules/web.url-search-params.constructor.js b/packages/core-js/modules/web.url-search-params.constructor.js index e9e3af50d934..f55774051a37 100644 --- a/packages/core-js/modules/web.url-search-params.constructor.js +++ b/packages/core-js/modules/web.url-search-params.constructor.js @@ -1...
10
10
1
[{"id": "G0", "claim": "In getLeadingOnes, avoid the double indexOf(binString, '0') call and cache the result.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `/* eslint-disable max-statements -- TODO */` comment is unused at all and should be re...
null
zloirock__core-js__1470
zloirock/core-js
1,470
defect
ce89bd7c00eefb90b5c8cea12ba82d1e121cb4d6
12b441d64df944e45bc6d709b6a9e3c2c0ce72ea
Fix `Iterator.zip` and `Iterator.zipKeyed` behavior with `mode: 'longest'` option (#1469)
Fixes #1469
diff --git a/packages/core-js/internals/iterator-zip.js b/packages/core-js/internals/iterator-zip.js index 4d34195611a9..bbe9e5e01d7b 100644 --- a/packages/core-js/internals/iterator-zip.js +++ b/packages/core-js/internals/iterator-zip.js @@ -79,8 +79,8 @@ var IteratorProxy = createIteratorProxy(function () { ...
3
3
1
[{"id": "G0", "claim": "In the pure-version tests, `assign` and `create` should be imported as polyfills like the other imports instead of using the global `Object.assign`/`Object.create` in `nullProto`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "To...
null
zloirock__core-js__1510
zloirock/core-js
1,510
defect
f7232402d1127b90902c44f46740a8356f3f8c40
1184aa31555fd850d154cb61c15207026ac633ea
feat: Improve performance of Uint8Array Hex functions
Refs #1503 for the source of inspiration to do this. This PR significantly improves the performance of Uint8array hex functions. <details> <summary> Benchmarks / Console logs on IE11 for from hex (including final performance of from-hex functions in addition to all the moments used for the decisions of what do p...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e7a8aa7f213c..52d555c25e20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog ### Unreleased -- Improved performance of `atob` and `btoa`, [#1503](https://github.com/zloirock/core-js/issues/1503), [#1464](https://github.com/zloirock/core-js/issues/1...
7
6
4
[{"id": "G0", "claim": "`Number.isNaN` is not available in old engines, so caching `$Number.isNaN` in uint8-from-hex breaks old-engine support.", "category": "compatibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please revert the bitwise micro-optimisations (`stringLe...
null
zloirock__core-js__1514
zloirock/core-js
1,514
defect
10b4e86e3ce7d0675fd19b9028118162510307b9
6dc063d65bd78ec8cc1006d81079bb970bc47f8a
Fix for #810
Refs #810 by calling custom implementation on sticky flag. This may only fix part of the issue.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1598ff403e7b..6be96d85ade5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ - Fixed named backreferences in `RegExp` NCG polyfill - Fixed some cases of `RegExp` NCG polyfill in combination with other types of groups - Fixed some cases of `RegExp` NCG polyf...
1
1
1
[{"id": "G0", "claim": "Hoisting `var flags = toString(getRegExpFlags(rx))` above the native fast-path check without also hoisting the `functionalReplace` check and the `replaceValue` string conversion causes incorrect arguments validation / conversion order.", "category": "correctness", "verdict": "supported", "priori...
null
zloirock__core-js__411
zloirock/core-js
411
defect
c0e766e0eec4845ef23ab4aa7685cb00b520a870
d09a96ebbd49ffa71cc139ac595e0c446ca3fe53
Make RegExp#[Symbol.*] methods call exec
Ref: https://github.com/babel/babel/pull/7105#discussion_r194269147
diff --git a/packages/core-js/internals/advance-string-index.js b/packages/core-js/internals/advance-string-index.js new file mode 100644 index 000000000000..57972a197aae --- /dev/null +++ b/packages/core-js/internals/advance-string-index.js @@ -0,0 +1,5 @@ +'use strict'; +var at = require('../internals/string-at')(tru...
7
7
4
[{"id": "G0", "claim": "In many engines a function's `name` property is non-writable and non-configurable, so the commented-out code that would hide a `name` on the RegExp symbol methods should just be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
zmap__zmap__422
zmap/zmap
422
defect
973d152472e91fdc9bde5184341fcc57b869ce7f
826b613f674f29cf12e0c034ccb153df00508c97
ztests CLI support for -h and -v
This pull request adds compatibility for **ztests** with other binaries from zmap compilation. It is a reference to the issue #404 **ztests** binary now has the following command line options: * ztests -h * ztests --help * ztests -V * ztests --version Regards.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f0c91def9..842c6f087 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -87,11 +87,11 @@ set(ZTESTSOURCES state.c summary.c validate.c - zopt_compat.c + ztopt_compat.c ${PROBE_MODULE_SOURCES} ${OUTPUT_MODULE_SOURCES} ...
2
2
0
[{"id": "G0", "claim": "The --unamed-opts=SUBNETS flag should probably be excluded from the ztopt gengetopt command, since ztest takes no arguments.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Examples text block in src/ztopt.ggo.in may not be nec...
null
zmap__zmap__470
zmap/zmap
470
defect
d2804237d44893dc79456c03ad536298e46f6ddb
937e6c32397a9a65b3f24660f006ec40b1caeaca
Fix ICMP handling in probe modules
This PR represents the effort to standardize ICMP handling across all of our probe modules. Fixes #655 Fixes #354
diff --git a/lib/includes.h b/lib/includes.h index 889ba4754..adc52f40e 100644 --- a/lib/includes.h +++ b/lib/includes.h @@ -17,6 +17,7 @@ #include <netinet/ip_icmp.h> #include <netinet/udp.h> #include <netinet/tcp.h> +#include <netinet/ip_icmp.h> #if defined(__NetBSD__) #define ICMP_UNREACH_PRECEDENCE_CUTOFF IC...
10
9
3
[{"id": "G0", "claim": "sport, dport and classification are added both in the module's process_packet branches and again by fs_populate_icmp_from_iphdr, which looks unintentional and produces duplicate/conflicting output fields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
zmievsa__cadwyn__105
zmievsa/cadwyn
105
defect
fae02958bbedc89eda897c6e0d06686d2af6002b
3acaed130f165c87b4c270814e32ab246d8b0b4d
Fix response body dump for 2.x.x version
fixed uvicorn `Response content longer than Content-Length` error, when an endpoint returns just a status code ``` @router.delete("/") async def delete(): return Response(status_code=status.HTTP_204_NO_CONTENT) ``` please note, this is a branch from fae0295 to hotfix 2.x.x version, so I need a separate br...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 422486cb..875f8f18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file. Please follow [the Keep a Changelog standard](https://keepachangelog.com/en/1.0.0/). -## [Unreleased] +## [2.3.5] + +##...
3
3
1
[{"id": "G0", "claim": "Move the second part of the `if` condition (`response_info.body`) down into the block, in the same manner as in `main`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Make the added explanatory comments in `cadwyn/structure/versio...
null
zmievsa__cadwyn__106
zmievsa/cadwyn
106
defect
b1e2b732bd4af7bbca47ad941f6d7f5127b0dd16
247647a7a95626287862a59f0ea554cb58cf4574
Fix response body dump
fixed uvicorn Response content longer than Content-Length error, when an endpoint returns just a status code ``` @router.delete("/") async def delete(): return Response(status_code=status.HTTP_204_NO_CONTENT) ```
diff --git a/CHANGELOG.md b/CHANGELOG.md index 232055ce..9d7456b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ Please follow [the Keep a Changelog standard](https://keepachangelog.com/en/1.0. ## [Unreleased] +## [3.0.2] + +### Fixed + +* do not json.dumps the body while converting endpoint respons...
5
4
2
[{"id": "G0", "claim": "Use an inner `if response_info.body is not None` instead of short-circuiting the outer `isinstance` check with `and response_info.body`, so that a `Response` object is still returned for empty bodies and FastAPI's default handling is not changed.", "category": "design", "verdict": "supported", "...
null
zmkfirmware__zmk__1263
zmkfirmware/zmk
1,263
defect
2c7e5b9232ad751da85eafd8104e0b5111b91f02
6e6140b15bbae70b6604cc63afa936f8145f818f
refactor(split): Seperate peripheral BLE handling.
* Move foundational BLE code for split peripherals to a dedicated file to avoid tons of conditionals and awkward code. As I prepare for some core changes to our advertising/profile code, I'm moving the peripheral BLE code out to a separate file so the two aren's slammed together with awkward conditionals everywher...
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 1492be16c83c..80e16eeb35c6 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -64,26 +64,33 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL) target_sources(app PRIVATE src/behavior_queue.c) target_sources(app PRIVATE src/condit...
10
9
1
[{"id": "G0", "claim": "app/CMakeLists.txt mixes tabs and spaces and should use consistent indentation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The added src/endpoints.c and src/hid_listener.c lines are indented as if inside the if (CON...
null
zmkfirmware__zmk__1841
zmkfirmware/zmk
1,841
defect
147f7f23dca7a2eb5d7433d399948cfd51e068a9
72ca2fa431ab3bca980a9dcfa7563078d1ea4a30
feature(split): add support for sensors from peripheral
This commit adds a new GATT characteristics on the peripheral side and wires it up to read sensor values. The central side subscribes to this new characteristics and replays sensor values on its side. This is building off the awesome work in #728 but updated to leverage the sensor refactors recently merged in #1039 ...
diff --git a/app/include/zmk/keymap.h b/app/include/zmk/keymap.h index a47cd505643..9ce140bfa27 100644 --- a/app/include/zmk/keymap.h +++ b/app/include/zmk/keymap.h @@ -8,6 +8,10 @@ #include <zmk/events/position_state_changed.h> +#define ZMK_LAYER_CHILD_LEN_PLUS_ONE(node) 1 + +#define ZMK_KEYMAP_LAYERS_LEN ...
10
7
3
[{"id": "G0", "claim": "The docs should be updated in this PR to drop the statements that encoders are unsupported on the peripheral side of splits (the intro table footnote and the encoders feature page note), since this PR adds that support.", "category": "documentation", "verdict": "supported", "priority": "P1", "sc...
null
zmkfirmware__zmk__1875
zmkfirmware/zmk
1,875
defect
bbb27ac02769c7bf5f20b76605f2b4e0f811e6e0
8f300944fac61a0a1792e820a713340c45bf4317
Add BSIM based BLE tests
In preparation for some major refactors of our BLE code to use [State Machine Framework](https://docs.zephyrproject.org/latest/services/smf/index.html), this PR adds some core integration tests for our BLE code. * Like our behavior tests, we build for a posix target, but this one using the [BabbleSim board](https://...
diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc index 9fdb8f69e353..967fa144bbb0 100644 --- a/.devcontainer/.bashrc +++ b/.devcontainer/.bashrc @@ -6,3 +6,8 @@ fi if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then source "$WORKSPACE_DIR/zephyr/zephyr-env.sh" fi + +if [ -d "$WORKSPACE_DIR/tools/bsim" ...
22
17
0
[{"id": "G0", "claim": "The commented-out `# CONFIG_BT_DEBUG_LOG=y` line in app/tests/ble/central/prj.conf is a leftover and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copyright year in the new app/run-ble-test.sh says...
null
zmkfirmware__zmk__1879
zmkfirmware/zmk
1,879
defect
ee1e13510410e9b482fd20acf112bc3f1466c362
49ee4d70a9a43a35d38150b30ff247a1337c0e95
Various settings reset improvements.
* When the clear bonds Kconfig is set, also clear peripheral address slots addresses from settings as well. fix(shields): Make settings_reset more flexible. * Don't reference `pro_micro` nexus node in settings_reset so it can be used with other controllers. * Use mock kscan node instead. ...
diff --git a/app/src/ble.c b/app/src/ble.c index ff82f3cf40af..604cd648daeb 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -615,7 +615,21 @@ static int zmk_ble_init(const struct device *_arg) { LOG_ERR("Failed to delete setting: %d", err); } } -#endif + +#if IS_ENABLED(CONFIG_ZMK_SPLIT_ROL...
3
2
1
[{"id": "G0", "claim": "The preceding ble/profiles/%d clearing loop should also only exist on the central, since profile settings only exist there.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The peripheral-address clearing loop (and the profiles...
null
zmkfirmware__zmk__1913
zmkfirmware/zmk
1,913
defect
185457bc1169176037aa281edb0a9bf485a70dbd
1856eeab9b7e049408cb6a1b852dd11333ef9716
feat(split): Use directed advertising.
* Split centrals to scan with their identity so they receive direct advertising packets. * Split peripherals to use direct advertising if they have an existing bond to a split central. This should *drastically* improve the experience when using splits in environments where multiple splits are present.
diff --git a/app/src/split/bluetooth/Kconfig b/app/src/split/bluetooth/Kconfig index 0610b667a263..5919010ba316 100644 --- a/app/src/split/bluetooth/Kconfig +++ b/app/src/split/bluetooth/Kconfig @@ -14,6 +14,7 @@ config ZMK_SPLIT_ROLE_CENTRAL select BT_CENTRAL select BT_GATT_CLIENT select BT_GATT_AUTO_DI...
3
3
1
[{"id": "G0", "claim": "The LOG_DBG log messages in each_bond look like debugging leftovers; if they are worth keeping, they should have more descriptive messages.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Having a return value on start_adv...
null
zmkfirmware__zmk__2032
zmkfirmware/zmk
2,032
defect
0a4b1a6533f434e6bdb7f7f5c336aa3096a90ad7
5da25471bbc0759d302868245c23db786ca0c382
feat(split): Add is_bonded function to peripherals
There is already a function to see if the peripheral is connected, a matching one for if it's bonded is a useful addition for displays/indicators. `is_bonded` gets reset to false in the advertising function in preparation for runtime peripheral bond clearing (#1757) Tested on a 360 Pro with some custom indicators st...
diff --git a/app/include/zmk/split/bluetooth/peripheral.h b/app/include/zmk/split/bluetooth/peripheral.h index a650508ad53..44ac8062a51 100644 --- a/app/include/zmk/split/bluetooth/peripheral.h +++ b/app/include/zmk/split/bluetooth/peripheral.h @@ -6,4 +6,6 @@ #pragma once -bool zmk_split_bt_peripheral_is_connecte...
1
1
1
[{"id": "G0", "claim": "Nothing updates the is_bonded flag after the central actually bonds with the peripheral, so the new getter can report stale state.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zmkfirmware__zmk__2045
zmkfirmware/zmk
2,045
defect
b35a5e83c05a3ed9db8d13e5571ee20f588fa3ad
398a2412f55bbe43ce748b23724e496d1270885e
feat(ble): Support peripheral battery levels.
* Add ability to fetch and report peripheral battery levels on split centrals. * Add additional support for adding a new Battery Level service to split centrals that exposes fetched peripheral battery levels to connected hosts. This is a continuation of the great work from @Katona in #1243 with some important chang...
diff --git a/app/include/zmk/events/battery_state_changed.h b/app/include/zmk/events/battery_state_changed.h index 5a8c625e0790..157490d98498 100644 --- a/app/include/zmk/events/battery_state_changed.h +++ b/app/include/zmk/events/battery_state_changed.h @@ -14,4 +14,12 @@ struct zmk_battery_state_changed { uint8_...
13
7
2
[{"id": "G0", "claim": "Testing the branch with the zmk-split-battery companion app for Windows shows only one battery level instead of both peripherals'.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a Kconfig option to rename the per-peripher...
null
zmkfirmware__zmk__2093
zmkfirmware/zmk
2,093
defect
0e2f94b73bc18e3be7d913d2a233ae6330b40624
68cc529397bcc8ea1184476d6f8c7196d3c321c0
fix(ble): Disable Auto Sec Req again.
* Auto security request actually makes macOS worse, so disable it, and remove our early request in favor of using GATT enforcement to ensure connections are secured. # Summary After reviewing again the AUTO_SEC_REQ Kconfig from Zephyr, I was reminded we had actually turned it *off* for better mac compatibili...
diff --git a/app/Kconfig b/app/Kconfig index a5fa54f614b..a737ba731ce 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -144,7 +144,6 @@ if ZMK_BLE config ZMK_BLE_EXPERIMENTAL_CONN bool "Experimental BLE connection changes" - imply BT_GATT_AUTO_SEC_REQ help Enables a combination of settings that are ...
3
3
3
[{"id": "G0", "claim": "The added `static struct read_params;` line is a type forward-declaration that is then written to as a variable later, leaving the test code broken because read_params has no object declaration.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id":...
null
zmkfirmware__zmk__2397
zmkfirmware/zmk
2,397
defect
f92dce43e9c76bdba76359ec1f90e606cd609ee0
b3d109bb1d0bfcdbdf91bd76e477f43548f7626d
feat: Split physical layout selection sync.
* Ensure the split peripherals have the same selected physical layout on connection and change.
diff --git a/app/include/zmk/physical_layouts.h b/app/include/zmk/physical_layouts.h index 8d8188e3c91e..d48b071d5454 100644 --- a/app/include/zmk/physical_layouts.h +++ b/app/include/zmk/physical_layouts.h @@ -8,6 +8,13 @@ #include <zephyr/kernel.h> #include <zmk/matrix_transform.h> +#include <zmk/event_manager.h>...
1
1
0
[{"id": "G0", "claim": "The new struct field `select_physical_layout_handle` in `struct peripheral_slot` would be more appropriately named with a `selected_*` prefix (e.g. `selected_physical_layout_handle`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zmkfirmware__zmk__2886
zmkfirmware/zmk
2,886
defect
461f5c832fb8854d87dca54d113d306323697219
ddce6aba31e7abab22a14af05c44a2797e849494
BT/wired split runtime transport selection
Initial (draft) PR for runtime split transport selection. This currently relies on a dedicated GPIO pin that goes active when a split connection is present. This detection is *not* currently possible with a normal 4-wire TRRS style setup, without something like an RS422 transceiver in half-duplex mode between halves, o...
diff --git a/app/dts/bindings/zmk,wired-split.yaml b/app/dts/bindings/zmk,wired-split.yaml index 107e437b040a..311d367abf74 100644 --- a/app/dts/bindings/zmk,wired-split.yaml +++ b/app/dts/bindings/zmk,wired-split.yaml @@ -12,6 +12,12 @@ properties: required: true description: The UART device for wired split ...
10
9
1
[{"id": "G0", "claim": "When the docs for this are touched, they should mention that wired splits currently only allow wired pairs (no 3+ part wired splits, no daisy chaining, and no 3-part split mixing wired and Bluetooth), since leaving that out would mislead users about supported topologies.", "category": "documenta...
null
zmkfirmware__zmk__3164
zmkfirmware/zmk
3,164
defect
118359c83efa0758144489fd5e12cc6f5bdbad4c
9359215b1d54dc1ce0ea97b5a5c38d60df12df0c
chore: Add basic tests for Studio's layer manipulation
We currently don't have any test coverage for the layer manipulation that Studio can perform. Use a bit of a hacky workaround by creating test behaviors for the methods that Studio calls to manipulate layers. Test behaviors are only compiled when we set a Kconfig flag that is set during the test script. Then use ...
diff --git a/app/include/zmk/keymap.h b/app/include/zmk/keymap.h index 556e045677b..c7b2681d595 100644 --- a/app/include/zmk/keymap.h +++ b/app/include/zmk/keymap.h @@ -11,11 +11,12 @@ #include <zephyr/devicetree.h> #define ZMK_KEYMAP_LAYERS_FOREACH(_fn) \...
3
3
2
[{"id": "G0", "claim": "The `default n` on the ZMK_TEST_BEHAVIORS Kconfig symbol is superfluous and should be removed because n is already the default and redundant defaults can complicate scenarios.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The add...
null
zmkfirmware__zmk__3174
zmkfirmware/zmk
3,174
defect
a9e0befcb61c4f3b88b1264eab73ede9200f20d3
e969a5295315c83570edb3e8e77b1c746f14d006
SoC: stm32c0 support
Small changes needed to support stm32c0 * Add a new nBOOT_SEL bit initialization check, to ensure the BOOT pin works properly after flashing ZMK the first time. * Pull in fork of hal_stm32 that has one small USB fix cherry picked in. Will not be needed once we move to a newer Zephyr version. * Temporary: Moving to...
diff --git a/app/src/boot/CMakeLists.txt b/app/src/boot/CMakeLists.txt index 6e75945a7e9d..264c1aa7d259 100644 --- a/app/src/boot/CMakeLists.txt +++ b/app/src/boot/CMakeLists.txt @@ -1,3 +1,4 @@ target_sources_ifdef(CONFIG_ZMK_BOOTMODE_TO_MAGIC_VALUE_MAPPER app PRIVATE bootmode_to_magic_mapper.c) -target_sources_ifd...
4
4
0
[{"id": "G0", "claim": "The STM32 nBOOT_SEL documentation added under system.md should be moved into a dedicated bootloader configuration section/page separate from system under config.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nBOOT_SEL paragra...
null
zmkfirmware__zmk__3204
zmkfirmware/zmk
3,204
defect
19582174f3a446a07d40f479020b4ebb1aad8ddb
20135b7e5b342d14898d2f55a63020812b224a9d
feat(pointing): Release pressed keys on disconnect
Match the behavior for key press release on split peripheral disconnect, and track pressed input keys to release them as needed on disconnect. Have to reopen this as a new PR, forgot to re-open #2721 before pushing my rebased version. Still valid, needs to be added to address the core issue. <!-- Note: ZMK is gen...
diff --git a/app/include/zmk/pointing/input_split.h b/app/include/zmk/pointing/input_split.h index 812035477e2d..235ea4954b1b 100644 --- a/app/include/zmk/pointing/input_split.h +++ b/app/include/zmk/pointing/input_split.h @@ -7,4 +7,5 @@ #pragma once int zmk_input_split_report_peripheral_event(uint8_t reg, uint8_t...
3
2
0
[{"id": "G0", "claim": "The proxy_active_keys array size should use DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) instead of counting instances with the PLUS_ONE macro.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why is each key's release report pos...
null
zmkfirmware__zmk__539
zmkfirmware/zmk
539
defect
d6988477692f6892096885ed39953a7814a8f53a
90e44567f9faf164c9d8aa61e30c783778d0bdf7
Handle events from peripherals on the main work thread, avoid concurrent GATT notifications to avoid locking up central side..
Resurrecting this change, since we're still having occasional failures w/ crashes on splits, which I believe could be related (but not fully fixed) to this. Previously on #466 it was noted that this caused failures to sleep, but I cannot reproduce that here. Setting a low sleep timeout, and my Kyria properly sleeps ...
diff --git a/app/src/hog.c b/app/src/hog.c index 8d10b8f77de..69b96cb3337 100644 --- a/app/src/hog.c +++ b/app/src/hog.c @@ -156,28 +156,94 @@ struct bt_conn *destination_connection() { return conn; } +static K_SEM_DEFINE(hog_keyboard_sem, 1, 1); + +static bool resend_keyboard_report = false; +void keyboard_rep...
4
2
0
[{"id": "G0", "claim": "Events should be created via shared helpers (e.g. a create_position_state_changed factory, or a shared type so the struct can be assigned wholesale) instead of copying fields one by one, so the compiler flags call sites when a new field is added.", "category": "design", "verdict": "uncertain", "...
null
zmkfirmware__zmk__547
zmkfirmware/zmk
547
defect
87dbd4ca28405ab3d17cf62f3df86581606279b7
f6e91fd0fad5b0deed2c6e9cb0f96512fa6a3c40
Invoke behaviors with different "locality"
With this change, behaviors can now have different "locality": * Central (e.g. key press) * Global (e.g. RGB to toggle on/off on both sides) * Reset (e.g. to reset whatever device the "reset" binding was on, so you can have a reset on both sides, and it does what you expect) This should makes split power and RG...
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 9e0612de04da..3e099a5af0b1 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -39,9 +39,10 @@ target_sources(app PRIVATE src/events/sensor_event.c) target_sources_ifdef(CONFIG_ZMK_BLE app PRIVATE src/events/ble_active_profile_changed.c) target_source...
28
16
9
[{"id": "G0", "claim": "The new z_impl_behavior_get_locality could copy the locality with a plain assignment instead of memcpy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @param doc line for param1 picked up a stray 'diligence' that does...
null
zmkfirmware__zmk__836
zmkfirmware/zmk
836
defect
efcc49f23dba0fa896c5cc0603e3fc9c664af166
a14004531d2ff6935c2c6c8bcaabcb1c0f5c3572
feat(split): allow central to connect to multiple peripherals
This addresses #314 and #609. This might also affect #281 and #718.
diff --git a/app/Kconfig b/app/Kconfig index d83561b702c..f8d44ec4dff 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -121,6 +121,10 @@ config ZMK_SPLIT_BLE_CENTRAL_POSITION_QUEUE_SIZE int "Max number of key position state events to queue when received from peripherals" default 5 +config ZMK_SPLIT_BLE_CENTRAL_PERIP...
8
5
1
[{"id": "G0", "claim": "Settings reset would most likely need additional changes to handle the new per-slot ble/peripheral_addresses entries (e.g. looping to delete them or calling nvs_clear), which the pull request does not implement.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "int...
null
zmkfirmware__zmk__862
zmkfirmware/zmk
862
defect
a8c0c76fca0eea98e6155173764222458522e5f9
295a589953120060cd092898708da1a4af87ad6d
Add support for BLE connection interval
Adds support for configuring the BLE connection interval to allow users to force a faster connection and lower the latency of BLE. The original idea came from @Nicell youtube video where he tested the latency of different things and showed that BLE with a forced connection interval of 7.5ms is as fast as wired when not...
diff --git a/app/Kconfig b/app/Kconfig index 68363d516775..2ee7b1e5a403 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -89,6 +89,30 @@ config ZMK_BLE_PASSKEY_ENTRY bool "Experimental: Requiring typing passkey from host to pair BLE connection" default n +config BT_GAP_AUTO_UPDATE_CONN_PARAMS + bool "Automatic Updat...
5
3
0
[{"id": "G0", "claim": "app/Kconfig should not redefine Zephyr's existing BT_GAP_AUTO_UPDATE_CONN_PARAMS and BT_GAP_PERIPHERAL_PREF_PARAMS options; rely on Zephyr's built-in options and defaults and let Zephyr handle connection parameter negotiation.", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
znc__znc__1205
znc/znc
1,205
defect
16a8c777370ffb6fe661b0f0aa5ff4f35f26a249
a5540557acffd1cd5ab7d95f395626e22dd6a8bf
Add support for CIDR notation in allowed hosts list.
Fixes #207 This is my first time writing C++. Please let me know if anything looks dodgy. A non-exhaustive bunch of test cases all seem to work. I've also left wildcard matching in there. I also have a patch for 1.6.x, but I don't know if that's desired.
diff --git a/Makefile.in b/Makefile.in index c3486e3903..0fdaa3649c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -59,7 +59,7 @@ BIN_SRCS := src/main.cpp LIB_OBJS := $(patsubst %cpp,%o,$(LIB_SRCS)) BIN_OBJS := $(patsubst %cpp,%o,$(BIN_SRCS)) TESTS := StringTest ConfigTest UtilsTest ThreadTest NickTest ClientT...
17
14
3
[{"id": "G0", "claim": "EXPECT_EQ's arguments are in the wrong order — expected should come first, otherwise the failure message reads reversed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test user should be created on the stack (or at least wit...
null
znc__znc__1290
znc/znc
1,290
defect
f76ab76c4af0888bd9b86a5cb84664da15e42568
351b2cf965665433c92783919ea2ecb2889c91c1
Fix inverted gettimeofday() return value handling
The gettimeofday function returns 0 for success, not for failure. As a result of the inverted logic we were losing millisecond precision when parsing incoming messages on non-HAVE_CLOCK_GETTIME systems (macOS). A followup commit does a bit of cleanup to prevent this kind of error in the future, by centralising the way...
diff --git a/include/znc/Utils.h b/include/znc/Utils.h index 5bcb6a4b31..8312792891 100644 --- a/include/znc/Utils.h +++ b/include/znc/Utils.h @@ -70,14 +70,8 @@ class CUtils { unsigned int uMin = 0, unsigned int uMax = ~0, unsigned int uDefault = ~0); - st...
1
1
0
[{"id": "G0", "claim": "Put the opening brace of the new CUtils::GetTime() definition in src/Utils.cpp on the same line as the function signature.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
znc__znc__1382
znc/znc
1,382
defect
879c813d583aaa50ab6f19994b341a0cb945b234
6c9d9abb1df5191f17ac17f8ac504a8ae1ba9085
Add NickPrefix command to view and set the nickprefix.
Hides the internal keyword from ListKeys and adds the NickPrefix comand to view and optionally set another prefix.
diff --git a/modules/crypt.cpp b/modules/crypt.cpp index 5145b87804..35da1be3cd 100644 --- a/modules/crypt.cpp +++ b/modules/crypt.cpp @@ -206,6 +206,9 @@ class CCryptMod : public CModule { AddCommand("KeyX", static_cast<CModCommand::ModCmdFunc>( &CCryptMod::OnKeyXCommand), ...
4
4
4
[{"id": "G0", "claim": "The new OnListKeysCommand emptiness check `BeginNV()->first.Equals(NICK_PREFIX_KEY)` relies on comparison order between '@' and letters, i.e. on NICK_PREFIX_KEY being the NV map's first entry, and the reviewer asks why that is guaranteed to always work.", "category": "correctness", "verdict": "s...
null
znc__znc__1398
znc/znc
1,398
defect
f37aa308e1f00b765704770765eaaffb1cd4fc15
279db45b054b8456b455dd4a9cba4f156ebd5cd4
Add OnSendToIRCMessage and OnSendToClientMessage
As described in [this comment](https://github.com/znc/znc/pull/1396#issuecomment-293179090).
diff --git a/include/znc/Modules.h b/include/znc/Modules.h index 05b6bb6c20..85c0d55af4 100644 --- a/include/znc/Modules.h +++ b/include/znc/Modules.h @@ -1026,18 +1026,24 @@ class CModule { */ virtual EModRet OnDeleteNetwork(CIRCNetwork& Network); - /** Called when ZNC sends a raw traffic line to a cli...
6
5
4
[{"id": "G0", "claim": "Any changes made by modules to the message are ignored when the pull request's send path handles the message.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rather than parsing the line for the sake of calling modules, PutCli...
null
znc__znc__1627
znc/znc
1,627
defect
481fdb5a2ccdce08d115af07424d6f707251bb22
812b27c2680be996aecef4ea386cd030dad352b8
Normalize variable "sUserName" to "sUsername"
Fixes #1546
diff --git a/include/znc/User.h b/include/znc/User.h index 0f8eb35179..4351baef85 100644 --- a/include/znc/User.h +++ b/include/znc/User.h @@ -37,7 +37,7 @@ class CServer; class CUser : private CCoreTranslationMixin { public: - CUser(const CString& sUserName); + CUser(const CString& sUsername); ~CUser(...
1
1
0
[{"id": "G0", "claim": "Function names should be normalized too (UserName to Username), keeping the old names for now so existing modules do not break, and marking them as deprecated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
znc__znc__1661
znc/znc
1,661
defect
96481995e19a367fa0d4fd59be9e5278faa788ad
288380e6506576068c8340bb50d552b6919514c5
Rework MODE/RPL_CHANMODEIS handling for trailing args
Some servers may send a colon even if the last parameter doesn't need it, currently this leads to issues with permission/mode tracking, as the core doesn't handle the colon properly. This fix replaces reconstructing the parameter string with just passing a vector of the relevant parameters to CChan::SetModes() and...
diff --git a/include/znc/Chan.h b/include/znc/Chan.h index 47bc21d8af..b05b2dff32 100644 --- a/include/znc/Chan.h +++ b/include/znc/Chan.h @@ -77,7 +77,9 @@ class CChan : private CCoreTranslationMixin { // Modes void SetModes(const CString& s); + void SetModes(const VCString& vsModes); void ModeChan...
14
10
6
[{"id": "G0", "claim": "Mode strings and their arguments are parsed wrongly when colons are involved (e.g. '+:nt' shown as the channel modes, '+v :Nick', '+qo Nick :Nick').", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ModeChange overload i...
null
znc__znc__1961
znc/znc
1,961
defect
296b9ecd081c36a452d105c9606455b7e5e4b6a9
29f553605de465494239725cdac6cb7252ae7499
Make away-notify and chghost only send to client if attached into a c…
ZNC sends ```away-notify``` and ```chghost``` events to the client even if you are detached from all channels with the user. This pull request does break the ```ZNCTest.AwayNotify``` test. I have not figure out how to exactly fix that?
diff --git a/src/Client.cpp b/src/Client.cpp index b3753e28ef..4e320c8163 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -591,6 +591,21 @@ bool CClient::PutClient(const CMessage& Message) { switch (Message.GetType()) { case CMessage::Type::Away: if (!m_bAwayNotify) return false; + ...
7
6
2
[{"id": "G0", "claim": "The detached-channel visibility check does not belong in CClient::PutClient because a channel is attached or detached for all clients together and none of the code is client-specific, so with several clients connected the same check runs several times — it should happen in IRCSock.cpp instead.",...
null
znc__znc__1965
znc/znc
1,965
defect
89781fc0a12e1d28de669e722060691a5efb62d7
a6281c491d2dd7f12f668a3dcb6fc1d20c4b1446
stripcontrols: Use new On...Message events.
Added OnTopicMessage and stripping for /list and /topic output. Fixes #1179
diff --git a/modules/stripcontrols.cpp b/modules/stripcontrols.cpp index 107111b18c..69609d910b 100644 --- a/modules/stripcontrols.cpp +++ b/modules/stripcontrols.cpp @@ -20,35 +20,68 @@ class CStripControlsMod : public CModule { public: MODCONSTRUCTOR(CStripControlsMod) {} - EModRet OnPrivCTCP(CNick& Nick...
2
2
0
[{"id": "G0", "claim": "Message.SetText(Message.GetText().StripControls_n()) would be simpler than the three-line get/strip/set pattern in the new On...Message handlers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The extra double space in th...
null
znsio__teswiz__179
znsio/teswiz
179
defect
b686de76e99abafb1188b19d383e92ad6918ee08
61c164d5b1b56f16abf480754712a204d46911a2
Created files for VodQA application testing and implemented scroll() method
Added feature, steps, BL, screens (abstract and android implementation) for VodQA application. Added code for scroll(fromPoint, toPoint) in Driver class according to latest Appium version.
diff --git a/build.gradle b/build.gradle index de04ab11b..2b85504c1 100644 --- a/build.gradle +++ b/build.gradle @@ -144,6 +144,7 @@ task run(type: JavaExec) { def configFile = System.getenv("CONFIG") if (null == configFile || !file(configFile).exists()) { + configFile=System.getProperty(...
7
7
0
[{"id": "G0", "claim": "The login step should read 'Given I login to vodqa application using valid credentials' (or simply 'Given I login to vodqa application') instead of 'using credentials'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ste...
null
znsio__teswiz__182
znsio/teswiz
182
defect
b686de76e99abafb1188b19d383e92ad6918ee08
9795432424e7df6c6cc705fe036a46bed9b97e9a
select Notification From Notification Drawer
Added Implementation for selectNotificationFromNotificationDrawer() method Added Scenario to test the feature for JioMeet application - Meeting Notification
diff --git a/caps/jiomeet_local_capabilities.json b/caps/jiomeet_local_capabilities.json index 253a9bddb..2c6250e7d 100644 --- a/caps/jiomeet_local_capabilities.json +++ b/caps/jiomeet_local_capabilities.json @@ -1,9 +1,7 @@ { "android": { "adbExecTimeout": 45000, - "app": { - "local": "https://github....
3
2
1
[{"id": "G0", "claim": "The notification-drawer drag sequence is performed twice, and the reviewer asks why this duplicate perform call is needed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The scenario name 'User can select Notification' could be wo...
null
znsio__teswiz__183
znsio/teswiz
183
defect
a8bc6e2345f8dd7698f37e48d88cfd240ba201f7
b6ee1f9a0963486349a0b3faae68ee9a0625a47a
Appium2.0
- Updated ScrollDownByScreenSize method for Appium 2.0 implementation - Updated ScrollVertically method for Appium 2.0 implementation - added test steps for ScrollDownByScreenSize method modified files: - src/main/java/com/znsio/teswiz/runner/Driver.java - src/test/java/com/znsio/teswiz/steps/VodQASteps.ja...
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index d2c91b9fb..a4dcc2218 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -42,6 +42,7 @@ import java.util.Set; import static c...
3
3
0
[{"id": "G0", "claim": "Rename the new scenario, which duplicates the existing one's name, so it is specific to the scroll-down-by-screen-size functionality.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing \"Then Element text sho...
null
znsio__teswiz__184
znsio/teswiz
184
defect
a8bc6e2345f8dd7698f37e48d88cfd240ba201f7
af07985144a8de0e048cef59866e3452e1de4293
Hybrid App Compatibility of Context Switching utility for Appium 2.0
-This PR is intended to verify the context switching utility between native app and web view context. -The scenario covers the accessibility of web element embedded into the android app by switching the context to web and then again accessing the native app elements by re-switching the context to native app
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index d2c91b9fb..4e781b69c 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -442,8 +442,10 @@ public WebDriver setWebViewContext() {...
10
10
0
[{"id": "G0", "claim": "The When and Then steps at the start of the new scenario can be merged into a single step such as 'On web view section I see login options'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out code and todo block in s...
null
znsio__teswiz__186
znsio/teswiz
186
defect
a8bc6e2345f8dd7698f37e48d88cfd240ba201f7
8a1ac6e1328119a1ca41783fa9a41ad4ffa06b0c
Appium2.0: Swipe Gesture implementation and addition of 3 test scenarios
1. Implemented swipe gesture 2. updated swipeLeft() and swipeRight() methods 3. added a new method for swiping using percent attributes 4. Added scenarios to validate these swipe gesture methods
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index d2c91b9fb..f6d9595aa 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -28,6 +28,7 @@ import org.openqa.selenium.WebDriver; i...
11
10
0
[{"id": "G0", "claim": "Keep the pause duration at 1 second by using ofSeconds(1) for both the pause and the pointer-move lines instead of ofMillis(600).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the new feature-file steps using the reviewer...
null
znsio__teswiz__193
znsio/teswiz
193
defect
c0f9d809bd29fdce28f1f93d0bed8dfe32226394
f041957c6f9a9d12971fefb9a6d637b372c3c4e4
Appium2.0 : Added test scenario for ScrollVertically by percentage
Added scenario for scroll vertically by percentage added implementation for the same Indented the code files changed: - src/test/resources/com/znsio/teswiz/features/vodqa.feature - src/test/java/com/znsio/teswiz/steps/VodQASteps.java - src/test/java/com/znsio/teswiz/businessLayer/vodqa/VodqaBL.java - src/tes...
diff --git a/src/test/java/com/znsio/teswiz/businessLayer/vodqa/VodqaBL.java b/src/test/java/com/znsio/teswiz/businessLayer/vodqa/VodqaBL.java index e1d2f453c..ed583119b 100644 --- a/src/test/java/com/znsio/teswiz/businessLayer/vodqa/VodqaBL.java +++ b/src/test/java/com/znsio/teswiz/businessLayer/vodqa/VodqaBL.java @@ ...
2
1
1
[{"id": "G0", "claim": "The new business-layer method scrollVerticallyByPercentageOnVerticalSwipingScreen performs the scroll without any assertion to verify the outcome.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Once snehith07's changes are merged...
null
znsio__teswiz__194
znsio/teswiz
194
defect
c0f9d809bd29fdce28f1f93d0bed8dfe32226394
0cee2d0326175f6e6e75b18f1996b32079feae52
Appium2.0: Scroll in dynamic layer implementation and addition of a test scenario
1. Removed deprecated objects like PerformsTouchActions from scrollInDynamicLayer() 2. Corrected fromPoint and toPoint scroll in scroll() functionality 3. Added a scenario to validate scrollInDynamicLayer()
diff --git a/src/main/java/com/znsio/teswiz/entities/Direction.java b/src/main/java/com/znsio/teswiz/entities/Direction.java new file mode 100644 index 000000000..ae44e2c43 --- /dev/null +++ b/src/main/java/com/znsio/teswiz/entities/Direction.java @@ -0,0 +1,6 @@ +package com.znsio.teswiz.entities; + +public class Dire...
1
1
1
[{"id": "G0", "claim": "The business layer should pass the scroll direction (either Direction.UP or Direction.DOWN) to the screen instead of the screen layer hardcoding Direction.DOWN.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
znsio__teswiz__199
znsio/teswiz
199
defect
770fd6c76bf211fb4400a1d8a8e2e863f62485cc
3d3a228f164993698aeeb9c082286c71a6db5ac9
Enhancement Todo : Added logic to get device name from browser config json
This PR is intended to add logic for fetching device name from browser config json file with parsed mobile emulation variable.
diff --git a/configs/browser_config.json b/configs/browser_config.json index e9d089253..174a29879 100644 --- a/configs/browser_config.json +++ b/configs/browser_config.json @@ -57,5 +57,9 @@ "maximize": true, "acceptInsecureCerts": true, "setUseTechnologyPreview": false - } + }, + "tab1": "iPad mini",...
1
1
0
[{"id": "G0", "claim": "Add an in-code comment (as documentation) showing from where the device name is fetched for running in emulation mode.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
znsio__teswiz__211
znsio/teswiz
211
defect
f3ef2c7544be1e7cb5d0e6e2f89187fa153225a7
af4ab907a28908db19a9c6ce26d204d782b88865
AspectJ implementation with teswiz
This PR covers the implementation of AspectJ with Teswiz framework - Added new dependency and plugin for AspectJ. - Added AspectJ aspect to add auto-generated loggers when the BL or screen methods are been initiated or completed execution. - Since the scope of the aspect could differ according to the client's requir...
diff --git a/build.gradle b/build.gradle index d1c276101..6bbf60a85 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ buildscript { masterThoughtVersion = '5.7.5' browserStackLocalVersion = '1.1.0' jetbrainsAnnotationsVersion = '24.0.1' + aspectJVersion = '1.9.6' } }...
3
3
2
[{"id": "G0", "claim": "The beforeAnyMethod/afterAnyMethod logging calls should invoke static methods instead of instantiating a new AspectJMethodLoggers each time (new AspectJMethodLoggers().beforeAnyMethod(joinPoint) / .afterAnyMethod(joinPoint)).", "category": "design", "verdict": "supported", "priority": "P2", "sco...
null
znsio__teswiz__221
znsio/teswiz
221
defect
2987a506a9d6002e05ebc6c12384d2a79afb8faf
d98280a0539158b8386c55631eb743fe871a6913
implementation for DoubleTap action in teswiz
This PR covers the Implementation for DoubleTap Action in teswiz framework -Added DoubleTap action for driver -Added Scenario to test the functionality in VodQA application -Added methods required for the same
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index 222c47030..e113d31f9 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -16,24 +16,16 @@ import io.appium.java_client.ios.IOSDr...
2
2
1
[{"id": "G0", "claim": "The new doubleTapOnElement method performs the double tap without visual validations before and after the action.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Driver.java should use single class imports instead of the wildcard ...
null
znsio__teswiz__225
znsio/teswiz
225
defect
2987a506a9d6002e05ebc6c12384d2a79afb8faf
6e6d986300121036381ca5779d24091cb73b3183
[New Implementation] Drag and Drop action
- Add new action drag and drop action function in driver class. - Create a Vodqa scenario to test the functionality.
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index 222c47030..5b68c80d7 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -16,7 +16,6 @@ import io.appium.java_client.ios.IOSDriv...
7
5
1
[{"id": "G0", "claim": "The added Gherkin step text \"When I drag the drag me circle object to drop here target\" looks weird and should be reworded to something like \"When I drag the circle to drop here target\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
znsio__teswiz__226
znsio/teswiz
226
defect
2987a506a9d6002e05ebc6c12384d2a79afb8faf
6cc02fded1b86f23b989e2708924f5186a10bd68
Handling appPath if URL is provided (create repo, download file, install downloaded file)
Handling appPath if URL is provided, if file already exists then passing the same location. If file does not exist, checking if URL or not, if URL then creating repository sampleApps (if not already there) after that downloading file using URL, setting the value of appPath as per download location.
diff --git a/src/main/java/com/znsio/teswiz/runner/DeviceSetup.java b/src/main/java/com/znsio/teswiz/runner/DeviceSetup.java index 665431a93..fc3940f8e 100644 --- a/src/main/java/com/znsio/teswiz/runner/DeviceSetup.java +++ b/src/main/java/com/znsio/teswiz/runner/DeviceSetup.java @@ -8,11 +8,12 @@ import com.znsio.tes...
7
5
0
[{"id": "G0", "claim": "The new wildcard import java.io.* should be replaced with explicit single-class imports (there are not more than 5 java.io imports).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error tests should be named so they s...
null
znsio__teswiz__227
znsio/teswiz
227
defect
2987a506a9d6002e05ebc6c12384d2a79afb8faf
f0e535c6aa60a446d61ff0650a77d46c2dbfb68d
Implementation for longPress action in teswiz
This PR covers the Implementation for longPress Action in teswiz framework - Updated longPress action method in driver class - Added Scenario to test the functionality of longPress in VodQA application - Added methods and locators required for the same
diff --git a/src/main/java/com/znsio/teswiz/runner/Driver.java b/src/main/java/com/znsio/teswiz/runner/Driver.java index 222c47030..30aa62c59 100644 --- a/src/main/java/com/znsio/teswiz/runner/Driver.java +++ b/src/main/java/com/znsio/teswiz/runner/Driver.java @@ -37,15 +37,13 @@ import java.io.File; import java.io.I...
3
3
1
[{"id": "G0", "claim": "The new longPressOnElement screen action should perform visual validation before and after the long press action.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It may matter how long the press lasts, so the long press duration s...
null
znsio__teswiz__233
znsio/teswiz
233
defect
87069ab3b392ce669ffb3a4dcac3e03b8c196e1f
399bb8025df24012dfd8a892e6cf4d55f594b01d
Platform as API to be added in teswiz to run api tests independently
Plan Document: https://rilcloud-my.sharepoint.com/:w:/r/personal/saurav_gaur_ril_com/Documents/API%20Capabilities%20plan.docx?d=wa696f375e9e140f8be7f9779d73e58ce&csf=1&web=1&e=GVxSPJ Local report: <img width="1512" alt="image" src="https://github.com/znsio/teswiz/assets/64599820/b07da04d-3d79-4f15-99db-c95f6d293737...
diff --git a/configs/weatherAPI_local_config.properties b/configs/weatherAPI_local_config.properties new file mode 100644 index 000000000..267c58e16 --- /dev/null +++ b/configs/weatherAPI_local_config.properties @@ -0,0 +1,17 @@ +RUNNER=distribute +FRAMEWORK=cucumber +RUNNER_LEVEL=methods +APP_NAME=WeatherAPI +ENVIRONM...
8
5
1
[{"id": "G0", "claim": "The WeatherAPIBL method that fetches the current weather returns the response without any assertion, so the scenario the PR sets out to validate does not verify the response.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wea...
null