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
tornadoweb__tornado__3546
tornadoweb/tornado
3,546
defect
1ee8923bd19b3493365e938506dd81147f41eb6d
bd5ab4cd84dc171cf32f81edfa8eb03013f05b89
ci: add riscv64 manylinux/musllinux wheels
Now that cibuildwheel and PyPI support riscv64, we can start building riscv64 wheels for Tornado. Because there is no native riscv64 runner available, this PR adds a QEMU-based riscv64 job to the cibuildwheel workflow. Due to emulation, we need to: - Increase ASYNC_TEST_TIMEOUT to 30s to accommodate slower runs ...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8e1a2cf7..020a75f15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,12 +50,20 @@ jobs: path: ./dist/tornado-*.tar.gz build_wheels: - name: Build wheels on ${{ matrix.os }} + name: Build ...
3
3
2
[{"id": "G0", "claim": "Set up the QEMU step so it supports other emulated architectures too, using `if: matrix.cibw_archs != ''` and `platforms: ${{ matrix.cibw_archs }}` instead of hardcoding riscv64.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Dete...
null
torrust__torrust-index__265
torrust/torrust-index
265
defect
79ff3cc7e12fe70fe4e6f41c45296b6e3da41856
f2369b417c6a294976328fb158e4274335023e6b
Add torrent `name` to torrent list an detail endpoints
Resolves #264
diff --git a/src/databases/mysql.rs b/src/databases/mysql.rs index e7d0babb3..cb7b33174 100644 --- a/src/databases/mysql.rs +++ b/src/databases/mysql.rs @@ -375,7 +375,7 @@ impl Database for Mysql { }; let mut query_string = format!( - "SELECT tt.torrent_id, tp.username AS uploader, tt.in...
2
1
1
[{"id": "G0", "claim": "The test response structs (ListItem and TorrentDetails in tests/common/contexts/torrent/responses.rs) should be updated to include the new torrent `name` field so they match the data the list and detail endpoints now return.", "category": "testing", "verdict": "supported", "priority": "P1", "sco...
null
torrust__torrust-index__269
torrust/torrust-index
269
defect
08f0b861397dc6313323b3b4a77c9021ca183714
e5d1c140c8c0bab909127e154eef3d85a006c858
feat: [#261] store original info-hashes
When you upload a torrent, the infohash might change if the `info` dictionary contains non-standard fields because we remove them. That leads to a different infohash. We store the original infohash in a new table so that we can know if the torrent was previously uploaded. If we do not store the original infohash ...
diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 1a0dfeef3..828f2fd6e 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -58,6 +58,7 @@ jobs: name: Upload Coverage Report uses: codecov/codecov-action@v3 with: + to...
3
2
1
[{"id": "G0", "claim": "Rename the original_info_hash column to info_hash and add a boolean column recording whether the original is unknown, so the migration does not lose that information.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The proposed ori...
null
torrust__torrust-index__835
torrust/torrust-index
835
defect
f626613f4e49c12defb4a3ed3b2b7de10a6a897e
733634a2ca796bcc800728e0c5253ae4dc7d6e88
chore(deps): update dependencies and improve robustness
## Summary Update multiple Rust dependencies to their latest versions, including several major version bumps, and implement two robustness improvements: - Embed verify-email template as compile-time default with file override - Isolate configuration test from environment using figment::Jail ## Dependency Updates...
diff --git a/Cargo.lock b/Cargo.lock index d279aef13..d138d1656 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,7 +35,7 @@ dependencies = [ "getrandom 0.3.4", "once_cell", "version_check", - "zerocopy 0.8.39", + "zerocopy 0.8.42", ] [[package]] @@ -79,9 +79,9 @@ dependencies = [ [[package]] name = "anstre...
1
1
1
[{"id": "G0", "claim": "Falling back to the embedded default on any I/O error from read_to_string(\"templates/verify.html\") silently swallows permission errors, invalid UTF-8 and other failures, hiding broken deployments; it should fall back only when the error kind is NotFound and otherwise return/log the error or fa...
null
torrust__torrust-tracker__103
torrust/torrust-tracker
103
defect
2de81811aa65bab7826c06c607f6aa6f14956e7e
9e493055f8c2bb59b923cce1ca2306c681e09c59
Refactor `StatsTracker`
This is an experimental refactor of the [StatsTracker](https://github.com/torrust/torrust-tracker/blob/develop/src/tracker/statistics.rs). It's still a WIP. Tracker statistics are optional, and we had [problems testing that behaviour](https://github.com/torrust/torrust-tracker/pull/102). I decided to try to ma...
diff --git a/Cargo.lock b/Cargo.lock index 0a60397f9..ce66efa09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -479,6 +479,12 @@ dependencies = [ "syn", ] +[[package]] +name = "difflib" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6184e33543162437515c2e2b48714794e3...
3
1
0
[{"id": "G0", "claim": "The PR author thinks the trait TrackerStatisticsEventSender can be removed and prefers to avoid keeping it, since it exists only so tests can mock it and mockall can mock the struct directly.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
torrust__torrust-tracker__117
torrust/torrust-tracker
117
defect
7a2182c951b667ad17af461feace9622e7ed8041
2d621c5e64f657e9be1f99af65ba8b160b9b68d0
Fix API bug: Torrent cannot be whitelisted twice
- [x] Reproduce the error with an e2e test. - [x] Fix it. - [x] Rename test to `should_allow_to_whitelist_a_torrent` - [x] Refactor: extract function `is_info_hash_whitelisted` as described [here](https://github.com/torrust/torrust-tracker/pull/118#issuecomment-1326847691).
diff --git a/cSpell.json b/cSpell.json index 1df69e4e7..c880bf3ae 100644 --- a/cSpell.json +++ b/cSpell.json @@ -34,6 +34,7 @@ "Pando", "Rasterbar", "repr", + "reqwest", "rngs", "rusqlite", "rustfmt", diff --git a/src/tracker/mod.rs b/src/tracker/mod.rs index...
1
1
1
[{"id": "G0", "claim": "add_torrent_to_database_whitelist treats any database error as 'not already whitelisted' and retries the insert; the reviewer suggests specifically checking for the record-not-found case instead, as done in PR #118.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
torrust__torrust-tracker__96
torrust/torrust-tracker
96
defect
a3320beebfb24db72ac1b5b66f16c583a7122129
301969ccd1f277492cc2046dab69b877041c8040
Integration tests for UDP Tracker
I'm trying to reproduce the error in issue #42. I've only created the scaffolding for integration tests so far. If there is no bug I want to use this scaffolding for other integration tests. If we consider them helpful.
diff --git a/src/logging.rs b/src/logging.rs index 209c9f848..7552a5459 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -18,6 +18,10 @@ pub fn setup_logging(cfg: &Configuration) { }, }; + if log_level == log::LevelFilter::Off { + return; + } + if let Err(_err) = fern::Dispatch::new...
2
2
1
[{"id": "G0", "claim": "When the UDP integration tests run concurrently they each boot their own UDP tracker and interfere, so either the tests must run synchronously or each test must get its own UdpServer on a unique port.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
toss__es-toolkit__1054
toss/es-toolkit
1,054
defect
e20878826dc7d5c8d7a08eff2b9d7547533f386a
0841392e2ae901947951365a843ec18f961eef00
feat(compat): implement create
close #1029
diff --git a/benchmarks/performance/create.bench.ts b/benchmarks/performance/create.bench.ts new file mode 100644 index 0000000000..d657e29143 --- /dev/null +++ b/benchmarks/performance/create.bench.ts @@ -0,0 +1,16 @@ +import { bench, describe } from 'vitest'; +import { create as createToolkitCompat_ } from 'es-toolki...
1
1
0
[{"id": "G0", "claim": "Use `properties[key as keyof U]` instead of casting to `any` when reading the property value in the create() loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
toss__es-toolkit__1062
toss/es-toolkit
1,062
defect
25841dca917c8b90dd97b62557f17bfeeaa6c085
b24b183114c2097865e39b6fdd1ef0d9f42e0204
feat(takeWhile): Implement compat/takeWhile
close #990 ### Implement ```ts import { toArray } from '../_internal/toArray'; import { negate } from '../function/negate'; import { isArrayLikeObject } from '../predicate/isArrayLikeObject'; import { iteratee as createIteratee } from '../util/iteratee'; export function takeWhile<T>( _array: ArrayLike<...
diff --git a/benchmarks/performance/takeWhile.bench.ts b/benchmarks/performance/takeWhile.bench.ts index 1396b3aeb8..f39046aac1 100644 --- a/benchmarks/performance/takeWhile.bench.ts +++ b/benchmarks/performance/takeWhile.bench.ts @@ -1,8 +1,10 @@ import { bench, describe } from 'vitest'; import { takeWhile as takeWh...
4
3
1
[{"id": "G0", "claim": "The public parameter should be named `array` without the leading underscore, keeping the underscore-prefixed name for internal variables instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `iteratee` import should...
null
toss__es-toolkit__1078
toss/es-toolkit
1,078
defect
1dd24664d67e9f32c3a00c985a3f46da016204a3
416b4b150bbfe8f3ba0172154ecc2b1ae9bded58
feat(overEvery): add `overEvery` to compat
close #1051 <img width="1069" alt="Screen Shot 2025-03-23 at 7 22 54 PM" src="https://github.com/user-attachments/assets/f6dfa5d4-b1ae-4af4-b141-2f3c32f3e3b6" />
diff --git a/benchmarks/performance/overEvery.bench.ts b/benchmarks/performance/overEvery.bench.ts new file mode 100644 index 0000000000..fe17fa396c --- /dev/null +++ b/benchmarks/performance/overEvery.bench.ts @@ -0,0 +1,18 @@ +import { bench, describe } from 'vitest'; +import { overEvery as overEveryToolkit_ } from '...
1
1
0
[{"id": "G0", "claim": "In the 'should provide arguments to predicates' test, calling `over('a', 'b', 'c')` trips the TS/ESLint rules, so suppress them by adding `// eslint-disable-next-line` and `// @ts-ignore` comment lines above the call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
toss__es-toolkit__1104
toss/es-toolkit
1,104
defect
adcc5606d1f255fd84f35ef51d87f501dea925d3
8045d80acfe3c63ee24b5cc34eb4b6cfb45e11c1
feat(bindAll): Add bindAll function
Close #1048 add bindAll function ![image](https://github.com/user-attachments/assets/0f55de33-44c9-4e3e-81a4-2dec45f785ce)
diff --git a/benchmarks/performance/bindAll.bench.ts b/benchmarks/performance/bindAll.bench.ts new file mode 100644 index 0000000000..f7308136d4 --- /dev/null +++ b/benchmarks/performance/bindAll.bench.ts @@ -0,0 +1,36 @@ +import { bench, describe } from 'vitest'; +import { bindAll as bindAllToolkit_ } from 'es-toolkit...
4
3
1
[{"id": "G0", "claim": "Use the project's predicate utilities (isFunction, isArray from src/compat/predicate/) instead of direct typeof and Array.isArray checks, for consistency across the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
toss__es-toolkit__1123
toss/es-toolkit
1,123
defect
90026ec75247c2332f71fc5f11636a750cf0db41
25adfa2f7188fb22e493cc630c3b0091e6baa344
feat(compat): implement zipWith
close #999
diff --git a/benchmarks/performance/zipWith.bench.ts b/benchmarks/performance/zipWith.bench.ts index 688462344c..373dab0f7f 100644 --- a/benchmarks/performance/zipWith.bench.ts +++ b/benchmarks/performance/zipWith.bench.ts @@ -1,8 +1,10 @@ import { bench, describe } from 'vitest'; import { zipWith as zipWithToolkit_ ...
3
2
0
[{"id": "G0", "claim": "The zipWith iteratee check should use the isFunction utility from src/predicate/isFunction.ts instead of a direct typeof check, for consistency with other type checks in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
toss__es-toolkit__113
toss/es-toolkit
113
defect
ead6a8290e979d55b8b2acca22f4c24730f0af72
fc274a0c1fcddee6342f0684f6d2219d14643713
feat(unzipWith): add unzipWith
close #90 I created an unzipWith function according to the requirements of the issue. ![스크린샷 2024-07-02 오후 11 43 39](https://github.com/toss/es-toolkit/assets/55759551/a5e18dc7-ab81-4216-b586-19ea75fa57fc)
diff --git a/benchmarks/unzipWith.bench.ts b/benchmarks/unzipWith.bench.ts new file mode 100644 index 0000000000..fedff7dfb3 --- /dev/null +++ b/benchmarks/unzipWith.bench.ts @@ -0,0 +1,27 @@ +import { unzipWith as unzipWithToolkit } from 'es-toolkit'; +import { unzipWith as unzipWithLodash } from 'lodash'; +import { b...
15
15
2
[{"id": "G0", "claim": "The overload without an iteratee should probably be dropped and only the case where `iteratee` is required supported, since there is no real use for `unzipWith` otherwise.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Korean ...
null
toss__es-toolkit__115
toss/es-toolkit
115
defect
ead6a8290e979d55b8b2acca22f4c24730f0af72
44086d27d64e370c57398b081edfd445c7e5ffd6
feat(without): Add without function
Closes #106 This pull request implements the without function, which behaves similarly to the [without function in lodash](https://lodash.com/docs/4.17.15#without). The function takes an array and a list of values as parameters and uses the SameValueZero equality comparison for equality comparisons. Below is a...
diff --git a/benchmarks/without.bench.ts b/benchmarks/without.bench.ts new file mode 100644 index 0000000000..f8cbd26f0e --- /dev/null +++ b/benchmarks/without.bench.ts @@ -0,0 +1,31 @@ +import { bench, describe } from 'vitest'; +import { without as withoutEsToolkit } from 'es-toolkit'; +import { without as withoutLoda...
9
9
1
[{"id": "G0", "claim": "The long-winded intro text of the Korean docs, English docs and JSDoc should be simplified to a short description with a SameValueZero link noting NaN is supported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For consist...
null
toss__es-toolkit__1176
toss/es-toolkit
1,176
defect
011ba1988de25f0c9f1bffcefb91c861d0ea9d66
1d487f632a0bac32cd5d3d63c8585bb8b26897c7
fix[maxBy, minBy]: improve type definitions and empty array handling
## Changes Improved the type definitions and implementation of `maxBy` and `minBy` functions: 1. Added explicit empty array handling logic 2. Enhanced consistency of code logic 3. Updated comments and added examples 4. Optimized performance (changed loop starting point) ## Background The existing `maxBy`...
diff --git a/src/array/maxBy.spec.ts b/src/array/maxBy.spec.ts index a06a52e17c..974ca514c1 100644 --- a/src/array/maxBy.spec.ts +++ b/src/array/maxBy.spec.ts @@ -34,4 +34,10 @@ describe('maxBy', () => { const result = maxBy(people, person => person.age); expect(result).toBeUndefined(); }); + + it('should...
1
1
0
[{"id": "G0", "claim": "The test description 'should handle arrays with NaN values correctly' is too broad and should be clarified to state that skipping NaN is the intended behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
toss__es-toolkit__1180
toss/es-toolkit
1,180
defect
d8d390f798472a2bc91e9c4cf56acd08542ab4e5
a464f9cff2723a67bd533a62a973ce998c9460b5
feat(findLastKey): add findLastKey to compat
close #1031 added compact/findLastKey described in #1031 ### Test ![spec](https://github.com/user-attachments/assets/83b0de33-aa9c-4af9-ad71-f3545ab5d12a) ### Benchmarks ![bench](https://github.com/user-attachments/assets/711d7c36-a163-4ee5-b874-1ac73a506f60)
diff --git a/benchmarks/performance/findLastKey.bench.ts b/benchmarks/performance/findLastKey.bench.ts new file mode 100644 index 0000000000..e27a0b994f --- /dev/null +++ b/benchmarks/performance/findLastKey.bench.ts @@ -0,0 +1,35 @@ +import { bench, describe } from 'vitest'; +import { findLastKey as findLastKeyLodash ...
2
2
0
[{"id": "G0", "claim": "The benchmark should import findLastKeyCompatToolkit via the absolute path 'es-toolkit/compat' instead of the relative path, since the NaN measurement was only a Vitest cache artifact.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
toss__es-toolkit__1511
toss/es-toolkit
1,511
defect
175c8f537e9f5d37a31167e2e06cb8f168c7a9e4
58a143ef96aa7d4b104f3b3eebbfb8856cce2dd5
fix(isFinite): implement type predicate to narrow type to number
Closed #1508 ## Description This PR updates the `isFinite` utility to behave as a proper **TypeScript type predicate**. Previously, it only returned a `boolean` value, which did not narrow the input type. Now it returns `value is number`, aligning with its intended behavior and enabling type narrowing for ...
diff --git a/docs/ja/reference/compat/predicate/isFinite.md b/docs/ja/reference/compat/predicate/isFinite.md index a794caef27..430d4407b4 100644 --- a/docs/ja/reference/compat/predicate/isFinite.md +++ b/docs/ja/reference/compat/predicate/isFinite.md @@ -50,4 +50,9 @@ isFinite(undefined); // false #### 戻り値 -(`bool...
3
2
0
[{"id": "G0", "claim": "The return-type lines in the localized docs (zh_hans, ko, ja) are missing the colon after `(`value is number`)` and should read `(`value is number`):` to match the English docs formatting.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1...
null
toss__es-toolkit__152
toss/es-toolkit
152
defect
e4d906358a7fb66089ea6306850ecdb5a67c7459
14bde0446ac4716916515fce48bc261af05ddf23
feat(snakeCase): add snakeCase
I have implemented a `snakeCase` function to address the requirements outlined in issue #120. Following the suggestion of moving pattern to constants, I implemented caseSplitPattern in constants and test it. ![image](https://github.com/toss/es-toolkit/assets/99087502/099ec403-57ae-4e70-9cb4-ebc86de1ce57) Since...
diff --git a/.scripts/postbuild.sh b/.scripts/postbuild.sh index fd1ecb232a..48f0bdb30a 100755 --- a/.scripts/postbuild.sh +++ b/.scripts/postbuild.sh @@ -5,3 +5,4 @@ echo "export * from './dist/math';" > math.d.ts echo "export * from './dist/object';" > object.d.ts echo "export * from './dist/predicate';" > predicat...
5
4
0
[{"id": "G0", "claim": "The benchmark input string 'camleCase' is a typo and should read 'camelCase'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Korean doc's opening paragraphs should be reworded to the 해요체 style ('변환해요', '스네이크 표기법', '명명 규칙이...
null
toss__es-toolkit__1538
toss/es-toolkit
1,538
defect
335011bd76f14a87372dc4f071580234589ee384
650dabd1a7b50b439903e9243653ce7d04835d20
fix(toCamelCaseKeys): improve toCamelCaseKeys type inference for uppercase keys
close #1537 ## Descriptio This PR fixes a mismatch between the runtime behavior and TypeScript types of `toCamelCaseKeys`, especially for **uppercase keys** (e.g. `FIRST_NAME`, `LAST`). At runtime, `camelCase('LAST')` correctly returns `last`, but the type-level transformation previously inferred `lAST`. Thi...
diff --git a/docs/ja/reference/object/toCamelCaseKeys.md b/docs/ja/reference/object/toCamelCaseKeys.md index 4ace663a8f..6cf3f59d47 100644 --- a/docs/ja/reference/object/toCamelCaseKeys.md +++ b/docs/ja/reference/object/toCamelCaseKeys.md @@ -12,7 +12,11 @@ const camelCased = toCamelCaseKeys(obj); ### `toCamelCaseKe...
3
3
0
[{"id": "G0", "claim": "The test description has the duplicate word 'keys' and should read \"should convert uppercase keys to camelCase at both runtime and type level\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment has the duplic...
null
toss__es-toolkit__1694
toss/es-toolkit
1,694
defect
95111dd04fe926820e80469205c13df9afb94d5c
39eab044e38d78e1f2bfc6ef74ab6baa71f5bac6
fix(AbortError, TimeoutError): fall back to Error when DOMException is undefined
## Summary Since 1.46.0 (#1660), `AbortError` and `TimeoutError` extend `DOMException`. This breaks on any JS runtime that does not expose `DOMException` as a global — most notably **Hermes** (the default engine for React Native and Expo), but also older Node versions, some workers, and QuickJS. On those runtimes, me...
diff --git a/src/error/AbortError.spec.ts b/src/error/AbortError.spec.ts new file mode 100644 index 0000000000..5009af19c1 --- /dev/null +++ b/src/error/AbortError.spec.ts @@ -0,0 +1,20 @@ +import { describe, expect, it } from 'vitest'; +import { AbortError } from './AbortError'; + +describe('AbortError', () => { + it...
3
3
2
[{"id": "G0", "claim": "The explicit constructor type `new (message?: string): Error` makes the emitted .d.ts declare the error as an Error subclass instead of a DOMException subclass even on runtimes where DOMException exists; the base's public typing should be preserved (e.g. typed/cast as typeof DOMException) while ...
null
toss__es-toolkit__210
toss/es-toolkit
210
defect
deb38828907aad5b088fce504ebd594b40cbbc8d
446d5f6937dbaa0f2ec6db9cb78e0400924a3ca7
feat(withTimeout): add withTimeout function
# timeout If it responds later than the specified time, it is treated as a `TimeoutError` error. This function returns a Promise that resolves after the specified timeout, allowing you to use it with async/await to timeout execution. It also supports an optional AbortSignal to cancel the timeout. ## Signatur...
diff --git a/docs/ko/reference/promise/withTimeout.md b/docs/ko/reference/promise/withTimeout.md new file mode 100644 index 0000000000..d2600b31f5 --- /dev/null +++ b/docs/ko/reference/promise/withTimeout.md @@ -0,0 +1,48 @@ +# withTimeout + +지정한 시간보다 늦은 시간에 응답할 경우 `TimeoutError` 에러로 처리합니다. + +이 함수는 특정한 시간 이후 보다 value의...
5
4
1
[{"id": "G0", "claim": "The reviewer questions whether the `timeout` function is needed at all, since Promises are not cancellable and the underlying work still runs after the timeout fires (in the example, `logged` will still be logged).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introdu...
null
toss__es-toolkit__478
toss/es-toolkit
478
defect
38e3e017a0d11c56ddaeea1c9e1f994ecd106605
8f24d0b13b7e83d601a309fcac6bfe9fc3eba8d6
feat(some): add `some` function
Hi there! 👋 I made some changes to help improve the project. Please let me know if anything needs fixing or if you have any feedback. I'm happy to adjust! 😊 <img width="748" alt="스크린샷 2024-09-07 오전 3 34 38" src="https://github.com/user-attachments/assets/c9c8242a-2f41-4b77-9f3f-087d2f5ca836"> cl...
diff --git a/benchmarks/performance/some.bench.ts b/benchmarks/performance/some.bench.ts new file mode 100644 index 0000000000..c874233618 --- /dev/null +++ b/benchmarks/performance/some.bench.ts @@ -0,0 +1,19 @@ +import { some as someToolkit } from 'es-toolkit'; +import { some as lodashSome } from 'lodash'; +import { ...
5
3
2
[{"id": "G0", "claim": "The new `some` function should be added in the `compat` directory (like concat) instead of `src/array`, since the toolkit recommends using the native `Array.prototype.some` anyway.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
toss__es-toolkit__557
toss/es-toolkit
557
defect
fd119dd2c1fa777f9348b75bd28eb7eee580c842
5bc8a243a6b9c0a8bfe6c1b6bcc1f99cb3f97249
feat: support constant case
Closed #309
diff --git a/docs/reference/string/constantCase.md b/docs/reference/string/constantCase.md new file mode 100644 index 0000000000..df85a6bc8a --- /dev/null +++ b/docs/reference/string/constantCase.md @@ -0,0 +1,32 @@ +# constantCase + +将字符串转换为常量命名法(constant case)。 + +常量命名法是一种命名约定,其中每个单词都以大写字母书写,并用下划线(\_)分隔。 + +例如 `CONST...
2
2
1
[{"id": "G0", "claim": "The zh_hans constantCase docs should read 'For example, `CONSTANT_CASE`.' (with an unescaped underscore) instead of 'Such as `CONSTANT_CASE`.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constantCase docstring wrong...
null
toss__es-toolkit__794
toss/es-toolkit
794
defect
5053b7f08737c54b91f68ed5d40ae2055b55c331
91cf5250b56f7075f88446f2a47e9732f89f54f6
fix(cloneDeep): maintain prototype when cloning class instances
Addresses #777 and #801. Benchmark results ![Benchmark results](https://github.com/user-attachments/assets/5dc384b7-c140-46db-8f96-e9d2035c0261)
diff --git a/benchmarks/performance/cloneDeep.bench.ts b/benchmarks/performance/cloneDeep.bench.ts index 566561fe2a..ff66908798 100644 --- a/benchmarks/performance/cloneDeep.bench.ts +++ b/benchmarks/performance/cloneDeep.bench.ts @@ -15,6 +15,9 @@ const obj = { object: { a: 1, b: 'es-toolkit' }, date: new Date()...
2
2
0
[{"id": "G0", "claim": "The `typeof obj.constructor === 'function' && !isPrototype(obj)` guard before using `Object.create(Object.getPrototypeOf(obj))` seems unnecessary — plain `Object.create(Object.getPrototypeOf(obj))` would be sufficient.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i...
null
toss__es-toolkit__798
toss/es-toolkit
798
defect
67ea6bfe18c6b6f17d4348e3d3445de61bf4230d
21376ccc5dd7974974e2e512bc919b411d92a480
perf(at): Improve performance and compatibility with lodash
It turns out that the native `.at()` is kinda slow, and this PR improves the performance (especially in big arrays). --- Performance before: ![Before](https://github.com/user-attachments/assets/5b19dcdb-eb9d-4ec9-8bc8-b553017fc0aa) --- Performance after: ![After](https://github.com/user-attachments/assets...
diff --git a/src/array/at.spec.ts b/src/array/at.spec.ts index 7290a410c8..d5292b8b8d 100644 --- a/src/array/at.spec.ts +++ b/src/array/at.spec.ts @@ -13,10 +13,20 @@ describe('at', () => { }); it('should return `undefined` for nonexistent keys', () => { - expect(at(['a', 'b', 'c'], [2, 4, 0])).toEqual(['c',...
2
2
1
[{"id": "G0", "claim": "The non-compatibility `at` should follow the native `Array#at(...)` behavior, otherwise `at(arr, indices)` would behave differently from `indices.map(index => arr.at(index))`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Because...
null
toss__es-toolkit__980
toss/es-toolkit
980
defect
83d9d2df79d077529fad86288c0acdb49e3d4bcb
8b115592b7847bcf215ded9c36e217d7fc51c8df
feat(pullAllWith): Add the `pullAllWith` function
closed: #977 close: #985 I worked on adding a new function, `pullAllWith`. The test code used to verify it is included in the above issue.
diff --git a/benchmarks/performance/pullAllWith.bench.ts b/benchmarks/performance/pullAllWith.bench.ts new file mode 100644 index 0000000000..e5b91e189d --- /dev/null +++ b/benchmarks/performance/pullAllWith.bench.ts @@ -0,0 +1,36 @@ +import { bench, describe } from 'vitest'; +import { pullAllWith as pullAllWithToolkit...
2
2
1
[{"id": "G0", "claim": "The Lodash test cases for pullAllWith were not properly migrated, so the PR should use the exact test cases specified in the linked issue.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Korean docs should summarize the functi...
null
toss__granite__104
toss/granite
104
defect
1ba1b361560bd8593cafb7313ea706e320a82150
1e9ff8397e2bacb711bb80ed411ca843f1883bc0
fix(plugin-core): missing Metro configuration compatibility
# Description Fix Metro configuration compatibility missing from the previous work (#97).
diff --git a/.changeset/upset-ducks-sip.md b/.changeset/upset-ducks-sip.md new file mode 100644 index 000000000..0fabc0c74 --- /dev/null +++ b/.changeset/upset-ducks-sip.md @@ -0,0 +1,5 @@ +--- +'@granite-js/plugin-core': patch +--- + +missing Metro configuration compatibility diff --git a/packages/plugin-core/src/type...
1
1
0
[{"id": "G0", "claim": "The transformSync mock in resolveConfig.spec.ts should return the joined string [code, '// replaced code'].join('\\n') as suggested, rather than the concatenation code + '\\n// replaced code'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
toss__granite__64
toss/granite
64
defect
989e1411367ccfbf840937cf2abc8db1d5146483
d108e016c15f52f82af07101ea2ce222c35a088a
refactor: improve config structure
# Description Unifies complex configuration objects and ensures that both the `build` and `dev` environment reference the same configuration. Also removes unused legacy configurations. | Env | Preview | |:---:|:---:| | Metro | <img width="1240" height="1021" alt="스크린샷 2025-07-25 오전 3 27 51" src="https:...
diff --git a/.changeset/bright-cows-allow.md b/.changeset/bright-cows-allow.md new file mode 100644 index 000000000..17996da4c --- /dev/null +++ b/.changeset/bright-cows-allow.md @@ -0,0 +1,7 @@ +--- +'@granite-js/plugin-core': patch +'@granite-js/mpack': patch +'@granite-js/cli': patch +--- + +improve config structure...
2
2
1
[{"id": "G0", "claim": "@granite-js/mpack should be a peerDependency (e.g. \"@granite-js/mpack\": \"*\") of @granite-js/plugin-core rather than a runtime dependency.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rephrase the cache option positively — e....
null
toss__granite__80
toss/granite
80
defect
bc69cc75810fa4d454042632ea8aa33e6abdabcf
f3112dd6877f6c54ea57bb34f2c94b64bba4bdf2
feat(react-native): support initialScheme, support host
## Features - Add a `host` context to the scheme structure. You can configure it by passing a `host` value to `defineConfig`. - Enable `initialScheme` to be provided from outside as well. ## docs <img width="1402" height="811" alt="image" src="https://github.com/user-attachments/assets/3e3fe820-32fa-4612-b00d...
diff --git a/docs/ko/reference/react-native/config/defineConfig.md b/docs/ko/reference/react-native/config/defineConfig.md index 4326cccef..ef3624729 100644 --- a/docs/ko/reference/react-native/config/defineConfig.md +++ b/docs/ko/reference/react-native/config/defineConfig.md @@ -19,6 +19,7 @@ Granite 애플리케이션의 주요 설정을 정의...
1
1
0
[{"id": "G0", "claim": "The scheme-prefix construction should be rewritten as human-readable code using `new URL(appName, base)` with a `base` of either `${scheme}://${host}/` or `${scheme}://` instead of the inline template.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
tough-dev-school__education-backend__2055
tough-dev-school/education-backend
2,055
defect
6c459976cac43a9dfeb33e6a1cb0dd65ebfe3724
53dffa3c533ead0803ac029f46808769372c3757
Stripe refunds and stripe notifications saver
Возвраты в stripe, черновик. Тестами покрыт оч ограничено. Покрою если сам подход норм. update: тесты на месте. Что поменялось: 1. Меняю модель `StripeNotificatiions` — пару полей убираю (вроде как избыточны), добавляю чего не хватало 2. Сохраняем вебхуки в отдельном сервисе 3. Убираю доп. валидацию полей веб...
diff --git a/src/orders/signals/handlers.py b/src/orders/signals/handlers.py index 58b336168..6646c34bd 100644 --- a/src/orders/signals/handlers.py +++ b/src/orders/signals/handlers.py @@ -36,7 +36,7 @@ def mark_order_as_paid_on_stripe_notifications(instance: StripeNotification, cre if not created: return...
4
3
0
[{"id": "G0", "claim": "StripeWebhookSaver does more than save webhooks — it also validates them — and should be restructured as a router that dispatches to registered per-event handlers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Stripe webhook ...
null
tough-dev-school__education-backend__2228
tough-dev-school/education-backend
2,228
defect
475fa7aa1ad95ce96d0e5548cbee4e647fc6b674
05b82d695a9719f8d20bb8170c4a7532c9f33419
handle `ANN` ruff rules
Я просмотрела заигноренные `ANN`-правила (из `flake8-annotations`) и некоторые ввела в оборот, некоторые оставила в игноре. Они — почти то же, что `mypy`: требуют добавления аннотаций; но `mypy` медленный, а руф — быстрый. Можно, не дожидаясь отчёта майпая, в рамках руфа быстро узнать, где какие аннотации забылись прос...
diff --git a/Makefile b/Makefile index c3eb65843..58a2339a3 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ compilemessages: fmt: poetry run ruff format src tests - poetry run ruff check src tests --fix + poetry run ruff check src tests --fix --unsafe-fixes poetry run toml-sort pyproject.toml lint: diff ...
5
5
3
[{"id": "G0", "claim": "The annotated signatures of the ProdReadOnlyStorage method overrides (exists, delete, size, save) diverge from the parent-class signatures they override, and `save` is not even a method of the overridden django-storages class, so the annotations were put on without checking the original signatur...
null
tough-dev-school__education-backend__2328
tough-dev-school/education-backend
2,328
defect
7ef612b4f271c6030f1df98e357b85e3eca0dca4
47a535ca10c974f10e075154f14af27aa74c3754
Retry send mail with default configuration if template not found
https://3.basecamp.com/5104612/buckets/29069198/todos/7515749725
diff --git a/src/apps/mailing/owl.py b/src/apps/mailing/owl.py index 1888fffca..069afac2c 100644 --- a/src/apps/mailing/owl.py +++ b/src/apps/mailing/owl.py @@ -1,5 +1,7 @@ from dataclasses import dataclass +from typing import Callable +from anymail.exceptions import AnymailRequestsAPIError from anymail.message imp...
1
1
0
[{"id": "G0", "claim": "The retry loop should be replaced with a simpler, more explicit approach: catch TemplateNotFoundError in act(), resend once with the default configuration, and refactor the class accordingly instead of recursing via a new Owl instance.", "category": "design", "verdict": "supported", "priority": ...
null
tough-dev-school__education-backend__2340
tough-dev-school/education-backend
2,340
defect
52d58d550d5f7517c3bc493b88b47a4dd434ca53
fe41f06a2c7661f8d302932e8dcf7abe5d7a64dc
Denormalize is_checked in AnswerCrossCheck
https://3.basecamp.com/5104612/buckets/29069198/todos/6693171553
diff --git a/mypy.ini b/mypy.ini index 1afdc4e6c..b5ec3aea7 100644 --- a/mypy.ini +++ b/mypy.ini @@ -89,3 +89,6 @@ ignore_missing_imports = on [mypy-benedict.*] ignore_missing_imports = on + +[mypy-tqdm.*] +ignore_missing_imports = on diff --git a/poetry.lock b/poetry.lock index bfca675fd..3db4248b6 100644 --- a/po...
5
3
1
[{"id": "G0", "claim": "The types-tqdm stub package should be tried instead of adding an ignore_missing_imports section for tqdm to mypy.ini.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The # type: ignore on the AnswerCreator call in AnswerVi...
null
tough-dev-school__education-backend__2382
tough-dev-school/education-backend
2,382
defect
ac6fe0693897c31cc28d2f9d5ad9a0b00060057e
5d5a3e12bbdd64103acf465d699c41366f436cc6
Stripe KZT
https://3.basecamp.com/5104612/buckets/29069198/todos/7685033796
diff --git a/src/apps/banking/base.py b/src/apps/banking/base.py index 221941c8c..a27078d8c 100644 --- a/src/apps/banking/base.py +++ b/src/apps/banking/base.py @@ -17,7 +17,7 @@ class Bank(metaclass=ABCMeta): currency = "RUB" currency_symbol = "₽" - ue: int = 1 # ue stands for «условные единицы», this i...
2
2
2
[{"id": "G0", "claim": "The Bank.ue exchange-rate attribute should use Decimal instead of float, because money and other real-world values must not be stored in float.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There is no test covering a ue exc...
null
tough-dev-school__education-backend__2406
tough-dev-school/education-backend
2,406
defect
ee9bbcd42a1671c4a644481ec62ed8a7984cbefa
7de605e0c20959ac2db38b6b6a2062233e4fdeb0
Rutube private videos
Контекст [здесь](https://3.basecamp.com/5104612/buckets/29069198/todos/7738420185#__recording_7789266863) В двух словах: нужно было добавить возможность для приватных видео из rutube хранить ключи доступа и по возможности сохранить простой интерфейс в админке (скопировал ссылку, вставил и всё готово)
diff --git a/src/apps/notion/admin/video.py b/src/apps/notion/admin/video.py index ff9d97a4a..ecc1ce05f 100644 --- a/src/apps/notion/admin/video.py +++ b/src/apps/notion/admin/video.py @@ -1,4 +1,4 @@ -from typing import no_type_check +from typing import Any, Mapping, no_type_check from django import forms from dja...
1
1
1
[{"id": "G0", "claim": "get_rutube_access_key should verify the key is taken from the right query parameter, since pasted URLs can carry extraneous UTM tags that the current split(\"=\")[-1] would pick up instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tower-rs__tower-http__10
tower-rs/tower-http
10
defect
64585dd57e78a737dea29f952736ef2046f84238
4bdcfc70cb30cac682952d5b27abcd9deb4a24cf
Add Body::is_end_stream
Provides a hint indicating if the Body is done streaming. Being done implies that the Body value will no longer yield data or trailers. False negatives are permitted, but not false positives.
diff --git a/tower-http-service/src/body.rs b/tower-http-service/src/body.rs index 2b6788b82..d17c31ca6 100644 --- a/tower-http-service/src/body.rs +++ b/tower-http-service/src/body.rs @@ -21,6 +21,17 @@ pub trait Body { /// Poll for an optional **single** `HeaderMap` of trailers. fn poll_trailers(&mut self...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the is_end_stream docs: \"returend\" should read \"returned\" from `poll_stream` or `poll_trailers`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tower-rs__tower-http__12
tower-rs/tower-http
12
defect
6d7a9fdc8e2f7ec047dd24b39a06d5bedddb7ca1
d5fb46f5862d33536f2bd55f520b6f536fc8b4b8
Add middleware for constant token based auth
Add support for constant token based auth - this is useful for scenarios where the auth token is exchanged out of band. This does not currently support scenarios where the token needs to change periodically, like login and token refresh, but should be adaptable to those cases when the need arises.
diff --git a/Cargo.toml b/Cargo.toml index 84f479718..d1d73715f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] members = [ - "tower-add-origin", + "tower-request-modifier", "tower-http-service", ] diff --git a/tower-add-origin/README.md b/tower-add-origin/README.md deleted file mode 100644...
8
8
2
[{"id": "G0", "claim": "The middleware seems like it could be about adding a constant header of any kind, not just a token.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The constant-header feature could be merged with add-origin into a single middleware t...
null
tower-rs__tower-http__30
tower-rs/tower-http
30
defect
cb393c933f5167f934abde9d4f902e44d9ea2d50
e6458c3270c22bc26c5022f385a46d3fe9d7bd7c
Update to `http` v0.2, `http-body` v0.3, `tower-service` v0.3 and…
This removes `BodyExt::into_buf_stream` since `tokio-buf` crate was removed since `tokio` 0.2, and consequently, `BodyExt` has no methods now. I think there should be an alternative method like `BodyExt::into_stream` or otherwise `BodyExt` should be removed, but that is beyond the scope of this PR.
diff --git a/tower-http-util/Cargo.toml b/tower-http-util/Cargo.toml index e3e09ae98..d85a2dec6 100644 --- a/tower-http-util/Cargo.toml +++ b/tower-http-util/Cargo.toml @@ -21,10 +21,8 @@ Utilities for working with HTTP services. """ [dependencies] -futures = "0.1.25" -http = "0.1.16" -http-body = "0.1" +http = "0....
2
1
0
[{"id": "G0", "claim": "The `tokio` dependency added to tower-http-util should be declared with the `io` feature enabled, as `tokio = { version = \"0.2\", features = [\"io\"] }`.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tower-request-mod...
null
tower-rs__tower-http__8
tower-rs/tower-http
8
defect
786816a0ca797ab75794d36f2b915fa67967f96b
5db5209391eb1a2161fbf92fbd71c5bee719813d
Refresh tower-http
This is a work in progress to bring `tower-http` up to date.
diff --git a/Cargo.toml b/Cargo.toml index a32dfe391..84f479718 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,5 @@ -[package] -name = "tower-http" -version = "0.1.0" -authors = ["Carl Lerche <me@carllerche.com>"] - [workspace] members = [ "tower-add-origin", + "tower-http-service", ] - -[dependencies] -fu...
4
3
1
[{"id": "G0", "claim": "The `HttpService` trait methods should import `IntoService`/`AsService` instead of spelling out the full `util::` paths in their signatures.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docs of the new `AsService` w...
null
tower-rs__tower__118
tower-rs/tower
118
defect
a422ee5680ddb533b760f40d497d58087d47351f
1b0eccc378035074598d10d8660024d54d991e9d
Add the DirectService trait
This patch adds the `DirectService` trait, and related implementations over it in `tower_balance` and `tower_buffer`, as discussed in #110. `DirectService` is similar to a `Service`, but must be "driven" through calls to `poll_service` for the futures returned by `call` to make progress. The motivation behind adding...
diff --git a/Cargo.toml b/Cargo.toml index 058234fb9..de46001ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ members = [ "tower-balance", "tower-buffer", + "tower-direct-service", "tower-discover", "tower-filter", "tower-in-flight-limit", diff --git a/tower-balance/Cargo.toml b/tower-balanc...
4
3
1
[{"id": "G0", "claim": "No keys are ever inserted into the `pending` set that `Balance::poll_service` retains over, so the tracking of services with outstanding requests is dead code and cannot work as written.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
tower-rs__tower__166
tower-rs/tower
166
defect
a92a108239894f2aff47efed66f970760bf2552a
ce1738f3e9fa727b27088f751797016b3249afc6
Cleanup Buffer
This PR is mostly just about breaking up the single `lib.rs` file into a bunch of mods. This changes the public API of the crate by: - Moving all error types into an `error` module - Moving `ResponseFuture` into a `future` module. Error and future types are secondary, so moving them into their own modules leave...
diff --git a/tower-buffer/Cargo.toml b/tower-buffer/Cargo.toml index e960cd699..bc629ff6c 100644 --- a/tower-buffer/Cargo.toml +++ b/tower-buffer/Cargo.toml @@ -8,7 +8,6 @@ publish = false futures = "0.1" tower-service = { version = "0.2", path = "../tower-service" } tokio-executor = "0.1" -lazycell = "1.2" tokio-s...
1
1
0
[{"id": "G0", "claim": "Add a note to the `Worker` doc comment explaining that the type is `pub` only because it is sealed over, since it is not actually exported by `tower-buffer`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tower-rs__tower__204
tower-rs/tower
204
defect
733b597f38a1acf1c9a25ed4528a96d168bb4cd8
34cf5868c49a13808d6ac584b3de5f841819a204
Introduce tower-load-shed
Provides a middleware that immediately fails any request if the underlying service isn't ready yet. This is useful when used in conjunction with `InFlightLimit` or others, so that requests are rejected immediately, instead of keeping track of extra pending requests.
diff --git a/Cargo.toml b/Cargo.toml index 1f6fd843d4..8b4e69069b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,8 +7,9 @@ members = [ "tower-discover", "tower-filter", "tower-in-flight-limit", - "tower-mock", "tower-layer", + "tower-mock", + "tower-overload", "tower-rate-limit", "tower-reconnect",...
4
3
2
[{"id": "G0", "claim": "The crate name `tower-overload` is misleading (it suggests stress testing) and should be changed, preferably to `tower-load-shed`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The service's `poll_ready` should call the inner ser...
null
tower-rs__tower__236
tower-rs/tower
236
defect
50fc5e8e630cbb23bce283d773a4e8b6523d14bc
7043bf3c46ebb199663e9abc70f1a003da2a0c60
Add hedge retry middleware
Add tower-hedge, a middleware that pre-emptively retries requests which have been outstanding for longer than a given latency percentile. If either of the original future or the retry future completes, that value is used. For more information about hedge requests, see: [The Tail at Scale](https://cseweb.ucsd.edu/~gmp...
diff --git a/Cargo.toml b/Cargo.toml index 527e29561..36ca83845 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ members = [ "tower-buffer", "tower-discover", "tower-filter", + "tower-hedge", "tower-in-flight-limit", "tower-mock", "tower-layer", diff --git a/tower-filter/src/lib.rs b/tower-fi...
14
13
6
[{"id": "G0", "claim": "The service constructor takes too many parameters; provide a builder (with reasonable defaults) for configuring `min_data_points`, `latency_percentile`, and `period`.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The private `State...
null
tower-rs__tower__237
tower-rs/tower
237
defect
5ed014fc3769dbfa01e5cb27f9c9b7dc96f232fe
d18aa890bbe7d56013130e5184d2026e64e2d873
Create `tower-test` and include tower-mock.
tower-mock is deleted in favor of having a single test crate. Once `tokio-test` is released, I would expect that it will be re-exported as part of `tower-test`. Some changes are made to mock: - `mock::pair()` is used to get the two handles and `Mock::new` is deleted. - `Respond` is renamed to `SendResponse`. - ...
diff --git a/Cargo.toml b/Cargo.toml index 2e23d58b4..1dcfc897f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,11 @@ members = [ "tower-in-flight-limit", "tower-layer", "tower-load-shed", - "tower-mock", "tower-rate-limit", "tower-reconnect", "tower-retry", "tower-service", + "tower-test", ...
1
1
0
[{"id": "G0", "claim": "It should be possible to get the assert_request_eq! macro via a normal `use` import (macro_import_check).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tower-rs__tower__340
tower-rs/tower
340
defect
3d642f5ca0fe0c6d637b2aa1b0d721a085267130
bd2408a2e73a9ff01d9d7c4fbc3f6e3d60e8c40f
Make Ready only take Service by reference
Rather than consuming `self` and returning `(Self, _)`. This did mean that a few crates that depended on `Ready` to own the `Service` and provide it once it was ready had to change to call `poll_ready` directly. Which in turn meant adding in some PhantomData<Request> so that the impl blocks wouldn't be under-constr...
diff --git a/tower-balance/Cargo.toml b/tower-balance/Cargo.toml index ba8203737..5ca87b8f6 100644 --- a/tower-balance/Cargo.toml +++ b/tower-balance/Cargo.toml @@ -40,7 +40,6 @@ tower-layer = { version = "=0.3.0-alpha.1", path = "../tower-layer" } tower-load = { version = "=0.3.0-alpha.1", path = "../tower-load" } t...
2
1
0
[{"id": "G0", "claim": "The `.expect(\"illegal state\")` applied to the service Option inside `BackgroundReady::poll`'s readiness polling is an unfortunate way to handle the state.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `Ready` futur...
null
tower-rs__tower__377
tower-rs/tower
377
defect
877c194b1b839ebfad72cc773fb27f07d1ec2a2e
92b70eb7ee777b92587b1558e67c17745dd5a0ce
Update buffer and prepare for release
Big change here is dropping executor support and defaulting layer to use `tokio::spawn` but also add a new `Buffer::pair` that will return the `Buffer` and `Worker` pair.
diff --git a/Cargo.toml b/Cargo.toml index 465b7361b..620073df3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [ # "tower", # "tower-balance", - # "tower-buffer", + "tower-buffer", # "tower-discover", # "tower-filter", # "tower-hedge", diff --git a/tower-buffer/CHANGELOG.md b/tower...
2
1
0
[{"id": "G0", "claim": "In the `pair` doc comment, `tokio` should be wrapped in backticks: \"This is useful if you do not want to spawn directly onto the `tokio` runtime\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`Buffer::new` should just c...
null
tower-rs__tower__439
tower-rs/tower
439
defect
cd7dd12315706fc0860a35646b1eb7b60c50a5c1
687155a26e59772e7de6fd6de448f3b7031eaa87
rate: Fix rate limit not resetting
Same as #438 but for the master branch. Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
diff --git a/tower/src/limit/rate/service.rs b/tower/src/limit/rate/service.rs index 7e55ec8ef..7e426c615 100644 --- a/tower/src/limit/rate/service.rs +++ b/tower/src/limit/rate/service.rs @@ -67,7 +67,10 @@ where match self.state { State::Ready { .. } => return Poll::Ready(ready!(self.inner.poll_...
1
1
0
[{"id": "G0", "claim": "A comment should be added to the new remaining_gets_reset test documenting the regression that it reproduces.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tower-rs__tower__449
tower-rs/tower
449
defect
6a25d322b5160c1033e8741ff5c12b175a83bc21
7b709d93bf6306771c8c8c36a2b34376b228079e
Spring cleaning for tower::balance
Noteworthy changes: - All constructors now follow the same pattern: `new` uses OS entropy, `from_rng` takes a `R: Rng` and seeds the randomness from there. `from_rng` is fallible, since randomness generators can be fallible. - `BalanceLayer` was renamed to `MakeBalanceLayer`, since it is not _really_ ...
diff --git a/tower/examples/tower-balance.rs b/tower/examples/tower-balance.rs index eb891c0fc..649cbeb56 100644 --- a/tower/examples/tower-balance.rs +++ b/tower/examples/tower-balance.rs @@ -58,7 +58,7 @@ async fn main() { let decay = Duration::from_secs(10); let d = gen_disco(); - let pe = lb::p2c::Ba...
13
9
0
[{"id": "G0", "claim": "The new MakeBalance doc comment misspells \"Construct\" as \"Contruct\"; it should read \"Construct load balancers over dynamic service sets produced by a wrapped \"inner\" service.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
tower-rs__tower__505
tower-rs/tower
505
defect
878b10f57d6209a42c23b8e507b4d6ecfd853492
3b971eaa58f4194ebe8fca52e23212f556bc039b
Fix clippy warnings
Thought I might as well fix the clippy warnings. Feel free to close this if you don't want the git churn.
diff --git a/tower/src/balance/p2c/layer.rs b/tower/src/balance/p2c/layer.rs index 4b819df86..2b385f372 100644 --- a/tower/src/balance/p2c/layer.rs +++ b/tower/src/balance/p2c/layer.rs @@ -27,6 +27,12 @@ impl<D, Req> MakeBalanceLayer<D, Req> { } } +impl<D, Req> Default for MakeBalanceLayer<D, Req> { + fn def...
3
2
0
[{"id": "G0", "claim": "Instead of suppressing clippy::len_without_is_empty with an #[allow] on the Balance impl, an is_empty method should just be added.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the project is going to start caring about clippy...
null
tower-rs__tower__508
tower-rs/tower
508
defect
b7a7c280ee0717dc6cb618b3a41ccb2fbb500db4
b465b01cb9f1384e5d27e9d33aea3189903fb00b
rewrite `tower::filter`
## Motivation It was pointed out that there is currently some overlap between the `try_with` `Service` combinator and `tower::filter` middleware (see https://github.com/tower-rs/tower/pull/499#discussion_r549522471 ). `try_with` synchronously maps from a `Request` -> `Result<DifferentRequest, Error>`, while `towe...
diff --git a/tower/Cargo.toml b/tower/Cargo.toml index accf38851..a1754af22 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -29,7 +29,7 @@ log = ["tracing/log"] balance = ["discover", "load", "ready-cache", "make", "rand", "slab", "tokio-stream"] buffer = ["tokio/sync", "tokio/rt", "tokio-stream"] discover =...
5
3
1
[{"id": "G0", "claim": "The doc lines \"`predicate` must implement the [`Predicate`] trait.\" and \"`predicate` must implement the [`AsyncPredicate`] trait.\" should be rendered as list items (\"/// - `predicate` must implement ...\"), which the reviewer suggested reads a bit better.", "category": "documentation", "ver...
null
tower-rs__tower__538
tower-rs/tower
538
defect
1cd65c104c7e696393e06f93e7975de172ba4e74
90d4cd19591a7034939fd6c8d52d8aeee11c7f89
spawn-ready: Avoid oneshot allocations
This change modifies the `SpawnReady` service to track a `tokio::task::JoinHandle` instead of creating a `tokio::sync::oneshot` on each pending poll. This avoid unnecessary allocation. The `spawn_ready` test is also fixed to avoid using `thread::sleep`, instead using `tokio::time::pause`.
diff --git a/tower/Cargo.toml b/tower/Cargo.toml index 696eec5a4..973ed8a8f 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -38,7 +38,7 @@ make = ["tokio/io-std"] ready-cache = ["futures-util", "indexmap", "tokio/sync"] reconnect = ["make", "tokio/io-std"] retry = ["tokio/time"] -spawn-ready = ["futures-util...
1
1
1
[{"id": "G0", "claim": "The added `'static` bound on `S::Error` in the `Service` impl may be a breaking change for users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tower-rs__tower__557
tower-rs/tower
557
defect
52fab7c4460f786eeae6f84e5547301b59fac092
0408e315b5eef267e070d9aa37dbae900c1676b0
spawn_ready: propagate `tracing` spans
Currently, when using `SpawnReady`, the current `tracing` span is not propagated to the spawned task when the inner service is not ready. This means that any traces emitted by the inner service's `poll_ready` occur in their own root span, rather than the span the `SpawnReady` service was polled in. This branch f...
diff --git a/tower/Cargo.toml b/tower/Cargo.toml index 23871e821..2a5293938 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -56,7 +56,7 @@ make = ["tokio/io-std"] ready-cache = ["futures-util", "indexmap", "tokio/sync", "tracing"] reconnect = ["make", "tokio/io-std", "tracing"] retry = ["tokio/time"] -spawn-...
3
3
0
[{"id": "G0", "claim": "The sleep in `propagates_trace_spans` needs explaining or replacing: add a comment on why it is necessary, and if it really is needed, use `time::pause` so it does not slow the test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
tower-rs__tower__567
tower-rs/tower
567
defect
04369f3b8f5f877d2e4ced6f87648bbb7fb101ae
3efdc0d84b81496940ead6902867459b466be5ee
Rename `ServiceExt::ready_and` to `ServiceExt::ready`
This PR renames: - `ServiceExt::ready_and` to `ServiceExt::ready` - the `ReadyAnd` future to `Ready` - the associated documentation to refer to `ServiceExt::ready` and `ReadyAnd`. My recollection of the original conversation surrounding the introduction of the `ServiceExt::ready_and` combinator in https://github...
diff --git a/tower/src/buffer/mod.rs b/tower/src/buffer/mod.rs index 625516440..923b4420f 100644 --- a/tower/src/buffer/mod.rs +++ b/tower/src/buffer/mod.rs @@ -27,7 +27,7 @@ //! let mut svc = svc.clone(); //! tokio::spawn(async move { //! for i in 0usize.. { -//! svc.read...
4
3
2
[{"id": "G0", "claim": "Instead of renaming `ServiceExt::ready_and` to `ready` outright, the PR should introduce `ServiceExt::ready` and deprecate `ServiceExt::ready_and`, so it can land now and `ready_and` can be removed in 0.5.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
tower-rs__tower__654
tower-rs/tower
654
defect
d8c73fcb3331f97c9437aa933eee5392beede954
a53c9fb84e780332ec2cb77e1e5247943a5cc8ae
buffer: change `Buffer` to be generic over inner service's `Future`
This commit changes the `Buffer` service to be generic over the inner service's `Future` type, rather than over the `Service` type itself. The `Worker` type is still generic over the inner `Service` (and, it must be, as it stores an instance of that service). This should reduce type complexity of buffers a bit, as ...
diff --git a/tower/src/buffer/layer.rs b/tower/src/buffer/layer.rs index aadc938bd..8ef916714 100644 --- a/tower/src/buffer/layer.rs +++ b/tower/src/buffer/layer.rs @@ -48,7 +48,7 @@ where S::Error: Into<crate::BoxError> + Send + Sync, Request: Send + 'static, { - type Service = Buffer<S, Request>; + t...
3
3
0
[{"id": "G0", "claim": "Requiring `T::Error: Into<crate::BoxError>` (boxing) in the new `Buffer::new`/`pair` bounds may be more onerous than taking a `thiserror` dependency and handling the error cases explicitly, and it excludes error types such as `anyhow::Error` that do not impl `Into<BoxError>`.", "category": "desi...
null
tower-rs__tower__656
tower-rs/tower
656
defect
e4e440906dc93af92dabca63f97af7bd2bf0b31b
1772376a26b52cad3ef7a1c060a807f9b4276aae
util: Fix call_all hang when stream is pending
Currently `call_all` will hang in a busy loop if called when the input stream is pending.
diff --git a/tower/src/util/call_all/common.rs b/tower/src/util/call_all/common.rs index 4af40a6d7d..0bd295f43c 100644 --- a/tower/src/util/call_all/common.rs +++ b/tower/src/util/call_all/common.rs @@ -111,6 +111,7 @@ where Poll::Pending => { // TODO: We probably want to "release"...
1
1
0
[{"id": "G0", "claim": "Now that the stream-pending case returns `Poll::Pending`, the nested `match` in `CallAll::poll_next` could be simplified to a single `match` using `ready!` (offered as a non-blocking nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
towhee-io__towhee__1314
towhee-io/towhee
1,314
defect
3839db809602ee20a4c1da81d1deae895618b710
266c7c9721cd0cb3a565f089fd150abaca9ef9a7
AudioFrame add layout info
Signed-off-by: junjiejiangjjj <junjie.jiang@zilliz.com>
diff --git a/tests/unittests/types/test_audio_frame.py b/tests/unittests/types/test_audio_frame.py index 7587a0567a..0702cb5dd8 100644 --- a/tests/unittests/types/test_audio_frame.py +++ b/tests/unittests/types/test_audio_frame.py @@ -25,9 +25,10 @@ class TestAudioFrame(unittest.TestCase): def test_ndarray_methods...
1
1
0
[{"id": "G0", "claim": "Add test-case examples to the AudioFrame docstring so that code blocks appear in the API docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
towhee-io__towhee__1479
towhee-io/towhee
1,479
defect
3e7b24aefb20f3e6452da115bf7e47e6261d65eb
e76813f0426b471d1ae4025cfc56f24169a81ab8
fix triton ensemble
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
diff --git a/serve/tests/unittests/triton/expected_files/test_create_ensemble.pbtxt b/serve/tests/unittests/triton/expected_files/test_create_ensemble.pbtxt index 580be928fa..cd0c9f4ce2 100644 --- a/serve/tests/unittests/triton/expected_files/test_create_ensemble.pbtxt +++ b/serve/tests/unittests/triton/expected_files/...
6
6
1
[{"id": "G0", "claim": "Nothing handles the case where no entry of self._model_optimize matches self._obj.model.optimizes, so the model would be left unconverted without an error being raised and the build stopped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
towhee-io__towhee__2115
towhee-io/towhee
2,115
defect
db5958397d3f15764d9b812d0991aa06412a9b54
e081ebab1831b32040cae5eb607aab6a8d8254cc
Add runtime data_queue
col-based storage with row-based interface Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
diff --git a/tests/unittests/runtime/__init__.py b/tests/unittests/runtime/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/unittests/runtime/test_data_queue.py b/tests/unittests/runtime/test_data_queue.py new file mode 100644 index 0000000000..0543ed4537 --- /dev/null +++ b/tests/unitte...
3
1
0
[{"id": "G0", "claim": "Rename the ColumnType.NOQUEUE enum value to something clearer, such as ARRAY.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DataQueue should directly wrap one of the Queue types from Python's queue module instead of reimplementin...
null
towhee-io__towhee__2199
towhee-io/towhee
2,199
defect
1beb93efdf94707b539d95754a35d0b17150e694
98f73ad17cb1d8eb98ad2771c7e809f6ad5b03d6
Support Window Node
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
diff --git a/tests/unittests/mock_operators/add/__init__.py b/tests/unittests/mock_operators/add/__init__.py new file mode 100644 index 0000000000..3d81a81cce --- /dev/null +++ b/tests/unittests/mock_operators/add/__init__.py @@ -0,0 +1,19 @@ +# Copyright 2021 Zilliz. All rights reserved. +# +# Licensed under the Apach...
4
1
0
[{"id": "G0", "claim": "Asks what the key difference between _Empty and None is, questioning why a sentinel class is needed when None could be used.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks why the Window node needs multiple input queues, ques...
null
towhee-io__towhee__2332
towhee-io/towhee
2,332
defect
ba357ebe009127a8b072986da9015de1b5451d8c
6a81781b324171e2994daf4e96c0c9579424803a
Triton model support batching
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
diff --git a/tests/unittests/runtime/test_user_pipeline.py b/tests/unittests/runtime/test_user_pipeline.py index 14fa6ebe5a..5116dc67a4 100644 --- a/tests/unittests/runtime/test_user_pipeline.py +++ b/tests/unittests/runtime/test_user_pipeline.py @@ -289,7 +289,7 @@ def test_concat_raise(self): with self.asser...
2
2
0
[{"id": "G0", "claim": "Rename the attribute _input_q to _input_queue in RuntimePipeline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Explain why the magic number 8 is used for set_max_batch_size in auto_complete_config.", "category": "mainta...
null
towhee-io__towhee__2333
towhee-io/towhee
2,333
defect
ba357ebe009127a8b072986da9015de1b5451d8c
b0c2c06998fb5affdc7c2fd23aba551412a2e624
Add triton client
Signed-off-by: shiyu22 <shiyu.chen@zilliz.com> Add ut Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
diff --git a/tests/unittests/triton/test_pipeline_client.py b/tests/unittests/triton/test_pipeline_client.py new file mode 100644 index 0000000000..858cd0766d --- /dev/null +++ b/tests/unittests/triton/test_pipeline_client.py @@ -0,0 +1,69 @@ +# Copyright 2021 Zilliz. All rights reserved. +# +# Licensed under the Apach...
4
4
1
[{"id": "G0", "claim": "The new towhee/utils/json_utils.py duplicates the NumpyArrayEncoder/NumpyArrayDecoder that already exist in towhee/utils/np_format.py, so the duplicate module should not be added.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
towhee-io__towhee__35
towhee-io/towhee
35
defect
ea8130aec140fc45cbb16024ffc529ef10ff03e4
9280bb3a6d6d291b745b6a5e4b1fc999ad1ae895
Implement Callstack class at dag/utils/callstack.py
Implement Callstack class at dag/utils/callstack.py #12
diff --git a/towhee/dag/utils/callstack.py b/towhee/dag/utils/callstack.py index 580fe2ae21..df9d32c1c7 100644 --- a/towhee/dag/utils/callstack.py +++ b/towhee/dag/utils/callstack.py @@ -11,55 +11,110 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific lang...
4
4
1
[{"id": "G0", "claim": "The newly added `import logging` in callstack.py is unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since find_func can return None, its return annotation should be Optional[int] rather than int.", "category": "cor...
null
towhee-io__towhee__55
towhee-io/towhee
55
defect
c0620308eb9431ac78366bb6a9b1040220d743e2
15755ae746143f0b1c1b175c9d8c45849f17c5dd
Add base representation and update dataframe-related code
(Re-opening after rebase) - Add a `BaseRepr` object from which all representation classes inherit - Completed `DataframeRepr` based on example YAML, updated annotation-based initialization functions - Updated dataframe-related code (still a WIP, needs further edits based on internal discussions) - Updated docstring...
diff --git a/towhee/base_repr.py b/towhee/base_repr.py new file mode 100644 index 0000000000..400bdd6dbd --- /dev/null +++ b/towhee/base_repr.py @@ -0,0 +1,54 @@ +# Copyright 2021 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in co...
1
1
1
[{"id": "G0", "claim": "The type annotations of from_input_annotations and from_output_annotations should use typing.Callable instead of types.FunctionType.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
towhee-io__towhee__99
towhee-io/towhee
99
defect
228652b0716ab540f00c23e1e004c520ae35c657
30d7d72161ee931f26e3dc8c7d4cef6d768508c1
training args impl and tests.
mainly 3 files: towhee/cnn_trainer/training_args.py towhee/cnn_trainer/utils/logging.py towhee/tests/cnn_trainer/test_args.py
diff --git a/towhee/cnn_trainer/__init__.py b/towhee/cnn_trainer/__init__.py new file mode 100644 index 0000000000..37f5bd7458 --- /dev/null +++ b/towhee/cnn_trainer/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2021 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you m...
1
1
0
[{"id": "G0", "claim": "Since training arguments are part of the user interface, the PR should add detailed docstrings for the TrainingArguments class for documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tox-dev__filelock__110
tox-dev/filelock
110
defect
e5c33a60bf3e52f1d635c98a57391eacf831f9cf
e740d924d911544c12212d04c0d739197f562dc5
Update `FileLock` constructor to accept `pathlib.Path`
This is a small fix for people who employ `pathlib.Path` for their path handling. It allows a `Path` object to be passed to the constructor of `FileLock`. It is then converted to a normal `str` when storing it inside the object leaving the rest of the library unaffected.
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index e1c7b765..63e3cac1 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -1,6 +1,7 @@ import logging import time from abc import ABC, abstractmethod +from pathlib import Path from threading import Lock from types import TracebackType from ty...
3
3
2
[{"id": "G0", "claim": "Test and changelog? 😊 — the change to the FileLock constructor is not covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test and changelog? 😊 — the change to the FileLock constructor is not documented in the cha...
null
tox-dev__filelock__119
tox-dev/filelock
119
defect
2e79235b7ffb8a2fb03948f27644919b332ae5f4
f7db924744a3ee4199f032f1c498ba9777658a0c
Fix misspelled keyword argument `poll_interval` for method `acquire`
Fix misspelled keyword argument `poll_interval` for method `acquire`. Fixes #62. I tried my best to add the backward compatibility layer in this PR to not break existing codebases.
diff --git a/docs/changelog.rst b/docs/changelog.rst index 9ffe3256..9dfe6aff 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,10 @@ Changelog ========= +v3.3.3 (2021-11-15) +------------------- +- Fix misspelled keyword argument ``poll_interval`` for method ``acquire`` :pr:`119` - by :user:`Xueh...
3
3
2
[{"id": "G0", "claim": "The pull request should not accept arbitrary extra keyword arguments via **kwargs (with a manual TypeError for the rest); the interface should express only the old misspelled variant being kept for backwards compatibility.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
tox-dev__filelock__121
tox-dev/filelock
121
defect
a6c8fabc4192fa7a4ae19b1875ee842ec5eb4f61
34641353c3432312e291ab1a7fcd329e7073655b
Add `stacklevel` to deprecation warnings for argument name change
Changes: 1. Add `*` to function signature to mark the deprecated argument `poll_intervall` as keyword only. 2. Add `stacklevel=2` for deprecation warnings, show the file and lineno for the user's code rather than this module (filelock). From https://github.com/tox-dev/py-filelock/pull/119#issuecomment-974607...
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index dd37f0ac..95956480 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -111,6 +111,7 @@ def acquire( self, timeout: Optional[float] = None, poll_interval: float = 0.05, + *, poll_intervall: Optional[flo...
2
1
1
[{"id": "G0", "claim": "The `*` added to `acquire` to make the deprecated `poll_intervall` keyword-only is an unrelated change that the reviewer asks to have removed, arguing it would be a breaking change.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A t...
null
tox-dev__filelock__135
tox-dev/filelock
135
defect
541baba009e216c110fde4fcae075502e2847b18
a2fa7858efae38753158a8e2fc80175dc0adae68
Raise NotImplementedError if using wrong class
Instead of leaving abstract methods without definition when running on the other platform (Unix vs Windows), define them and raise a `NotImplementedError` if called on the wrong platform. This fixes pylint warnings such as ``` Abstract class 'WindowsFileLock' with abstract methods instantiated Abstract clas...
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index 3551d5d0..0289a553 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -14,6 +14,10 @@ _LOGGER = logging.getLogger("filelock") +class PlatformMismatchError(Exception): + """Exception raised when attempting Unix locks on Windows, or vice ...
4
3
2
[{"id": "G0", "claim": "Keep the wrong-platform lock classes abstract and fix the faulty pylint check on pylint's side instead of modifying the code with a custom exception.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the PlatformMismatchError cl...
null
tox-dev__filelock__192
tox-dev/filelock
192
defect
4d35270961975ae37c2bb64fb178b972aabf4f46
b3ff54c3354f32591ee0a695a47014dbe9dcef1a
added multiuser support and associated tests
new option FileLock(multiuser = True) (defaults to False): results in Lock File being created with rw-rw-rw- permissions so that all users on the system can use the lockfile.
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index 273b82e6..ba794a92 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -39,7 +39,12 @@ def __exit__( class BaseFileLock(ABC, contextlib.ContextDecorator): """Abstract base class for a file lock object.""" - def __init__(self, lock_fil...
4
4
2
[{"id": "G0", "claim": "The pull request needs to add a changelog entry to docs/changelog.rst.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions the multi_user boolean interface and suggests exposing direct permission control (...
null
tox-dev__filelock__206
tox-dev/filelock
206
defect
0b102873247c37ccbcc30ce9d1e67e4eb3e7f5d1
cafe30721a458597fd0d0885e501fb94e92b56fd
changed from os.umask to os.chmod
addressing bug reported in https://github.com/tox-dev/py-filelock/issues/204
diff --git a/docs/changelog.rst b/docs/changelog.rst index 6ac0f1b5..60503407 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,5 +1,9 @@ Changelog ========= +v3.10.2 (2023-03-22) +-------------------- +- Bug fix for using filelock with threaded programs causing undesired file permissions - by :user:`jah...
4
1
0
[{"id": "G0", "claim": "The fchmod entry this pull request adds to whitelist.txt should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The os.chmod(fd, self._mode) call added to UnixFileLock._acquire raises PermissionError: [Errno 1]...
null
tox-dev__filelock__212
tox-dev/filelock
212
defect
745da618770bd81ad86e3ccbf5e177ac1d541dfa
52473a5615578d4f6e047dda50965c7a523b0971
proposed fix for issue #67
This is a proposed fix for https://github.com/tox-dev/py-filelock/issues/67 As suggested in the issue; we're checking the OSError for NotImplemented (which is errno 38). OSError 38 is not fatal; so this results in the reported issue of an indeterminate loop. I don't see a clear way to "fall back" from a UnixFi...
diff --git a/src/filelock/_unix.py b/src/filelock/_unix.py index edfba4d8..3a37f6b7 100644 --- a/src/filelock/_unix.py +++ b/src/filelock/_unix.py @@ -39,8 +39,10 @@ def _acquire(self) -> None: pass # This locked is not owned by this UID try: fcntl.flock(fd, fcntl.LOCK_EX...
4
3
2
[{"id": "G0", "claim": "Use `err.errno == errno.ENOSYS` instead of the hard-coded 38, because ENOSYS is 38 on Linux but 78 on macOS, so the numeric check is platform-dependent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for the new fl...
null
tox-dev__filelock__213
tox-dev/filelock
213
defect
745da618770bd81ad86e3ccbf5e177ac1d541dfa
c3b8642de4bb30fa467cb3c437af025723cce4b7
Bugfix/147
Resolves https://github.com/tox-dev/py-filelock/issues/147
diff --git a/docs/changelog.rst b/docs/changelog.rst index 4932919b..c760d183 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,5 +1,13 @@ Changelog ========= +v3.10.6 (2023-03-25) +-------------------- +- Enhance the robustness of the try/catch block in _soft.py. by :user:`jahrules`. + +v3.10.5 (2023-03...
1
1
1
[{"id": "G0", "claim": "The pull request's changed error handling in SoftFileLock (_soft.py) has no test coverage; a test should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__filelock__219
tox-dev/filelock
219
defect
b815134c9bc62aecbe2d8b85a875690d55df5667
33c07264904bda9ee9369513e0f6ddcfbad13b10
Make the lock a thread local variable
Fixes #82 With this, i can successfully run on win32 and on wsl (ubuntu) ``` import tempfile import pathlib import threading from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor from filelock import FileLock import time import logging #log = logging.getLogger("filelock") #log.setLevel...
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index 50f1c3d9..2158ac25 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -6,7 +6,7 @@ import time import warnings from abc import ABC, abstractmethod -from threading import Lock +from threading import Lock, local from types import TracebackTyp...
3
3
3
[{"id": "G0", "claim": "Making the lock thread local by default is a breaking design change: users who today share one FileLock object across threads (e.g. via a global variable) would lose that locking behaviour, and this should be handled as a user-side use case rather than a default.", "category": "design", "verdict...
null
tox-dev__filelock__232
tox-dev/filelock
232
defect
dceb9e5b7e4edd232435521f20efe189fe88f71b
a259007dab2b34bb57bd172270de268139c68a25
Conditionally disable/enable thread-local lock behavior.
Should resolve https://github.com/tox-dev/py-filelock/issues/230. TLDR: We now have a thread_local=True by default. If set to False, locks will be re-entrant across threads (a-la 3.10.7 and older behavior).
diff --git a/docs/index.rst b/docs/index.rst index c37c923f..4b32ec8d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -143,6 +143,29 @@ Asyncio support This library currently does not support asyncio. We'd recommend adding an asyncio variant though if someone can make a pull request for it, `see here <https://git...
4
4
1
[{"id": "G0", "claim": "Don't use one-letter variable names outside of comprehensions (the test's `t` thread variable should be renamed).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CI is failing on this pull request and needs to be fixed...
null
tox-dev__filelock__283
tox-dev/filelock
283
defect
16f2a9331398fa3e88156c417a09ed9d668860a4
cdbd3e22454c912739b232c266ffb81d59851a65
Support reentrant locking on lock file path via optional singleton instance
#### Description Re: #282. - When `_singleton_per_lock_file` is set instantiating a new lock with the same lock path will return the existing instance of the lock. This means you can reacquire the lock without passing the lock object around - Otherwise a new lock object is returned every time (default behavior...
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..282f6fe7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing + +This page lists the steps needed to set up a development environment and contribute to the project. + +1. Fork and clone this repo + +2. Install initial de...
12
12
1
[{"id": "G0", "claim": "The same singleton-per-lock-file behaviour can be achieved via `__new__` instead of creating a metaclass, so the approach should be refactored as the clearer one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CONTRIBUTING.md shou...
null
tox-dev__filelock__284
tox-dev/filelock
284
defect
3e3455ef9ae8f9751f8f1cdc8d08c7ccfdcd2b2f
1ac225128ed34c00f5794875c2a258189b94e478
Allow users to subclass FileLock with custom keyword arguments
Without this patch: ``` =============================================== FAILURES =============================================== ______________________________ test_subclass_compatibility[UnixFileLock] _______________________________ lock_type = <class 'filelock._unix.UnixFileLock'> @pytest.mark.parametriz...
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index a99d8a0a..2e9cdbad 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -87,6 +87,7 @@ def __new__( # noqa: PLR0913 thread_local: bool = True, # noqa: ARG003, FBT001, FBT002 *, is_singleton: bool = False, + **k...
4
2
1
[{"id": "G0", "claim": "Instantiating a FileLock subclass with a custom keyword argument raises TypeError because BaseFileLock.__new__() does not accept it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The reviewer questions what the use case fo...
null
tox-dev__filelock__318
tox-dev/filelock
318
defect
e2f121bf74eba9697698dc86696dd8a1ef21c03b
d38b44107802fa6bceaac1688032bcfe401ea2d5
Make singleton class instance dict unique per subclass
Re: https://github.com/tox-dev/filelock/pull/283#issuecomment-2016873026.
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index 49eaf1e4..a4b88a21 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -77,7 +77,7 @@ class ThreadLocalFileContext(FileLockContext, local): class BaseFileLock(ABC, contextlib.ContextDecorator): """Abstract base class for a file lock object...
1
1
0
[{"id": "G0", "claim": "The `_instances` annotation on BaseFileLock should no longer be marked `ClassVar`, since it is no longer a class variable — subclasses now get their own instance dict assigned in `__init_subclass__`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tox-dev__filelock__332
tox-dev/filelock
332
defect
1cdb3b4dd6d23923445e20636d784d1f38b85967
ddb45c1237865ef9aade825a68536522e1265037
asyncio support
Add asyncio support for `filelock` ------------- Usage: ```py import asyncio from filelock import AsyncFileLock async def main() -> None: lock = AsyncFileLock("test.lock") async with lock: print("Lock acquired") await asyncio.sleep(1) asyncio.run(main()) ``` The default as...
diff --git a/src/filelock/__init__.py b/src/filelock/__init__.py index 006299d2..c9d8c5b8 100644 --- a/src/filelock/__init__.py +++ b/src/filelock/__init__.py @@ -17,6 +17,13 @@ from ._soft import SoftFileLock from ._unix import UnixFileLock, has_fcntl from ._windows import WindowsFileLock +from .asyncio import ( + ...
2
2
1
[{"id": "G0", "claim": "CI is failing and the pull request ships no tests; add tests and make CI pass.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Since the AsyncAcquireReturnProxy class is new, the deprecated poll_intervall parameter and the copied ...
null
tox-dev__filelock__338
tox-dev/filelock
338
defect
c64787f2a50d7dbc9882f4ac9401c2a2e57cd8aa
9c07da7186313540a087fa4f3c3445a2dc3f9a13
Hotfix: Restore __init__ method; more robust initialization for singleton locks
Fixes issue with subclassing brought up in pypa/virtualenv#2735 (discussed in #334)
diff --git a/src/filelock/_api.py b/src/filelock/_api.py index b074c6d2..3b2e9208 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -95,14 +95,11 @@ def __new__( # noqa: PLR0913 ) -> Self: """Create a new lock object or if specified return the singleton instance for the lock file.""" ...
4
2
1
[{"id": "G0", "claim": "The singleton argument checks in __new__ should be moved into __init__ and made more general, since thread_local and blocking are currently not checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new initialization by...
null
tox-dev__filelock__97
tox-dev/filelock
97
defect
c9b6d90b8d0d6f3971b97ce7bfd1b3402d58220e
35e8ff0ccb399755f0c0d104e0fe683950cf526c
Changed logger name from "filelock._api" to "filelock"
Fixes the logger name and closes #59
diff --git a/README.md b/README.md index 5c071c23..3efd4799 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,18 @@ with lock: ``` +### Adjusting the Log Level + +By default, the logger name is *"filelock"* and the logging level is set to +*logging.WARNING*. This can be adjusted using the *logging* module. + +...
3
3
2
[{"id": "G0", "claim": "The README should not claim the library's logging level defaults to WARNING nor document how to show messages; it should say that all log messages the library emits are at DEBUG level and point to the standard library logging documentation for controlling their display.", "category": "documentat...
null
tox-dev__platformdirs__108
tox-dev/platformdirs
108
defect
1e2bc05dfff252940ce3c2f13d801da22f834038
f4cff45d46d5cab0ef38138e38a6ece23c6f7b25
Change user_log_dir to point to user_state_dir on Linux per the XDG spec
Fixes #106
diff --git a/src/platformdirs/unix.py b/src/platformdirs/unix.py index 2fbd4d4f..9aca5a03 100644 --- a/src/platformdirs/unix.py +++ b/src/platformdirs/unix.py @@ -107,9 +107,9 @@ def user_state_dir(self) -> str: @property def user_log_dir(self) -> str: """ - :return: log directory tied to the ...
2
2
2
[{"id": "G0", "claim": "The CI appears to be failing and must be made to pass.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A changelog entry should be added to CHANGES.rst so this change can be released.", "category": "documentation", "verdict": ...
null
tox-dev__platformdirs__155
tox-dev/platformdirs
155
defect
897ce798db06fd14504df17787896cd56fcb7b62
d644f84cc6baf787f7517fe47d3cc9d72234aafb
Add option to create directories
Optionally create directories upon use, based on the `ensure_exists` argument. Fixes #120 While documenting the `ensure_exists` argument on the different functions, I noticed a few spots where the `roaming` link was broken, so I fixed those. I can back that out if you'd prefer.
diff --git a/src/platformdirs/__init__.py b/src/platformdirs/__init__.py index 68cc860c..4f4f9f86 100644 --- a/src/platformdirs/__init__.py +++ b/src/platformdirs/__init__.py @@ -49,15 +49,23 @@ def user_data_dir( appauthor: str | None | Literal[False] = None, version: str | None = None, roaming: bool = ...
2
1
0
[{"id": "G0", "claim": "Pass exists_ok to mkdir instead of gating on `os.path.exists` so the existence check and mkdir are combined.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs should note since which version ensure_exists is implemented.", "...
null
tox-dev__platformdirs__27
tox-dev/platformdirs
27
defect
6fe81687a04675e17e28e690b7d65ff414a4fcfc
b38fc3bb12c00f5fc5e1aa15b8222a17dc9d7a05
Add API calls that return pathlib.Path instead of str objects
Implements #3 by wrapping the existing API in `pathlib.Path` calls and handles multipath-affected API as suggested in #24.
diff --git a/CHANGES.rst b/CHANGES.rst index 1e2cae5f..09bfd2f5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,21 @@ platformdirs Changelog ====================== +platformdirs 2.2.0 +------------------ +- [Issue 3] Add ``*_path`` API, returning :class:`pathlib.Path <pathlib.Path>` objects instead of :class:...
6
6
1
[{"id": "G0", "claim": "Since 2.1 was never released yet, the changelog entry for this change should be moved under the 2.1.0 release and rewritten as a simple enumeration without links or the multipath note.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
tox-dev__platformdirs__277
tox-dev/platformdirs
277
defect
9781f05834860772fdb96231abf3f23848e6b2b5
fedba0c8b23890c49849accb9f9af233c368da8c
Fix android detection when python4android is present
When using **platformdirs** in an android app located on adopted storage, `_android_folder()` in `android.py` returned `None` which lead **platformdirs** to believe that it doesn't run on android and use the `Unix` flavor instead. In [android.py#L126](https://github.com/platformdirs/platformdirs/blob/main/src/platfo...
diff --git a/src/platformdirs/android.py b/src/platformdirs/android.py index fefafd32..b3a51805 100644 --- a/src/platformdirs/android.py +++ b/src/platformdirs/android.py @@ -119,14 +119,27 @@ def site_runtime_dir(self) -> str: @lru_cache(maxsize=1) def _android_folder() -> str | None: """:return: base folder fo...
2
2
2
[{"id": "G0", "claim": "The pull request reworks Android folder detection without any tests for the new behaviour, and tests must be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added code fails the project's type checker (the unguard...
null
tox-dev__platformdirs__369
tox-dev/platformdirs
369
defect
5720f26595056e11516d1167185ffde135e0aa55
28d5d80c3e19cd4c0be9e149fc83412618c99305
🐛 fix(unix): fall back to tempdir when runtime dir is not writable
When `XDG_RUNTIME_DIR` is unset and the platform default runtime directory (e.g. `/run/user/<uid>` on Linux, `/var/run/user/<uid>` on BSD) does not exist or is not writable, `user_runtime_dir` previously returned the unusable path anyway. This caused failures for users in environments where the runtime directory hasn't...
diff --git a/pyproject.toml b/pyproject.toml index 80b93ff3..d8ae7227 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ optional-dependencies.docs = [ optional-dependencies.test = [ "appdirs==1.4.4", "covdefaults>=2.3", + "pyfakefs>=5.9.2", "pytest>=8.3.4", "pytest-cov>=6", "pytest-moc...
1
1
1
[{"id": "G0", "claim": "The pull request's CI is failing and must be fixed before the change can be merged.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
tox-dev__platformdirs__37
tox-dev/platformdirs
37
defect
f391780353d21df7ff7a2a3be0093220330da092
8d1d050cb8f279bb0a79dde7390188a745362ed8
Add `user_runtime_dir` for `$XDG_RUNTIME_DIR`
Closes #36. ### Unix I chose to default to `/run/user/{os.getuid()}` because that's what `$XDG_RUNTIME_DIR` was by default on my Ubuntu machine, but I'm not sure how standard that is on other unixes. Something like `/tmp/$USER` could work too. ### Mac The [Mac reference](https://developer.apple.com/library/arch...
diff --git a/README.rst b/README.rst index c03e77e2..08a8ef9a 100644 --- a/README.rst +++ b/README.rst @@ -40,6 +40,7 @@ This kind of thing is what the ``platformdirs`` module is for. - site data dir (``site_data_dir``) - site config dir (``site_config_dir``) - user log dir (``user_log_dir``) +- user runtime dir (``...
3
2
2
[{"id": "G0", "claim": "The pull request's CI checks are failing (lint and test jobs) and should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The type checker (mypy) job still fails on Windows in CI.", "category": "correctness", "verdict...
null
tox-dev__platformdirs__370
tox-dev/platformdirs
370
defect
5720f26595056e11516d1167185ffde135e0aa55
9cd015c0cd7078343cf694b0ff4714485110a5bb
feat: improve homebrew path detection
Improve homebrew installed python detection. This will detect the users that not only arm macos users but also intel macos users. And even if user change their homebrew prefix, this could catch them and use the path for that. I am not pretending to get the 100% users but just increase the chance of this. Well, th...
diff --git a/src/platformdirs/macos.py b/src/platformdirs/macos.py index e4b0391a..30ab3689 100644 --- a/src/platformdirs/macos.py +++ b/src/platformdirs/macos.py @@ -34,13 +34,14 @@ def site_data_dir(self) -> str: """ :return: data directory shared by users, e.g. ``/Library/Application Support/$appna...
1
1
1
[{"id": "G0", "claim": "Tests should be added to defend the new homebrew path detection against regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__platformdirs__375
tox-dev/platformdirs
375
defect
c945a28a2cd2ae34154540d144e7671ed80b1c10
e820fbafaa3985dd839d788621bb54fba589f816
Add support for `XDG_*` environment variables
As decided in #374 https://github.com/tox-dev/platformdirs/issues/374#issuecomment-3237364418
diff --git a/src/platformdirs/macos.py b/src/platformdirs/macos.py index 30ab3689..0754c0df 100644 --- a/src/platformdirs/macos.py +++ b/src/platformdirs/macos.py @@ -2,6 +2,7 @@ from __future__ import annotations +import os import os.path import sys from typing import TYPE_CHECKING @@ -22,12 +23,20 @@ class Ma...
1
1
1
[{"id": "G0", "claim": "Rather than duplicating the XDG_* environment-variable handling between macOS and Unix, the PR should share it through a common XDG base class/mixin so the two platforms cannot drift (e.g. miss setting it on one platform).", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
tox-dev__platformdirs__63
tox-dev/platformdirs
63
defect
36927bec27b9bd99646e1b6c9a239c8e1cd5e410
bd70a1156f686036b6349888a3bc115f5e17daed
Support for Termux subsystem
Fix of #62 Platformdirs on Termux under Arch Linux subsystem: ```sh -- platformdirs 2.4.2.dev4+gbd70a11 -- -- app dirs (with optional 'version') user_data_dir: /root/.local/share/MyApp/1.0 user_config_dir: /root/.config/MyApp/1.0 user_cache_dir: /root/.cache/MyApp/1.0 user_state_dir: /root/.local/state/MyApp...
diff --git a/src/platformdirs/__init__.py b/src/platformdirs/__init__.py index 46b1157d..d2e1dea0 100644 --- a/src/platformdirs/__init__.py +++ b/src/platformdirs/__init__.py @@ -18,14 +18,19 @@ def _set_platform_dir_class() -> type[PlatformDirsABC]: - if os.getenv("ANDROID_DATA") == "/data" and os.getenv("ANDR...
2
2
1
[{"id": "G0", "claim": "When the Android base folder cannot be found, _android_folder() should return None instead of an empty string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also add a changelog entry.", "category": "docum...
null
tox-dev__platformdirs__72
tox-dev/platformdirs
72
defect
73e00ef12bb50bb886fe8a135b7a54085efd131a
d9471027c4d86272dc2f5b11b595465d4b814f5b
Treat android shells as unix
Fixes #70 Treats all android shells as unix Doesn't support custom prefixed development environments as it isn't standardized in any specific android application shell. Custom prefixes if implemented, needs per application check, for each application. I've decided against implementing prefixes as it it's better h...
diff --git a/src/platformdirs/__init__.py b/src/platformdirs/__init__.py index eb7d0328..a248c2b5 100644 --- a/src/platformdirs/__init__.py +++ b/src/platformdirs/__init__.py @@ -27,6 +27,9 @@ def _set_platform_dir_class() -> type[PlatformDirsABC]: if os.getenv("ANDROID_DATA") == "/data" and os.getenv("ANDROID_ROO...
2
2
0
[{"id": "G0", "claim": "Put the new SHELL check before the `from platformdirs.android import _android_folder` import in _set_platform_dir_class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The merge should be held up so the design choice of treating a...
null
tox-dev__tox__1478
tox-dev/tox
1,478
defect
760b0343808c8a8439784036827cfcb1c98e441f
91d2f66cbe88ead711044a43a279f188e76916b5
clarify legacy setup.py error message further
a follow up to #1467 python projects should commit to a strong consistency of message regarding packaging. eg we shouldn't tell people to add a `setup.py` to their already configured pep-517 project, otherwise it could imply that `pyproject.toml` isn't as well supported and recommended as it truly is ## Thanks f...
diff --git a/src/tox/package/builder/legacy.py b/src/tox/package/builder/legacy.py index 935a68ab6a..e1e9ec2608 100644 --- a/src/tox/package/builder/legacy.py +++ b/src/tox/package/builder/legacy.py @@ -8,16 +8,28 @@ def make_sdist(config, session): setup = config.setupdir.join("setup.py") - if not setup.che...
1
1
1
[{"id": "G0", "claim": "Fix the tests (the existing test asserts the old 'No setup.py file found' message the pull request replaced), and add a test covering the pyproject.toml case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__tox__1647
tox-dev/tox
1,647
defect
d15025640e34d06b4915a2a2787ed627af1e7633
9c4dcf9a5c3d417ff1bbb1458eaa34d7c7e22d12
Fix: accept hyphens in generative section names
Generative section names wouldn't work if there were hyphens within the braces. the regex caused everything after the hyphen to be omitted resulting in not being able to use empty factors like `[testenv:foo{,-factor}]` and forcing users to put the hyphens outside the braces. Fixes #1636 ## Contribution checklist...
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 8f32c08246..8eac46c944 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -94,6 +94,7 @@ Stephen Finucane Sviatoslav Sydorenko Thomas Grainger Tim Laurence +Tyagraj Desigar Ville Skyttä Xander Johnson anatoly techtonik diff --git a/docs/changelog/1636.bugfix.rst b/docs/...
1
1
1
[{"id": "G0", "claim": "The pull request needs a test covering the new regex behaviour (including the empty factor case).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__tox__1691
tox-dev/tox
1,691
defect
6a59be5fe2adbfda222a91b4f21814467d18f42b
afcd915ce6fb7386ac8614ba8c2739f3706d8359
Fix escaping brackets in setenv
Fixs regression in v3.20.0 that caused escaped curly braces in setenv to break usage of the variable elsewhere in tox.ini. Fixes https://github.com/tox-dev/tox/issues/1690 ## Contribution checklist: (also see [CONTRIBUTING.rst](../tree/master/CONTRIBUTING.rst) for details) - [x] wrote descriptive pull reque...
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c98ce617e4..1f9b8e387c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -48,6 +48,7 @@ Jake Windle Jannis Leidel Joachim Brandon LeBlanc Johannes Christ +John Mark Vandenberg Jon Dufresne Josh Smeaton Josh Snyder diff --git a/docs/changelog/1690.bugfix.rst b/docs/chan...
4
2
0
[{"id": "G0", "claim": "items() should return a generator using self[name] instead of building a list via self.__getitem__, to more closely match the python3 .items() API and avoid calling double-under methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
tox-dev__tox__1707
tox-dev/tox
1,707
defect
e4d0d60070a4a88b3ca051634c7a01df333af238
b7c34b9abde24db4da43f20fe7e524aaa4ef94f2
Fix using platform with install_command
Fix ``platform`` support for ``install_command`` Fixes https://github.com/tox-dev/tox/issues/1464 ## Contribution checklist: (also see [CONTRIBUTING.rst](../tree/master/CONTRIBUTING.rst) for details) - [x] wrote descriptive pull request text - [x] added/updated test(s) - [ ] updated/extended the documenta...
diff --git a/docs/changelog/1464.bugfix.rst b/docs/changelog/1464.bugfix.rst new file mode 100644 index 0000000000..ab8bafe2df --- /dev/null +++ b/docs/changelog/1464.bugfix.rst @@ -0,0 +1 @@ +Fix ``platform`` support for ``install_command``. - by :user:`jayvdb` diff --git a/src/tox/config/__init__.py b/src/tox/config/...
1
1
1
[{"id": "G0", "claim": "The pull request's change to install_command handling needs tests added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__tox__1922
tox-dev/tox
1,922
defect
5c494a80337811b1a70131333b7edfcb9908aba4
b4b691db75f789090b0a2976c28464a52ebdd299
Add --no-provision flag
Add --no-provision flag tox can now be invoked with a new --no-provision flag that prevents provision, if requires or minversion are not satisfied, tox will fail; if a path is specified as an argument to the flag (e.g. as `tox --no-provision missing.json`) and provision is prevented, provision metadata are writt...
diff --git a/src/tox/config/__init__.py b/src/tox/config/__init__.py index 10bc9bef42..24cbbe8444 100644 --- a/src/tox/config/__init__.py +++ b/src/tox/config/__init__.py @@ -572,6 +572,17 @@ def tox_addoption(parser): action="store_true", help="override alwayscopy setting to True in all envs", )...
4
4
0
[{"id": "G0", "claim": "The `import json` inside `write_requires_to_json_file` should be moved to a top-level import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new error message should start with a lowercase letter ('provisioning explic...
null
tox-dev__tox__2011
tox-dev/tox
2,011
defect
7e4e22c9eebe051b1f29389ea54b1afef5d83392
a7cf00a3f2193ab3ddbc2f5cb2972991546d36dc
Replace .format with f-strings
Replace most of the `.format` calls with proper f-strings. Left `.format` where backslashes or complex escapes were used. The second commit shortens the line using explicit `textwrap.shorten` instead of trivial string slicing. This may deliver different results because it cuts off whole words and not individual char...
diff --git a/src/tox/config/cli/parser.py b/src/tox/config/cli/parser.py index df8d6163bf..2be632587c 100644 --- a/src/tox/config/cli/parser.py +++ b/src/tox/config/cli/parser.py @@ -236,7 +236,7 @@ def parse_known_args( # type: ignore[override] def add_verbosity_flags(parser: ArgumentParser) -> None: from tox.r...
3
3
2
[{"id": "G0", "claim": "The pull request needs a changelog entry, as required by the project's developer documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request converts files that still need to run under Python 2 (src/tox/u...
null
tox-dev__tox__2056
tox-dev/tox
2,056
defect
726a275ab43d2da4628caa245eb6e69ffdca0c26
4b18e42671bfaeb07a557d7eee1a1f8ca817f8ea
Fix when there is no 4th arg passed to build_isolated
This fixes a [tox-conda issue](https://github.com/tox-dev/tox-conda/issues/75) with isolated build. The command calling `build_isolated.py` is passed to the command `conda run` which seems to remove the empty arguments. Contrary to the 3rd argument, the 4th argument was not checked for existence in `build_isolated.py`...
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a3f3f646b9..38e8700e00 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -9,6 +9,7 @@ Andrii Soldatenko Andrzej Klajnert Anthon van der Neuth Anthony Sottile +Antoine Dechaume Anudit Nagar Ashley Whetter Asmund Grammeltwedt diff --git a/src/tox/helper/build_isolated.py...
1
1
1
[{"id": "G0", "claim": "The pull request should also add a test covering the fix (calling build_isolated with fewer than 5 arguments).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tox-dev__tox__2142
tox-dev/tox
2,142
defect
62976a9220b8acd1527fa943f4d8bedc528d20b2
7aa5559925327205a3cf92d7e3596f4647157113
Add support for exec subcommand
Run arbitrary commands within your tox environment. Don't abuse it. Resolves https://github.com/tox-dev/tox/issues/1790
diff --git a/docs/changelog/1790.feature.rst b/docs/changelog/1790.feature.rst new file mode 100644 index 0000000000..e561f94e6f --- /dev/null +++ b/docs/changelog/1790.feature.rst @@ -0,0 +1,2 @@ +Add ``exec`` subcommand that allows users to run arbitrary command within the tox environment (without needing to modify +...
3
2
1
[{"id": "G0", "claim": "The changelog line should read \"run an arbitrary command\" instead of \"run arbitrary command\" (missing article).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The autogenerated documentation fails to show that the comma...
null
tox-dev__tox__2207
tox-dev/tox
2,207
defect
156d4961dd50ee629c3c4c78c09ba6b1c0da76d3
190fc3af8870bb129c16ec81ddb0edeeec8e14c7
Only respect ALL environments when not in parallel
fixes #2167 ## Contribution checklist: (also see [CONTRIBUTING.rst](../tree/master/CONTRIBUTING.rst) for details) - [ ] wrote descriptive pull request text - [x] added/updated test(s) - [ ] updated/extended the documentation - [x] added relevant [issue keyword](https://help.github.com/articles/closing-issue...
diff --git a/src/tox/config/__init__.py b/src/tox/config/__init__.py index 54dbf0bd97..299620e004 100644 --- a/src/tox/config/__init__.py +++ b/src/tox/config/__init__.py @@ -1498,9 +1498,10 @@ def _getenvdata(self, reader, config): env_list = [] envlist_explicit = False - if (from_option and...
2
2
1
[{"id": "G0", "claim": "The new guard could use `PARALLEL_ENV_VAR_KEY_PRIVATE not in os.environ` instead of `not os.environ.get(...)`, to match how the parallel env var is checked elsewhere in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "...
null
tox-dev__tox__2313
tox-dev/tox
2,313
defect
dae4fc1c7db3a93b5ed7b25572b416c70da5de76
3671433a9f10c76ac055228d8d0db8827ce258a0
Keep v3 injected environment variable list
Resolves #2259.
diff --git a/docs/changelog/2259.bugfix.rst b/docs/changelog/2259.bugfix.rst new file mode 100644 index 0000000000..324b8e5002 --- /dev/null +++ b/docs/changelog/2259.bugfix.rst @@ -0,0 +1,2 @@ +Insert ``TOX_WORK_DIR``, ``TOX_ENV_NAME``, ``TOX_ENV_DIR`` and ``VIRTUAL_ENV`` environment variables for each tox +environmen...
1
1
0
[{"id": "G0", "claim": "The changelog sentence is hard to understand and should be rephrased to 'Insert ``TOX_WORK_DIR``, ``TOX_ENV_NAME``, ``TOX_ENV_DIR`` and ``VIRTUAL_ENV`` into the environment variables for all tox environments to keep contract with tox version 3 - by :user:`gaborbernat`.'.", "category": "documenta...
null