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
timewave-computer__covenants__240
timewave-computer/covenants
240
defect
cb2fa121077b0cb0192d1b1f2de785d1d8e78370
8d3c3bbbe622d52738c9d255b088b020f70a1689
Allow the Tick operation to be either permissioned or permissionless
Allow the Tick operation to be either permissioned or permissionless based on a set of privileged addresses. Removed the dependency to the Valence clock .. still something to be addressed (see below in comments). Cleaned up IBC Forwarder tests related to testing the fallback address (to use a test address instead of ...
diff --git a/Cargo.lock b/Cargo.lock index c04e7cff..cc709107 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1755,7 +1755,6 @@ dependencies = [ "serde-json-wasm 0.4.1", "sha2 0.10.8", "thiserror", - "valence-clock", ] [[package]] diff --git a/contracts/clock/src/contract.rs b/contracts/clock/src/contract.rs ind...
10
6
1
[{"id": "G0", "claim": "Enqueueing forwarders via the clock's initial queue while bypassing the whitelist means a dequeued forwarder cannot easily be re-queued without migrating the clock's whitelist/initial-queue state, so the design should adopt one of the proposed alternatives (keep forwarders whitelisted, auto-whit...
null
timewave-computer__covenants__262
timewave-computer/covenants
262
defect
7b7c0c852eb255bc470b26772a8580bbab8cceb3
c98952463011c98ce02fa15cbc910277addd2b67
Introduce contract operation mode
Introduce **contract operation mode** (_op_mode_ in short) as a more explicit way to specify a **permissioned** or **permissionless** mode of operation for a contract (vs privileged_addresses). Updated IBC Forwarder & Astroport LPer, and all tests.
diff --git a/contracts/astroport-liquid-pooler/src/contract.rs b/contracts/astroport-liquid-pooler/src/contract.rs index f5a60f5f..e37ce67b 100644 --- a/contracts/astroport-liquid-pooler/src/contract.rs +++ b/contracts/astroport-liquid-pooler/src/contract.rs @@ -6,7 +6,7 @@ use cosmwasm_std::{ }; use covenant_utils::...
3
2
0
[{"id": "G0", "claim": "Collect the validated addresses straight into a HashSet in try_init to avoid the .into() call in the return statement.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to either add a Disabled state or allow an...
null
timewave-computer__covenants__266
timewave-computer/covenants
266
defect
c9b29f0cf1e278019ae3e24531e3c21cfff79481
554aa91a1db57f37616310bceba0d7cbe48d84f2
Swap holder - Remove Clock dependency
closes #251
diff --git a/Cargo.lock b/Cargo.lock index 35772403..1acec481 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1929,7 +1929,6 @@ dependencies = [ "neutron-sdk", "serde", "thiserror", - "valence-clock", ] [[package]] diff --git a/contracts/swap-covenant/src/contract.rs b/contracts/swap-covenant/src/contract.rs ind...
2
2
1
[{"id": "G0", "claim": "try_forward no longer includes the dequeue message in its response messages, which leaves the holder queued in a loop and was failing e2e and unit tests; the dequeue message should be included in the response messages.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope...
null
timewave-computer__covenants__293
timewave-computer/covenants
293
defect
13a62401503bde8afd2343772ff7ead6a1314749
e0bbcf6ad09c0e5d35629a2ec9c4906f72c09fef
switch liquid staker from clock to op_mode based verification
closes #250
diff --git a/contracts/single-party-pol-covenant/src/contract.rs b/contracts/single-party-pol-covenant/src/contract.rs index f00d013f..3c79ccb8 100644 --- a/contracts/single-party-pol-covenant/src/contract.rs +++ b/contracts/single-party-pol-covenant/src/contract.rs @@ -101,10 +101,12 @@ pub fn instantiate( clock_...
2
1
0
[{"id": "G0", "claim": "The liquid staker address could be removed from the clock whitelist since the pull request also adds it to the clock's initial queue.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request changes no integration tests des...
null
timewave-computer__covenants__298
timewave-computer/covenants
298
defect
cfa70d20f288cb2fd6e3a3c65d479f27750b610d
7d22c62e231476dbc989f1242791217f562b256f
two party holder op mode
closes #252 currently the e2e tests are failing because the existing go interchaintests had not had their types adjusted to the new tick mode. considering that issues like #231 , #232 , and #233 are already in progress, I suggest not doing double work and adjusting the e2e tests in this pr. this is because once the...
diff --git a/contracts/two-party-pol-covenant/src/contract.rs b/contracts/two-party-pol-covenant/src/contract.rs index 31786b25..b19781d4 100644 --- a/contracts/two-party-pol-covenant/src/contract.rs +++ b/contracts/two-party-pol-covenant/src/contract.rs @@ -105,7 +105,7 @@ pub fn instantiate( clock_initial_queue....
1
1
0
[{"id": "G0", "claim": "The holder's address can be moved to the `clock_initial_queue` on line 100.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
timewave-computer__covenants__319
timewave-computer/covenants
319
defect
7f613e6a05b5e55ebcb25bf7ab9def78d732f7ef
6eb1f7638acdffb4ea4320ee8e06d5050d96dea9
Add Local-Ic Relayer Edge Case Tests for Remote Chain Splitter
Closes #235 . This PR implements relayer edge case tests in local-interchain for the remote chain splitter. These tests include: - Happy path test: ensure the remote chain splitter creates an ICA when the relayer is up - Timeout handling test: ensure the remote chain splitter does not advance when the relayer is do...
diff --git a/Cargo.lock b/Cargo.lock index 2e04f625..f3abead3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1705,6 +1705,7 @@ dependencies = [ "valence-ibc-forwarder", "valence-osmo-liquid-pooler", "valence-outpost-osmo-liquid-pooler", + "valence-remote-chain-splitter", "valence-single-party-pol-holder", "vale...
7
6
0
[{"id": "G0", "claim": "The custom ContractInfo struct and the code_id it carries are unnecessary because code_id is only used for instantiating, not for executing, so the tests should reuse localic-std's Contract / return just the contract address and pass None for code_id where CosmWasm is constructed.", "category": ...
null
timewave-computer__covenants__322
timewave-computer/covenants
322
defect
9b3adc555ec43ddc1902de564b3bc038639c465c
3ba71032f1995856f5dd11c9225278fd3a9227f9
Implement Osmo Liquid Pooler Tests
Closes #237 . This PR implements tests for polytone proxy creation in the osmo liquid pooler. This test ensures that the liquid pooler handles a killed relayer and can recover after failing to create the proxy.
diff --git a/Cargo.lock b/Cargo.lock index f3abead3..a8c8688a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,9 +39,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f9...
3
3
0
[{"id": "G0", "claim": "The new ACC0_ADDRESS_* constants should be removed in favour of the CHAIN_ADMIN_ADDR / ADMIN_xyz constants already provided by localic-utils (or kept as-is, at the reviewer's discretion).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
timewave-computer__covenants__69
timewave-computer/covenants
69
defect
857bfadb6734e8c4a1bcb913a13beccd0323fdd6
53f24671c262e78058bafe5b645e16a9c225f1d6
interchaintests passing
Interchaintests now result in withdrawer receiving statom and atom
diff --git a/contracts/covenant/src/contract.rs b/contracts/covenant/src/contract.rs index a1c41c67..b2d710cc 100644 --- a/contracts/covenant/src/contract.rs +++ b/contracts/covenant/src/contract.rs @@ -54,12 +54,13 @@ pub fn instantiate( PRESET_DEPOSITOR_FIELDS.save(deps.storage, &msg.preset_depositor_fields)?; ...
7
5
2
[{"id": "G0", "claim": "The commented-out verify_clock call should not stay commented out: since the clock only calls these contracts, leaving tick open to everyone allows anyone to tick any contract.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
timewave-computer__covenants__8
timewave-computer/covenants
8
defect
6f1ee9cef9f7bf8d323dcb75a5883725829de109
3a6cc7b9dc97776aa2f805d3a7a7d2a29295070d
add holder
I have the holder module unit tested with mocks and ready for review.
diff --git a/contracts/holder/.cargo/config b/contracts/holder/.cargo/config new file mode 100644 index 00000000..6fac702a --- /dev/null +++ b/contracts/holder/.cargo/config @@ -0,0 +1,3 @@ +[alias] +wasm = "build --target wasm32-unknown-unknown --release" +wasm-debug = "build --target wasm32-unknown-unknown" \ No newl...
8
6
0
[{"id": "G0", "claim": "The optional quantity vector in Withdraw could just be an empty one in cases where it would be None.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the closure parameter from `human` to `addr` in the withdrawer mapping for mo...
null
timewave-computer__covenants__97
timewave-computer/covenants
97
defect
d2a53d282cfb514e903a41fc019e577f77db3567
3c8b8a102a1d692f92499f4eb5bfeebc6acc1c82
ls v2
Base implementation for #87 Summary of changes: - `covenant-macros` now holds all macros - `covenant-utils` now holds common structs and enums - removing `amount` from `RemoteChainInfo` struct - `to_proto_msg_transfer` moved to utils - LS introduces `next_contract` which gets queried for its deposit address to...
diff --git a/Cargo.lock b/Cargo.lock index eb6ca1ff..ff7c45ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -321,8 +321,8 @@ dependencies = [ "anyhow", "cosmwasm-schema", "cosmwasm-std", - "covenant-clock-derive", "covenant-clock-tester", + "covenant-macros", "cw-fifo", "cw-multi-test", "cw-storage-plus 1.1...
6
5
1
[{"id": "G0", "claim": "The `ICAAddress` enum variant parses to an awkward acronym expansion (`i_c_a_address`), and should be renamed `IcaAddress` per Rust naming conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ibc-forwarder's In...
null
timewave-computer__covenants__98
timewave-computer/covenants
98
defect
6284c48bc3f4efff79203a6ec0f61d488eebaa65
67eba0df72949787b740c4f0eeaf862dae1f0ec2
lp v2
Base implementation for #88 In addition to adding the `DepositAddress {}` query, some changes: - `DepositAddress` now returns `Option<String>` instead of `Option<Addr>` - `LpConfig` now stores all data relevant to entering into a pool. Migration update happens via single field as well. Price range validation is i...
diff --git a/Cargo.lock b/Cargo.lock index 1daffcc9..fdcf2ff1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -512,6 +512,7 @@ dependencies = [ name = "covenant-macros" version = "0.0.1" dependencies = [ + "cosmwasm-schema", "covenant-utils", "proc-macro2", "quote", diff --git a/contracts/covenant/src/suite_test/u...
3
2
0
[{"id": "G0", "claim": "Add a clarifying note above the addr_validate call explaining that lp_config.pool_address is Addr::unchecked and is validated before being saved to storage, so the code is not confusing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
timgit__pg-boss__716
timgit/pg-boss
716
defect
bb47b99d7c86f29beb4324c87a62fb757fd2cd3e
a29c00fbcc3f17fc8b8f6bc6c782d5cf7be68906
Implement heartbeat functionality
fixes https://github.com/timgit/pg-boss/issues/436 fixes https://github.com/timgit/pg-boss/issues/579
diff --git a/docs/api/jobs.md b/docs/api/jobs.md index 5fe60f29..e4015ebf 100644 --- a/docs/api/jobs.md +++ b/docs/api/jobs.md @@ -43,6 +43,12 @@ Creates a new job and returns the job id. Default: no limit. Maximum delay between retries of failed jobs, in seconds. Only used when retryBackoff is true. +**Heartbea...
2
2
1
[{"id": "G0", "claim": "touchJob and touchJobs should be consolidated as an argument overload with a response contract that is always an array, and the method name shortened to `touch()`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `IF NOT EXISTS`...
null
timgit__pg-boss__746
timgit/pg-boss
746
defect
f77f98c28e4d3622b7dc25a3995733aa5b53f8d8
b55efd15300e25a66a5283cf838f8c3eb9e5191b
Implement minPriority and maxPriority jobFetch options
This PR implement minPriority and maxPriority options to workers, so that you can spin up workers that only work on work of a specific range of priority. For example, if you want to reserve workers for jobs of a certain priority or higher, you can use this.
diff --git a/docs/api/jobs.md b/docs/api/jobs.md index 2fded07f..e7bc9ad9 100644 --- a/docs/api/jobs.md +++ b/docs/api/jobs.md @@ -227,6 +227,14 @@ Returns an array of jobs from a queue If `true`, jobs with a `startAfter` timestamp in the future will be fetched. Useful for fetching jobs immediately without waiti...
3
3
3
[{"id": "G0", "claim": "work() validates and documents minPriority/maxPriority but the worker polling path never forwards them into the underlying fetch(), so the options are silently ignored; pass them through (or remove them from work()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
timgit__pg-boss__756
timgit/pg-boss
756
defect
a827ec4d16b9a68e5051310ab13f955edf92fffa
f7a0374817eeac3641913406dc8ae7a72706289c
fix: address head-of-line blocking bug in groupConcurrency
When `groupConcurrency` is configured and a saturated group's queued jobs occupy the front of the queue, workers stall indefinitely and never reach jobs from other groups, even groups with zero active jobs and full capacity available, defeating half the purpose of the feature. The test sets up the scenario directly:...
diff --git a/test/concurrencyGroupTest.ts b/test/concurrencyGroupTest.ts index 9f519bb1..0c3ad12b 100644 --- a/test/concurrencyGroupTest.ts +++ b/test/concurrencyGroupTest.ts @@ -248,6 +248,64 @@ describe('groupConcurrency', function () { }).rejects.toThrow('group.tier must be a non-empty string if provided') }...
2
2
1
[{"id": "G0", "claim": "As written (in S1) the test asserts behavior that the code does not yet implement, so it will fail and break CI; mark it it.fails/it.todo or land the production fix so the test passes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
timgit__pg-boss__759
timgit/pg-boss
759
defect
a827ec4d16b9a68e5051310ab13f955edf92fffa
0183ecde5428f70941a6c772d2d7c2d8801ed421
localGroupConcurrency excess restore corrupts retry_count
I spotted another bug when working on https://github.com/timgit/pg-boss/pull/756 When `localConcurrency` exceeds `localGroupConcurrency` (the typical setup), multiple workers fetch jobs concurrently. Because the fetch query sets all fetched rows to `active` in the database before the application layer checks local c...
diff --git a/test/concurrencyLocalGroupTest.ts b/test/concurrencyLocalGroupTest.ts index a9f152fa..6f48e164 100644 --- a/test/concurrencyLocalGroupTest.ts +++ b/test/concurrencyLocalGroupTest.ts @@ -429,6 +429,42 @@ describe('localGroupConcurrency', function () { expect(totalProcessed).toBe(6) }) + it('exces...
2
2
0
[{"id": "G0", "claim": "The inline test comment stating restoreJobs leaves started_on set should be reworded to describe the pre-fix behavior rather than the post-fix behavior, since it becomes misleading once the fix merges.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
timgit__pg-boss__760
timgit/pg-boss
760
defect
a827ec4d16b9a68e5051310ab13f955edf92fffa
db05d6f31b7dfd326d0550eecae67cc0f40540a4
localGroupConcurrency with tiers silently ignores tier capacity
When `localGroupConcurrency` is configured with tier-specific limits, a group that reaches its default limit is excluded from fetching entirely, even when it still has capacity available under a higher tier limit. `#getGroupsAtLocalCapacity` is responsible for building the list of groups that get passed as `ignoreGr...
diff --git a/test/concurrencyLocalGroupTest.ts b/test/concurrencyLocalGroupTest.ts index a9f152fa..d734a5fe 100644 --- a/test/concurrencyLocalGroupTest.ts +++ b/test/concurrencyLocalGroupTest.ts @@ -472,4 +472,47 @@ describe('localGroupConcurrency', function () { // All jobs should be processed expect(totalPr...
4
4
1
[{"id": "G0", "claim": "The test relies on `await delay(1000)` instead of a deterministic signal, so the default-tier job may not yet have been fetched and counted before enterprise jobs are enqueued, making the test flaky or letting it pass without exercising the intended condition; a Promise resolved when the handler...
null
timgit__pg-boss__763
timgit/pg-boss
763
defect
a827ec4d16b9a68e5051310ab13f955edf92fffa
f7449c1e9ed6b4cbd4ce39a91b3aa5f8c2e3cfb4
Expose wip
Sorry to spam so many PRs! I ran into a bit of a footgun with the WIP event. I understood it to emit every 2 seconds when there was work de-queued into a worker, but apparently its only every 2 seconds max, between job transitions (which is normally way more often than 2s in a healthy queue!). But if you have a ...
diff --git a/docs/api/workers.md b/docs/api/workers.md index 7f164099..5d217346 100644 --- a/docs/api/workers.md +++ b/docs/api/workers.md @@ -4,7 +4,7 @@ Adds a new polling worker for a queue and executes the provided callback function when jobs are found. Each call to work() will add a new worker and resolve a unq...
3
2
1
[{"id": "G0", "claim": "Introduce an exported options type (e.g., GetWipDataOptions) in src/types.ts and use it in both PgBoss#getWipData and Manager#getWipData instead of the inline options object type, for API consistency.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}...
null
timgit__pg-boss__764
timgit/pg-boss
764
defect
a827ec4d16b9a68e5051310ab13f955edf92fffa
4f498378e253e04d3debc7e5e7bdbafeb6e5a8de
Add workId to localConcurrency workers and WIP data
When creating workers with localConcurrency, it can be challenging to differentiate what worker came from what work call when picking through WIP data. This PR adds a workId to workers that is also exposed in WIP data. When processing WIP data for metrics and whatnot, you can use the workId to correlate the metrics to ...
diff --git a/docs/api/events.md b/docs/api/events.md index dfec0668..df8aa8e2 100644 --- a/docs/api/events.md +++ b/docs/api/events.md @@ -63,6 +63,7 @@ Emitted at most once every 2 seconds when workers are receiving jobs. The payloa [ { id: 'fc738fb0-1de5-4947-b138-40d6a790749e', + workId: 'a1b2c3d4-5678-9...
1
1
1
[{"id": "G0", "claim": "The new 'should correlate wip entries to work() call via workId' test can be flaky because the test may finish while its handler is still delaying ~2000ms, which combined with the shared afterEach's boss.stop({ timeout: 2000 }) can intermittently make stop time out depending on scheduling overhe...
null
timocov__dts-bundle-generator__206
timocov/dts-bundle-generator
206
defect
93c0208f2daef1dd74af2bc7f754d78ddf05d590
2cc462e15b4e6e09bcdea4b6d99da6dd4f328fcb
fix: not handling `export default value` when `exportReferencedTypes` is `false`
this fixes ```ts const foo = "bar" export default foo ``` being compiled to ```ts // Generated by dts-bundle-generator v6.10.0 declare const foo = "bar"; foo; export {}; ``` which causes `Error: Compiled with errors` from `error TS1036: Statements are not allowed in ambient contexts.` it now compil...
diff --git a/src/bundle-generator.ts b/src/bundle-generator.ts index 637532b4..4986b90d 100644 --- a/src/bundle-generator.ts +++ b/src/bundle-generator.ts @@ -304,7 +304,10 @@ export function generateDtsBundle(entries: readonly EntryPointConfig[], options: // an export keyword (like interface, type, etc) otherwis...
5
4
2
[{"id": "G0", "claim": "Add an e2e test case for the pull request's specific case (export default value with exportReferencedTypes disabled) and run it locally before deciding what to do next.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The check for...
null
timtebeek__spring-security-samples__6
timtebeek/spring-security-samples
6
defect
349c28b9aa71582b73daee57a6c5bae11a247519
f00c1dae261ef229202f723a93f93b8aae9d1e74
Pure webflux
Hier vast een pull request van de nieuwe versie zonder cloud-gateway.
diff --git a/README.adoc b/README.adoc index 5b79757..1a12ca1 100644 --- a/README.adoc +++ b/README.adoc @@ -2,10 +2,11 @@ A collection of Spring Security samples; Part of a https://blog.jdriven.com/category/security/[JDriven Spring Security blog series]. -The project is devided into separte submodules, each of wh...
5
5
0
[{"id": "G0", "claim": "The cookie-only CSRF warning in gateway/README.adoc should be written as a proper AsciiDoc NOTE block instead of a bolded inline note.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The stateful-gateway README title wrongly...
null
tinacms__tinacms__2977
tinacms/tinacms
2,977
defect
56cc26c1430266c27336ecb71c2cf057a136d0f0
e9d4e1d6755263d45fdf5b13421aac49ac2f01bb
Feat/config local media endpoints
fixes #2973 ~~But exposes [a small bug](https://github.com/tinacms/tinacms/issues/2976). If we are not ok with merging this with this bug I can fix it in this PR (Just did not want to scope creep and make this PR take a long time)~~ Update: I fixed that bug as well.
diff --git a/.changeset/curly-sheep-chew.md b/.changeset/curly-sheep-chew.md new file mode 100644 index 0000000000..059d248f33 --- /dev/null +++ b/.changeset/curly-sheep-chew.md @@ -0,0 +1,6 @@ +--- +'@tinacms/cli': patch +'@tinacms/graphql': patch +--- + +Use media config from the schema in the local media server diff...
2
1
0
[{"id": "G0", "claim": "There may be a race: the lock could be taken right after `await lock.promise`, so the server start should hold the lock until it has started.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The single-function module `removeStar...
null
tinacms__tinacms__3007
tinacms/tinacms
3,007
defect
b348f8b6b456b4ae20208b9d735c8f3a5fee36fb
d1a0ff24e2335c48b7d4f4a61bbc8119c07b4c14
Fix/filter by file format
fixes #2703 in local mode.
diff --git a/.changeset/quiet-fireants-invite.md b/.changeset/quiet-fireants-invite.md new file mode 100644 index 0000000000..57166d3d66 --- /dev/null +++ b/.changeset/quiet-fireants-invite.md @@ -0,0 +1,32 @@ +--- +'@tinacms/datalayer': minor +'@tinacms/graphql': minor +--- + +Updated matching logic to only return the...
2
1
1
[{"id": "G0", "claim": "The reviewer asks why the `queryOptions` parameter of `FilesystemStore.query` was renamed to `_queryOptions`.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The isomorphic bridge merged the day before may also need the sa...
null
tinacms__tinacms__5393
tinacms/tinacms
5,393
defect
67b87d8bbcdc6ff660194869e72d2a204e0d5d93
9c18d62b38d70a29ed3068f60ed809d2980080e3
fix: issue causing #5364
Fix issue causing namespace to be incorrectly generated for deeply nested fields. This bug was due to incorrectly creating a reference to the object passed in rather than creating a new object (clone) using the spread operator. Instead of this copy: ``` const newNode: { [key in keyof T]: (T & { namespa...
diff --git a/.changeset/late-cherries-battle.md b/.changeset/late-cherries-battle.md new file mode 100644 index 0000000000..d9812f9ccb --- /dev/null +++ b/.changeset/late-cherries-battle.md @@ -0,0 +1,5 @@ +--- +'@tinacms/graphql': patch +--- + +Fix issue with addNamespaceToSchema which caused https://github.com/tinacm...
5
4
0
[{"id": "G0", "claim": "The test 'should generate unique namespaces for nested nodes with similar names' is named as if it tested namespace uniqueness but the test does not test for uniqueness.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test 'sh...
null
tinacms__tinacms__5410
tinacms/tinacms
5,410
defect
92b683bd3d73b47271eee5b8ff648ed4dcde51e3
ac6f7ce2c978753a869c52cff6c5c5b577d8a60c
feat: allow bare hash string to be inserted as url
# Problem jadenadams124124 on discord reports that a bare hash like `#foobar` can not be inserted as a link for links to anchor tags in the same document # Solution Add support for inserting bare hash
diff --git a/.changeset/curvy-planes-invite.md b/.changeset/curvy-planes-invite.md new file mode 100644 index 0000000000..7ae514d1b4 --- /dev/null +++ b/.changeset/curvy-planes-invite.md @@ -0,0 +1,5 @@ +--- +'tinacms': patch +--- + +Allow bare hash strings to be inserted as urls diff --git a/packages/tinacms/src/toolk...
1
1
0
[{"id": "G0", "claim": "The added 'validates non-localhost domain URLs' test duplicates assertions already covered by 'validates full URLs with protocol' (both check isUrl('http://example.com')) and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinacms__tinacms__5504
tinacms/tinacms
5,504
defect
d79e661d0c9eeb17ba929fcddd807179f9bd6040
3e3b3d768ae23622e8c0ca0068ef1e800530a5e7
Feat - Add strikethrough
Add strikethrough feature into RTE (from @JackDevAU ) Add test case for strikethrough
diff --git a/examples/next-2024/content/posts/hello-world.mdx b/examples/next-2024/content/posts/hello-world.mdx index cc97eb22da..4cfcfc05b8 100644 --- a/examples/next-2024/content/posts/hello-world.mdx +++ b/examples/next-2024/content/posts/hello-world.mdx @@ -14,8 +14,7 @@ template: > including versions of Lore...
2
2
0
[{"id": "G0", "claim": "Remove the debug console.log('preProcess: ,', JSON.stringify(ast)) call added to preProcess in pre-processing.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the debug console.log('p onlyChild truee: ,', onlyChi...
null
tinacms__tinacms__5653
tinacms/tinacms
5,653
defect
65cee5d6ae16c7320a4a14f0d9a82dc5f9103e34
a00fbd4ed74c19b2c607ced9ba4546fbaaeafa0e
🐛 Bug - Spurious error messages by FilesystemBridge on some relative paths
When creating the test program included in the README.md of https://github.com/tinacms/tinacms/pull/5652 , strange error messages were seen when trying to use relative paths that included '.'. These error messages were being raised by `FilesystemBridge` methods. For instance: - Using '.' as the `rootPath` resulte...
diff --git a/.changeset/tough-spiders-talk.md b/.changeset/tough-spiders-talk.md new file mode 100644 index 0000000000..16bcba4168 --- /dev/null +++ b/.changeset/tough-spiders-talk.md @@ -0,0 +1,5 @@ +--- +"@tinacms/graphql": patch +--- + +fix: spurious error messages by FilesystemBridge on some relative paths diff --g...
1
1
0
[{"id": "G0", "claim": "The new test should assert with toEqual (expect(file1).toEqual(itemContent)) instead of .equals.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinacms__tinacms__6268
tinacms/tinacms
6,268
defect
3f5732147690cd2cf8c1c6eee823502aab25e121
85e2982c14b8fb33be1b0cbbf73f57f5ad9f2c09
fix: Prevent JavaScript and CoffeeScript execution in frontmatter
This pull request addresses a security vulnerability by preventing the execution of JavaScript and CoffeeScript code in frontmatter, which could otherwise lead to arbitrary code execution. The changes also add comprehensive tests to ensure only safe frontmatter formats (like YAML, TOML, and JSON) are allowed, and that ...
diff --git a/.changeset/five-plums-tie.md b/.changeset/five-plums-tie.md new file mode 100644 index 0000000000..fb7a832238 --- /dev/null +++ b/.changeset/five-plums-tie.md @@ -0,0 +1,11 @@ +--- +"@tinacms/graphql": patch +--- + +fix: Security patch to prevent arbitrary code execution in markdown frontmatter + +This fix...
4
4
2
[{"id": "G0", "claim": "gray-matter also recognizes the 'coffeescript' engine alias alongside 'coffee', so add a 'coffeescript' engine override like the 'coffee' one (or a test verifying it is blocked) to ensure complete protection against CoffeeScript execution.", "category": "security", "verdict": "supported", "prior...
null
tinacms__tinacms__6438
tinacms/tinacms
6,438
defect
da837f7b17f0540cd47025afd2c45140706d595d
3be2f456d90fea39c463b7a4d3f4b974ef04cd91
Setup opt-in/opt-out, initialize on TinaAdmin
As per - https://github.com/tinacms/tinacms/issues/6299 - https://github.com/tinacms/tinacms/issues/6430 Adding PostHog telemetry to the TinaCMS Started Event. This event will allow us to identify: how often users are going to the /admin bar, and what versions (past 3.4.1) are out in the wild for TinaCMS We w...
diff --git a/.changeset/large-ducks-chew.md b/.changeset/large-ducks-chew.md new file mode 100644 index 0000000000..dbe2d5b948 --- /dev/null +++ b/.changeset/large-ducks-chew.md @@ -0,0 +1,7 @@ +--- +"@tinacms/schema-tools": minor +"@tinacms/scripts": minor +"tinacms": minor +--- + +🐖 PostHog - Adding Telemetry Opt in...
6
6
3
[{"id": "G0", "claim": "The started-event property should report the backend type (TinaCloud vs self-hosted) instead of the auth platform, so the 'authType' property should be renamed/sourced as 'backendType: authType'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
tinacms__tinacms__6509
tinacms/tinacms
6,509
defect
07588d182a8bc25ce59307f9e6462e48f11b9c86
80826e81a21ee0a8f5ce23b472d84554f31f534a
Poc build and bundle testing
This PR improve package validation by cleaning up stale export references, retaining build artifact verification, add publint, and adding the combined package validation step to CI.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b84f64cc70..bf9b86c053 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,6 +65,9 @@ jobs: - name: Test run: pnpm test + - name: Test Packages + run: pnpm run test:packages + - na...
1
1
0
[{"id": "G0", "claim": "The entire scripts/run-publint.mjs wrapper can just be an action in package.json, such as \"lintpackage\": \"pnpm --filter './packages/**' --no-bail exec publint --strict\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinacms__tinacms__6552
tinacms/tinacms
6,552
defect
71bb5c2944245195397e84a6314278cb40de0e66
9bccf513aafcf88dd6baa06948238e4c23b0100b
Fix symlink path traversal bypass in media endpoints and FilesystemBridge
## Summary - All path validation in TinaCMS used lexical string checks (`path.resolve` + `startsWith`) to prevent directory traversal. These checks don't follow symlinks — a symlink inside an allowed directory pointing outside it would pass validation while the actual filesystem operation targets a location outside ...
diff --git a/.changeset/four-wombats-kiss.md b/.changeset/four-wombats-kiss.md new file mode 100644 index 0000000000..f8839feed6 --- /dev/null +++ b/.changeset/four-wombats-kiss.md @@ -0,0 +1,5 @@ +--- +"@tinacms/cli": patch +--- + +feat: add warning in dev command when server is not restricted to localhost diff --git ...
2
2
0
[{"id": "G0", "claim": "Two doc comments are now glued together; move the doc block above this one to its correct place.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the per-test cleanup of the outside directory into an after hook so the di...
null
tinacms__tinacms__6617
tinacms/tinacms
6,617
defect
4315d731e729857713d5f3fc6cdef2b30abd9384
c6a35772ea485d96b23566d2b45572c1cb8754e6
Handle editorial workflow git authoring failures
This PR partially addresses https://github.com/tinacms/tinacloud/issues/3206 Improve TinaCMS handling for editorial workflow authoring failures. This updates the internal client to preserve startup workflow errors, retry only transient status polling failures, and fail fast on terminal status responses instead of...
diff --git a/.changeset/fast-chicken-rescue.md b/.changeset/fast-chicken-rescue.md new file mode 100644 index 0000000000..4f445dd71c --- /dev/null +++ b/.changeset/fast-chicken-rescue.md @@ -0,0 +1,5 @@ +--- +"tinacms": patch +--- + +Improve error messages for the git issues in the Editorial Workflow diff --git a/packa...
1
1
0
[{"id": "G0", "claim": "The changeset description should read \"Improve error messages when a pull request via editorial workflow fails due to missing Git authoring tokens\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinacms__tinacms__6739
tinacms/tinacms
6,739
defect
b56dad42d2216ac9c8f90f19b78a4951ca97a61f
6d462c92f5a73ff9fe68e102cc9bc7de3d6a8f35
fix(@tinacms/cli): add .js extension to ./types import in generated client (fix #6062)
#6062 while looking at the generated `tina/__generated__/client.ts`. The generator writes `import { queries } from "./types"` with no file extension, which breaks Node.js ESM resolution. The fix is extension-aware rather than a flat `.js` addition — for TypeScript projects `genClient()` and `genDatabaseClient()` now e...
diff --git a/.changeset/fix-generated-client-esm-extension.md b/.changeset/fix-generated-client-esm-extension.md new file mode 100644 index 00000000000..d1c46565df0 --- /dev/null +++ b/.changeset/fix-generated-client-esm-extension.md @@ -0,0 +1,5 @@ +--- +"@tinacms/cli": patch +--- + +Fix missing .js extension on ./typ...
2
2
0
[{"id": "G0", "claim": "In TS projects execute() deletes the generated types.js while the generated client templates now import \"./types.js\", so running the generated .ts client directly under Node's ESM TS support still fails with ERR_MODULE_NOT_FOUND; the reviewer asks to emit/preserve types.js in the TS branch or ...
null
tinacms__tinacms__6757
tinacms/tinacms
6,757
defect
3dfab7fd7964edf36a56c69efcda46edef64d505
0cb91176c7b54b3ffebd1632f68dd5f32cbe3745
fix: allow folder creation in collections with match.exclude configured
## Summary Fixes folder creation failing when a collection has `match.exclude` configured. When a collection specifies `match.exclude`, `TinaSchema.getCollectionByFullPath` evaluates the exclude glob against the `.gitkeep.*` placeholder file path used internally for folder creation. Since the placeholder path typical...
diff --git a/packages/@tinacms/graphql/src/database/index.ts b/packages/@tinacms/graphql/src/database/index.ts index 6dfed43025..1d718f7e1a 100644 --- a/packages/@tinacms/graphql/src/database/index.ts +++ b/packages/@tinacms/graphql/src/database/index.ts @@ -531,7 +531,8 @@ export class Database { // If a co...
1
1
1
[{"id": "G0", "claim": "Make the `isFolderPlaceholder` check in `Database.put` (packages/@tinacms/graphql/src/database/index.ts) as strict as the one in `TinaSchema.ts`, i.e. match the full `.gitkeep.<format>` suffix, instead of the loose `filepath.includes('.gitkeep.')`.", "category": "correctness", "verdict": "suppor...
null
tindy2013__subconverter__62
tindy2013/subconverter
62
defect
78b4fec7d9ec0d551c2bf7d32f74a840cda998bf
9e3bd3918391ea75b0f7703d776e5daaca9f5630
Add support for data: URIs
data URIs can now be used by the user to enter verbatim data. This would be helpful for a "textbox conversion" app, where the user simply wants the conversion without the subscription part.
diff --git a/.gitignore b/.gitignore index 79d9dcd00..300105aeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ subconverter.exe +.vscode diff --git a/README-cn.md b/README-cn.md index f0b7ad4c4..721abad9c 100644 --- a/README-cn.md +++ b/README-cn.md @@ -183,7 +183,7 @@ http://127.0.0.1:25500/sub?target=%TARGET...
3
2
0
[{"id": "G0", "claim": "In endsWith in src/misc.h, `size_t` should be replaced with `std::string::size_type`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In dataGet in src/webget.cpp, `size_t` should be replaced with `std::string::size_type`,...
null
tinode__chat__596
tinode/chat
596
defect
387772bc7700acca19faddd2b305ace9a2c5f214
974babda3ceaad22fc36337c608409cb74ae442b
Support for drafty push notifications
The purpose of this change is to support pretty formatting of push notifications. Drafty `Preview()` strips all heavy entity data from content and shortens the text string. See https://github.com/tinode/chat/issues/440#issuecomment-624156909 "Push notifications" for an explanation.
diff --git a/server/drafty/drafty.go b/server/drafty/drafty.go index eb5f6d743..1400e38ff 100644 --- a/server/drafty/drafty.go +++ b/server/drafty/drafty.go @@ -19,6 +19,62 @@ type span struct { data map[string]interface{} } +func (s *span) fromMap(in interface{}) error { + m, _ := in.(map[string]interface{}) + if...
3
3
1
[{"id": "G0", "claim": "intFromNumeric silently returns 0 for unrecognized numeric types; it should return an error, or at least log one, instead of failing silently.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The assignments copying txt through...
null
tinode__chat__632
tinode/chat
632
defect
f9adc1b6d62d343677bc5251751ee1a0e8ec8041
f038461fd3b2170e828fe044b74a1d2b41ba063c
Clean up deletions
* Soft-deleted message records were not properly cleaned up on user and subscription deletions. I fixed mysql & rethinkdb adapters. Mongo still needs to be done. * Removed a couple of unused methods from adapters * Mentioned LLC in the docs.
diff --git a/README.md b/README.md index 0696af54d..368abae89 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ See [general instructions](./INSTALL.md) or [docker-specific instructions](./doc * Read [API documentation](docs/API.md) and [FAQ](docs/faq.md). Read configuration instructions contained in the [`ti...
5
3
2
[{"id": "G0", "claim": "The rethinkdb adapter uses the stdlib log package to print errors instead of returning them; use \"logs\" or drop the logging entirely, since adapters return an error with a corresponding description string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
tinode__chat__662
tinode/chat
662
defect
e95e8fb8c40a82a1dc8298cf07bb24940306327e
1087ab362b3c0ffad9a9ee8536583d410b85cd71
Updated TopicsForUser in rethinkdb, refactored common code, added tests
* Fixed a few minor issues in TopicsForUser in MySQL. * Updated TopicsForUser in RethinkDB to use the same logic as MySQL * Moved common code to a separate package * Added tests Mongo is going to be next. Update: added mongo, fixed some bugs, updated mongo tests.
diff --git a/server/db/common/common.go b/server/db/common/common.go new file mode 100644 index 000000000..02efe4cf9 --- /dev/null +++ b/server/db/common/common.go @@ -0,0 +1,63 @@ +// Package common contains utility methods used by all adapters. +package common + +import ( + "sort" + "time" + + t "github.com/tinode/ch...
2
2
0
[{"id": "G0", "claim": "Fix the typo \"umber\" in the SelectEarliestUpdatedSubs doc comment.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Document in a code comment why the earliest-updated subscriptions are returned rather than the most recentl...
null
tinode__chat__700
tinode/chat
700
defect
32c3cdc6e24ab8d3d01f72a90a13a6cda8eed1bf
0c7ab75bb0ad761384b81c3e9f83d4ecfae5cb94
Drafty handling refactored to use trees
Drafty formatting refactored to use trees: a doc is converted to a tree where each node is uniformly formatted, like [_quick **fox** jumps_ over] -> ``` [[EM: quick, [ST: fox], jumps], over] ``` It simplified removal of quoted text, shortening etc. Also added a few more tests for various corner cases. -- T...
diff --git a/server/auth/basic/auth_basic.go b/server/auth/basic/auth_basic.go index cbbf254e5..051000308 100644 --- a/server/auth/basic/auth_basic.go +++ b/server/auth/basic/auth_basic.go @@ -23,9 +23,9 @@ const ( defaultMinPasswordLength = 3 ) -// Token suitable as a login: starts with a Unicode letter (class L)...
3
1
1
[{"id": "G0", "claim": "Add a link to the installation instructions in the new warning header of server/db/mysql/schema.sql.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for drafty.go.", "category": "testing", "verdict": "opposed", "pri...
null
tinode__chat__905
tinode/chat
905
defect
e75cf9733bbcda96dae83adf8c608af1e4f1d362
b776e3c2bac287972765103be2e7c41a6b499c95
fix: #904 drafty should correctly parse message content for push notification
- instead of []rune, text is treated as []grapheme cluster - added ut
diff --git a/go.mod b/go.mod index 3a40f3825..7286faa78 100644 --- a/go.mod +++ b/go.mod @@ -60,6 +60,7 @@ require ( github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect + github.com/rivo/uniseg v0.4.7 // in...
16
14
7
[{"id": "G0", "claim": "In sliceGraphemeClusters the iterator should be Reset only once, not both before the loop and after it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In graphemeToString the iterator should be Reset only once, not both befor...
null
tinode__chat__970
tinode/chat
970
defect
870262671620edf400f012d1b99d62e8add5c33a
6d8d9f8d57890a3607e387cabcfd59fa5c2c3231
Fix unread message counter not accounting for deleted messages
## Problem When a user deletes messages from a conversation, the unread message counters for other users are not updated to reflect that some of their unread messages have been deleted. This causes incorrect unread counts to be displayed in the UI. **Scenario:** 1. User A sends messages 1, 2, 3, 4, 5 to User B 2. Use...
diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..d657cc82e --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# Binaries +server/server +tn-cli/tn-cli +keygen/keygen + +# Build artifacts +*.o +*.so +*.dylib + +# Test binaries +*.test + +# Coverage +*.out + +# IDE files +.vscode/ +.idea/ + +# OS ...
4
4
3
[{"id": "G0", "claim": "Remove the .gitignore file that this pull request adds to the repository root.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "calculateUnreadInRanges is inefficient: it should find the first range where rangeEnd > readID ...
null
tinted-theming__tinty__126
tinted-theming/tinty
126
defect
516825415f2809d20a73fbcabe7f42902d655574
682a27d11a2ed77c2244630543b2e782a0a58185
Increase test speeds by reducing test cloning
- The cached templates are `schemes`, `tinted-shell` and `tinted-vim` so I've tried to stick to them where it makes sense. - When the tests start, it clones all 3 and then doesn't clone them again unless explicitly set to ignore caching for that test. - There are situations where we need to pull to test and I've lef...
diff --git a/.gitignore b/.gitignore index 2b0aa48..11a9a1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/schemes +/tmp # Generated by Cargo # will have compiled files and executables diff --git a/fixtures/schemes.txt b/fixtures/schemes.txt index 9edf783..5c3a36c 100644 --- a/fixtures/schemes.txt +++ b...
1
1
0
[{"id": "G0", "claim": "The git/test helper code duplicated between tests/utils.rs and the CLI should be carved out into an internal shared package living in this repo that both the tests and Tinty itself can use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinted-theming__tinty__24
tinted-theming/tinty
24
defect
4b4b17bbc9b3ddfb3e2031328dbdf27991fbfe97
73a8f272f8a1f7b8dcf7de1aa2aa8079f06c41b7
Add `tinty config` subcommand to add config related information
`tinty config` with the relevant flags `--config-path` and `--data-path` can be useful when debugging to make sure that the expected config is applied and the expected config and data directories are being used by Tinty. https://github.com/tinted-theming/tinty/issues/21
diff --git a/CHANGELOG.md b/CHANGELOG.md index 98b5874..20282ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Added + +- Add `tinty config` subcommand to return config related information + ## [0.12.0] - 2024-04-29 ### Added diff --git a/Makefile b/Makefile ind...
2
2
0
[{"id": "G0", "claim": "The README section heading \"Debugging\" sounds misleading; a better wording should be found.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The flag names `--config-path` and `--data-path` are ambiguous about whether they ...
null
tinted-theming__tinty__32
tinted-theming/tinty
32
defect
72db194827a8a092ce857198f5fdcfaebf3668f0
bd2f7df05b14d740594b15d06a97317bb1f19ba7
Feature: File-extension
There still needs to be tests written and the documentation to be updated, but I wanted to get this out there to get some opinion on it first before committing to those. First, the requirements for emacs that we are trying to meet: - Theme file must end in `-theme.el` - Theme file must be within the users `custo...
diff --git a/fixtures/schemes.txt b/fixtures/schemes.txt index ced5ea3..6796ec6 100644 --- a/fixtures/schemes.txt +++ b/fixtures/schemes.txt @@ -155,6 +155,7 @@ base16-mellow-purple base16-mexico-light base16-mocha base16-monokai +base16-moonlight base16-mountain base16-nebula base16-nord-light @@ -177,6 +178,10 ...
1
1
1
[{"id": "G0", "claim": "Can you add a test for this? — the new theme-file-extension matching behaviour has no test covering it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tinted-theming__tinty__92
tinted-theming/tinty
92
defect
3688b8a4b86ee397fc37252953fa3483f7962ff4
624299f656dad25e0bbca852c20d0ee9138675c6
feat: Recognize changes to remote URLs & support `revision` option
- [x] Recognize changes to remote URL - [x] Support `revision` - [x] Branch - [x] Tag - [x] SHA1 - [x] Atomicity - [x] Tests
diff --git a/Cargo.lock b/Cargo.lock index 4fc1506..5475938 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "adler2" @@ -1467,6 +1467,7 @@ dependencies = [ "clap_compl...
4
4
3
[{"id": "G0", "claim": "The Cargo.lock version bump from 3 to 4 added by the PR is causing the `cargo deny` error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The PR's new revision behavior should have tests added before it is merged.", "category...
null
tiny-dnn__tiny-dnn__182
tiny-dnn/tiny-dnn
182
defect
7ecfb85faadb066e89717a745b29fc03e0059a7b
fd0be931e49c65422d0612d986ed77cc7402cd22
Visualization for Deconvolutional Auto-encoder & test code for deconvolution
## Two task for deconvolution: ### 1. Visualization for Deconvolutional Auto-encoder. Example for MNIST dataset, A deconvolutional auto-encoder which is different from mlp. It is related to the deconvolutional semantic segmentation codes with parameters from Caffe. ### 2. Test code for deconvolution algorithm. It inc...
diff --git a/CMakeLists.txt b/CMakeLists.txt index d91adfac7..e62575cce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(tiny_cnn) -set(PROJECT_VERSION "0.0.1") +set(PROJECT_VERSION "0.1.0") string(REGEX MATCHALL "[0-9]" PROJECT_VERSION_PARTS "${PROJECT...
9
6
1
[{"id": "G0", "claim": "Restore test/test_no_duplicate_symbols.cpp to the tiny_cnn_test build target in CMakeLists.txt, since this pull request removed it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "picotest.h must remain a git submodule and can...
null
tiny-dnn__tiny-dnn__212
tiny-dnn/tiny-dnn
212
defect
0f104b1e31ed2a52a69e87f5b39361eab86e01e6
61eee544145b90f090c4fc92727f8ea083623456
Cmake export config
- Reorganize CMake - Generate a proper summary - Export library configs - Add command to install library
diff --git a/.gitignore b/.gitignore index ea413ea41..5810076d2 100644 --- a/.gitignore +++ b/.gitignore @@ -203,5 +203,3 @@ latex* *.pb.h CMakeFiles* build* -*.cmake - diff --git a/.travis.yml b/.travis.yml index ec5a2fafb..27cd306d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ script: - if [ "$T...
16
10
1
[{"id": "G0", "claim": "The pull request should not use file(GLOB_RECURSE) to collect the header list; keep the manual file list instead.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The configuration summary and export-config generation should ...
null
tiny-dnn__tiny-dnn__361
tiny-dnn/tiny-dnn
361
defect
48005dea04163ae8a0c0e72605dcf97ad9290cf0
1a5c1b881e44865974ff502592e7b7f1d87a6816
replacing picotests with gtests
Added gtest. https://github.com/tiny-dnn/tiny-dnn/issues/242
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3336be6a2..47af738aa 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,20 +1,35 @@ +include(CTest) +enable_testing() + + +include(../third_party/DownloadProject/DownloadProject.cmake) +#set(gtest_disable_pthreads on) #TODO(randl): Windows? +dow...
8
5
1
[{"id": "G0", "claim": "The gtest sources should be included into tiny-dnn and built together with the tests rather than fetched externally.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the DownloadProject files into tiny-dnn/cmake instead of thir...
null
tiny-dnn__tiny-dnn__387
tiny-dnn/tiny-dnn
387
defect
81c0b1f45d49b5b9a8a40517447b81529da5540f
9dd79f6b6fb4793b1d6cdbd2556948ece1c3f92c
remove warnings & udpate mnist example readme & update CMakeLists.txt for Visual Studio
When I tried to build x64 projects with VisualC++, there were some compiler warnings of implicit conversions between size_t to cnn_size_t and int to cnn_size_t. So removed them using C-style casts. Updated mnist example readme.md to address the issue #380 Also updated CMakeList.txt to remove a warning with Visual...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1769d6e71..f26d0b768 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -235,9 +235,13 @@ elseif(MSVC) endif(USE_AVX) # include specific flags for release and debug modes. set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} - /Ox /Oi /Ot /Oy /GL ...
6
6
0
[{"id": "G0", "claim": "Restore examples/mnist/quantized.cpp instead of deleting it, since it demonstrates the quantized layers.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the readme example, write the dataset paths as data_dir_path + \"/trai...
null
tiny-dnn__tiny-dnn__411
tiny-dnn/tiny-dnn
411
defect
119052fea72e38478891851bea2fd589d9ef8462
fee67436d9f66164c99b9b7554084d6ea9e0b891
Tensor (reprise)
Well, as usual, I made a mess with GIT, and apparently I can't easily push to @edgarriba's original PR. Today I reworked a bit @edgarriba's #400, I changed a bit the interface, added the lazy-allocation and lazy-movement of memory around, renamed accessor to host_ptr and host_at (to clarify they work on host memory)...
diff --git a/test/test.cpp b/test/test.cpp index d725d8a17..0b7bb765c 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -65,9 +65,9 @@ using namespace tiny_dnn::activation; #include "test_caffe_converter.h" #endif +#include "test_tensor.h" #include "test_image.h" - int main(int argc, char **argv) { ::testi...
7
4
3
[{"id": "G0", "claim": "The add/sub/mul/div/sqrt/exp operations, implemented as Tensor class methods that construct and return a new Tensor on every call, inevitably allocate heap memory each call, which is inefficient and unsuitable for embedded use; the destination Tensor should be passable as an argument and the ope...
null
tiny-dnn__tiny-dnn__471
tiny-dnn/tiny-dnn
471
defect
d380bfce2ee10dbfd212ae515564916404e73ec8
000b6a54946c8b75d329beeeb94dae0d123d9ad3
remove some warnings
Hi, this PR removes some warnings. I also added `/W4` option for Visual Studio projects to find warnings.
diff --git a/CMakeLists.txt b/CMakeLists.txt index f92fef9c4..5968c25b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,7 +243,7 @@ elseif(MSVC) /Ox /Oi /Ot /Oy /GL /fp:fast /GS-") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG") set(EXTRA_C_FLAGS_DEBUG "${EXTRA_...
2
1
0
[{"id": "G0", "claim": "Since AVX is treated as a backend, it should not be enabled as the default engine; the default engine should be the internal backend instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The library can only run on the same ta...
null
tiny-dnn__tiny-dnn__489
tiny-dnn/tiny-dnn
489
defect
78cf7c4ca0a7ed56f3dbf8d14ee37569c7a5d884
9f8d0eff7a11b1d0fea82a668efc3c9007dceda5
Fix/standalone compilation
This PR fixes some errors when tiny-dnn is integrated to other frameworks. - Patch to compile without cereal - Add macro to compile without Image API - Quick fix to disable Gemmlowp suport
diff --git a/tiny_dnn/core/params/conv_params.h b/tiny_dnn/core/params/conv_params.h index c9649e4ba..2b65c4b82 100644 --- a/tiny_dnn/core/params/conv_params.h +++ b/tiny_dnn/core/params/conv_params.h @@ -72,6 +72,7 @@ struct connection_table { return rows_ == 0 && cols_ == 0; } +#ifndef CNN_NO_SERIALIZ...
2
1
1
[{"id": "G0", "claim": "With CNN_NO_SERIALIZATION defined the newly guarded serialization functions silently do nothing, so beru suggests they should throw an exception or assert(false) — or have their definitions nullified so misuse is caught at compile time.", "category": "correctness", "verdict": "supported", "prior...
null
tiny-dnn__tiny-dnn__582
tiny-dnn/tiny-dnn
582
defect
6eadab59e50a8c2b046aeb6dafa8970c1cd1d5ad
e516accb55fe3751c68af2d123e5b3783e3785fc
Cifar-10 example. Removes OpenCV req. Add entry in CMakeLists…(#491)
This patch addresses #491 * It removes the requirement of OpenCV to build the test example for cifar10. * It adds an entry in CMakesList.txt so that the executable is actually built (it wasn't before, at least on ubuntu). OpenCV is used in the version prior this patch to convert images from the user input to ti...
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index dbbc1c100..6c46060a8 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -45,6 +45,10 @@ add_executable(example_cifar_train cifar10/train.cpp ${tiny_dnn_headers}) target_link_libraries(example_cifar_train ${project_library_targ...
3
2
1
[{"id": "G0", "claim": "The channel count in convert_image is hard-coded to 3 and should be made dynamic, taken from the image API (e.g. depth()/channels() accessors).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deinterleaving indexing ad...
null
tiny-dnn__tiny-dnn__789
tiny-dnn/tiny-dnn
789
defect
8c9c78f5d9425004d907e30ae20685e19e673f87
25ebc99214acc93037d086a4ff751f5e9322146e
[Feature] Nesterov momentum optimizer
Added the Nesterov momentum optimizer. Furthermore, the README.md file has been updated.
diff --git a/README.md b/README.md index cbf778480..625f7f857 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ Please see [wiki page](https://github.com/tiny-dnn/tiny-dnn/wiki/Comparison-with * mean absolute error with epsilon range ### optimization algorithms -* stochastic gradient descent (with/without L2...
3
2
1
[{"id": "G0", "claim": "Tests should be provided for the Nesterov momentum optimizer.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the `using namespace tiny_dnn::activation;` line from test_optimizers.h.", "category": "maintainability", "verdic...
null
tiny-dnn__tiny-dnn__803
tiny-dnn/tiny-dnn
803
defect
b5c133daadb2625bba897a1cd643415be578d49e
b785e0eb4ad59e0e7b74c365768bd631f8a7d3f4
Integrate parameter API into fully connected layer.
This PR integrates `Parameter` API into fully connected layer. Notable changes made here: 1. `forward_propagation` and `backward_propagation` only receive data as input arguments, and not weights and biases. This implies that `fwd_in_data_`, `fwd_out_data_` will have `std::vector<tensor_t>` of size one. 2. `fully...
diff --git a/.travis.yml b/.travis.yml index 5ccf51b0d..556a97f54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,7 @@ branches: only: - master - feat/xtensor_integration - - feat/decouple_activations + - feat/parameters_refactor env: global: diff --git a/test/test.cpp b/test/test.cpp i...
10
6
0
[{"id": "G0", "claim": "edgarriba suggests adding per-layer `set_weights(...)` and `set_bias(...)` convenience methods, which he says would be more informative for the user.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "edgarriba asks to overload layer'...
null
tiny-dnn__tiny-dnn__846
tiny-dnn/tiny-dnn
846
defect
8c5d999fb63396197df347274ab383f418ed2a58
9fa5be37c1dc7d5190156f51864840ca0682d873
Blackbox gradient check, power layer fix, integration tests
As agreed with @edgarriba, layer tests should test the layers in isolation. Changes: - New gradient checker that does not depend on network anymore, can check weightless activation layers. - Old gradient checks on full networks moved to test_integration.h as well as those tests training whole networks. - Fixed bug...
diff --git a/test/test.cpp b/test/test.cpp index cbd7e33cc..c49ae1eae 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -26,6 +26,7 @@ using namespace tiny_dnn::activation; #include "test_dropout_layer.h" #include "test_fully_connected_layer.h" #include "test_global_average_pooling_layer.h" +#include "test_integrati...
7
5
0
[{"id": "G0", "claim": "Asks why the batchnorm gradient_check2 test is left commented out in test/test_batch_norm_layer.h — dead code (containing a syntactically invalid constructor call) that should be justified or removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced...
null
tiny-dnn__tiny-dnn__859
tiny-dnn/tiny-dnn
859
defect
3ba4d9606ad9d3667a0ba90ddc93d841f957d679
b73b86b4a1a2cf0993d8555434230bfe89bf48bc
Restore previously broken serialization due to parameter integration.
Mostly this is chore work, removal of old redundant methods.
diff --git a/test/test.cpp b/test/test.cpp index 47ca7b39c..948eee7ee 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -15,7 +15,6 @@ using namespace tiny_dnn::activation; #include "test_activation_layer.h" #include "test_average_pooling_layer.h" -// todo (karandesai) : fix after parameter integration //#include ...
4
4
2
[{"id": "G0", "claim": "The setup tests for convolutional and deconvolutional layers assert a weight size of 36u, but the size of the shape should be 3x3x1x2=18.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding an initializer-list assi...
null
tiny-dnn__tiny-dnn__896
tiny-dnn/tiny-dnn
896
defect
dd906fed8c8aff8dc837657c42f9d55f8b793b0e
8ccf382c6e85999aecefb5f8b2b24eb5011155e2
Parameterization of elu layer
### Added the hyperparameter `alpha` to elu activation unit. The modified forward propagation is: ![elu](https://user-images.githubusercontent.com/21031559/31821060-45fe334c-b593-11e7-871e-2f13cdd4605f.png)
diff --git a/test/test.cpp b/test/test.cpp index c49ae1eae..f6f8225d3 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -33,6 +33,7 @@ using namespace tiny_dnn::activation; #include "test_models.h" #include "test_node.h" #include "test_nodes.h" +#include "test_optimizers.h" #include "test_power_layer.h" #include "...
2
1
0
[{"id": "G0", "claim": "After checking the changed elu backward gradient, beru wonders whether selu_layer::backward_activation is OK (the selu backward pass may need the same re-examination).", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "For conven...
null
tiny-dnn__tiny-dnn__979
tiny-dnn/tiny-dnn
979
defect
ffd65e10dceda4543bbc08af37996bc2b8edf3fc
62d46b698856b8d94013c554b008af5c0a63258e
Add padding layer.
I created padding layer because TinyDNN hasn't support add padding in convolutional layers. The padding layer is similar to `tf.pad` in [Tensorflow](https://www.tensorflow.org/api_docs/python/tf/pad).
diff --git a/AUTHORS b/AUTHORS index 544518d22..dbef55c60 100644 --- a/AUTHORS +++ b/AUTHORS @@ -73,3 +73,4 @@ MeiHui FAN <mhfan@ustc.edu> Rui Huang <vowstar@users.noreply.github.com> Siddhartha Rao Kamalakara <srk97c@gmail.com> Jaakko Rantala <jaakko.rantala@gmail.com> +Haozhe Xie <cshzxie@gmail.com> diff --git a/R...
8
6
2
[{"id": "G0", "claim": "Unit tests should be added for the padding layer (instead of only the manual test code), so that future changes can be tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Travis CI jobs fail on this PR, which the author attrib...
null
tiny-dnn__tiny-dnn__994
tiny-dnn/tiny-dnn
994
defect
1aec6a1ece0ba7a5e018a070bd52e045d49d1411
9856b6479af149cc91f78c0ed4de546459052b3f
Create L2 Normalization Layer
I'm aiming at using SSD network with Tiny DNN. I created dilated convolution and padding layer a month ago (PR #978 #979). Now, I created L2 normalization layer. It is normalized across the channel dimension. Here's is a [PyTorch implementation](https://github.com/kuangliu/pytorch-ssd/blob/master/ssd.py#L14-L22)....
diff --git a/test/test.cpp b/test/test.cpp index dea842f35..5d35966a0 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -53,6 +53,7 @@ using namespace tiny_dnn::activation; #include "test_fully_connected_layer.h" #include "test_global_average_pooling_layer.h" #include "test_integration.h" +#include "test_l2_norm_lay...
6
6
2
[{"id": "G0", "claim": "test_l2_norm_layer.h is missing a newline at end of file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The constructors' doc comments document a `phase` argument that the constructors do not have.", "category": "documen...
null
tiny-dnn__tiny-dnn__996
tiny-dnn/tiny-dnn
996
defect
1aec6a1ece0ba7a5e018a070bd52e045d49d1411
10b2f5c5271b658b01b17b2ec89c5776b64ea43d
Add Non-maximum Suppression
In this PR, I created NMS as the last layer in SSD detection model. For more information on NMS, please visit https://www.coursera.org/lecture/convolutional-neural-networks/non-max-suppression-dvrjH.
diff --git a/test/test.cpp b/test/test.cpp index dea842f35..533ee1294 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -74,6 +74,8 @@ using namespace tiny_dnn::activation; #include "test_lstm_cell.h" #include "test_rnn_cell.h" +#include "test_nms.h" + #ifndef CNN_NO_SERIALIZATION #include "test_serialization.h" ...
3
3
1
[{"id": "G0", "claim": "The NMS test could use preprocessor macros instead of writing verbose, repetitive box-initialisation code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since tiny-dnn is a header-only library, the non-template functions...
null
tiny-dnn__tiny-dnn__997
tiny-dnn/tiny-dnn
997
defect
1aec6a1ece0ba7a5e018a070bd52e045d49d1411
355e1a092bc4a262442201f5c30977ede1edbade
Create example for SSD detection.
Please merge PR #994, #995 and #996. **Then you can compile this example.** This example has the same output as [this PyTorch version](https://github.com/amdegroot/ssd.pytorch). It also indicates that PR #994, #995 and #996 are correct. I will create README later along with some Python scripts to test this exam...
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3960eea4a..092046a8c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -36,7 +36,11 @@ if(USE_SERIALIZER) target_link_libraries(example_deconv_train ${project_library_target_name} ${REQUIRED_LIBRARIES}) - cotire(...
3
1
0
[{"id": "G0", "claim": "The example's README should include as much documentation as possible around the comparison between the TinyDNN example and the PyTorch reference (accuracy and speed).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using Op...
null
tinyauthapp__tinyauth__197
tinyauthapp/tinyauth
197
defect
9eb296f14644267410655122e8aff6f0db83371a
282cabf4ddd6cd2433e742a42bc429d056f2df99
refactor: move to traefik paerser for label parsing
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated base Docker images for frontend and development environments to newer versions. - Added a new backend dependency to improve label parsing. - **Refactor** - Replaced the previous label struct...
diff --git a/Dockerfile b/Dockerfile index bef09eda8..89d10e80f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Site builder -FROM oven/bun:1.2.15-alpine AS frontend-builder +FROM oven/bun:1.2.16-alpine AS frontend-builder WORKDIR /frontend diff --git a/frontend/Dockerfile.dev b/frontend/Dockerfile.dev...
6
4
4
[{"id": "G0", "claim": "ParseHeaders uses strings.Split(header, \"=\"), which silently discards valid headers whose value contains an '=' (e.g. a JWT), so those headers are never set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ParseHeaders does ...
null
tinyauthapp__tinyauth__225
tinyauthapp/tinyauth
225
defect
7640e956c2954ccc7c790d9c24abb2453c7512ea
ebcf6e6aa67fcfc546fc0f1bd0b9560f5cf8dcdd
fix: encrypt the cookie in sessions
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved authentication security by using separate secrets for HMAC and encryption. * **Bug Fixes** * Enhanced session retrieval reliability by retrying after failed attempts and clearing inva...
diff --git a/cmd/root.go b/cmd/root.go index 278a511d2..a15bec73a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -74,6 +74,15 @@ var rootCmd = &cobra.Command{ csrfCookieName := fmt.Sprintf("%s-%s", constants.CsrfCookieName, cookieId) redirectCookieName := fmt.Sprintf("%s-%s", constants.RedirectCookieName, cookieId...
3
3
2
[{"id": "G0", "claim": "Fix key truncation that reduces entropy: DeriveKey base64-encodes 32 bytes (44 characters) but truncates to 32 characters, weakening security — return the full encoded key or derive fewer bytes (24) that encode to exactly 32 characters.", "category": "security", "verdict": "supported", "priority...
null
tinyauthapp__tinyauth__337
tinyauthapp/tinyauth
337
defect
ad4fc7ef5fd41ee1be05647d165ae2d069b4d1a1
78920cba642d1270dbc073bcba125b1803d16234
feat: header based acls
Fixes #275 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Per-request app configuration override via HTTP headers. - Improvements - Enhanced decoding of container labels and header-based app configs. - Header normalization to reliably handl...
diff --git a/internal/config/config.go b/internal/config/config.go index 82050def6..fbe5aa609 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -123,53 +123,53 @@ type RedirectQuery struct { RedirectURI string `url:"redirect_uri"` } -// Labels +// App config -type Labels struct { - Apps m...
8
2
2
[{"id": "G0", "claim": "Add config validation that rejects configurations setting both BasicAuth Password and PasswordFile, and prefer loading the password via file/env secret readers.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A malformed header sho...
null
tinyauthapp__tinyauth__409
tinyauthapp/tinyauth
409
defect
a9c1bf8865c4609cfaee1b52ca5c5778bb335c76
0f334274497e0a5480b9b946001fa100180a5ee6
fix: allow root cookie domain host redirects
Fixes #408 Previously IsRedirectSafe rejected redirects to the exact cookie domain when AppURL had multiple subdomain levels, because it stripped the first label twice. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved redirect validat...
diff --git a/internal/utils/app_utils.go b/internal/utils/app_utils.go index de0cff637..6daee5843 100644 --- a/internal/utils/app_utils.go +++ b/internal/utils/app_utils.go @@ -2,17 +2,17 @@ package utils import ( "errors" + "maps" "net" "net/url" "strings" - "tinyauth/internal/config" - "tinyauth/internal/u...
2
1
1
[{"id": "G0", "claim": "The new domain-match behaviour of IsRedirectSafe should be covered by tests: the no-subdomain expectation should flip to true and cases should be added for cookie-domain fallback and deeper-subdomain rejection.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
tinyauthapp__tinyauth__422
tinyauthapp/tinyauth
422
defect
97639ae90303de852df9e667ae496085256d0db6
e7075ab8e642b4689baae8b080d3df36d0c8b0c8
feat: ACL labels from environment variables
## This pull request adds support for reading [ACL labels](https://tinyauth.app/docs/reference/labels) from environment variables. As discussed in https://github.com/steveiliop56/tinyauth/issues/356 the ability to use the features that labels allow ( limiting access, allowing some paths without authentication, etc. ...
diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index 2cb7e9791..d6173f4bb 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -136,12 +136,14 @@ func (app *BootstrapApp) Setup() error { // Create services dockerService := service.Ne...
5
4
1
[{"id": "G0", "claim": "Init calls LoadLabels but ignores the returned error, so a label decoding failure is silently swallowed and leaves incorrect initialization state; the error should be returned instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
tinyauthapp__tinyauth__431
tinyauthapp/tinyauth
431
defect
c5bb389258ef459315b5f0c2163988eebea2fa83
ed3b1c49cb40c76ea236c451cac2d884d6ac1065
refactor: rework decoders logic for cleaner code
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal configuration decoding was reworked to use generic, type-driven logic. No user-facing behavior or public API changes. * **Tests** * Updated decoder tests and removed an older normalizati...
diff --git a/internal/config/config.go b/internal/config/config.go index 23c383257..40c975183 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -53,16 +53,16 @@ type Claims struct { } type OAuthServiceConfig struct { - ClientID string `key:"client-id"` - ClientSecret string...
4
1
0
[{"id": "G0", "claim": "The duplicated flag/env values in the rewritten tests (e.g. \"google-client-id\" here and on line 23 etc.) should be extracted into shared constants so the tests show more clearly what they do.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"i...
null
tinyauthapp__tinyauth__540
tinyauthapp/tinyauth
540
defect
ef25872fc30393c5ff88999fe210f0374ba804b0
d1c41a116b9a3cd61c2bee546285ffb5c22ede00
feat: refresh session cookie when session is active
Solves #475 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Session cookies are now refreshed automatically during authentication flows to help maintain active sessions. * Proxy authentication endpoints accept a broader set of HTTP methods...
diff --git a/.gitignore b/.gitignore index 576aeee7e..0eefed8fe 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,7 @@ # binary out /tinyauth.db -/resources \ No newline at end of file +/resources + +# debug files +__debug_* \ No newline at end of file diff --git a/internal/controller/proxy_controller.go b/inte...
6
1
1
[{"id": "G0", "claim": "Add tests covering POST requests to the non-envoy proxies (traefik, caddy and nginx), which the PR's new POST registration leaves untested.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error returned by RefreshSessionCookie...
null
tinyauthapp__tinyauth__551
tinyauthapp/tinyauth
551
defect
3c6bd449068e3b1c32cf812fe04106160d68a782
d210966dc3a7501483cf985de3c7b58c24f07220
fix: allow any HTTP method for /api/auth/envoy
Re-introduces changes that were reverted in https://github.com/steveiliop56/tinyauth/pull/540. Envoy endpoint must respond on any standard HTTP methods. Added better code comments for clarity. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Enfor...
diff --git a/internal/controller/proxy_controller.go b/internal/controller/proxy_controller.go index 40f837488..6c1b33478 100644 --- a/internal/controller/proxy_controller.go +++ b/internal/controller/proxy_controller.go @@ -43,8 +43,8 @@ func NewProxyController(config ProxyControllerConfig, router *gin.RouterGroup, a ...
2
1
0
[{"id": "G0", "claim": "For HTTP spec compliance, the 405 response returned to non-envoy proxies using a disallowed method should include an Allow header indicating the permitted method.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "HEAD requests t...
null
tinyauthapp__tinyauth__682
tinyauthapp/tinyauth
682
defect
c48181a8d8e258a553a7743c0db7ef6aeb8268e4
4caa6bf8ec4c59ae42559f0a215726de9c1f14b9
refactor: categorize leftover config options
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Configuration variables renamed and standardized (database path, resources path, analytics, UI warnings); defaults clarified and resources path set to ./resources. * Analytics, resources, and UI war...
diff --git a/.env.example b/.env.example index 54d528152..26d280dec 100644 --- a/.env.example +++ b/.env.example @@ -4,14 +4,23 @@ # The base URL where the app is hosted. TINYAUTH_APPURL= -# The directory where resources are stored. -TINYAUTH_RESOURCESDIR="./resources" + +# database config + # The path to the data...
2
1
0
[{"id": "G0", "claim": "NewResourcesController should guard file-server initialization when resources are disabled or the path is empty, since creating the file server then is unnecessary overhead.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
tinyauthapp__tinyauth__714
tinyauthapp/tinyauth
714
defect
03f13efc77554e5b7f52fa419912d24b0a5f2648
1c7ef9693d4bca286dfb08f91d09864450249ba3
refactor: refactor proxy controller to handle proxy auth modules better
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Centralized authentication flow using a request context for more consistent handling across proxies. * Improved browser detection to tailor behavior for browser vs non-browser requests. * Unifie...
diff --git a/internal/controller/proxy_controller.go b/internal/controller/proxy_controller.go index 60e117d4b..b215a5cac 100644 --- a/internal/controller/proxy_controller.go +++ b/internal/controller/proxy_controller.go @@ -1,9 +1,11 @@ package controller import ( + "errors" "fmt" "net/http" - "slices" + "net/...
4
1
1
[{"id": "G0", "claim": "getAuthRequestContext should validate x-original-url as an absolute URL (rejecting empty scheme/host) and preserve its query string when the context is used to build redirects.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "det...
null
tinyauthapp__tinyauth__769
tinyauthapp/tinyauth
769
defect
0d286d1864f5dc88d21d82a306d291f00ee79053
2e383aecff080fa1257b0c23b91538ba081dc8ba
feat(oidc): support access token in body for user info post
Add support for access token in body for post request to /userinfo resolves warning (soft failure) in oidc suite: Before: <img width="1663" height="355" alt="image" src="https://github.com/user-attachments/assets/2164d310-6da5-4251-8db2-1772704b29eb" /> After: <img width="1663" height="355" alt="image" src="...
diff --git a/internal/controller/oidc_controller.go b/internal/controller/oidc_controller.go index 6b9c97365..800df6179 100644 --- a/internal/controller/oidc_controller.go +++ b/internal/controller/oidc_controller.go @@ -9,6 +9,7 @@ import ( "github.com/gin-gonic/gin" "github.com/google/go-querystring/query" + ...
2
2
1
[{"id": "G0", "claim": "The userinfo POST Content-Type check uses exact string matching on the raw header, so valid requests such as `application/x-www-form-urlencoded; charset=UTF-8` are rejected; use Gin's ContentType(), which strips parameters.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
tinyauthapp__tinyauth__777
tinyauthapp/tinyauth
777
defect
0d286d1864f5dc88d21d82a306d291f00ee79053
376b61c7c92ea094eb626fc56b0ddd1a7c76f873
feat(oidc): support for all in-spec attributes and scopes
A decent sized refactor that will require us to update the appropriate documentation if it gets merged. I'm happy to do this. Should be backwards compatible (I think) with the old users config. 5 new test passes: <img width="1858" height="740" alt="image" src="https://github.com/user-attachments/assets/944ac83...
diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index 5a9c9b08b..2f2f0e468 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -79,5 +79,9 @@ "profileScopeName": "Profile", "profileScopeDescription": "Allows the app to ac...
19
7
5
[{"id": "G0", "claim": "Switching Users from []string to map[string]UserConfig without an unmarshal hook means existing configs using the legacy list format will fail to load; add a custom UnmarshalYAML on AuthConfig that normalizes both representations.", "category": "correctness", "verdict": "supported", "priority": ...
null
tinyauthapp__tinyauth__783
tinyauthapp/tinyauth
783
defect
b44dc75f548621a25b22e58883975e4ee06e7f5a
ba8dc42578614f9770919425c158fe0ca22a21df
feat: add x-tinyauth-location to nginx response
Solves #773. Normally you let Nginx handle the login URL creation but with this "hack" we can set an arbitary header with where Tinyauth wants the user to go to. Later the Nginx error page can get this header and redirect accordingly. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summar...
diff --git a/internal/controller/proxy_controller.go b/internal/controller/proxy_controller.go index 404fc51d2..9790daa9e 100644 --- a/internal/controller/proxy_controller.go +++ b/internal/controller/proxy_controller.go @@ -131,14 +131,6 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) { } if !...
1
1
0
[{"id": "G0", "claim": "The new assert.Equal calls in TestProxyController (lines 119, 132, 146, 162, 177, 193) pass (t, actual, expected) in the wrong order, so failure messages would mislabel the values.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinyauthapp__tinyauth__785
tinyauthapp/tinyauth
785
defect
b44dc75f548621a25b22e58883975e4ee06e7f5a
a7131e770a3dea61a2dd74ae68136ae0ac2f7ac5
feat: support unsigned oidc request objects
advertises `request_parameter_supported` and `request_object_signing_alg_values_supported` in discovery decodes jwt in frontend to merge claims now passes the "oidcc-unsigned-request-object-supported-correctly-or-rejected-as-unsupported" conformance test: <img width="908" height="210" alt="image" src="https://...
diff --git a/frontend/src/lib/hooks/oidc.ts b/frontend/src/lib/hooks/oidc.ts index cc79a7ec5..8e105fd7e 100644 --- a/frontend/src/lib/hooks/oidc.ts +++ b/frontend/src/lib/hooks/oidc.ts @@ -11,6 +11,25 @@ export const oidcParamsSchema = z.object({ code_challenge_method: z.string().optional(), }); +function decodeR...
2
1
1
[{"id": "G0", "claim": "decodeRequestObject accepts any token with 2+ segments and never checks the JOSE header alg, so claims from malformed or signed JWTs may be merged as if they were valid unsigned request objects; the JOSE header should be validated (alg none, empty signature) before trusting decoded request claim...
null
tinygo-org__drivers__191
tinygo-org/drivers
191
defect
b1ae52d1b94aec48a489b1a2748c457f53d6fbb8
7060e1d2857293abaf6ee8c3ee97ef26d6f71f8b
test: add tester package for mocking of I2C bus/devices
This PR adds a `tester` package that contains I2CBus and I2CDevice mocks for use in writing unit tests for I2C devices. Making this PR as draft, it is intended to serve as a starting point for conversation.
diff --git a/go.mod b/go.mod index 02740b675..a66a99327 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,7 @@ module tinygo.org/x/drivers go 1.14 -require github.com/eclipse/paho.mqtt.golang v1.2.0 +require ( + github.com/eclipse/paho.mqtt.golang v1.2.0 + github.com/frankban/quicktest v1.10.2 +) diff --git a/go.sum b/g...
5
4
0
[{"id": "G0", "claim": "Export the maxRegisters constant (it became MaxRegisters).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Store an interface type (Fatalf) instead of the concrete *qt.C for the mock bus and device, and unexport those fiel...
null
tinygo-org__drivers__240
tinygo-org/drivers
240
defect
d2db0c28e2783ccd4fc50960d08d587b48d6ed46
295f6a3e84a22903ae4a51ba539a4321133566de
Add INA260
Adds the INA260, which is a current measuring device. As part of this change, to add unit-tests, the unit test mock was re-factored. The existing mock assumed all registers were 1-byte in length and that reading 2-bytes would read 2 registers. This doesn't apply to all devices. The existing mock is moved into `I2...
diff --git a/Makefile b/Makefile index 2a37f2ec7..872ccfaa6 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,8 @@ endif @md5sum ./build/test.hex tinygo build -size short -o ./build/test.hex -target=xiao ./examples/pcf8563/timer/ @md5sum ./build/test.hex + tinygo build -size short -o ./build/test.hex -target=fe...
5
3
1
[{"id": "G0", "claim": "It would be much simpler for the mock to add a property like UsesContiguousRegister to the existing device instead of adding an additional type.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The contiguous array-based design is better...
null
tinygo-org__drivers__509
tinygo-org/drivers
509
defect
0b6e1d0e78f6768e0bd3e459204ba4a076827c42
5630390f3d8a14abb8cd8689947ea2073ab7e2c5
gps: improve error handling
This PR makes some improvements to how the `gps` driver handles errors. There were some edge cases before which could cause a panic. Also, some errors now return more information about what caused the error.
diff --git a/gps/gps.go b/gps/gps.go index 09c5af880..a53a446a9 100644 --- a/gps/gps.go +++ b/gps/gps.go @@ -13,8 +13,35 @@ import ( var ( errInvalidNMEASentenceLength = errors.New("invalid NMEA sentence length") errInvalidNMEAChecksum = errors.New("invalid NMEA sentence checksum") + errEmptyNMEASentence ...
2
2
1
[{"id": "G0", "claim": "The magic indexes in validSentence (e.g. sentence[len(sentence)-3]) are unexplained; add a comment describing the structure of a sentence.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If val can be longer than the block b...
null
tinygo-org__drivers__612
tinygo-org/drivers
612
defect
7c963878453e245ea47a09c541936d15515f735e
7d2acfb441659338cd3450332850362cf1f3cca2
Adafruit 'seesaw' support
Here we go again. Simple driver for the _"i2c to anything"_ seesaw chip. https://learn.adafruit.com/adafruit-seesaw-atsamd09-breakout/overview This also addresses half of #564.
diff --git a/examples/seesaw/main.go b/examples/seesaw/main.go new file mode 100644 index 000000000..14460b0d6 --- /dev/null +++ b/examples/seesaw/main.go @@ -0,0 +1,29 @@ +package main + +import ( + "machine" + "strconv" + "time" + "tinygo.org/x/drivers/seesaw" +) + +const readDelay = time.Microsecond * 3000 + +// exa...
1
1
0
[{"id": "G0", "claim": "The delay handling in Read (a fixed time.Sleep of standardDelay threaded through as an argument) could be more flexible, e.g. a functional interface so callers can switch between busy-wait and sleep, as the reviewer did in his own seesaw experiments.", "category": "design", "verdict": "supported...
null
tinygo-org__drivers__617
tinygo-org/drivers
617
defect
47dfeb9e948c9dccd9125d01afd450b43023ef39
0135459fd5bc1598b70a6dab6554c8d6ad800999
Pixel/image buffers
This PR refactors pixel buffer handling. ### Summary I'd like to add a new pixel package for efficiently working with image buffers for displays, and add a `DrawBitmap(x, y, bitmap)` method to send these image buffers directly to a SPI display. This is intended as preparation for DMA support in displays (`StartDr...
diff --git a/examples/ili9341/pyportal_boing/main.go b/examples/ili9341/pyportal_boing/main.go index 16b285bea..b03423386 100644 --- a/examples/ili9341/pyportal_boing/main.go +++ b/examples/ili9341/pyportal_boing/main.go @@ -8,15 +8,16 @@ import ( "tinygo.org/x/drivers/examples/ili9341/initdisplay" "tinygo.org/x/dr...
6
4
3
[{"id": "G0", "claim": "The PR should define a shorthand type alias such as `type Image = pixel.Image[pixel.RGB565BE]` (e.g. exported as ili9341.Image) instead of spelling out generic parameterizations throughout the API.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "...
null
tinygo-org__drivers__663
tinygo-org/drivers
663
defect
22581dfd5841296f2f0e444809b4c100af973401
7eda484539ca2a48d889a66a6210cc279137e83b
pixel: add support for Monochrome types such as the SSD1306
This PR extends the `pixel` package to add support for a new type `Monochrome` for displays such as the SSD1306.
diff --git a/pixel/image.go b/pixel/image.go index 54633e3fc..54ff0d094 100644 --- a/pixel/image.go +++ b/pixel/image.go @@ -22,12 +22,17 @@ func NewImage[T Color](width, height int) Image[T] { } var zeroColor T var data unsafe.Pointer - if zeroColor.BitsPerPixel()%8 == 0 { + switch { + case zeroColor.BitsPerPixe...
8
6
3
[{"id": "G0", "claim": "The special monochrome cases added to NewImage and RawBuffer are unnecessary because the default case below already handles 1-bit colors correctly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comparison with zero (c ...
null
tinygo-org__drivers__673
tinygo-org/drivers
673
defect
60801ba8527d6f2eff925e03f6eb49657552b7bc
1b8aad13842bfd184babadc1e0380aa25ad2ebf7
epd2in66b: Waveshare 2.66inch E-Paper Display Module (B) for Raspberry Pi Pico
A simple driver for the Waveshare 2.66in EPD for the Pico. Heavily inspired by the official python implementation and its magic timing. See also: https://www.waveshare.com/Pico-ePaper-2.66-B.htm Using `machine` package currently breaks the build. **How should I go about removing the `machine` package from the un...
diff --git a/examples/waveshare-epd/epd2in66b/main.go b/examples/waveshare-epd/epd2in66b/main.go new file mode 100644 index 000000000..07bc4e018 --- /dev/null +++ b/examples/waveshare-epd/epd2in66b/main.go @@ -0,0 +1,74 @@ +package main + +import ( + "image/color" + "machine" + "time" + + "tinygo.org/x/drivers" + "tiny...
7
6
1
[{"id": "G0", "claim": "The width/height fields should not be in the Device struct since they never change; the constants should be used directly and renamed to something more unique (e.g. displayWidth) to avoid unintentional shadowing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
tinygo-org__drivers__713
tinygo-org/drivers
713
defect
30f540c29ff233e335d92ee49ada71cf3dbcda08
63016273382f511f13f608bc3387a86eb88fcea9
pixel: add NewImageFromBytes function
This PR adds a new function `NewImageFromBytes()` to create a `pixel.Image` from an existing slice of bytes. It is already being used as part of some refactoring that @conejoninja and I are doing on the badger2040 repo. Thanks to @conejoninja for helping me debug these changes!
diff --git a/pixel/image.go b/pixel/image.go index 1a1d26fa6..3275d63ec 100644 --- a/pixel/image.go +++ b/pixel/image.go @@ -43,6 +43,40 @@ func NewImage[T Color](width, height int) Image[T] { } } +// NewImageFromBytes creates a new image of the given size using an existing data slice of bytes. +func NewImageFromB...
5
3
1
[{"id": "G0", "claim": "NewImageFromBytes should return (Image[T], error) instead of panicking on bad input.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After merging, this change makes the tests fail, so it is being reverted even though the build suc...
null
tinygo-org__drivers__834
tinygo-org/drivers
834
defect
892265b7332bf9eee098b741c9f3413ac0016d53
9aba2c120c6b45c303fd6c6af219f6fc58811251
gps: improvements and corrections for config commands
This PR contains some improvements and corrections for the `gps` driver. It adds some additional functions for different modes (automobile, bike, etc) and also ignores the return results from any config commands. Basically due to the fact that there is a constant stream of updates coming from NMEA messages, the resu...
diff --git a/examples/gps/uart/main.go b/examples/gps/uart/main.go index c5309bf80..228aa1a8d 100644 --- a/examples/gps/uart/main.go +++ b/examples/gps/uart/main.go @@ -52,7 +52,10 @@ func main() { } println() } else { - println("Waiting for fix...") + if fix.Type == gps.GSV { + // GSV sentence provid...
2
1
1
[{"id": "G0", "claim": "The mode setters (and the other senders) discard the error returned by SendCommand instead of returning it, and should return that error here and everywhere else.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the NMEASent...
null
tinygo-org__espflasher__12
tinygo-org/espflasher
12
defect
4e44e27d581d9c52e24924000a87db6c4dc7a411
8822470f45426c33c2e7b078ca423ca13a5da78d
feat: Add auto-detect ESP chip via security info and improve test coverage
- Refactor chip detection from `magic-register-only` approach to use `GET_SECURITY_INFO` command with ChipID fallback via `readReg`. - Add `security_info.go` for parsing security info responses (12/20 byte variants) and security flag decoding. - Expand protocol layer with securityInfo command support and improve tes...
diff --git a/pkg/espflasher/chip.go b/pkg/espflasher/chip.go index d96b34b..4025c6a 100644 --- a/pkg/espflasher/chip.go +++ b/pkg/espflasher/chip.go @@ -73,6 +73,9 @@ type chipDef struct { SPIMISOOffs uint32 SPIW0Offs uint32 + // SecureDownloadMode is true if esptool detects the ROM is in Secure Download Mode +...
2
1
1
[{"id": "G0", "claim": "The added cmdSecurityInfoReg line should be separated by an empty line so the whole declaration group is not reformatted.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "detectChip now reads security info first and returns a...
null
tinygo-org__espflasher__21
tinygo-org/espflasher
21
defect
483acff3e66ee968234e3cb264071de3e85f841c
65806df5f9f3b09d8c708faecd69d803697e1be8
feat: add public GetSecurityInfo and FlashMD5 API methods
## Summary - Expose `GetSecurityInfo()` for querying device security/fuse status - Expose `FlashMD5(offset, size)` for verifying flash region contents by hash - Add stub loader guard to `EraseRegion` (previously would fail with a confusing error when called without stub) ## Use case These public methods enable tools...
diff --git a/pkg/espflasher/flasher.go b/pkg/espflasher/flasher.go index f05df6e..6c4571e 100644 --- a/pkg/espflasher/flasher.go +++ b/pkg/espflasher/flasher.go @@ -119,6 +119,7 @@ type Flasher struct { chip *chipDef opts *FlasherOptions portStr string + secInfo []byte // cached security info from ROM (GET_...
1
1
0
[{"id": "G0", "claim": "The method should be named GetMD5 so its name better matches GetSecurityInfo().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinygo-org__espflasher__34
tinygo-org/espflasher
34
defect
43eac0a0e64d336fd958af29feaf52707125c144
595aea6b64d61b9047b9180ee8586c88f7f92986
fix: flush SLIP reader after ReadFlash to prevent stale data corruption
- add slipReader.reset() to clear leftover buffer - update flushInput() to also reset SLIP reader state - call flushInput() after ReadFlash's raw block protocol completes - add public FlushInput() method for callers reusing connections - rename GetMD5 to FlashMD5 ReadFlash uses a non-standard SLIP protocol (block read...
diff --git a/pkg/espflasher/flasher.go b/pkg/espflasher/flasher.go index 32ea28a..20adc2d 100644 --- a/pkg/espflasher/flasher.go +++ b/pkg/espflasher/flasher.go @@ -178,6 +178,12 @@ func (f *Flasher) Close() error { return f.port.Close() } +// FlushInput discards any unread data from the serial port and SLIP reade...
1
1
0
[{"id": "G0", "claim": "The method name `FlashMD5` is misleading because it sounds like it would perform some kind of flashing; the reviewer suggests renaming it (proposing `GetFlashMD5` as a more descriptive name) and asks the PR author what he thinks.", "category": "design", "verdict": "supported", "priority": "P2", ...
null
tinygo-org__go-llvm__21
tinygo-org/go-llvm
21
defect
435a266786c0b47e599079846359aad6062ec7ec
6f92f22e894f97489024591f6456bf597be448ac
Add support for LLVM 12
Some cross-ports from LLVM's Go bindings directory, plus some compat code to work on older LLVM. Passes tests on LLVM 12 and 11, but I haven't yet tested with tinygo.
diff --git a/IRBindings.cpp b/IRBindings.cpp index 5b84f48..1831d33 100644 --- a/IRBindings.cpp +++ b/IRBindings.cpp @@ -53,9 +53,12 @@ void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { void LLVMGoSetCurrentDebugLocation(LLVMBuilderRef Bref, unsigned Line, ...
3
2
2
[{"id": "G0", "claim": "Remove the LLVMGoAddConstantPropagationPass wrapper entirely and update TinyGo to not use the constant propagation pass, using the SCCP pass as the replacement.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR must also add s...
null
tinygo-org__tinygo__1814
tinygo-org/tinygo
1,814
defect
c8e231bc0b9aa276b2fb50050f4c1b412cfe77e5
31f83c99dc9c770b1e1a38691844b79b12e635e6
src/testing/benchmark.go: add implementation of Benchmark
Partially fixes #1808
diff --git a/Makefile b/Makefile index b62956a568..e184dcf8a8 100644 --- a/Makefile +++ b/Makefile @@ -207,6 +207,8 @@ TEST_PACKAGES = \ .PHONY: tinygo-test tinygo-test: $(TINYGO) test $(TEST_PACKAGES) + # until "test testing" passes + cd tests/tinygotest && $(TINYGO) test benchmark_test.go .PHONY: smoketest sm...
5
4
1
[{"id": "G0", "claim": "Running the fibo example built with this PR and -bench panics with a nil pointer dereference under the default gc and scheduler on macOS, and with the coroutines scheduler it fails with 'LLVM ERROR: Cannot select: intrinsic %llvm.coro.size'.", "category": "correctness", "verdict": "opposed", "pr...
null
tinygo-org__tinygo__2647
tinygo-org/tinygo
2,647
defect
d75e14245b8dde4af7613d2d587b014688213e02
438386918d408cf02b892e9f778bdceeffa83c98
src/os: make Environ() return a copy of the environment
Fixes #2646
diff --git a/src/os/env.go b/src/os/env.go index 330297b36a..9f574b536d 100644 --- a/src/os/env.go +++ b/src/os/env.go @@ -8,6 +8,7 @@ package os import ( "internal/testlog" + "strings" "syscall" ) @@ -137,5 +138,13 @@ func Clearenv() { // Environ returns a copy of strings representing the environment, // i...
3
3
2
[{"id": "G0", "claim": "This pull request should also bring back the test deleted by PR #2603.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The copy of the environment should be done in syscall.Environ(), as upstream does, in case someone calls that d...
null
tinygo-org__tinygo__3136
tinygo-org/tinygo
3,136
defect
4ca9b34133aba934891af1a5132cded73ed99754
2b8e5b10512b3e57998e31426cb000ee86dd02b8
cgo: fixes panic when FuncType.Results is nil
FuncType.Results can be nil. This fixes the comparison and backfills relevant tests. Fixes #3096
diff --git a/cgo/cgo.go b/cgo/cgo.go index e1be8ab497..21b297fe61 100644 --- a/cgo/cgo.go +++ b/cgo/cgo.go @@ -941,6 +941,9 @@ func (p *cgoPackage) isEquivalentAST(a, b ast.Node) bool { if !ok { return false } + if node == nil || b == nil { + return node == b + } if len(node.List) != len(b.List) { ...
4
1
0
[{"id": "G0", "claim": "The macOS CI failure (undefined symbol _notARealFunction in TestFail) may be the same pre-existing issue as #2892.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The 'tc := tc // avoid a race condition' capture inside the test ...
null
tinygo-org__tinygo__3437
tinygo-org/tinygo
3,437
defect
1f0bf9ba631b22d3af59b0a63f41f6438e4d5fb5
ace35c5acf1d8f2c746de71996cac51d527620bd
compiler: zero struct padding during map operations
Fixes #3358
diff --git a/compiler/map.go b/compiler/map.go index 9d162bfc00..b358ed23e8 100644 --- a/compiler/map.go +++ b/compiler/map.go @@ -89,6 +89,7 @@ func (b *builder) createMapLookup(keyType, valueType types.Type, m, key llvm.Val // growth. mapKeyAlloca, mapKeyPtr, mapKeySize := b.createTemporaryAlloca(key.Type(), "h...
10
10
4
[{"id": "G0", "claim": "The PR should really get some tests: add a Go file under compiler/testdata, registered in compiler_test.go, whose generated IR output shows the runtime.memzero calls for a padded struct map key.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
tinygo-org__tinygo__3689
tinygo-org/tinygo
3,689
defect
6a2dd35fe63d6a99bcdb6156e8dd87fafc9f31b2
2c5cc4db5af67b9b1dfafeb234b985d6a74eb768
compiler,reflect: make field offsets varints
Fixes #3686
diff --git a/builder/sizes_test.go b/builder/sizes_test.go index 3281416d9c..d640fa21f5 100644 --- a/builder/sizes_test.go +++ b/builder/sizes_test.go @@ -43,7 +43,7 @@ func TestBinarySize(t *testing.T) { // microcontrollers {"hifive1b", "examples/echo", 4612, 280, 0, 2252}, {"microbit", "examples/serial", 272...
3
2
0
[{"id": "G0", "claim": "Remove the overflow checks from uvarint32 because the input data is known to be correct.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update the structField.data comment to also mention the offset, which the change now enco...
null
tinygo-org__tinygo__4156
tinygo-org/tinygo
4,156
defect
8eaa9bd8d0d7c1f79906e270d1a79bacb03c3205
b967c47629e44f478a8f971c7019811f7bbcc8bf
reflect: use int in StringHeader and SliceHeader on non-AVR platforms
In #1284, the recommended mechanism to use `SliceHeader` or `StringHeader` on TinyGo is with build tags. Unfortunately this isn't an option if your code imports golang.org/x/tools, which uses `SliceHeader` and `StringHeader` extensively, assuming that `Len` and `Cap` fields are type `int`. This PR adds a single un-e...
diff --git a/src/reflect/intw.go b/src/reflect/intw.go new file mode 100644 index 0000000000..20fbd4341e --- /dev/null +++ b/src/reflect/intw.go @@ -0,0 +1,8 @@ +//go:build !avr + +package reflect + +// intw is an integer type, used in places where an int is typically required, +// except architectures where the size o...
2
1
1
[{"id": "G0", "claim": "Using int-sized reflect.*Header fields is not the right solution and x/tools may not even compile with this patch; unsafe.Slice/unsafe.String would be the better API once x/tools requires Go 1.20.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
tinygo-org__tinygo__4378
tinygo-org/tinygo
4,378
defect
a8a532f9d6201d76f7177e30b9abd367c37c1000
d49e3db21d0c237334ffe58d5a8c43e0e3e8f66b
runtime: add support for os/signal
This adds support for enabling and listening to signals on Linux and MacOS. ~TODO: also support disabling signals.~ --- Not tested on MacOS yet. CI will show whether this works or not. Also, this will need a few changes to not run the signal test systems that don't support it: Windows, WebAssembly and baremet...
diff --git a/builder/musl.go b/builder/musl.go index 9b5c52704e..375ea99209 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -124,6 +124,7 @@ var Musl = Library{ "malloc/mallocng/*.c", "mman/*.c", "math/*.c", + "signal/" + arch + "/*.s", "signal/*.c", "stdio/*.c", "string/*.c", diff --git...
3
2
2
[{"id": "G0", "claim": "The PR should add the remaining signal runtime functions the Go standard library expects (signal_disable, signal_ignore, signal_ignored), or at least stub them, since applications built on the signal packages commonly need them.", "category": "design", "verdict": "supported", "priority": "P1", "...
null
tinygo-org__tinygo__4385
tinygo-org/tinygo
4,385
defect
4f7c64cb24853027e28fe0777c3bd0974297389a
9d553385a4952ea803b01aaeda75eeaf406033ae
Boehm GC support
This adds support for the well-known Boehm GC. It's significantly faster than our own naive GC and could be used as an alternative on bigger systems. In the future, this GC might also be supported on WebAssembly with some extra work. Right now it's Linux only (though Windows/MacOS shouldn't be too difficult to add)....
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 2f24df54a8..b19538c4d9 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -22,9 +22,9 @@ jobs: run: sudo apt-get remove llvm-18 - name: Checkout uses: actions/checkout@v4 - - name: Pull musl + ...
3
3
0
[{"id": "G0", "claim": "The stalled Boehm GC work should be finished, because the existing GC's bottleneck (~400ms pauses) makes TinyGo unusable for the requester's WebAssembly use case.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Supporting th...
null
tinygo-org__tinygo__4567
tinygo-org/tinygo
4,567
defect
0edeaf657f4d1024f60ca438084c61c8139dd566
863fc404530f13bd04073b97eaa834d12de26e4b
Fix two wasm bugs
Fix two related bugs: 1. `time.Sleep` in a normal (non-reactor) browser wasm binary would cause every subsequent exported function (`//go:wasmexport`) to fail. 2. https://github.com/tinygo-org/tinygo/issues/4563
diff --git a/main_test.go b/main_test.go index 136128d51c..36e734eb7c 100644 --- a/main_test.go +++ b/main_test.go @@ -25,6 +25,7 @@ import ( "github.com/tetratelabs/wazero" "github.com/tetratelabs/wazero/api" "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/tetratelabs/wazero/sys" "...
2
2
1
[{"id": "G0", "claim": "The time.Sleep(time.Millisecond) line added to testdata/wasmexport-noscheduler.go looks like leftover debug code and should be removed or at least explained with a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
tinygo-org__tinygo__4607
tinygo-org/tinygo
4,607
defect
258dac23247209dc54a2a986da9205549600d487
494cc6c942ab5ae951b7bbdafca460da7435a92f
cgo: support more macros
This PR adds better support for C macros (`#define`) in CGo. 1. It makes sure that if a macro contains another macro (such as `#define foo (bar+1)`) the referenced macro is also defined on the Go side, to avoid errors (`undefined: C.something`). 2. It supports function-like macros inside macros. For example, `#defi...
diff --git a/cgo/cgo.go b/cgo/cgo.go index 4a5d7efedf..a90b307538 100644 --- a/cgo/cgo.go +++ b/cgo/cgo.go @@ -1148,7 +1148,7 @@ func (f *cgoFile) getASTDeclName(name string, found clangCursor, iscall bool) st if alias := cgoAliases["C."+name]; alias != "" { return alias } - node := f.getASTDeclNode(name, found,...
1
1
0
[{"id": "G0", "claim": "The intentional double `t.Next()` in parseIdent's macro-call branch should carry a comment explaining why two calls are needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tinygo-org__tinygo__4631
tinygo-org/tinygo
4,631
defect
3b8062170c51524fc450cbf53f8f4eb817347f17
1e3157bb2abd67fbf29545e0117e3f78d72e609d
targets: add implementation for Tillitis TKey device
This PR is to start adding an implementation for the Tillitis TKey device: https://tillitis.se/products/tkey/ The only thing working is the `blinky1` example. ```shell $ tinygo flash -size short -target=tkey examples/blinky1 code data bss | flash ram 320 0 2076 | 320 2076...
diff --git a/GNUmakefile b/GNUmakefile index 5f82599e79..132be1e567 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -853,6 +853,8 @@ endif @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=maixbit examples/blinky1 @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=tk...
14
13
2
[{"id": "G0", "claim": "The linker script places the stack above .text in RAM, so a downward-growing stack will overwrite the loaded application code on overflow; the reviewer asks what prevents this corruption and (per the maintainer) proposes moving .stack between .text.init and .text.", "category": "correctness", "v...
null
tinygo-org__tinygo__4649
tinygo-org/tinygo
4,649
defect
3b8062170c51524fc450cbf53f8f4eb817347f17
aebbb2058cd67e3d6853c817adf2a0d9dc18e529
properly handle unix read on directory
On linux systems the `syscall.Read` returns -1 in case the read is being performed on a directory. This does not play well with the documentation of this function which states that `n` matches the number of bytes count being read. As a result, other code parts may panic, like here: https://github.com/noboruma/tinygo/...
diff --git a/src/os/file_anyos.go b/src/os/file_anyos.go index da70d72847..861c74d0fd 100644 --- a/src/os/file_anyos.go +++ b/src/os/file_anyos.go @@ -1,6 +1,6 @@ //go:build !baremetal && !js && !wasm_unknown -// Portions copyright 2009 The Go Authors. All rights reserved. +// Portions copyright 2009-2024 The Go Aut...
2
1
0
[{"id": "G0", "claim": "The comment added to unixFileHandle.Read claims that in case of EISDIR the read syscall returns n == -21, but that behavior could not be reproduced on Linux and misstates what the syscall returns for the number of bytes read.", "category": "documentation", "verdict": "supported", "priority": "P2...
null