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
transloadit__uppy__3595
transloadit/uppy
3,595
defect
e80a7f7693a408e5e9e922d403eef4ca8c9cdedb
178046d73aa0665707adff87f1872067a4d465cf
@uppy/tus: fix double requests sent when rate limiting
Fixes: https://github.com/transloadit/uppy/issues/3594 //cc @Acconut
diff --git a/e2e/cypress/integration/dashboard-tus.spec.ts b/e2e/cypress/integration/dashboard-tus.spec.ts index af83172cea..96715508eb 100644 --- a/e2e/cypress/integration/dashboard-tus.spec.ts +++ b/e2e/cypress/integration/dashboard-tus.spec.ts @@ -22,10 +22,7 @@ describe('Dashboard with Tus', () => { cy.get('.u...
1
1
0
[{"id": "G0", "claim": "The new requeue logic around the null queuedRequest should get an extensive comment explaining what it does and why it works, since it looks arbitrary without context.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transloadit__uppy__3720
transloadit/uppy
3,720
defect
837bf04620f4a382a20764f170b5bfb529067068
272aceb2cf52ecbcab9aa3d691a9fd8235c627d7
Add `onShouldRetry` as option to @uppy/tus
Closes #3716 - Add `onShouldRetry` as option to @uppy/tus - Docs - Types - E2E test - Remove bad flaky test
diff --git a/e2e/clients/dashboard-tus/app.js b/e2e/clients/dashboard-tus/app.js index a7c131fefc..385cf15d3a 100644 --- a/e2e/clients/dashboard-tus/app.js +++ b/e2e/clients/dashboard-tus/app.js @@ -10,7 +10,7 @@ import '@uppy/dashboard/dist/style.css' const companionUrl = 'http://localhost:3020' const uppy = new Upp...
2
2
1
[{"id": "G0", "claim": "Retrying a 401 with exponential backoff, as the e2e demo's `retryStatusCodes: [429, 401]` does, makes no sense; the demo should use a value like 425, or 418 to make clear it is just testing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
transloadit__uppy__3967
transloadit/uppy
3,967
defect
90b62c7f2153f8af37ef65686b49e632afd2dd71
4dd86d0aae06c3b664285fc3751739d90dcd83ba
Companion: bring back default upload protocol
add (failing) e2e test for remote xhr (multipart) i just copy pasted tus tests and adjusted a bit. should we reuse instead? regression caused by #3834 also: - explicitly add protocol: 'multipart' in the client so we can possibly remove the default value in companion in the future (breaking)
diff --git a/e2e/clients/dashboard-xhr/app.js b/e2e/clients/dashboard-xhr/app.js new file mode 100644 index 0000000000..88300630a3 --- /dev/null +++ b/e2e/clients/dashboard-xhr/app.js @@ -0,0 +1,18 @@ +import { Uppy } from '@uppy/core' +import Dashboard from '@uppy/dashboard' +import XHRUpload from '@uppy/xhr-upload' +...
3
2
0
[{"id": "G0", "claim": "The NOTE comment about tusd.tusdemo.net caching copied into the new XHR spec is not relevant there and should not be in this file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated remote-upload test bodies sh...
null
transloadit__uppy__4187
transloadit/uppy
4,187
defect
37d9717a51c3c7520a3671964cf167865715d998
d10cd66c1875b0d73a77c5944f7017174cfecf6a
@uppy/aws-s3-multipart: refactor rate limiting approach
Resurrection of https://github.com/transloadit/uppy/pull/4179.
diff --git a/packages/@uppy/aws-s3-multipart/src/MultipartUploader.js b/packages/@uppy/aws-s3-multipart/src/MultipartUploader.js index 9a4973409a9..1db3663b19c 100644 --- a/packages/@uppy/aws-s3-multipart/src/MultipartUploader.js +++ b/packages/@uppy/aws-s3-multipart/src/MultipartUploader.js @@ -1,15 +1,11 @@ -import {...
7
4
1
[{"id": "G0", "claim": "The PR should implement retries and exponential back-off, for which the reviewer recommends using a library such as ky instead of leaving the retryDelays option unused.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The plugin def...
null
transloadit__uppy__4343
transloadit/uppy
4,343
defect
222e511a98b1e69a885a8c9bf4bea888f6bb14d7
84a9cafb3dedf7d776b942f896e10b66abc04cee
@uppy/dashboard: auto discover and install plugins without target
Why this change? - People are confused by having to use a plugin without a `target` and then listing it in Dashboard’s `plugin=['Audio', 'GoogleDrive'...]` array. - RemoteSources currently don't work with @uppy/react. RemoteSources sets `target: Dashboard` by default, this PR removes it. - Reduces boilerplate. -...
diff --git a/packages/@uppy/core/src/Uppy.js b/packages/@uppy/core/src/Uppy.js index d3efed3aa5..a73b6420d9 100644 --- a/packages/@uppy/core/src/Uppy.js +++ b/packages/@uppy/core/src/Uppy.js @@ -1187,6 +1187,8 @@ class Uppy { } plugin.install() + this.emit('plugin-added', plugin) + return this } ...
11
4
1
[{"id": "G0", "claim": "Add a comment above `const typesAllowed = ['acquirer', 'editor']` in #autoDiscoverPlugins explaining that only these types belong on the Dashboard (they suggested the exact wording).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
transloadit__uppy__4421
transloadit/uppy
4,421
defect
57a71e175cfe30acbd61f08b5c23f901ff88d6bb
46723b53e342c317b20bb3ad4adf08ac7f0c22ef
@uppy/transloadit: Reset `tus` key in the file on error, so retried files are re-uploaded
Fixes #4412
diff --git a/packages/@uppy/transloadit/src/index.js b/packages/@uppy/transloadit/src/index.js index 67f734ef94..7639a5fc09 100644 --- a/packages/@uppy/transloadit/src/index.js +++ b/packages/@uppy/transloadit/src/index.js @@ -290,14 +290,22 @@ export default class Transloadit extends BasePlugin { watcher.on('as...
1
1
1
[{"id": "G0", "claim": "The pull request's fix (resetting the `tus` key on assembly error) should be covered by an e2e cypress test: add a file, make the upload fail, retry, and check the assembly id in the URL is different from the previous one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope...
null
transloadit__uppy__4424
transloadit/uppy
4,424
defect
57a71e175cfe30acbd61f08b5c23f901ff88d6bb
32d7ce0fca6ec200ffcd4ef8bd589fd5b7c4a239
@uppy/aws-s3-multipart: make retries more robust
When the user clicks retries, we need to have cleared up all the cache regarding the file to retry, otherwise we are likely to target an already expired ID. Fixes: https://github.com/transloadit/uppy/issues/4366
diff --git a/e2e/cypress/integration/dashboard-aws-multipart.spec.ts b/e2e/cypress/integration/dashboard-aws-multipart.spec.ts index 25ce042a00..6c63cd5a58 100644 --- a/e2e/cypress/integration/dashboard-aws-multipart.spec.ts +++ b/e2e/cypress/integration/dashboard-aws-multipart.spec.ts @@ -14,4 +14,60 @@ describe('Dash...
2
2
0
[{"id": "G0", "claim": "aduh95 would like to avoid, if possible, the global Cypress.on('uncaught:exception') handler the PR adds, because returning false prevents Cypress from failing the test on uncaught exceptions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
transloadit__uppy__4489
transloadit/uppy
4,489
defect
72f579e21690b7d7180cc9e424ab497c35ef3bdf
834c931217b480c8e185cccdb9cf82bc1629a23a
@uppy/companion: Use filename from content-disposition instead of relying on url, with fallback
- We should make sure it works for old Companion as well, so `name: meta.name || getFileNameFromUrl(url)` - Is `response.request.requestUrl` a good original url source for the fallback? Before: ![Screen Shot 2023-06-06 at 20 23 42](https://github.com/transloadit/uppy/assets/1199054/0920396d-4726-415f-9b15-7c57cf5a...
diff --git a/packages/@uppy/companion/package.json b/packages/@uppy/companion/package.json index e02cdf438a..3bdab41463 100644 --- a/packages/@uppy/companion/package.json +++ b/packages/@uppy/companion/package.json @@ -34,6 +34,7 @@ "chalk": "4.1.2", "common-tags": "1.8.2", "connect-redis": "6.1.3", + ...
3
3
1
[{"id": "G0", "claim": "A leftover debug console.log(response.request) was added and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The destructuring line should drop the double space after type, reading `const { name, size, t...
null
transloadit__uppy__4544
transloadit/uppy
4,544
defect
d1697b0cb82c3d7844d168ec4437d90a782532d3
87d998e1004a2cc502bd7c22cb24007b2fae8b70
@uppy/aws-s3-multipart: fix upload retry using an outdated ID
https://github.com/transloadit/uppy/pull/4526 introduced a regression causing already aborted UploadId to be reused.
diff --git a/e2e/cypress/integration/dashboard-aws-multipart.spec.ts b/e2e/cypress/integration/dashboard-aws-multipart.spec.ts index a367c4f2f1..6e9ac7292d 100644 --- a/e2e/cypress/integration/dashboard-aws-multipart.spec.ts +++ b/e2e/cypress/integration/dashboard-aws-multipart.spec.ts @@ -34,7 +34,7 @@ describe('Dashb...
1
1
1
[{"id": "G0", "claim": "The new restore condition `options.uploadFile && options.key` reads `uploadFile`, but nothing in the pull request sets or passes that property, so `#isRestoring` would never be true when an upload is being restored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
transloadit__uppy__4611
transloadit/uppy
4,611
defect
f3ce884e43d6dd8732a0cafb8d32ee8ba9a12d9b
ee398c0bbc9de04ecfb408be08cba9effa0e16c3
@uppy/aws-s3,@uppy/aws-s3-multipart: update types
Attempt at making `@uppy/aws-s3` types more useful for consumers.
diff --git a/packages/@uppy/aws-s3-multipart/types/index.d.ts b/packages/@uppy/aws-s3-multipart/types/index.d.ts index 65488c3f68..aebe139d29 100644 --- a/packages/@uppy/aws-s3-multipart/types/index.d.ts +++ b/packages/@uppy/aws-s3-multipart/types/index.d.ts @@ -2,11 +2,28 @@ import type { BasePlugin, PluginOptions, Up...
1
1
0
[{"id": "G0", "claim": "Since the type changes are quite involved, the aws-s3 type tests should also cover the other multipart methods (getChunkSize, createMultipartUpload, listParts, signPart, abortMultipartUpload, completeMultipartUpload) — at minimum a small addition showing the functions are allowed without a type ...
null
transloadit__uppy__4885
transloadit/uppy
4,885
defect
39e26e74029eddabce3cf3237f7c3de2207ef2e9
8bf26de92c1211b0fb04bff2a60ac5d248db82d0
@uppy/core: add utility type to help define plugin option types
As suggested by https://github.com/transloadit/uppy/pull/4883#discussion_r1462917831
diff --git a/packages/@uppy/core/src/BasePlugin.ts b/packages/@uppy/core/src/BasePlugin.ts index 64244e5851..a165df3402 100644 --- a/packages/@uppy/core/src/BasePlugin.ts +++ b/packages/@uppy/core/src/BasePlugin.ts @@ -21,6 +21,11 @@ export type PluginOpts = { [key: string]: unknown } +export type DefinePluginOpt...
3
3
0
[{"id": "G0", "claim": "The `// @ts-expect-error boolean not allowed` assertion should pass `bar: false` instead of `foo: false`, so the boolean is rejected on the required option.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test plugin's constru...
null
transloadit__uppy__4888
transloadit/uppy
4,888
defect
2a9cd56e6f87c45ab87301d616788bd1f1ac1f21
91ad4c414cdd491b9014026827c2fc25568f547f
@uppy/core: use variadic arguments for `uppy.use`
We want TS to report an error when `opts` is defined as mandatory in the plugin constructor and missing from the `.use` call.
diff --git a/packages/@uppy/core/src/Uppy.test.ts b/packages/@uppy/core/src/Uppy.test.ts index 4d097f0263..949d969ce9 100644 --- a/packages/@uppy/core/src/Uppy.test.ts +++ b/packages/@uppy/core/src/Uppy.test.ts @@ -89,6 +89,7 @@ describe('src/Core', () => { this.bar = this.opts.bar } } ...
2
1
0
[{"id": "G0", "claim": "The variadic spread is unnecessary because `use` will only ever take two arguments (the plugin and its `opts`), so keep the types simple based on what we know instead of supporting a third argument.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G...
null
transloadit__uppy__4901
transloadit/uppy
4,901
defect
5b316f8a85c872eacb6575ef6ec42fd0f4460e6b
99ae72b0982ce1f921ea3783d0e70e659d803a42
meta: validate `defaultOptions` for stricter option types
1. Removes `[key: string]: unknown` from `PluginOptions` – that was probably added by mistake 2. Ensures the `AlwaysDefinedKeys` are one of the optional key of the `Opts` type. That should help catch instances where we defined by mistake a default value for a mandatory option, or we mistakenly mark as required an opti...
diff --git a/packages/@uppy/companion-client/src/Provider.ts b/packages/@uppy/companion-client/src/Provider.ts index ee16399a8c..e1e504b0fe 100644 --- a/packages/@uppy/companion-client/src/Provider.ts +++ b/packages/@uppy/companion-client/src/Provider.ts @@ -1,5 +1,6 @@ import type { Uppy, BasePlugin } from '@uppy/cor...
2
1
1
[{"id": "G0", "claim": "The reviewer asks to remove the `Partial<>`s above the default options so the plugin's options type can stay simple, noting he removed them locally with no type errors and questioning where the more complex type has any effect.", "category": "design", "verdict": "opposed", "priority": "P2", "sco...
null
transloadit__uppy__5059
transloadit/uppy
5,059
defect
c4455ebba7bbb59c191c3c0d891d21864eedd2d3
a37d2a7d6bfaa38a88fdcdba711ca7ba788ca1b4
@uppy/react: remove `useUppy` & reintroduce `useUppyState`
- `useUppy` has been deprecated for a while and can be removed. - Reapply `useUppyState` (had to be reverted because it was a breaking change) - Use `useSyncExternalStoreWithSelector` instead of `useSyncExternalStore` to prevent unnecessary re-renders - https://github.com/transloadit/uppy/pull/4711#issuecomment-17...
diff --git a/bin/build-lib.js b/bin/build-lib.js index e1a2a03bb8..e185ebb54e 100644 --- a/bin/build-lib.js +++ b/bin/build-lib.js @@ -10,7 +10,7 @@ const { mkdir, stat, writeFile } = fs.promises const PACKAGE_JSON_IMPORT = /^\..*\/package.json$/ const SOURCE = 'packages/{*,@uppy/*}/src/**/*.{js,ts}?(x)' // Files no...
4
3
0
[{"id": "G0", "claim": "nickrttn asks whether the dependency entry added at line 24 of packages/@uppy/react/package.json is what is wanted there.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The \"jsx\": \"react-jsx\" compiler option should be...
null
transloadit__uppy__5094
transloadit/uppy
5,094
defect
377c3be3cc05f49a170686d38a541fad4fe20726
46c8ef146912c67d0aa945eacb1376a486549620
@uppy/xhr-upload: introduce hooks similar to tus
Closes #5049
diff --git a/packages/@uppy/utils/src/ProgressTimeout.ts b/packages/@uppy/utils/src/ProgressTimeout.ts index 8e6617fd43..1b39ba8e07 100644 --- a/packages/@uppy/utils/src/ProgressTimeout.ts +++ b/packages/@uppy/utils/src/ProgressTimeout.ts @@ -15,10 +15,11 @@ class ProgressTimeout { constructor( timeout: numbe...
3
2
1
[{"id": "G0", "claim": "The new `const body = JSON.parse(res.responseText)` line should be written as `const body = JSON.parse(res.responseText) as unknown`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `if (!body?.url)` check is not stric...
null
transloadit__uppy__5159
transloadit/uppy
5,159
defect
4890281404c4d6e8f2a65ac41ef39e164909953c
8d17fb456c52fed5ebe853c343c37dd9a6dc220b
@uppy/core: remove `reason`
We should also update the React example who is still using it.
diff --git a/docs/uppy-core.mdx b/docs/uppy-core.mdx index 6abb41bf09..0d507bfc15 100644 --- a/docs/uppy-core.mdx +++ b/docs/uppy-core.mdx @@ -764,11 +764,7 @@ Retry an upload (after an error, for example). Retry all uploads (after an error, for example). -#### `cancelAll({ reason: 'user' })` - -| Argument | Type ...
5
4
3
[{"id": "G0", "claim": "CI is failing at snapshot S1.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Custom logic that still consumes the removed `reason` remains to be removed in companion-client, tus, and xhr-upload.", "category": "correctness", "...
null
transloadit__uppy__5195
transloadit/uppy
5,195
defect
965d2a09b831f589b2ebae2dfdd91fbbcd4c026a
ed6b57966fb53cb873ac24e4c2c9c02b27e30253
@uppy/aws-s3: resolve all headers on response
Closes #5138
diff --git a/packages/@uppy/aws-s3-multipart/src/index.test.ts b/packages/@uppy/aws-s3-multipart/src/index.test.ts index 0b2c22aaf0..83a565a4ac 100644 --- a/packages/@uppy/aws-s3-multipart/src/index.test.ts +++ b/packages/@uppy/aws-s3-multipart/src/index.test.ts @@ -91,6 +91,7 @@ describe('AwsS3Multipart', () => { ...
4
3
1
[{"id": "G0", "claim": "The xhr.getResponseHeader('ETag') and ('Location') calls can be dropped, with etag and location destructured from headersMap below the parsing loop instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The header-parsin...
null
transloadit__uppy__5244
transloadit/uppy
5,244
defect
9ff3746c83bf8e86f3d744d4f75e8753176587a9
86357a07c5b3ddcf3b131b324dcc420600128b3d
@uppy/core: set default for Body generic
`@uppy/tus` and `@uppy/transloadit` return `{}` for the `Body` so it's better to set the default to `Record<string, never>`. `@uppy/xhr-upload` users should define their own `Body` type.
diff --git a/packages/@uppy/core/src/Uppy.ts b/packages/@uppy/core/src/Uppy.ts index 66996e46a8..744554296b 100644 --- a/packages/@uppy/core/src/Uppy.ts +++ b/packages/@uppy/core/src/Uppy.ts @@ -308,7 +308,7 @@ const defaultUploadState = { * Manages plugins, state updates, acts as an event bus, * adds/removes files...
3
1
0
[{"id": "G0", "claim": "The new default for `Body` should also be set on the other plugin classes' `B extends Body` generics, not only on the `Uppy` class.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default type `Record<string, never>` should be ex...
null
transloadit__uppy__5247
transloadit/uppy
5,247
defect
181ea6dfe85eae565ad8154490cc8fff467d80f6
c5d7808c75dc85b9839d702a214754b86dbf23d7
@uppy/core: add generic to `getPlugin`
It's a common use case to `getPlugin` and access something on it. Currently it's a bit awkward: ```ts const state = (uppy.getPlugin('Transloadit') as Transloadit<any,any>).getPluginState() ``` This PR reintroduces the generic on `getPlugin`, so it's an improvement but also backwards compatibility with 3.x: `...
diff --git a/packages/@uppy/core/src/Uppy.ts b/packages/@uppy/core/src/Uppy.ts index 744554296b..da5956893a 100644 --- a/packages/@uppy/core/src/Uppy.ts +++ b/packages/@uppy/core/src/Uppy.ts @@ -1724,10 +1724,10 @@ export class Uppy<M extends Meta, B extends Body = Record<string, never>> { /** * Find one Plugin ...
3
1
0
[{"id": "G0", "claim": "The API would be more developer-friendly if getPlugin returned the correct type derived from the string value passed as id, since TypeScript can statically analyse string literals for built-in plugins even though it cannot work for third-party plugins or custom ids.", "category": "design", "verd...
null
transloadit__uppy__5264
transloadit/uppy
5,264
defect
0dd7ac35d899d74eaf774e3c30c0d479798e673e
abbe8db1185371d733f20acb50a0c12be434d151
@uppy/react: introduce useUppyEvent
We already have `useUppyState` (#5059) but there is a need for `useUppyEvent`. Considering the following code, which is very common when building with React and Uppy. ```ts const [transloaditResult, setTransloaditResult] = useState<ManuallyTypeThis>([]) const [stepName, result, assembly] = transloaditResult use...
diff --git a/docs/framework-integrations/react.mdx b/docs/framework-integrations/react.mdx index c4b0e04990..6be7bfd227 100644 --- a/docs/framework-integrations/react.mdx +++ b/docs/framework-integrations/react.mdx @@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem'; # React -[React][] components for the Uppy UI ...
3
2
1
[{"id": "G0", "claim": "The useUppyEvent hook also needs to be exported from `src/index.ts`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should import useUppyEvent through the public `index.ts` entry point so the export is exercised in the pu...
null
transloadit__uppy__5344
transloadit/uppy
5,344
defect
6a94c373224661b0abc505a8c752d9d304b54e9e
4b3323b203f9a6d1d08732b66acb54f26c786b8e
@uppy/xhr-upload: correctly type xhrUpload meta
Fixes #5337
diff --git a/packages/@uppy/xhr-upload/src/index.test.ts b/packages/@uppy/xhr-upload/src/index.test.ts index 7ccfd812af..f0a226bcf8 100644 --- a/packages/@uppy/xhr-upload/src/index.test.ts +++ b/packages/@uppy/xhr-upload/src/index.test.ts @@ -31,13 +31,20 @@ describe('XHRUpload', () => { onBeforeRequest, ...
1
1
0
[{"id": "G0", "claim": "Use the non-null assertion (`file.name!`) instead of the `as string` cast for the header value in the test.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
transloadit__uppy__5353
transloadit/uppy
5,353
defect
21d37d8481274cb4218c6b5ffab6b11a9e695bed
cac2b3d2abb8b657c1bf4527bd5f65bda50ccdca
@uppy/aws-s3: use default Body generic & export AwsBody
Fixes #5347 As seen in the issue, `new Uppy().use(AwsS3, {})` is causing generic type issues. The problem is the incompatibility between the `Body` generic on `Uppy` and `AwsS3`. It's probably safer to work with the default Body generic in plugins and export a enhanced type for users to implement if they care.
diff --git a/docs/uploader/aws-s3-multipart.mdx b/docs/uploader/aws-s3-multipart.mdx index 51261d5d70..d2d629d471 100644 --- a/docs/uploader/aws-s3-multipart.mdx +++ b/docs/uploader/aws-s3-multipart.mdx @@ -169,6 +169,36 @@ const uppy = new Uppy() }); ``` +### Use with TypeScript + +Uppy always puts the response t...
1
1
0
[{"id": "G0", "claim": "The exported AwsBody interface should extend the directly imported Body type rather than the aliased _Body (suggested: `export interface AwsBody extends Body {`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transloadit__uppy__5354
transloadit/uppy
5,354
defect
21d37d8481274cb4218c6b5ffab6b11a9e695bed
6358ba3d3a0246a6a34b335a740a563a5d163748
@uppy/xhr-upload: bring back getResponseData
Closes #5349 `getResponseData` was deleted for 4.0 as I thought `onAfterResponse` covers the use case as well but you can't modify the response from inside it. I tried altering `onAfterResponse` to allow you to return a body and deprecate the `void` signature with backwards compatibility, but it didn't feel right an...
diff --git a/packages/@uppy/xhr-upload/src/index.test.ts b/packages/@uppy/xhr-upload/src/index.test.ts index 25156f0880..19cb8b6059 100644 --- a/packages/@uppy/xhr-upload/src/index.test.ts +++ b/packages/@uppy/xhr-upload/src/index.test.ts @@ -4,7 +4,7 @@ import Core from '@uppy/core' import XHRUpload from './index.ts'...
2
1
0
[{"id": "G0", "claim": "The new code overrides the value returned by a user-supplied getResponseData by re-parsing responseText, so the reviewer proposes checking whether getResponseData is provided before parsing the response.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"},...
null
transloadit__uppy__5400
transloadit/uppy
5,400
defect
f70e14a969f7284591f386c3c00008134d0f897d
3456c239d27090564bebd60d19865be3b8927f61
fix issue with allowMultipleUploadBatches
**Note**: don't merge this before #5399 (or recreate this pr directly onto main) - fixes https://github.com/transloadit/uppy/issues/5397 - also refactor from promise.then to async/await - and fix what seems like broken logic with recursive this.#afterUpload call
diff --git a/e2e/cypress/integration/dashboard-transloadit.spec.ts b/e2e/cypress/integration/dashboard-transloadit.spec.ts index 311d42b116..faee0a33dc 100644 --- a/e2e/cypress/integration/dashboard-transloadit.spec.ts +++ b/e2e/cypress/integration/dashboard-transloadit.spec.ts @@ -65,14 +65,14 @@ describe('Dashboard w...
2
1
0
[{"id": "G0", "claim": "The inline comment 'or we risk unhandled rejection' should be removed — the author was unsure it was a real concern, and properly logging the error is the acceptable part.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
transloadit__uppy__5536
transloadit/uppy
5,536
defect
0648fa7633314357e8cc1ad099e86322b5f7a888
60a069d12329fc82f7be206b6b7258e8c3de6b8f
Fix allowed origins
- escape regex in default companionAllowedHosts - also fail early if invalid regex supplied - and add unit tests
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 362edbf88b..4f23743a16 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -115,7 +115,7 @@ Authenticates and Uploads from Dropbox through Companion: ### Unit tests -Unit tests are using Jest and can be run with: +Unit tests are...
1
1
0
[{"id": "G0", "claim": "The stale todo comment asking whether the URL should also be wrapped in new URL(companionUrl).origin can be removed, since the code right below already overrides ret with new URL(ret).origin.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transloadit__uppy__5602
transloadit/uppy
5,602
defect
2903b35902a397eb59da40441b6dd220de2a82b5
1b2fc7960c3537f764f457ff26bed12779a359f9
@uppy/aws-s3: always set S3 meta to UppyFile & include key
Closes #5513 Closes #5586 Closes #5565 Closes #5569 - `uppy.on('upload-success', (file, response) => {})` now correctly has `response.body` populated. - `uppy.getFile(someId).s3Multipart` is now always populated (previously only for multipart uploads). - `uppy.getFile(someId).meta` does not contain S3 relate...
diff --git a/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts b/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts index ebadfa6f00..bfcc9035a2 100644 --- a/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts +++ b/packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts @@ -276,15 +276,21 @@ export class HTTPCommunicat...
2
1
1
[{"id": "G0", "claim": "The console.error added in the non-multipart upload path fires for legitimate getUploadParameters configurations that return no fields.key, surfacing as an error in users' overlays, and should be turned into a comment instead of a console log.", "category": "correctness", "verdict": "supported",...
null
transloadit__uppy__5696
transloadit/uppy
5,696
defect
518f2d5d88c8af5370c68010f2ca447e7587038e
b3b301596c92373ed8ec35c7de3f2a8d26eea560
@uppy/core: fix events when retrying with upload()
This fixes #5694 **Before** -- Add a file Call uppy.upload() but make it fail (set throttling to offline in your browser) Call uppy.upload() again but no throttling Current behavior -- The return value of uppy.upload() has zero 'successful' uploads. Instead we get something like {"successful":[],"failed":[...
diff --git a/packages/@uppy/core/src/Uppy.ts b/packages/@uppy/core/src/Uppy.ts index f9166746b9..b463a29113 100644 --- a/packages/@uppy/core/src/Uppy.ts +++ b/packages/@uppy/core/src/Uppy.ts @@ -2280,7 +2280,7 @@ export class Uppy< (file) => file.progress.uploadStarted == null, ) - if (!hasNewFil...
2
2
1
[{"id": "G0", "claim": "The retry test Murderlon originally wrote should be tweaked so it also takes the pull request's changed retry/complete behaviour into account.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Since the name hasNewFiles implies a bo...
null
transloadit__uppy__5836
transloadit/uppy
5,836
defect
a703ca79979cafde5223634b463de647953cb188
3d01193d77dcf26ab78adedd61676904d003bfac
@uppy/xhr-upload: allow passing getter as endpoint option
This adds the option to pass a getter to the `endpoint` option of the `@uppy/xhr-upload` plugin: ```ts .use(XHRUpload, { endpoint: (file) => createSignedUrl(file), }) ``` This is especially useful when the backend uses short-lived signed urls for uploads.
diff --git a/.changeset/ten-trainers-happen.md b/.changeset/ten-trainers-happen.md new file mode 100644 index 0000000000..4753115dd2 --- /dev/null +++ b/.changeset/ten-trainers-happen.md @@ -0,0 +1,6 @@ +--- +"@uppy/xhr-upload": minor +--- + +The `endpoint` option now also accepts a callback to dynamically set it (`end...
2
2
1
[{"id": "G0", "claim": "Would you mind adding a test for the new endpoint-function option.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "And most ideally also change the docs (uppy.io xhr.mdx endpoint section) afterwards.", "category": "documentation",...
null
transloadit__uppy__5967
transloadit/uppy
5,967
defect
9bac4c839853127a6dd0acc6b67365140f5ab492
d02614e0917212098ac02ad4ba45330a9e4114e2
@uppy/components: fix dropzone global id
fixes #5946 Root Cause : `createDropzone` used a single global `id` for the file input (`'uppy-dropzone-file-input'`) Clicking any `<Dropzone />` did `document.getElementById(<global-id>).click()`, which always targeted the first input in the DOM, so files were added to the first Uppy instance. https://gith...
diff --git a/.changeset/shiny-walls-run.md b/.changeset/shiny-walls-run.md new file mode 100644 index 00000000000..247ca115454 --- /dev/null +++ b/.changeset/shiny-walls-run.md @@ -0,0 +1,5 @@ +--- +"@uppy/components": minor +--- + +Implement ref-based click handling for Dropzone. diff --git a/packages/@uppy/components...
1
1
0
[{"id": "G0", "claim": "The PR should drop the more complicated ref-based openFileDialog mechanism and instead just append `uppy.getID()` to the file input id, since using multiple uppy instances already requires unique instance IDs so there is no downside.", "category": "design", "verdict": "supported", "priority": "P...
null
transloadit__uppy__6058
transloadit/uppy
6,058
defect
c788818410675eb23d1eb1fb1c0980361f3859f2
f4a8ca6f032afc029d502c916108f58eedbd21ad
Move completed uploads exclusion logic
into uploader plugins fixes #6051 also [fix deprecated usage of done callback](https://github.com/transloadit/uppy/commit/2511142276b3a9cedde85a90472650753b8059fd)
diff --git a/.changeset/polite-cougars-itch.md b/.changeset/polite-cougars-itch.md new file mode 100644 index 0000000000..9834560421 --- /dev/null +++ b/.changeset/polite-cougars-itch.md @@ -0,0 +1,9 @@ +--- +"@uppy/aws-s3": patch +"@uppy/core": patch +"@uppy/tus": patch +"@uppy/utils": patch +"@uppy/xhr-upload": patch...
1
1
1
[{"id": "G0", "claim": "The pull request's changed upload-filtering behaviour (excluding already-completed files in the uploader plugins) should have been caught by and should get a simple test added — \"Would that be easy to add?\".", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
transloadit__uppy__6105
transloadit/uppy
6,105
defect
101fd8ca84c7841f974eeaba5d2bab3a6768003a
4e30f3749ac4a0ff14d21970a848f4e231893dd3
@uppy/utils,@uppy/xhr-upload: create and use new queue
Closes #4173, kind off ## Problem Current situation with `RateLimitedQueue` - Track concurrency: keep a running count, only dispatch up to limit, accept Infinity. - Priority enqueue: queued handlers sorted by priority; dequeued in that order. - Lifecycle bookkeeping: each job gets abort()/done() hooks; ...
diff --git a/packages/@uppy/locales/src/en_US.ts b/packages/@uppy/locales/src/en_US.ts index cca5feb7b2..a0634ef266 100644 --- a/packages/@uppy/locales/src/en_US.ts +++ b/packages/@uppy/locales/src/en_US.ts @@ -44,7 +44,6 @@ en_US.strings = { browseFolders: 'browse folders', cancel: 'Cancel', cancelUpload: 'Ca...
6
5
3
[{"id": "G0", "claim": "The recursive call to #advance() inside queueMicrotask schedules a new microtask for every aborted task skipped, which could delay processing of valid tasks when many consecutive queued tasks are aborted; use a loop to skip them within the same microtask.", "category": "performance", "verdict": ...
null
transloadit__uppy__6215
transloadit/uppy
6,215
defect
47879609c730eedfbf37036ac68b18f0d1ebde39
9ff495ab633bc0cef6a3634e68d2242cce337799
@uppy/examples: mock tus endpoint for react, vue and svelte tests
this fixes #6176
diff --git a/examples/react/package.json b/examples/react/package.json index d9a95ed172..3870d59da7 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -25,6 +25,7 @@ "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.6.0", "@vitest/browser": "^3.2.4", + "msw": "^2.10...
4
1
1
[{"id": "G0", "claim": "The example apps call worker.start() without providing MSW's mockServiceWorker.js (or a configured serviceWorker.url), so in a clean checkout or CI the browser tests can fail with service-worker registration errors before the upload assertions run.", "category": "correctness", "verdict": "oppose...
null
transmission__transmission__4840
transmission/transmission
4,840
defect
fa17414181f251c461ace5838a2664d14462475c
2b90f67958fecfcd9bb639615ebe8c4e6f71f2f6
fix: do not lose magnet links when upgrading from tr3 to 4
Fix #4295 Notes: Fixed `4.0.0` issue that failed to migrate magnet links from Transmission 3.
diff --git a/libtransmission/torrent-metainfo.cc b/libtransmission/torrent-metainfo.cc index 49afdf6b452..de644c35df0 100644 --- a/libtransmission/torrent-metainfo.cc +++ b/libtransmission/torrent-metainfo.cc @@ -382,6 +382,20 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe ...
3
3
3
[{"id": "G0", "claim": "A test in tests/libtransmission/torrent-metainfo-test.cc should be added for the magnet info_hash compatibility behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Some magnets still do not work with the change as written a...
null
transmission__transmission__5096
transmission/transmission
5,096
defect
63653b48312722bd6f7ffdc8afba8dd73675646a
57f8987e90f61a834ae3143e23ac31273a0b1665
fix: escaped representation of non-BMP characters when generating JSON
Fixes #1718. According to [ECMA 404](https://www.ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf) : > To escape a code point that is not in the Basic Multilingual Plane, the character may be represented as a twelve-character sequence, encoding the UTF-16 surrogate pair correspond...
diff --git a/libtransmission/variant-json.cc b/libtransmission/variant-json.cc index 2c2c4a351a5..93bfc4d9244 100644 --- a/libtransmission/variant-json.cc +++ b/libtransmission/variant-json.cc @@ -132,7 +132,7 @@ void action_callback_PUSH(jsonsl_t jsn, jsonsl_action_t /*action*/, struct jsons } /* like sscanf(in+2,...
8
8
0
[{"id": "G0", "claim": "The top variant should be initialised AAA-style as `auto top = tr_variant{};` instead of a default-constructed declaration followed by later use.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The key declaration should b...
null
transmission__transmission__5244
transmission/transmission
5,244
defect
f5a24862db7dbc834506fa16e2ea9046a9ac2a2e
5c21a65d188d8de3df260bbdaab119a5f0c9ac3f
fix: crash when magnet dn isn't utf-8
Fix #5212.
diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 2f0ee56267f..6f8b67e72ee 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -402,6 +402,7 @@ C809AEE7291ECFD000BFDBE1 /* NSDataAdditions.mm in Sources */ = {isa = PBXBui...
8
6
2
[{"id": "G0", "claim": "tr_torrentName() should never return invalid UTF-8 to begin with: the name is sanitized when parsing .torrent files but is loaded from .resume files without sanitization, so sanitization should live in tr_magnet_metainfo::setName() (with the metainfo handlers calling setName) rather than only at...
null
transmission__transmission__5563
transmission/transmission
5,563
defect
60c68afdde70a196a56303621687ef6912803fe5
de25621fc0e9bbf8189f4eb429f6d3c1f31beaa2
fix: return error when renaming into existing file
My attempt at resolving [this issue](https://github.com/transmission/transmission/issues/5555#issue-1723972944). *edit by @ckerr:* @basilefff use the phrase "Fixes #DDDD" so GitHub will understand and link the issue and PR together :tada: Fixes #5555.
diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index 17676bb28c0..4b842239346 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -2453,6 +2453,37 @@ bool renameArgsAreValid(std::string_view oldpath, std::string_view newname) !tr_strvContains(newname, TR_PATH_DELIM...
3
3
0
[{"id": "G0", "claim": "The new renameNoCollision() helper should be folded into renameArgsAreValid() instead of being a separate function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local newpath can be made const and a tr_pathbuf to avoid heap ...
null
transmission__transmission__5702
transmission/transmission
5,702
defect
2fa693170adda89b4f9dad10abc855e6b8ca8642
4ff905571e09e5014c465ce7e92d62f6ab633b7b
fix: conform to libcurl requirements to avoid memory leak
Fixes #5698.
diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 1e368630126..589b8779762 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -30,6 +30,7 @@ #include <libtransmission/tr-getopt.h> #include <libtransmission/tr-macros.h> #include <libtransmission/tr-strbuf.h> +#include <libtransmission/utils.h> #include <li...
2
2
1
[{"id": "G0", "claim": "The curl manager handed to each app's main spills internal implementation details through its naming and should be abstracted away as some sort of libtransmission initialization.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
transmission__transmission__5945
transmission/transmission
5,945
defect
cb2462aacd3d182e5d0f0e471f71d950061d6158
fb5afb90597a66dfa13753ffc4129f588e32c79a
refactor: tidy up announcer code
Address some points raised by @reardonia in https://github.com/transmission/transmission/issues/2932#issuecomment-1100916297. - [x] not create locals and just push the check into publishPeerCounts() - [x] publishPeersPex() is not dependent on and should not use seeders & leechers stats - [ ] probably treat scrape_...
diff --git a/libtransmission/announce-list.cc b/libtransmission/announce-list.cc index 7cd96233d7f..1bc8a53e034 100644 --- a/libtransmission/announce-list.cc +++ b/libtransmission/announce-list.cc @@ -87,7 +87,7 @@ bool tr_announce_list::add(std::string_view announce_url_sv, tr_tracker_tier_t t tracker.announce = ...
1
1
0
[{"id": "G0", "claim": "The author is asked whether std::optional would work instead of using -1 as a \"not set\" sentinel for the tracker count fields.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transmission__transmission__6005
transmission/transmission
6,005
defect
8234fe39d2c90f58c6bfac6b33b4bbb15e67d481
c03f2adf0e1d5848146279bd52bcfc3d94b4e2a8
fix: json string serializer improperly escaping characters
Fixes #5967. This PR fixes 3 problems: 1. It is escaping characters that does not need to be escaped (e.g. non-BMP characters), which in turn: 1. Makes the JSON object unnecessarily long. 2. Gives more room for error because of extra code to escape stuff. 2. It decides which characters to escape using `i...
diff --git a/libtransmission/variant-json.cc b/libtransmission/variant-json.cc index 645f5fb003b..db840041391 100644 --- a/libtransmission/variant-json.cc +++ b/libtransmission/variant-json.cc @@ -569,41 +569,36 @@ void jsonRealFunc(tr_variant const& /*var*/, double const val, void* vdata) jsonChildFunc(data); } ...
4
4
3
[{"id": "G0", "claim": "The PR should keep a regression test for the \"\\xf0\\x9f\\xa4\\x94\" (thinking-face emoji) string, which the deleted testUtf16Surrogates covered, to assert the serialized output and guard against regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
transmission__transmission__6055
transmission/transmission
6,055
defect
55da783e8f13bab242a41469c74f6587b09093b8
ed83fb8c61a86cdf8f5d766c4e0dc352fc8ce913
Fails with an error if data removal was not possible
Fixes #5361: instead of silently removing a torrent and leaving the files on disk if there was some error with data removal, torrent removal fails with an user readable error message. Tested in QT, GTK and daemon, where GTK needed some changes to accommodate the new asynchronous removal behavior. Notes: Only remo...
diff --git a/code_style.sh b/code_style.sh index 7bb9e887c57..0c34bb92e02 100755 --- a/code_style.sh +++ b/code_style.sh @@ -60,7 +60,7 @@ fi # format C/C++ clang_format_args="$([ -n "$fix" ] && echo '-i' || echo '--dry-run --Werror')" -if ! find_cfiles -exec "${clang_format_exe}" $clang_format_args '{}' '+'; then ...
8
6
2
[{"id": "G0", "claim": "The libtransmission changes don't make it possible to check if tr_torrentRemove() failed (which mikedld would have expected), forcing the GTK client to unnecessarily reload the full torrent list as a workaround, so a way to get the removal result (e.g. a callback) should be provided.", "category...
null
transmission__transmission__6177
transmission/transmission
6,177
defect
d224985ef8afce3a6859ad71d86f723c5da0b288
90f535015aa255c7249c02e6d8c6fd25aa372a88
fix: crash after nullptr dereference in rpcimpl
Follow up for #5604 Fixes #6172
diff --git a/libtransmission/rpcimpl.cc b/libtransmission/rpcimpl.cc index f3164ade6ac..3774feac054 100644 --- a/libtransmission/rpcimpl.cc +++ b/libtransmission/rpcimpl.cc @@ -134,7 +134,7 @@ auto getTorrents(tr_session* session, tr_variant* args) std::begin(by_id), std::end(by_id), ...
2
1
0
[{"id": "G0", "claim": "The first entry of by_id is always nullptr, so getTorrents could skip it with std::begin(by_id)+1; the added null-filtering may not be necessary if callers check each entry for NULL.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "clai...
null
transmission__transmission__6572
transmission/transmission
6,572
defect
81008a16925bea739b22e7695a1d1d3cb0c493bf
53a2211515e8787d19f056bd1f8724ae4dfccd23
feat: added `sleep-per-seconds-during-verify` to settings.json
Should close #1331. This pull request comes with an additional feature that let power users modify the verification process's behavior dynamically. By leveraging the newly implemented `sleep_per_seconds_during_verify` setting, it is now possible to adjust the sleep duration between piece verifications, in order to redu...
diff --git a/docs/Editing-Configuration-Files.md b/docs/Editing-Configuration-Files.md index 69287d27a20..e93db0830ed 100644 --- a/docs/Editing-Configuration-Files.md +++ b/docs/Editing-Configuration-Files.md @@ -91,6 +91,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri * **torren...
3
2
0
[{"id": "G0", "claim": "Ensuring `sleep_per_seconds_during_verify > 0` before entering the once-per-second sleep branch would avoid affecting performance in the as-fast-as-possible verification mode.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
transmission__transmission__6687
transmission/transmission
6,687
defect
152f3e91a560213d2355a6dc08865ef068c2b434
ca0bda004ab15a909c47a0df169e6f8bc9253fc8
feat: dual stack udp tracker support
Closes #4719. Notes: Added support for IPv6 and dual-stack UDP trackers. ![image](https://github.com/transmission/transmission/assets/46261767/d36522b6-e7bb-4171-bba5-2c12e0a49ab0)
diff --git a/libtransmission/announcer-common.h b/libtransmission/announcer-common.h index caba493325d..db96eb5d9fa 100644 --- a/libtransmission/announcer-common.h +++ b/libtransmission/announcer-common.h @@ -157,10 +157,10 @@ struct tr_announce_response * This is only an upper bound: if the tracker complains about ...
4
2
1
[{"id": "G0", "claim": "On macOS, getaddrinfo() may return an IPv4-mapped IPv6 address for 127.0.0.1 on the PR's new IPv6 lookup path, which the tests are not ready for and which fails the macos-12 CI job.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim...
null
transmission__transmission__6815
transmission/transmission
6,815
defect
821a6816ef70fb074eac2b6c920562a2fd496418
9076d507021301aade9fe136bdaaa2fd827d5ad5
fix: possible heap-use-after-free with magnet links
Fixes #6706. Stack trace at https://github.com/transmission/transmission/pull/4178#issuecomment-2080390580. This PR backtracks some changes made in #6383: - Reverted a change that queues the `tr_torrentVerify()` call instead of executing it immediately after completing the metadata of a magnet link. This is the cr...
diff --git a/libtransmission/peer-mgr.cc b/libtransmission/peer-mgr.cc index 3f19c4a923e..7cdfc371847 100644 --- a/libtransmission/peer-mgr.cc +++ b/libtransmission/peer-mgr.cc @@ -2366,6 +2366,7 @@ void tr_peerMgr::bandwidth_pulse() for (auto* const tor : torrents_) { tor->do_idle_work(); + t...
2
2
2
[{"id": "G0", "claim": "Make `do_magnet_idle_work()` a private `tr_torrent` method and call it from `tr_torrent::do_idle_work()` instead of exposing it publicly and calling it from the bandwidth pulse loop.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
transmission__transmission__6947
transmission/transmission
6,947
defect
ec5296c8dc15c0d51014d67ef93658e5569f354c
743996d08147b3458da57589c91a857b478154f8
fix: abort handshake if the torrent is stopped
Fixes #6935.
diff --git a/libtransmission/handshake.cc b/libtransmission/handshake.cc index 63297198e8a..ce14be51435 100644 --- a/libtransmission/handshake.cc +++ b/libtransmission/handshake.cc @@ -279,14 +279,14 @@ ReadState tr_handshake::read_handshake(tr_peerIo* peer_io) auto hash = tr_sha1_digest_t{}; peer_io->read_by...
3
2
0
[{"id": "G0", "claim": "The project could bump to C++20 (not requiring full compliance) so that designated initializers may be used, e.g. in the new TorrentInfo construction; explicitly a different, non-blocking topic.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, ...
null
transmission__transmission__6981
transmission/transmission
6,981
defect
24f1e15767a1cd621256cf8f32287e9b1592d6d3
2ee410e505d17fffb9460d1da0aaaf52f8d3148e
feat: use canonical peer priority to decide which peers to keep
Fixes #6895. Use BEP-40 to help decide which peer info objects to keep. The BEP's original purpose is to help keep the swarm more robust, but more importantly for us, it shuffles up the decision process. ~Unfortunately BEP-40 left out a lot of crucial details. In some cases, the libtorrent implementation for it d...
diff --git a/.gitmodules b/.gitmodules index 03f5af33eb5..b1d96c3f254 100644 --- a/.gitmodules +++ b/.gitmodules @@ -62,3 +62,6 @@ path = third-party/rpavlik-cmake-modules # synced with https://github.com/rpavlik/cmake-modules.git url = https://github.com/transmission/rpavlik-cmake-modules.git +[submodule "third-...
4
1
1
[{"id": "G0", "claim": "reardonia questions whether the client advertised port and external address should be tr_peer_info constructor parameters at all, suggesting that as global client state that changes exceedingly rarely they would be better kept as session-level state referenced from the canonical priority code (e...
null
transmission__transmission__7355
transmission/transmission
7,355
defect
50eacf693365e96306db15a932ea5f8d70ad69ba
694c582885abf77d64d128ae1653b146b4a500b8
refactor: set peer io socket in constructor
This PR accomplishes a few things: - Fixes #7157. Supercedes #7348. - Fixes regression from #4372 where Transmission will not retry the outgoing connection attempt with TCP if `utp_connect()` returns non-zero. Supercedes #7349. *Note that in practice `utp_connect()` should never return non-zero, I'm just being thor...
diff --git a/libtransmission/net.cc b/libtransmission/net.cc index 576cf217596..120f54c7130 100644 --- a/libtransmission/net.cc +++ b/libtransmission/net.cc @@ -228,7 +228,7 @@ tr_socket_t createSocket(int domain, int type) } } // namespace -tr_peer_socket tr_netOpenPeerSocket(tr_session* session, tr_socket_address...
7
2
0
[{"id": "G0", "claim": "Defining the preferred-transport order as a default array in session.h while the enum declaration in peer-io.h carries its own 'More preferred transports goes on top' comment is confusing; the session.h array should just respect the order already established in peer-io.h.", "category": "maintain...
null
transmission__transmission__8032
transmission/transmission
8,032
defect
4542c1bf8aab959d0101b80b38fc24acd19f9664
e14a4e8ca6ad356bb660401c1085515da29f3208
feat: unify encryption mode serialization format for settings.json and rpc
Notes: Encryption mode in `settings.json` and RPC are now serialized to the same set of strings.
diff --git a/docs/Editing-Configuration-Files.md b/docs/Editing-Configuration-Files.md index 7028f8e80f4..4ab327fc475 100644 --- a/docs/Editing-Configuration-Files.md +++ b/docs/Editing-Configuration-Files.md @@ -89,7 +89,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri * **cache_...
3
2
0
[{"id": "G0", "claim": "The Tr5 conversion switch block in convert_settings_encryption could be replaced with serializer::to_variant().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "serialize_encryption_mode() should use serializer::to_variant(...
null
transmission__transmission__8088
transmission/transmission
8,088
defect
1e911dacdf2dda19db39ec599a730ff46077d757
b5c455cdec74fe2b2add26f186466379d2a70892
refactor: move `tr_diffserv_t::Names` into serializer
Does what it says on the tin: removes `tr_diffserv_t::to_string()` and `tr_diffserv_t::from_string()` since serializer is doing all this work.
diff --git a/libtransmission/net.cc b/libtransmission/net.cc index 4bcd83af344..6ea5591b13a 100644 --- a/libtransmission/net.cc +++ b/libtransmission/net.cc @@ -111,39 +111,6 @@ int tr_make_listen_socket_ipv6only(tr_socket_t const sock) // - TCP Sockets -[[nodiscard]] std::optional<tr_diffserv_t> tr_diffserv_t::fr...
1
1
0
[{"id": "G0", "claim": "The new file-local constant `TosKeys` should be named `DiffServKeys` instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
transmission__transmission__8117
transmission/transmission
8,117
defect
d177f9f903d531c5fab3b306241626320d917836
f1e0940a951e2b59e5ccb97fa76c42deac971117
refactor: implement `tr_strv_sep()` as a wrapper of `find_first_of()`
In `tr_strv_sep()`, use a template parameter pack to capture the parameters to be passed into `std::string_view::find_first_of()`, so that all overloads of `find_first_of()` can be used. No change in behaviour for all existing callers of `tr_strv_sep()`.
diff --git a/libtransmission/utils.h b/libtransmission/utils.h index f9dbb2dbffe..cade32a3b3c 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -161,35 +161,27 @@ template<typename T> return 0; } -constexpr std::string_view tr_strv_sep(std::string_view* sv, std::string_view delim) +template<...
2
1
1
[{"id": "G0", "claim": "The parameter pack is unnecessary since only one delim argument is ever wanted; templatize the single argument's type so the char-overload specializations can be removed entirely.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a...
null
transmission__transmission__8328
transmission/transmission
8,328
defect
2d740b8d8ccb2dc5409077d2b99a98152435672a
5aaf20e8c7de50818fa9fb8ef5416ad26f348588
UTF8-clean torrent 'path'
Fixes #7021 Fixes #8172 Fixes #8214 Fixes #8295 ~~#6704~~ Doesn't fix this one, basically no bittorrent client handles this. we should probably do NFC, but need libuni* for that. Enforce UTF-8 for torrent path names. Was already enforced for other strings including torrent name. This may cause legacy torrent...
diff --git a/libtransmission/torrent-metainfo.cc b/libtransmission/torrent-metainfo.cc index 1a9aedcdf51..ba84c2044ec 100644 --- a/libtransmission/torrent-metainfo.cc +++ b/libtransmission/torrent-metainfo.cc @@ -109,6 +109,11 @@ struct MetainfoHandler final : public tr::benc::BasicHandler<MaxBencDepth> } ...
11
6
2
[{"id": "G0", "claim": "Remove the blank comment line that the change adds at the end of the BEP-3 quote block in torrent-metainfo.cc.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new \"more than one info_dict found\" guard is unrelated to...
null
transmission__transmission__8364
transmission/transmission
8,364
defect
59939ad4e3d11df915ffd0b1f17538ca468bd921
912d146c19a225aa09679fe8d928642abaf6b7ea
feat: add serializer support for std::chrono::sys_seconds, std::u8string, std::filesystem::path
- Add support for `std::filesystem::path` and `std::u8string` to converters in libtransmission. This will let us use std::filesystem::path in Settings structs. - Add support for `std::filesystem::sys_seconds` in libtransmission-app. This will let the UI apps use `sys_seconds` as the date when the blocklist was last ...
diff --git a/libtransmission-app/CMakeLists.txt b/libtransmission-app/CMakeLists.txt index 9e0d5991650..8f3a5c4aba0 100644 --- a/libtransmission-app/CMakeLists.txt +++ b/libtransmission-app/CMakeLists.txt @@ -20,6 +20,12 @@ target_include_directories(${LIBNAME} ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_C...
2
2
0
[{"id": "G0", "claim": "The FMT_*_EXCEPTIONS compile definitions added to libtransmission-app/CMakeLists.txt should be reverted from this pull request and handled instead in #8370.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The custom expect_sys_seco...
null
transmission__transmission__8504
transmission/transmission
8,504
defect
a37ca2a090fae63f71c6344ac2aec22eb2f9eb4e
efd9a0cf8f8038d81ba011743fdf6fa850c6bdeb
refactor: safeguard against nullptr `tr_torrent*` args in `tr_torrentFoo()` methods
1. Safeguard the `tr_torrentFoo(tr_torrent* tor)` methods by handling `tor == nullptr` before doing anything else. Methods that return `void` just return; methods that return a value return a default-constructed `{};`. 2. Ensure that default-constructed structs that contain string pointers (e.g. `tr_torrent_view::ha...
diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index c84c09200ee..3847c04c8ca 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -211,11 +211,21 @@ bool tr_torrentIsSeedRatioDone(tr_torrent const* tor) void tr_torrentSetSpeedLimit_KBps(tr_torrent* const tor, tr_directio...
2
1
1
[{"id": "G0", "claim": "The added `if (tor == nullptr)` guard in functions that already assert `TR_ASSERT(tr_isTorrent(tor))` is self-contradictory; tearfur asks to either drop the assert in favour of fuller null/session checks or move the guard under the assert with a `tr_isTorrent(tor)` condition.", "category": "desi...
null
transmission__transmission__8554
transmission/transmission
8,554
defect
7a368278f9dce1ca1f389947d2d1fb08752b017a
7faf0abd5b38194c785ee3ca91477190bac122f3
chore: 4.1.1
Release notes: https://github.com/transmission/transmission/blob/chore/4.1.1/news/news-4.1.1.md
diff --git a/CMakeLists.txt b/CMakeLists.txt index af5b220dfe5..b9cb3dd98a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,7 +95,7 @@ set(TR_NAME ${PROJECT_NAME}) # these should be the only five lines you need to change set(TR_VERSION_MAJOR "4") set(TR_VERSION_MINOR "1") -set(TR_VERSION_PATCH "0") +set(TR_V...
1
1
0
[{"id": "G0", "claim": "Pull request #8358 is not a documentation update, so it should not be listed under 'Updated documentation' in the 4.1.1 release notes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transmission__transmission__8669
transmission/transmission
8,669
defect
a84c769f946129998096ce1732a26041be0ba359
8f6928d055882d9abc501d48a2784a65d9ef1321
refactor: remove write cache
Closes #7530. Prerequisite for #2462. First in the async IO series #8742. I've got an unpushed WIP for 2462, but that still needs a lot of work before it's ready to be pushed. I know a lot of people are waiting for 2462 so just to be clear -- 2462 is a big refactor that won't happen overnight. This is an increm...
diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 3b95827d6da..f647e3ed7df 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -147,8 +147,6 @@ A233BD330D8C6585007EE7B4 /* MessageWindow.xib in Resources */ = {isa = PBXBu...
2
2
0
[{"id": "G0", "claim": "The fmtstr translation strings in inout.cc can be inlined at their point of use instead of bound to a variable, to reduce scope (raised for the read-path string and, as 'ditto', for the save-path string).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introd...
null
transmission__transmission__8685
transmission/transmission
8,685
defect
849cd0ecea6f3c3791f0e3da2cad2f64fc1b43cd
580b9f331766eeb3cfd8046d38a4a5a57fadb953
fix: preserve relative order in `queue_move_up` and `queue_move_down`
`queue_move_up`'s current implementation swaps the torrents on position 0 and 1 even if both torrents are passed into the method. This is clearly wrong because the torrent at position 0 is actually moved down the queue. Here's some pseudocode to demonstrate the problem: ```c++ tr_torrent::queue_move_up({ at_queu...
diff --git a/libtransmission/torrent-queue.h b/libtransmission/torrent-queue.h index 75aa0c25f9c..b576f8c4707 100644 --- a/libtransmission/torrent-queue.h +++ b/libtransmission/torrent-queue.h @@ -11,9 +11,9 @@ #include <cstddef> #include <string> -#include <string_view> #include <vector> +#include "libtransmiss...
1
1
0
[{"id": "G0", "claim": "The PR's renaming of tr_return_if_fail() and tr_return_val_if_fail() is unnecessary and should be reverted so the original names are kept for symmetry with GLib's g_return_if_fail()/g_return_val_if_fail().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "intro...
null
transparency-dev__tessera__122
transparency-dev/tessera
122
defect
bb9c88114818498451d1675378c469efedad4a74
0427806bee49974e8c78f25f839a38bf324b3539
move c-t-go/util/timesource.go to sctfe package
#88 I don't see any reason why it would be in its own package. Packages named util are discouraged, https://go.dev/blog/package-names#bad-package-names, let's get rid of it.
diff --git a/personalities/sctfe/handlers.go b/personalities/sctfe/handlers.go index 2fe94f082..5eaae36a5 100644 --- a/personalities/sctfe/handlers.go +++ b/personalities/sctfe/handlers.go @@ -31,7 +31,6 @@ import ( "github.com/google/certificate-transparency-go/asn1" "github.com/google/certificate-transparency-g...
1
1
0
[{"id": "G0", "claim": "Move SystemTimeSource and FixedTimeSource out of the production timesource.go into a test file (e.g. timesource_test.go).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transparency-dev__tessera__178
transparency-dev/tessera
178
defect
f737fcb5845f35f9e435e3722c83a9e177c3b6d5
48de7739e6792e4e1a6784ba782dfab52b32a791
Add support for Static CT API entry bundle paths
This PR adds support to Tessera for storing CT entry bundles in under `data`. The [Static CT API](https://c2sp.org/static-ct-api) defines leaf entry bundles as being stored under a `tiles/data` path. This is incompatible with the [tlog-tiles spec](https://c2sp.org/tlog-tiles) which defines that path as `tiles/entrie...
diff --git a/api/layout/paths.go b/api/layout/paths.go index 7c42a07dd..cd885ad64 100644 --- a/api/layout/paths.go +++ b/api/layout/paths.go @@ -37,25 +37,24 @@ func EntriesPathForLogIndex(seq, logSize uint64) string { return EntriesPath(seq/256, logSize) } -// EntriesPath returns the local path for the nth entry ...
2
2
1
[{"id": "G0", "claim": "WithCTLayout should format CT entry bundle paths with the Static CT API \"tile/data\" prefix instead of \"tile/entries\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to make the path-related functions cons...
null
transparency-dev__tessera__220
transparency-dev/tessera
220
defect
ffef2bb245c68aace9341be38d0cd02aa22aff0b
b85099c323b926935a3f3d15f22fb9fcff4ee5a0
Migrate Tessera storage options and origin from the log config proto to flags
Towards #200 and #88 This PR is a first step towards removing the log config proto. There's more to come, this first PR is smaller to get the spirit of it. I've copied the proto autogenerated `LogConfig` in config.go, without editing the comments. I'll clean this later.
diff --git a/personalities/sctfe/config.go b/personalities/sctfe/config.go index 06cee0128..97b2bbbc7 100644 --- a/personalities/sctfe/config.go +++ b/personalities/sctfe/config.go @@ -22,16 +22,19 @@ import ( "time" "github.com/google/certificate-transparency-go/x509" + "github.com/google/trillian/crypto/keyspb"...
2
1
0
[{"id": "G0", "claim": "Use `origin == \"\"` instead of `len(origin) == 0` for the string emptiness check, and the same idiom elsewhere.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The projectID/bucket/spannerDB flag validation should live in...
null
transparency-dev__tessera__225
transparency-dev/tessera
225
defect
da2d50f2c6607482a88afc8b9bb4f59d96647ab0
71f805cabd7691da65601840cf8f0bc33c0bf28d
remove root_pem_file from cfg, and only allow a single file
Towards #200 and #88. This PR does two things: - Requires for all roots to be defined in a single file, rather than multiple - Moves roots_pem_file from the config, to a flag Leaving a TODO to move the roots_pem_file check rather than deleting in this PR because I've already done it further down in the chai...
diff --git a/personalities/sctfe/config.go b/personalities/sctfe/config.go index 68bd18999..b0ba0a435 100644 --- a/personalities/sctfe/config.go +++ b/personalities/sctfe/config.go @@ -48,9 +48,9 @@ type LogConfig struct { // origin identifies the log. It will be used in its checkpoint, and // is also its submissio...
2
2
0
[{"id": "G0", "claim": "The comment should read \"Path to the file containing root certificates that are acceptable to the\" instead of \"Paths to the file\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The roots_pem_file flag usage string shou...
null
transparency-dev__tessera__253
transparency-dev/tessera
253
defect
7609c147e813536e1fdde4f3fe46654d70c1429a
8643607fda1f723a3beb4cda80bfaf2d98a94655
[GCP] Allow GCP storage to self-initialise
This PR allows the GCP storage implementation to initialise an empty log without requiring an extra tool. This makes log turn ups much easier, and avoids a catch-22 with the hammer which requires a `checkpoint` to be present before it will submit any entries. We can decide later whether we prefer to have all stor...
diff --git a/deployment/live/gcp/cloudbuild/README.md b/deployment/live/gcp/cloudbuild/README.md index d040fa7eb..121f87875 100644 --- a/deployment/live/gcp/cloudbuild/README.md +++ b/deployment/live/gcp/cloudbuild/README.md @@ -1,13 +1,16 @@ # Cloudbuild Triggers and Steps -This directory contains a terragrunt file...
4
3
0
[{"id": "G0", "claim": "The comment on the zero-sized-tree signing path misspells the spec reference as \"RFFC6962\" where it should read \"RFC6962\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why init does not call updateCP...
null
transparency-dev__tessera__281
transparency-dev/tessera
281
defect
10f7ccfc6788dbdc157112d5e66ec4525842a9cb
753a49d1d4fdc3b6f6130773dbfba84313507037
Storage impls have a common read API
This PR adds the MySQL "read" API onto the other storage implementations. While we wouldn't generally expect applications to serve the read API directly unless they're using they MySQL storage implementation, we do expect that some subset of applications will want to be able to inspect the state of the tree locally ...
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index fad49dc32..656db1a4a 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -178,17 +178,29 @@ func (s *Storage) Add(ctx context.Context, e *tessera.Entry) tessera.IndexFuture return s.queue.Add(ctx, e) } -// Get returns the requested object. +func (s...
2
1
0
[{"id": "G0", "claim": "The doc comment above the unexported get method should start with the method's own name, i.e. be reverted to '// Get returns the requested object.' as the applied suggestion block proposes.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G...
null
transparency-dev__tessera__294
transparency-dev/tessera
294
defect
fe05ce710055a461c6af85f4ab4ebd71c44d73ed
3a2abdd2af9ded2c0e784cdc7dd29f8fa38835ba
Wrapper for Add to block until leaf is integrated
The core of this new functionality is a loop that polls for new checkpoints peridiodically. Client code that calls Await will block until this polling loop finds a checkpoint that is bigger than the index being awaited, at which point it releases the client and provides it with the checkpoint and the index. This fixes...
diff --git a/await.go b/await.go new file mode 100644 index 000000000..02d908a8d --- /dev/null +++ b/await.go @@ -0,0 +1,201 @@ +// Copyright 2024 The Tessera authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the...
4
4
0
[{"id": "G0", "claim": "The IntegrationAwaiter doc comment should be reworded to say a single long-lived instance should be reused for all requests in the application code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "sizeStr should use the alre...
null
transparency-dev__tessera__311
transparency-dev/tessera
311
defect
498d39b5fc7c01c22e56d35ec904b4400fdc0640
9a3a64fb06e78b210adce89a81a52722ee4929bb
Handle index overflow
This change handles index overflow by comparing index against MaxUint64. Also add a test for the overflow case.
diff --git a/api/layout/paths.go b/api/layout/paths.go index eff0780db..eb6b2573d 100644 --- a/api/layout/paths.go +++ b/api/layout/paths.go @@ -21,6 +21,7 @@ package layout import ( "fmt" + "math" "strconv" "strings" ) @@ -132,6 +133,9 @@ func ParseTileIndexWidth(index string) (uint64, uint64, error) { if...
1
1
1
[{"id": "G0", "claim": "The new overflow guard should compare `i` (the accumulated index) instead of `n` (the parsed 3-digit component) in `i > (math.MaxUint64-n)/1000`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
transparency-dev__tessera__314
transparency-dev/tessera
314
defect
450c9d54190c0d33260d0059a8a7b350e447f385
5c24b554ce49ddabc7e877b324cd87aa38f1298e
AWS storage implementation on S3 + MySQL (via RDS)
Towards #24 This PR migrates from GCS to S3, and from Spanner to MySQL, thus enabling the code to run on AWS with S3 + RDS. The MySQL code is greatly inspired by the old Betty SQL code @AlCutter wrote for GCP and was then ported over to Betty Aurora. This PR introduces two method signature changes: - It remov...
diff --git a/go.mod b/go.mod index 51581b1ad..52704ae59 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,10 @@ require ( cloud.google.com/go/spanner v1.72.0 cloud.google.com/go/storage v1.46.0 github.com/RobinUS2/golang-moving-average v1.0.0 + github.com/aws/aws-sdk-go-v2 v1.32.4 + github.com/aws/aws-sdk-go-v2/config ...
7
6
0
[{"id": "G0", "claim": "The new Storage comment should read \"an AWS\" instead of \"a AWS\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since nske isn't used below, the code could use errors.Is instead of errors.As for the NoSuchKey checks.", ...
null
transparency-dev__tessera__321
transparency-dev/tessera
321
defect
b2a8124017107e4b39eb98a2d1d72beb07980704
0ef5be5db8eb5efa33d1c1b69a193bfb5e198fbb
AWS storage implementation tests
Towards #312 and #24. This PR builds upon the GCP tests, and migrates them to MySQL and S3. This file contains some MySQL and some non-MySQL tests. MySQL tests should only run if a MySQL database is available, inspired by the `storage/mysq/mysql_test.go` setup. I tried a bunch of setups with "TestMain" and "t.Cle...
diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index f9659b62d..e1781d862 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -37,3 +37,22 @@ jobs: mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u$DB_USER -p$DB_PASSWORD - name: Test wi...
6
5
0
[{"id": "G0", "claim": "The test file should import k8s.io/klog/v2 instead of k8s.io/klog to match the rest of Tessera.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit call to flag.Parse in TestMain may not be needed because M.Run() ...
null
transparency-dev__tessera__323
transparency-dev/tessera
323
defect
a11a451bd8e456f1d14cb3cdd301a4d57e72d620
4d08189ad499a2f86b82b73bf553b21fda0f0a81
[POSIX, GCP] Separate integration from publishing checkpoints
This PR disconnects the act of integrating new entries into a tree, from the act of publishing a new checkpoint which publicly commits to that new tree state for the POSIX and GCP storage implementations. (PRs for other implementations to follow.) The rationale behind this change is two-fold: 1. Different storage i...
diff --git a/cmd/conformance/gcp/main.go b/cmd/conformance/gcp/main.go index 4b8e5bc0a..730158f02 100644 --- a/cmd/conformance/gcp/main.go +++ b/cmd/conformance/gcp/main.go @@ -58,6 +58,7 @@ func main() { gcpCfg := storageConfigFromFlags() storage, err := gcp.New(ctx, gcpCfg, tessera.WithCheckpointSigner(s, a......
11
8
0
[{"id": "G0", "claim": "The documentation on the new WithCheckpointInterval option is too thin and needs more.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The integration test's wait comment should state that the wait also ends when the test ti...
null
transparency-dev__tessera__333
transparency-dev/tessera
333
defect
40695d3c1a34aa814534cfaeab937154751fd9c4
180742692fb2add3d40919dd95743f0014260d5b
Pull dedupe out of queue and into personality mixin
This allows the deduplication behaviour to be more precisely controlled by the personality. Previously deduping was always performed within a single batch flushed from the queue, and this could not be disabled. Now, deduping can be disabled, or made to apply across batches if a large enough cache size is set. The conf...
diff --git a/cmd/conformance/aws/main.go b/cmd/conformance/aws/main.go index 4aa5f122a..f3a1d9179 100644 --- a/cmd/conformance/aws/main.go +++ b/cmd/conformance/aws/main.go @@ -70,6 +70,7 @@ func main() { if err != nil { klog.Exitf("Failed to create new AWS storage: %v", err) } + dedupe := tessera.NewInMemoryDed...
1
1
0
[{"id": "G0", "claim": "Rename the `dedupe` variable to something like `dedupedStorage`, because calling `dedupe.Add` reads as if the entry were being added to the dedupe queue rather than the storage.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transparency-dev__tessera__344
transparency-dev/tessera
344
defect
4df87dd88be973e40fd2ccfbb2a831bea9f56045
595f2eea24bc8f2df62c6233b4c1cb8fc936f034
[MySQL] Separate integration from publishing checkpoints
This PR disconnects the act of integrating new entries into a tree, from the act of publishing a new checkpoint which publicly commits to that new tree state for the MySQL storage implementation. See #323 for more details on the rationale. Helps with #309 and #198.
diff --git a/cmd/conformance/mysql/main.go b/cmd/conformance/mysql/main.go index 9488e596f..c0d75609b 100644 --- a/cmd/conformance/mysql/main.go +++ b/cmd/conformance/mysql/main.go @@ -59,7 +59,10 @@ func main() { noteSigner, additionalSigners := createSignersOrDie() // Initialise the Tessera MySQL storage - stor...
6
4
1
[{"id": "G0", "claim": "The `published_at` column should be declared BIGINT UNSIGNED to match the unsigned millisecond timestamp it holds.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the integrate() tree-state write should be renamed f...
null
transparency-dev__tessera__372
transparency-dev/tessera
372
defect
41cace4fa9fe45e59e60d38a623d1b778d34b28e
7a4dc4859bc18ab0cf90f1e83f49b87db84f6595
[AWS] Separate integration from publishing checkpoints
This PR disconnects the act of integrating new entries into a tree, from the act of publishing a new checkpoint which publicly commits to that new tree state for the MySQL storage implementation. See #323 for more details on the rationale and the GCP and POSIX implementations, and #344 for the MySQL implementation. ...
diff --git a/cmd/conformance/aws/main.go b/cmd/conformance/aws/main.go index 8e4626a3e..f86c6043e 100644 --- a/cmd/conformance/aws/main.go +++ b/cmd/conformance/aws/main.go @@ -43,6 +43,7 @@ var ( dbMaxConns = flag.Int("db_max_conns", 0, "Maximum connections to the database, defaults to 0, i.e unlimited") db...
9
5
1
[{"id": "G0", "claim": "The `lastModified` method added to the `objStore` interface appears to be needed only for checkpoints, and asks whether it should also be offered for tiles and leaf bundles.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "publishChec...
null
transparency-dev__tessera__382
transparency-dev/tessera
382
defect
3c5a7ddf58ad0d6a3fe29fcedfd203641392a559
5f73ad189e27616e58ee507c727691fefe67f2d4
[MySQL Conformance] fix tree size bug
Major changes: - MySQL storage read methods return os.ErrNotExist when values aren't found - ReadTile returns an error if the user requests more data than we have available - Added tests for writing and reading data from tiles - Made tests hermetic (though slower) by resetting the DB for each test case This ...
diff --git a/cmd/conformance/mysql/main.go b/cmd/conformance/mysql/main.go index 7751597b7..21103abb4 100644 --- a/cmd/conformance/mysql/main.go +++ b/cmd/conformance/mysql/main.go @@ -165,17 +165,17 @@ func configureTilesReadAPI(mux *http.ServeMux, storage *mysql.Storage) { } return } - impliedSize := (ind...
3
2
1
[{"id": "G0", "claim": "In TestTileRoundTrip the nodeIndex should be replaced with nodeIndex+1 when passed into s.ReadTile.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ReadEntryBundle doc comment added by this PR says it returns os.ErrNotFoun...
null
transparency-dev__tessera__39
transparency-dev/tessera
39
defect
5183c16feffa356c879c2312fa2be2ade0730724
cc741773899d0b3e91c4da6771c7861533c416a6
Added tiles and entry bundles.
These implementations allow reading data that is compliant with the tlog-tiles spec. It also allows locally constructed values to be serialized in a spec compliant way.
diff --git a/api/state.go b/api/state.go new file mode 100644 index 000000000..4200ffc4d --- /dev/null +++ b/api/state.go @@ -0,0 +1,107 @@ +// Copyright 2024 Google LLC. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with ...
6
5
0
[{"id": "G0", "claim": "Remove the misleading \"Note that only non-ephemeral nodes are stored.\" comment on EntryBundle.Entries.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "EntryBundle marshalling will need to be made pluggable to support CT da...
null
transparency-dev__tessera__393
transparency-dev/tessera
393
defect
afd61eaccb2d24feb56cd657e5375829a3437568
fe8cbc2c340b5d87937afee406c0c25ed84dd8ca
Storage API uses partial width rather than logSize
This PR replaces the use of `logSize` on the exported storage APIs with the explicit desired partial tile/entry bundle size. There are different classes of users of these APIs which will naturally favour one these approaches (e.g. clients must have a checkpoint in their possession and so always know the log's size),...
diff --git a/api/layout/example_test.go b/api/layout/example_test.go index 87a90d491..db824a6e4 100644 --- a/api/layout/example_test.go +++ b/api/layout/example_test.go @@ -28,19 +28,19 @@ func ExampleNodeCoordsToTileAddress() { } func ExampleTilePath() { - tilePath := layout.TilePath(0, 1234067, 315921160) + tileP...
2
2
0
[{"id": "G0", "claim": "The error returned when the tile width fails to parse in ParseTileIndexPartial should say \"failed to parse tile width\" instead of the generic \"failed to parse tile index\", so the failure cause stands out in logs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
transparency-dev__tessera__394
transparency-dev/tessera
394
defect
afd61eaccb2d24feb56cd657e5375829a3437568
264715902cb4d7f9e02e30331c18e44c316b84a7
Storage implementations enforce minimum checkpoint intervals
This PR defines minimum checkpoint publication intervals for the storage implementations, and they will now return an error if an invalid interval is set via the `WithCheckpointInterval` option.
diff --git a/await.go b/await.go index 8f0b6c553..59f08c18c 100644 --- a/await.go +++ b/await.go @@ -16,7 +16,9 @@ package tessera import ( "context" + "errors" "fmt" + "os" "sync" "time" @@ -111,7 +113,7 @@ func (a *IntegrationAwaiter) pollLoop(ctx context.Context, readCheckpoint func(c // Note that fo...
3
1
0
[{"id": "G0", "claim": "Remove the redundant `1 * ` from `minCheckpointInterval = 1 * time.Second` in storage/aws/aws.go to align with the rest of the storage.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rationale for minCheckpointInterval and its ...
null
transparency-dev__tessera__441
transparency-dev/tessera
441
defect
7914bd2c94c23abd1a60f10826965e3906319673
80e52e03d5bd7ead65de9b4b5ec2e0d21b7dc3d7
Experimental migration support for POSIX
This PR adds experimental migration support for migrating into POSIX logs. Towards #436
diff --git a/api/layout/paths.go b/api/layout/paths.go index 07d2aa2b4..e53a18de0 100644 --- a/api/layout/paths.go +++ b/api/layout/paths.go @@ -40,6 +40,54 @@ func EntriesPathForLogIndex(seq, logSize uint64) string { return EntriesPath(seq/EntryBundleWidth, PartialTileSize(0, seq, logSize)) } +// RangeInfo repres...
8
8
2
[{"id": "G0", "claim": "The StartPartial field's documentation should state what the value references (the index it starts from within the bundle) instead of reading like a boolean flag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Access to the...
null
transparency-dev__tessera__475
transparency-dev/tessera
475
defect
2d6f5e360efa12726eb11947a9ed12853e336ab4
42895c18143d9e0fac47d7c521baf562327e36ea
Replace GCP dedup with follower-style implementation
This PR updates the experimental GCP dedup implementation with a (still experimental) version which populates its database by tailing the log, as opposed to the with many potentially-competing transactions it does currently. This approximately doubles the throughput when running on the same infrastructure. Toward...
diff --git a/cmd/conformance/gcp/main.go b/cmd/conformance/gcp/main.go index 99e5015e3..957bb381e 100644 --- a/cmd/conformance/gcp/main.go +++ b/cmd/conformance/gcp/main.go @@ -17,6 +17,7 @@ package main import ( "context" + "crypto/sha256" "errors" "flag" "fmt" @@ -25,6 +26,7 @@ import ( "time" tesser...
12
10
0
[{"id": "G0", "claim": "The cast to LogFollower in the conformance main is exploratory, not the intended way for users of the API to work, so it should carry a TODO so readers checking out main do not take it as the pattern to copy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
transparency-dev__tessera__506
transparency-dev/tessera
506
defect
f275deb8d2ac21b243120a4da5db90a91f1189a0
e132abee80450e0f194a32fa8394527ccc598119
[Client] First pass at tidying the tiles client
This PR cleans up the client implementation to make it more readable, maintainable, and safer to use. - Reordered methods - Make LogStateTracker much more private - Make reads and writes to LST thread safe
diff --git a/client/client.go b/client/client.go index 5bb5d92c4..9fb4dd7f9 100644 --- a/client/client.go +++ b/client/client.go @@ -25,6 +25,7 @@ import ( "fmt" "os" "sort" + "sync" "github.com/transparency-dev/formats/log" "github.com/transparency-dev/merkle/compact" @@ -39,6 +40,27 @@ var ( hasher = rf...
5
3
0
[{"id": "G0", "claim": "The errors returned by the new CheckConsistency wrapper (e.g. \"two checkpoints with same size but different hashes\") should be an ErrInconsistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FetchRangeNodes pulls each requir...
null
transparency-dev__tessera__507
transparency-dev/tessera
507
defect
73e8a49557908e7774beed88fab996db4e5d8700
7121d098b29d0370cac4f1e1e2099cdf733adf27
[MySQL] Add support for Migration lifecycle
This PR adds support to the MySQL storage implement for the Migration lifecycle mode, and adds an experimental migrate tool. Towards #474
diff --git a/cmd/experimental/migrate/mysql/main.go b/cmd/experimental/migrate/mysql/main.go new file mode 100644 index 000000000..1845a1d8a --- /dev/null +++ b/cmd/experimental/migrate/mysql/main.go @@ -0,0 +1,135 @@ +// Copyright 2025 The Tessera authors. All Rights Reserved. +// +// Licensed under the Apache License...
18
15
0
[{"id": "G0", "claim": "The log message on failing to read the initial source checkpoint should be capitalized to \"Failed to read initial source checkpoint: %v\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The log message on failing to pars...
null
transparency-dev__tessera__510
transparency-dev/tessera
510
defect
f55995cb1acaff9c64c95fec24ebccdecccd9c49
5e08930b8908bb12aa8588996f22b48d510acc59
Fix witnessed size state
Previously the state was being lost. Even though this was unintentional, it worked, but involved constantly querying the witness as if it was at size 0. This change makes the size sticky for the life of the process by correctly using pointers instead of copying structs. It also updates the size on success, which was m...
diff --git a/internal/witness/witness.go b/internal/witness/witness.go index 217999e49..85b847431 100644 --- a/internal/witness/witness.go +++ b/internal/witness/witness.go @@ -64,9 +64,9 @@ func NewWitnessGateway(group tessera.WitnessGroup, client *http.Client, fetchPro headers: httpResp.Header, }, nil } -...
3
3
0
[{"id": "G0", "claim": "Fix the typo in the test comment: \"we don't even both constructing\" should read \"we don't even bother constructing\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Confirm whether the test's calls to g.Witness actually ...
null
transparency-dev__tessera__534
transparency-dev/tessera
534
defect
be012b02d99ba34743242dc6ddf21e07a38a8c0d
d33c5f76ed23fa6fdedcea3ff007cff922d8c00c
Improve main README file
This PR improves the main `README.md` file. It: - Tidies up a few nits. - Adds some visual cues for tips and notes. - Makes example code in the README be testable, by adding a new `README_test.go` file which is the canonical source for code examples in the readme (which can be updated using the tool mentioned in ...
diff --git a/README.md b/README.md index aabe052e6..39f70c509 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ multiple organisations in multiple ecosystems, and is likely to remain so for th New ecosystems, or existing ecosystems looking to evolve, should strongly consider planning a migration to Tessera a...
5
5
0
[{"id": "G0", "claim": "The comment in README_test.go misspells \"examples\" as \"exmaples\" and should read \"examples\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sentence added in README.md misspells the package name as \"Tesserea\" an...
null
transparency-dev__tessera__568
transparency-dev/tessera
568
defect
61661a3e39541adec35d4eaaf02c983f2fff0e60
e2078611e5b0338d357b4c607a06f73dcb96e92e
[AWS] Antispam
This adds experimental support for antispam (dedupe) for AWS-hosted logs. The hashes and indices of seen entries are stored in a MySQL database. This is based heavily on the GCP Spanner version, and still maintains its core way of operation (i.e. filling in the duplicates by using the Follower pattern). Towar...
diff --git a/storage/aws/antispam/aws.go b/storage/aws/antispam/aws.go new file mode 100644 index 000000000..352820d24 --- /dev/null +++ b/storage/aws/antispam/aws.go @@ -0,0 +1,437 @@ +// Copyright 2025 The Tessera authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +/...
5
5
1
[{"id": "G0", "claim": "The comment should say \"following and population of mapping data to occur\" instead of \"sequencing and integration to occur\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment should say \"an existing antispam d...
null
transparency-dev__tessera__59
transparency-dev/tessera
59
defect
b573ace18f99f2db0ad4f7accc0e458dc2480cc3
417b4cbe5e41b1d5537d1bbf0da4bd08b1249f85
Use Tessera formats
This PR updates the GCP storage implementation to use the newly added formats and layouts. Toward #23
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index 3969376e0..2a7f80a35 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -31,19 +31,18 @@ package gcp import ( "bytes" "context" - "crypto/sha256" "encoding/gob" "errors" "fmt" "io" "net/http" "os" - "slices" "time" "cloud.google....
2
2
0
[{"id": "G0", "claim": "Add a comment on the setEntryBundle setObject call explaining that retries will work when the content of the file is the same.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For clarity, wrap errors (rather than returning t...
null
transparency-dev__tessera__60
transparency-dev/tessera
60
defect
b573ace18f99f2db0ad4f7accc0e458dc2480cc3
73502a4bc771abd3c2dd29b2ea521ec7925132ea
Consume previously sequenced entries
This PR adds support for getting sequenced entries back from the sequencer portion of the GCP implementation, and is a precursor for adding the integration support. Toward #23
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index 3969376e0..83df525b2 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -31,19 +31,18 @@ package gcp import ( "bytes" "context" - "crypto/sha256" "encoding/gob" "errors" "fmt" "io" "net/http" "os" - "slices" "time" "cloud.google....
3
2
0
[{"id": "G0", "claim": "The doc comment above the sequencer interface should say `sequencer` instead of `coord`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The interface-level doc comment on consumeEntries should document the purpose of the ...
null
transparency-dev__tessera__604
transparency-dev/tessera
604
defect
7f81edd82cb20ff8a993870c76be2eee551ea049
291e5d2aba6550b44e0a0bccae1d60c42d70dd94
Make pushback sources clearer in logging
This PR enables the different causes of `ErrPushback` to be differentiated in logging & metrics, which should be helpful if needing to debug performance/behavioural issues.
diff --git a/append_lifecycle.go b/append_lifecycle.go index 87d786f06..1be67a3e2 100644 --- a/append_lifecycle.go +++ b/append_lifecycle.go @@ -346,15 +346,20 @@ func (i *integrationStats) statsDecorator(delegate AddFn) AddFn { return func() (Index, error) { idx, err := f() attr := []attribute.KeyValue{} + ...
1
1
0
[{"id": "G0", "claim": "The pushback error marker would be better without spaces and with code-searchable identifiers (e.g. pushback_sequencer, pushback_antispam) instead of string formatting.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transparency-dev__tessera__609
transparency-dev/tessera
609
defect
4fd6c33fe403ae9500db3c18e73392dff86175d6
e2588c3b72cfc1cf3798430db5457867c43e6aab
Slight API pruning and modernization
A few bits to clean up as we approach a beta release: - Pruned utility method from API - Renamed IntegrationAwaiter to PublicationAwaiter - Modernized some older go idioms
diff --git a/README.md b/README.md index 4499f1113..6e3bd44b9 100644 --- a/README.md +++ b/README.md @@ -239,7 +239,7 @@ Once an index has been returned, the new data is sequenced, but not necessarily As discussed above in [Integration](#integration), sequenced entries will be _asynchronously_ integrated into the lo...
1
1
0
[{"id": "G0", "claim": "The visible link text should read [Synchronous Publication](#synchronous-publication) instead of [Synchronous Integration](#synchronous-publication), since the section heading was renamed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
transparency-dev__tessera__622
transparency-dev/tessera
622
defect
c771b54f31f2a190f4d6482009c60ddbea3d675d
88d464dd0b07d3db4bf05d885d946340fb3d2369
NewProofBuilder operates in terms of tree size
This PR makes `NewProofBuilder` require only a tree size, rather than a full `checkpoint`. This is safe as generated proofs must be verified against checkpoint root hashes by the consumer anyway; any inconsistency will be detected at that point, and brings it into line with most other proof building implementations ...
diff --git a/client/client.go b/client/client.go index 54b4fdcf6..9eca4d63e 100644 --- a/client/client.go +++ b/client/client.go @@ -19,7 +19,6 @@ package client import ( - "bytes" "context" "errors" "fmt" @@ -181,49 +180,17 @@ func GetEntryBundle(ctx context.Context, f EntryBundleFetcherFunc, i, logSize ui ...
2
1
0
[{"id": "G0", "claim": "Fix the ConsistencyProof doc-comment: the new wording is split mid-phrase with a typo (\"treesize,\"), and the suggested wording \"between the smaller passed-in tree size, and\" (with M005's follow-up preferring \"treeSize\" for the parameter) should be applied.", "category": "documentation", "v...
null
transparency-dev__tessera__646
transparency-dev/tessera
646
defect
1f01f7a54691121e484d9455654543ffa278dd52
8dc6d2283a985bc2b7cc873e0e16833f6acd2ddb
Prevent multiple concurrent checkpoint update attempts in GCP and AWS
This PR fixes the issue where a log with multiple concurrently running binaries may rarely encounter a situation where more than one binary attempts to publish a new checkpoint at the same time. While this cannot cause an integrity issue since the tree is already integrated, and all but one of the concurrent attempt...
diff --git a/storage/aws/README.md b/storage/aws/README.md index bfd6a3db2..57bc89ef7 100644 --- a/storage/aws/README.md +++ b/storage/aws/README.md @@ -31,6 +31,10 @@ This holds batches of entries keyed by the sequence number assigned to the first ### `IntCoord` This table is used to coordinate integration of sequen...
6
5
1
[{"id": "G0", "claim": "The removal of `nextIndex` from the AWS sequencer interface looks accidental and it is still needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new Fatalf message in aws_test.go still says \"publishCheckpoint\" althou...
null
transparency-dev__tessera__656
transparency-dev/tessera
656
defect
57fe74e9608c83e558a79326ee74e66ced0745f9
2ae53c9ec286372925c3415f099c28d1d54a4ec5
Simpler stream
This PR makes the `stream` package a little simpler to use/reason about: - `StreamAdaptor` now returns a Go iterator, and iterates only over the explicitly request range of entries (previously it would hang forever and return new entries if/when the tree grew) - `EntryReader` is replaced with an iterator wrapper for ...
diff --git a/internal/fsck/fsck.go b/internal/fsck/fsck.go index 1cba2b470..cf7ab0104 100644 --- a/internal/fsck/fsck.go +++ b/internal/fsck/fsck.go @@ -70,9 +70,6 @@ func Check(ctx context.Context, origin string, verifier note.Verifier, f Fetcher } // Set up a stream of entry bundles from the log to be checked. ...
1
1
1
[{"id": "G0", "claim": "In fsck's bundle-consumption loop, handling a stream error by only logging a warning and breaking seems terminal: the iterator skips that bundle and this run of the tool is doomed unless that bundle is retried.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
transparency-dev__tessera__700
transparency-dev/tessera
700
defect
3fcd51d6bf6389f1c89b4f43858e09b194649d3d
44931395ccbffcc5e80cc0dc80f6252b8e8665cd
Garbage collection for POSIX
This PR adds support for removing obsolete partial tiles/entry bundles to the POSIX storage implementation. Towards #670, fixes #699
diff --git a/storage/aws/aws.go b/storage/aws/aws.go index 53c7c2284..e703e3375 100644 --- a/storage/aws/aws.go +++ b/storage/aws/aws.go @@ -329,14 +329,17 @@ func (a *Appender) garbageCollectorJob(ctx context.Context, i time.Duration) { cp, err := a.logStore.ReadCheckpoint(ctx) if err != nil { klog.Warnin...
3
3
0
[{"id": "G0", "claim": "The error message in writeGCState should say \"create/overwrite private GC state file\" because createOverwrite overwrites an existing file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"gcState\" file name literal s...
null
transparency-dev__tessera__704
transparency-dev/tessera
704
defect
e804d187e543794a034317dec8364d206e1f15f2
d4b334485ff33d0f3f40adbfb9221094a1fa62f4
Push partial->full fallback down into fetcher contract
This PR moves responsibility for falling back to a full resource in the event that a partial one is not found down into the fetcher. This removes the need for having the fall-back logic in multiple places, and makes it more likely that log interactions will work as expected regardless of whether the log is garbage c...
diff --git a/client/client.go b/client/client.go index 90c14e061..f372dcb65 100644 --- a/client/client.go +++ b/client/client.go @@ -20,9 +20,7 @@ package client import ( "context" - "errors" "fmt" - "os" "sync" "github.com/transparency-dev/formats/log" @@ -71,17 +69,21 @@ type CheckpointFetcherFunc func(c...
2
1
0
[{"id": "G0", "claim": "The licence header of the new internal/fetcher/fallback.go should credit \"The Tessera authors\", the prevailing licence holder in this repo, instead of \"Google LLC\".", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fal...
null
transparency-dev__tessera__718
transparency-dev/tessera
718
defect
48ac7b36fd0cafe273f72a8ae29d7cf1ffbd07b3
5da4f0f9c6c0b82d5f8e46eec1ef06843b145578
Simplify PublicationAwaiter
This PR makes the `PublicationAwaiter` more concise by using a `sync.Cond` so that calls to `Await()` are notified to check and release themselves when an updated checkpoint is seen, rather than relying on managing many channels. This happens to also reduce memory usage & allocs by around 30% but isn't a strong driv...
diff --git a/await.go b/await.go index 4d75ea366..809959efe 100644 --- a/await.go +++ b/await.go @@ -17,13 +17,10 @@ package tessera import ( "context" "errors" - "fmt" "os" "sync" "time" - "container/list" - "github.com/transparency-dev/tessera/internal/parse" "k8s.io/klog/v2" ) @@ -33,7 +30,7 @@ imp...
3
2
1
[{"id": "G0", "claim": "The pollLoop's early `return` when the checkpoint is missing (os.ErrNotExist) looks set to leave all waiters dangling forever instead of continuing to poll.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In BenchmarkAwait the...
null
transparency-dev__tessera__76
transparency-dev/tessera
76
defect
d613ec42e569a22b973dbd03e1e614fe82093ab2
81bbb971358084550b4f81cb62fe6f6d5fde4812
Reintroduce sync for flushing
This PR reintroduces a single-threaded nature for queue flushing. Given the strictly serialised nature of assigning sequence numbers without gaps it's unlikely that storage implementations would be able to increase performance by taking multiple flushes in parallel. Toward #6
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index 6cc4bb83f..5ac6735ff 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -126,7 +126,7 @@ func New(ctx context.Context, cfg Config, opts ...func(*tessera.StorageOptions)) newCP: opt.NewCP, } // TODO(al): make queue options configurable: - r.q...
3
2
0
[{"id": "G0", "claim": "The new comment in NewQueue misspells 'latter' as 'later' and should read 'handling the latter in a worker goroutine'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above doFlush saying notifications happen in ...
null
transparency-dev__tessera__772
transparency-dev/tessera
772
defect
e265ba34db1522d413138b19b314b36c4f434ba5
605699c1255e149a5d97867353a9515ed69aff0d
Fsck add key to UI
This PR adds a reusable `FsckPanel` which acts as a container for all the UI elements required to show information about an ongoing fsck operations, and adds a simple key to the `fsck` UI for the progress bars.
diff --git a/cmd/fsck/internal/tui/app.go b/cmd/fsck/internal/tui/app.go index 0e19e7d5e..9c8c5e3f3 100644 --- a/cmd/fsck/internal/tui/app.go +++ b/cmd/fsck/internal/tui/app.go @@ -19,7 +19,6 @@ import ( "bufio" "context" "flag" - "fmt" "io" "time" @@ -28,13 +27,12 @@ import ( "k8s.io/klog/v2" tea "gi...
1
1
0
[{"id": "G0", "claim": "The style slot keyed fsck.Unknown should be labelled something like \"Scheduled\" (and possibly a separate \"Unknown\" state added) because \"Unknown\" wrongly suggests something has gone wrong when the leaf simply hasn't been fetched/checked yet.", "category": "design", "verdict": "supported", ...
null
transparency-dev__tessera__807
transparency-dev/tessera
807
defect
9013a336eb0a682094a948b22d6efd202afe59dc
a0622093d94b0250aaec56f31530f63eb3153227
Allow control over publication of unchanged checkpoints
This PR adds an option (and support in the POSIX backend) for controlling how frequently (if at all) checkpoints should be re-published when the log size hasn't grown. This is helpful in reducing load on witnesses in the case where the log is quiescent, as well as any other application which requires further action ...
diff --git a/README.md b/README.md index 21a4f236c..bd49f5cf6 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,11 @@ Once this process has been completed, a new entry will: ### Publishing Publishing is a background process that creates a new Checkpoint for the latest tree. -This background process runs periodi...
3
3
1
[{"id": "G0", "claim": "The WithCheckpointRepublishInterval doc comment should also mention that setting the interval to a negative value will disable republication of unchanged checkpoints.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WithC...
null
transparency-dev__tessera__812
transparency-dev/tessera
812
defect
85f0a275dca0b4be8bf0e3e489d51571635e50de
76b99fc37e2d44b93921f78169a7567c8d05e8c8
[GCP] Support WithCheckpointRepublishInterval
This PR adds support to GCP for the `WithCheckpointRepublishInterval` option added in #807. Towards #675
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index 6de03602b..f2697b200 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -112,7 +112,7 @@ type sequencer interface { // nextIndex returns the next available index in the log. nextIndex(ctx context.Context) (uint64, error) // publishCheckpoint coor...
2
1
0
[{"id": "G0", "claim": "Rename the `i` parameter of publishCheckpointJob to something like `republishInterval`'s naming convention, since it is logically akin to `republishInterval` but its name made it take a second to realize it was the interval.", "category": "maintainability", "verdict": "supported", "priority": "P...
null
transparency-dev__tessera__837
transparency-dev/tessera
837
defect
a9118ff974a932f5bfe86ebc082a60653d8fe326
7acb0971a593f538d0ab21cd5871229f9483dc21
Add checkpoint publication related metrics
This PR adds publication latency histogram and attempt count (by outcome) metrics to each of the backends.
diff --git a/storage/aws/aws.go b/storage/aws/aws.go index 8871fb06a..c657b19d2 100644 --- a/storage/aws/aws.go +++ b/storage/aws/aws.go @@ -59,6 +59,7 @@ import ( "github.com/transparency-dev/tessera/internal/migrate" "github.com/transparency-dev/tessera/internal/parse" storage "github.com/transparency-dev/tesse...
4
4
0
[{"id": "G0", "claim": "The AWS publishCheckpoint named return `err` should be renamed to something else, since the function now has several variables called err in various contexts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The metrics and...
null
transparency-dev__tessera__862
transparency-dev/tessera
862
defect
de10380629e1b0a2140b8d4256a23d8253108134
d67f276f61062f59c00aad31bcbbe7c638636278
Handle the sequenced entries with a dynamic size in GCP's `assignEntries()`
The maximum size of data per cell in Cloud Spanner is 10 MiB. Splitting entries into 9 MiB into multiple rows in "Seq" table avoids errors when there are many huge entries in one batch. https://docs.cloud.google.com/spanner/quotas#tables
diff --git a/storage/gcp/gcp.go b/storage/gcp/gcp.go index 15ca72382..b992e204b 100644 --- a/storage/gcp/gcp.go +++ b/storage/gcp/gcp.go @@ -81,6 +81,11 @@ const ( DefaultIntegrationSizeLimit = 5 * 4096 + // defaultSeqTableMaxBatchByteSize is the default maximum byte size of a batch of entries to be written to th...
6
6
2
[{"id": "G0", "claim": "A single entry whose bundle data exceeds seqTableMaxBatchByteSize (e.g. a ~10.1MB entry) is neither split nor rejected, so writing it to the Seq table as an oversized batch could stall the sequencer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
transparency-dev__tessera__896
transparency-dev/tessera
896
defect
824deebe41a4c6500a84fd7bbd32489ce6916e0d
0fcad746f9185bad25fd300a8b490366d957c4ba
Switch all klog to slog.
This sets up all main files with text logging of the slog to maintain equivalent behaviour. As the `klog` flags we know and love (`logtostderr`, `alsologtostderr`, `v`) are no longer available, I have created `slog_level` in all our binaries to allow the log level to be tuned.
diff --git a/append_lifecycle.go b/append_lifecycle.go index f09004b52..43b97b623 100644 --- a/append_lifecycle.go +++ b/append_lifecycle.go @@ -24,6 +24,8 @@ import ( "sync/atomic" "time" + "log/slog" + f_log "github.com/transparency-dev/formats/log" "github.com/transparency-dev/merkle/rfc6962" "github.com...
4
4
1
[{"id": "G0", "claim": "The rewritten debug log line drops information the old klog line had — it no longer shows a closed-open range — and the reviewer suggests logging `from` and `N` instead of `from` and `to`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
transparency-dev__tessera__927
transparency-dev/tessera
927
defect
41ff86cd3cc04ea9c96a2e1019832deee6bf5b6a
4b22fcc3d2d072ef051afe9a55c13bba07da554c
[Witness] Minor optimization to witnessing request
I noticed a deep lint warning about the string appending, and then decided to modernize it and benchmark it. While I was there, I did it properly to pre-allocate a byte array for the b64 encoding. It's 5x faster and and uses a lot fewer memory allocations now. ``` // New BenchmarkBuildRequestBody-24 533068 ...
diff --git a/internal/witness/witness.go b/internal/witness/witness.go index 9ad2b9668..d1a6b4fde 100644 --- a/internal/witness/witness.go +++ b/internal/witness/witness.go @@ -291,23 +291,11 @@ func (w *witness) update(ctx context.Context, cp []byte, size uint64, fetchProof } } - // The request body MUST be ...
2
1
0
[{"id": "G0", "claim": "Questions why the new test file is named `witness_internal_test.go` instead of `witness_test.go`.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `globalReader` variable and its comment are unnecessary because `b.Loop`...
null
transparency-dev__tessera__940
transparency-dev/tessera
940
defect
4320d7444daf19c75ca7ced356639dbc3df63980
d5daec73e3e919bf9a7c2db768e9966b870a372f
Improve checkpoint publication scheduling
This PR schedules checkpoint publication operations as early as possible, as per `checkpoint_interval and the last publication timestamp.
diff --git a/storage/aws/aws.go b/storage/aws/aws.go index 61b7edf36..b0e782a7c 100644 --- a/storage/aws/aws.go +++ b/storage/aws/aws.go @@ -128,7 +128,7 @@ type sequencer interface { nextIndex(ctx context.Context) (uint64, error) // publishCheckpoint coordinates the publication of new checkpoints based on the cu...
3
3
1
[{"id": "G0", "claim": "The pull request should avoid visible API changes (the added method on the sequencer interface / changed signatures) and instead schedule publication attempts inside each publishCheckpoint routine, resetting the ticker to the exact interval until the next publish can succeed.", "category": "desi...
null