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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CorfuDB__CorfuDB__3320 | CorfuDB/CorfuDB | 3,320 | defect | aac4e276e95099af98b0a692d39ec05482bc7669 | 9dd654c694e6fb68444afd71161844f7fccb76be | Restore reads table options indexed by UUID instead of table names | Restore reads RegistryTable table to get requires_backup_support tag.
Table name can not be used as the key to read the RegistryTable due to
a limitation of TarArchiveOutputStream which truncates file names if
longer than 100 characters.
## Checklist (Definition of Done):
- [x] There are no TODOs left in the... | diff --git a/runtime/src/main/java/org/corfudb/runtime/Restore.java b/runtime/src/main/java/org/corfudb/runtime/Restore.java
index 1fd43428ce0..2f27e30daa4 100644
--- a/runtime/src/main/java/org/corfudb/runtime/Restore.java
+++ b/runtime/src/main/java/org/corfudb/runtime/Restore.java
@@ -27,10 +27,14 @@
import java.ut... | 2 | 1 | 0 | [{"id": "G0", "claim": "isTableTagged should use entryStream() instead of iterating the CorfuTable directly as a Map, since some tables may be memory backed and the Map abstraction may not hold the same way for them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
CorfuDB__CorfuDB__3349 | CorfuDB/CorfuDB | 3,349 | defect | 3a1ee504e86c2c97b0696069dc76eed5497d313e | bdec1c0df816cf16436fcc179b7c018baafa0f57 | @Universe: Parameterize ContainerResources | Allow the client to specify container resources when invoking the test/benchmark.
## Overview
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no TODOs left in the code
- [ ] [Coding conventions](https://github.c... | diff --git a/it/src/main/java/org/corfudb/universe/UniverseManager.java b/it/src/main/java/org/corfudb/universe/UniverseManager.java
index a68ce5b88c9..3bf6601b744 100644
--- a/it/src/main/java/org/corfudb/universe/UniverseManager.java
+++ b/it/src/main/java/org/corfudb/universe/UniverseManager.java
@@ -60,7 +60,7 @@ p... | 1 | 1 | 0 | [{"id": "G0", "claim": "Make the memory limit optional instead of using the NO_MEMORY_LIMIT sentinel variable, so the sentinel is not needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CorfuDB__CorfuDB__3353 | CorfuDB/CorfuDB | 3,353 | defect | 3a1ee504e86c2c97b0696069dc76eed5497d313e | e9a7f41890d87ab8edcb41be9d4c416700105d32 | @vlo @monotonic Fix NoRollbackException | Since we are not computing undo records for monotonic objects, we need to prevent the optimistic stream from rolling back on a context switch as well. This patch effectively:
* Avoids applying updates on the optimistic streams. This avoids the issue of garbage accumulation. Since monotonic policy does not support re... | diff --git a/runtime/src/main/java/org/corfudb/runtime/object/VersionLockedObject.java b/runtime/src/main/java/org/corfudb/runtime/object/VersionLockedObject.java
index f5298aad3c5..4430b6758c4 100644
--- a/runtime/src/main/java/org/corfudb/runtime/object/VersionLockedObject.java
+++ b/runtime/src/main/java/org/corfudb... | 2 | 1 | 1 | [{"id": "G0", "claim": "The MONOTONIC check in applyUpdateUnsafe is now captured by the calling method, so it can be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The isMonotonicObject() check in setUncommittedChanges(WriteSetSMRStream) ... | null |
CorfuDB__CorfuDB__3427 | CorfuDB/CorfuDB | 3,427 | defect | e9129a9e779b9ce85d7396be4a7c6c912f328302 | 1c506f5ce91afc6cb9d984d3e34410fd55640813 | Handle potential race condition in LivenessUpdater | In liveness updater, due to different threads being able to handle the currentTable variable, there is a chance of it getting into a race condition. This change fixes it.
## Overview
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/CompactorLeaderServices.java b/infrastructure/src/main/java/org/corfudb/infrastructure/CompactorLeaderServices.java
index 4465fcfa849..ce3d91efe69 100644
--- a/infrastructure/src/main/java/org/corfudb/infrastructure/CompactorLeaderServices.java
+++ b/... | 5 | 5 | 3 | [{"id": "G0", "claim": "The S1 lock-based (ReentrantLock with spinning tryLock) coordination complicates the logic and blocks the checkpointer; instead the code should just save a copy of currentTable at the beginning of updateHeartbeat and let transaction conflict or an empty record handle the races.", "category": "de... | null |
CorfuDB__CorfuDB__3518 | CorfuDB/CorfuDB | 3,518 | defect | 706b0d80c8d2487d7c01efc95a189d70cf2b7ab6 | b9c811be56984b4b92d96cccff1db4783bb7bf85 | Additional APIs for LR Client: setDestination | ## Overview
Description:
Added setDestination() api for the log replication client.
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no TODOs left in the code
- [ ] [Coding conventions](https://github.com/CorfuDB/CorfuDB/wiki/C... | diff --git a/runtime/src/main/java/org/corfudb/runtime/LogReplicationLogicalGroupClient.java b/runtime/src/main/java/org/corfudb/runtime/LogReplicationLogicalGroupClient.java
index 2d000cb0bf2..a2729482f9d 100644
--- a/runtime/src/main/java/org/corfudb/runtime/LogReplicationLogicalGroupClient.java
+++ b/runtime/src/mai... | 7 | 5 | 0 | [{"id": "G0", "claim": "Questions whether removeDestinations is still relevant alongside the new setDestinations, how setDestinations differs from addDestination, and whether adds should validate against the configured destination list.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introdu... | null |
CorfuDB__CorfuDB__3594 | CorfuDB/CorfuDB | 3,594 | defect | 38847ddd62cf280fa3a1b20cfdabc13b13db35f9 | 46b11a56a6e08f03871e27285a41cd1a78132971 | Remove Networkstretcher from the FailureDetector poll round logic | This PR achieves the following things:
1. Replace the NetworkStretcher with the bound exponential backoff strategy. The poll round now has a clearly defined upper bound and the retry duration increases exponentially with every failure.
2. Removing tuning the RPC timeouts during poll report for the following reason. ... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/logreplication/infrastructure/CorfuReplicationDiscoveryService.java b/infrastructure/src/main/java/org/corfudb/infrastructure/logreplication/infrastructure/CorfuReplicationDiscoveryService.java
index 2c09d40cf28..901fffbde47 100644
--- a/infrastructur... | 6 | 4 | 3 | [{"id": "G0", "claim": "It is not clear why exponential-backoff polling is a better approximation of health than fixed-interval heart-beating bounded by the same window, and the reviewer presses that the simplest fixed polling should be used instead because it makes detection time deterministic.", "category": "design",... | null |
CorfuDB__CorfuDB__3773 | CorfuDB/CorfuDB | 3,773 | defect | 8124b6c68c3ec25c3d6485b394082d6354eef91a | ba52b21978ef9eb870be3ba59529c094e4e81199 | Do not ping unresponsive nodes when invalidating layout | ## Overview
Description:
When invalidating the layout, if the shuffle selects an unresponsive server, the client will stall. This could affect the failure detection of sequencer failovers as the FailureDetectorAgents use their runtime to run FD workflows.
This patch removes the unresponsive node from the fetc... | diff --git a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
index 1987225afd5..d4eb4ee4d8c 100644
--- a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
+++ b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
@@ -1132,8 +113... | 1 | 1 | 1 | [{"id": "G0", "claim": "Check all usages of invalidateLayout and make sure they handle the new IllegalStateException properly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CorfuDB__CorfuDB__3799 | CorfuDB/CorfuDB | 3,799 | defect | 85b7f068bd1f4a52110805d38a4bb2cb156d4d25 | 0368ae447e06a580294540631518723b6196a020 | LR listener task synchronization fix | ## Overview
- `openTable()` for LR Status Table occurs in a separate thread from subscribe, main thread may have progressed and the open may not have happened so adding supplemental open outside the thread.
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklis... | diff --git a/runtime/src/main/java/org/corfudb/runtime/LogReplicationUtils.java b/runtime/src/main/java/org/corfudb/runtime/LogReplicationUtils.java
index f0b83314f28..7d53f1df046 100644
--- a/runtime/src/main/java/org/corfudb/runtime/LogReplicationUtils.java
+++ b/runtime/src/main/java/org/corfudb/runtime/LogReplicati... | 3 | 3 | 2 | [{"id": "G0", "claim": "A retry as well as a try-catch block is needed around the openReplicationStatusTable fallback in the getTable catch path, so failures from this task can be handled by the listener's onError.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
CorfuDB__CorfuDB__3838 | CorfuDB/CorfuDB | 3,838 | defect | 6ecd29fab7b9db1f26e177061e663ef7edfdc3c9 | 970291b6a25eafabc370bab6b6d02effe2bce232 | Improve the usage of LAST_SNAPSHOT_SYNC_ENTRY in LiteRoutingQueueListener. | LAST_SNAPSHOT_SYNC_ENTRY is not being used as intended. Cleanup its usage in the listener and use it to indicate Snapshot Sync completion.
## Overview
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no TODOs lef... | diff --git a/runtime/proto/queue.proto b/runtime/proto/queue.proto
index 4cfde8b33c7..3505ebd2b71 100644
--- a/runtime/proto/queue.proto
+++ b/runtime/proto/queue.proto
@@ -20,7 +20,6 @@ enum ReplicationType {
NONE = 0;
LOG_ENTRY_SYNC = 1; // This entry was made during a delta sync
SNAPSHOT_SYNC = 2; // ... | 9 | 6 | 2 | [{"id": "G0", "claim": "The PR should remove the dummy-entry (last/sentinel entry) logic and find a different way to signal snapshot-sync completion.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In performFullSync the onSnapshotSyncComplete() callback ... | null |
CorfuDB__CorfuDB__3843 | CorfuDB/CorfuDB | 3,843 | defect | 60b83c052a1632e2c3723bfd9c30bf42f28f1ef2 | 15d4b94890c818c0a194d3cce6771a33b3dd672e | Avoid using Table object in logUpdateEnqueue |
## Overview
Description:
Why should this be merged:
While simply opening the Queue does not materialize the contents in-memory or on disk, we can avoid the possbility all together by only relying on the Queue's stream id.
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
... | diff --git a/runtime/src/main/java/org/corfudb/runtime/RoutingQueueSenderClient.java b/runtime/src/main/java/org/corfudb/runtime/RoutingQueueSenderClient.java
index 2c5008ad198..9a9a24265c4 100644
--- a/runtime/src/main/java/org/corfudb/runtime/RoutingQueueSenderClient.java
+++ b/runtime/src/main/java/org/corfudb/runti... | 4 | 2 | 0 | [{"id": "G0", "claim": "Add a comment above the null check in TxnContext.commit() explaining when `table` can be null.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks what the advantage of the change is, given that queue instantia... | null |
CorfuDB__CorfuDB__3849 | CorfuDB/CorfuDB | 3,849 | defect | 6f39c59088e48bb8bae7329fbcc1f04aa92abdf5 | dca9e178373fed843728e02d35aca22378dcc8d2 | LR Changes to Support Uncompressed Max Write Size Change | Description:
PR [3828](https://github.com/CorfuDB/CorfuDB/pull/3828) introduces a limit of 100MB on the max uncompressed write size for a transaction. Currently, Log Replicator receiver applies every batch of incoming Snapshot Sync data in a single transaction in the transfer phase.
Currently, LR's batch size for ... | diff --git a/common/src/main/java/org/corfudb/common/compression/ZSTDCompression.java b/common/src/main/java/org/corfudb/common/compression/ZSTDCompression.java
index c80261bdba8..cb34c12fc29 100644
--- a/common/src/main/java/org/corfudb/common/compression/ZSTDCompression.java
+++ b/common/src/main/java/org/corfudb/com... | 7 | 7 | 4 | [{"id": "G0", "claim": "The receiver-side size computation and logging added in processUpdatesShadowStream was only for debugging and should not remain in the final cut.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A check is needed so the val... | null |
CorfuDB__CorfuDB__3870 | CorfuDB/CorfuDB | 3,870 | defect | 5a18cf713bec901cb3882542ab9acfad00e9dbfe | df5f73b682139e55550ccb5cabc4e700640c9978 | Auto hot-swapping of SSL certs on the Server Side | In continuation from https://github.com/CorfuDB/CorfuDB/pull/3853, and https://github.com/CorfuDB/CorfuDB/pull/3884.
This PR uses FileWatcher to detect any change in the Server keyStore file path.
When a change is detected, it closes the netty channel and shuts down the EventLoopThreads on the server side.
A n... | diff --git a/common/src/main/java/org/corfudb/common/config/ConfigParamNames.java b/common/src/main/java/org/corfudb/common/config/ConfigParamNames.java
index 4dbaaa71dda..f660618dd5c 100644
--- a/common/src/main/java/org/corfudb/common/config/ConfigParamNames.java
+++ b/common/src/main/java/org/corfudb/common/config/C... | 7 | 7 | 3 | [{"id": "G0", "claim": "The static boolean field keepServerComponents should be renamed to something like reloadable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "keepServerComponents stays true after a restart, which is risky because restarts... | null |
CorfuDB__CorfuDB__3883 | CorfuDB/CorfuDB | 3,883 | defect | a9ffb8f6fa612a70e8e5d2d6ed5eabb7a2dde1f0 | f8518a092dafccb41fc0d91fcf883e43c9251b66 | Fault Detector/ClusterStateAggregator Bug Fix | ## Overview
This patch fixes a bug where incorrect aggregation of poll
reports leads to unnecessary cluster configurations. Specifically,
if the last poll fails to heartbeat one of the nodes, then
NodeConnectivity::connectivity would be coalesced as failed
despite succeeding in the previous polls.
Why ... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/management/ClusterStateAggregator.java b/infrastructure/src/main/java/org/corfudb/infrastructure/management/ClusterStateAggregator.java
index b531804d380..3f1634c0707 100644
--- a/infrastructure/src/main/java/org/corfudb/infrastructure/management/Clus... | 4 | 3 | 1 | [{"id": "G0", "claim": "The base case in getAggregatedState for a single collected cluster state (clusterStates.size() == 1) is redundant because it is already covered by the reduce() method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ... | null |
CorfuDB__CorfuDB__3884 | CorfuDB/CorfuDB | 3,884 | defect | a9ffb8f6fa612a70e8e5d2d6ed5eabb7a2dde1f0 | 7a9b9f0c8c9277a8394ad691e054232d9ff50760 | FileWatcher watches all kinds of events | ## Overview
Description:
On Linux, Files.move(a,b) will trigger DELETE event on file a, and CREATE event on file b. Add CREATE event kind to the watch service to fix missing file change issue.
Why should this be merged:
Fix missing file change notification issue.
Related issue(s) (if applicable): #<number>
... | diff --git a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
index a4eaf4c9fb0..828f6994e2c 100644
--- a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
+++ b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
@@ -361,11 +361... | 3 | 3 | 1 | [{"id": "G0", "claim": "The watcher should also handle ENTRY_DELETE (in the poll condition and in the watch registration) so the client reflects whatever is in the keystore path, including deletions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
CorfuDB__CorfuDB__3954 | CorfuDB/CorfuDB | 3,954 | defect | 280ce663a17082123f6232584dbe0c3b29bc242b | db17adbc1a83f66faf6707baa2a4cc263b14af71 | LR: event listener resubscribe onError | ## Overview
This change is to automatically resubscribe to the event listener when the streaming task encounters an error.
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no TODOs left in the code
- [ ] [Coding co... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/logreplication/infrastructure/LogReplicationEventListener.java b/infrastructure/src/main/java/org/corfudb/infrastructure/logreplication/infrastructure/LogReplicationEventListener.java
index e178edf3d87..aeeb3055552 100644
--- a/infrastructure/src/main... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR should also test the case where a StreamingException is thrown.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add this in the comments or test description (something like 'event id is empty so construction of ... | null |
CorfuDB__CorfuDB__3962 | CorfuDB/CorfuDB | 3,962 | defect | eba3ec923066fb4e485494b579572bc6dbc5c12d | fafffef2a556b5dd7c77ff70cf6af03473c0de3b | @disk-backed-table: make index alias optional | When defining secondary indexes, make index name (alias) optional. The previous implementation assumed that both the name and the path are mandatory.
## Overview
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no... | diff --git a/runtime/src/main/java/org/corfudb/runtime/collections/DiskBackedCorfuTable.java b/runtime/src/main/java/org/corfudb/runtime/collections/DiskBackedCorfuTable.java
index e666cadd9b3..211cc56209b 100644
--- a/runtime/src/main/java/org/corfudb/runtime/collections/DiskBackedCorfuTable.java
+++ b/runtime/src/mai... | 3 | 3 | 1 | [{"id": "G0", "claim": "The constructor should guard against populating the alias map entry when no alias is defined, rather than calling index.getAlias().get() unconditionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should use the ... | null |
CorfuDB__CorfuDB__3993 | CorfuDB/CorfuDB | 3,993 | defect | d8035daee37ec516e0d750a4e312fbc4a4fc772a | 9cc57a022a1bbbea3a4bf36b8705a7ecc078a3ef | Do Not Cache Remote Leader Info in NegotiatingState. | The Remote Leader information is centrally available in the FSM. Individual FSM states should not duplicate/cache it locally. Currently, NegotiatingState uses a local copy and does not update the FSM when needed. This leads to inconsistent behavior.
Description:
Why should this be merged:
Related issue(s) (... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/CorfuServerCmdLine.java b/infrastructure/src/main/java/org/corfudb/infrastructure/CorfuServerCmdLine.java
index f6a96747dfe..0ddada13497 100644
--- a/infrastructure/src/main/java/org/corfudb/infrastructure/CorfuServerCmdLine.java
+++ b/infrastructure/... | 4 | 3 | 1 | [{"id": "G0", "claim": "The REMOTE_LEADER_NOT_FOUND case should still be handled in NegotiatingState.processEvent even though the pull request removes it.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new wait-in-negotiating-state block in negoti... | null |
CorfuDB__CorfuDB__4060 | CorfuDB/CorfuDB | 4,060 | defect | 4880b057e5aa49dc6610069746f440d54629009f | ba9850c75b813f34ccbccf714394da20166aac3f | Dump multiple tables at once reusing connection | This allows triaging tools to simultaneously dump
several tables at once and re-use the connection made by the tool to CorfuServer saving time in setup & teardown.
Also make the output in full parseable json format for easy tooling. For example, it is now possible to check if a big table dump carries a record with so... | diff --git a/corfudb-tools/src/main/java/org/corfudb/browser/CorfuBrowserEditorCommands.java b/corfudb-tools/src/main/java/org/corfudb/browser/CorfuBrowserEditorCommands.java
index 1b2476f80c6..558bc8d778a 100644
--- a/corfudb-tools/src/main/java/org/corfudb/browser/CorfuBrowserEditorCommands.java
+++ b/corfudb-tools/s... | 7 | 2 | 1 | [{"id": "G0", "claim": "When an input row is skipped (no '$' separator or wrong number of parts), printTables should print an error or message indicating that the row was skipped instead of continuing silently.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
CorfuDB__CorfuDB__4073 | CorfuDB/CorfuDB | 4,073 | defect | 28eebc4bd17e11b6acd601f78e23ae6ad15785d5 | fe3277a1edc64d3cd38cc0774e5a2f39c2d13fa0 | ExpireAfterWrite Parameter for MVOCache Eviction Policy | Introduce ExpireAfterWrite Parameter for MVOCache Eviction Policy of InMemory Tables
## Overview
Description:
Why should this be merged:
Related issue(s) (if applicable): #<number>
## Checklist (Definition of Done):
- [ ] There are no TODOs left in the code
- [ ] [Coding conventions](https://githu... | diff --git a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
index d5502a58ce5..bd557368c3f 100644
--- a/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
+++ b/runtime/src/main/java/org/corfudb/runtime/CorfuRuntime.java
@@ -15,7 +15,6 ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Change the in-memory expiry parameter's type to Duration and rename it to mvoCacheExpiryInMemory so the two cache-expiry parameters are consistent (raised as a nit).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment exp... | null |
CorfuDB__CorfuDB__4095 | CorfuDB/CorfuDB | 4,095 | defect | 54115880fe7ae9b91fdafed2bd7f1eb3e0d20ba2 | 15692170cf54bd12b3fd222007560344d8842de4 | Silent Failures During Stream Sync | ## Overview
This PR addresses silent failures that happen during syncing: by not properly detecting trim gaps, updates can be lost or delivered out of order. The core issue stems from two root causes that propagate through the system on cluster reconfiguration and node restarts:
Bug 1: Incorrect trim mark updates... | diff --git a/infrastructure/src/main/java/org/corfudb/infrastructure/log/StreamLogFiles.java b/infrastructure/src/main/java/org/corfudb/infrastructure/log/StreamLogFiles.java
index ab8f572954d..c4c33ff3c8e 100644
--- a/infrastructure/src/main/java/org/corfudb/infrastructure/log/StreamLogFiles.java
+++ b/infrastructure/... | 2 | 1 | 1 | [{"id": "G0", "claim": "The forced assignment `a.trimMark = newTrimMark;` in merge() could be removed because trim() now updates the trim mark, making it redundant.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should poll for the serv... | null |
CortexReach__memory-lancedb-pro__161 | CortexReach/memory-lancedb-pro | 161 | defect | aa0ec8df682099b282cdd98c325231063d60650f | f9eef509411fa8082ed3ac7f76a038142c4f4226 | feat: 检索正确性修复 + 情境化 SupportInfo — 适配 master 架构 | ## 概述
本 PR 整合了原先针对 `main` 分支的两项改进(#80 检索正确性、#160 情境化 SupportInfo),重写适配到 `master` 分支的 OpenViking 三层架构(L0/L1/L2 + tier + decay),不修改 OpenViking 的核心结构。
> **注**:#80 已合入 `main`,#160 已关闭。由于 `master` 与 `main` 架构差异较大,本 PR 是基于 `master` 从零重写,非 cherry-pick。
---
## 一、检索正确性修复
在不改变 memory schema 和 Smart Memory lifecycle 的前提下,修复向... | diff --git a/cli.ts b/cli.ts
index 946cfb1c7..0781f2174 100644
--- a/cli.ts
+++ b/cli.ts
@@ -83,6 +83,7 @@ export function registerMemoryCLI(program: Command, context: CLIContext): void {
limit,
scopeFilter,
category,
+ source: "cli",
});
if (results.length === 0 && context.embedde... | 9 | 8 | 6 | [{"id": "G0", "claim": "The new tests test/smart-metadata-v2.mjs and test/vector-search-cosine.test.mjs are not wired into the `npm test` script at package.json:38, so CI cannot continuously protect these changes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
CortexReach__memory-lancedb-pro__212 | CortexReach/memory-lancedb-pro | 212 | defect | e7fbcc1d73857e24012471db9755a0e48350dd07 | 8f38371425d804d4da14f9823992dfc709b0fa44 | 修复标签查询的类型安全 + 扩展性 + 测试覆盖 | ## 问题
针对 #55 中提到的标签查询(如 `proj:AIF`)语义误报问题,本 PR 实现了 BM25-only + mustContain 方案,并解决了以下三个问题。
## 改动内容
### 1. 类型安全修复
- **问题**:BM25-only 路径返回的结果缺少 `sources.vector` 字段,下游代码访问时会报错
- **修复**:显式添加 `vector: undefined`,确保类型完整性
### 2. 扩展性增强
- **问题**:标签前缀硬编码,不支持其他标签类型
- **改进**:
- 新增 `tagPrefixes` 配置项(默认:`["proj", "env", "team",... | diff --git a/package-lock.json b/package-lock.json
index 1a43bb5cc..462e8eea1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,6 +11,7 @@
"dependencies": {
"@lancedb/lancedb": "^0.26.2",
"@sinclair/typebox": "0.34.48",
+ "apache-arrow": "18.1.0",
"openai": "^6.21.0"... | 10 | 10 | 3 | [{"id": "G0", "claim": "The package-lock.json changes are an unrelated npm-install side effect and should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "mustContain matching uses case-sensitive r.entry.text.includes(t), so queries d... | null |
CortexReach__memory-lancedb-pro__238 | CortexReach/memory-lancedb-pro | 238 | defect | 58ee1eadfd447a6cf4e02e1e212ac9afabfdbf3a | a943ed209cd030c19bd56c4da97c87612d46c989 | fix: prevent infinite recursion in embedSingle() for CJK text (replaces PR #215) | ## Summary
This PR addresses the two blocking issues raised in PR #215:
### Issue 1: Timeout not truly canceling requests
The original PR used Promise.race() + setTimeout() which only rejects the promise but doesn't cancel the underlying HTTP request.
**Fix:**
- Use AbortController for TRUE request cancellation
- Ti... | diff --git a/index.ts b/index.ts
index d1c20c314..13b6491ee 100644
--- a/index.ts
+++ b/index.ts
@@ -2030,8 +2030,20 @@ const memoryLanceDBProPlugin = {
const agentId = resolveHookAgentId(ctx?.agentId, (event as any).sessionKey);
const accessibleScopes = scopeManager.getAccessibleScopes(agentId);
... | 8 | 7 | 3 | [{"id": "G0", "claim": "Simplify withTimeout(): the separate timeoutPromise/abort-listener rejection path can produce different error messages for the same timeout, and the timer should be cleared in .finally() so successful calls do not leave a dangling timer.", "category": "design", "verdict": "supported", "priority"... | null |
CortexReach__memory-lancedb-pro__268 | CortexReach/memory-lancedb-pro | 268 | defect | 858d7c5fe249a59ab9e80221aca643902d9d297a | ad8c5ddd19a6e77f36e2464a63b7d166e1bd7d0f | fix: add NVIDIA NIM provider profile for input_type embedding field | ## Summary
Supersedes #219. Implements the fix properly using the provider profile architecture from #216.
- Adds "nvidia" to `EmbeddingProviderProfile` type
- Detects NVIDIA NIM via `*.nvidia.com` base URLs, `nvidia/*` model prefixes, and `nv-embed*` model names
- Sets `taskField: "input_type"` with value mapp... | diff --git a/src/embedder.ts b/src/embedder.ts
index 379c648be..761c24bf2 100644
--- a/src/embedder.ts
+++ b/src/embedder.ts
@@ -105,6 +105,7 @@ type EmbeddingProviderProfile =
| "openai"
| "jina"
| "voyage-compatible"
+ | "nvidia"
| "generic-openai-compatible";
interface EmbeddingCapabilities {
@@ -204... | 9 | 8 | 4 | [{"id": "G0", "claim": "Setting dimensionsField to null for the new nvidia profile means buildPayload() never forwards embedding.dimensions even though the constructor still treats that config as the expected vector size, so with a config like dimensions: 384 the change requests the model's default 2048-d output and im... | null |
CortexReach__memory-lancedb-pro__383 | CortexReach/memory-lancedb-pro | 383 | defect | 1181e43b13ff66b165fe285ec935688ac09a8912 | 6782a1dfee75e7ceffee5750c8259699dbf23124 | fix: use native fetch for Ollama embedding to ensure AbortController works | ## Problem
When using Ollama as the embedding provider, the \embedQuery\ timeout does not reliably abort stalled Ollama HTTP requests, causing the gateway-level 120s timeout.
## Root Cause
OpenAI SDK HTTP client does not reliably abort Ollama TCP connections when AbortController.abort() fires in Node.js.
## Fix
Us... | diff --git a/src/embedder.ts b/src/embedder.ts
index bcbbaa76e..2905a8c03 100644
--- a/src/embedder.ts
+++ b/src/embedder.ts
@@ -511,12 +511,73 @@ export class Embedder {
return /rate.limit|quota|too many requests|insufficient.*credit|429|503.*overload/i.test(msg);
}
+ /**
+ * Detect if the configured base... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new testOllamaAbortWithNativeFetch() never exercises abort propagation because the Embedder points at the hardcoded http://127.0.0.1:11434/v1 instead of the withServer baseURL, so the request fails immediately with connection refusal, the slow handler and its abort/destroy behavior are never... | null |
CortexReach__memory-lancedb-pro__444 | CortexReach/memory-lancedb-pro | 444 | defect | 5c477c1191fd8f3f8b14adabbbf9dc789ca048ef | effabe284b8b3de0e9ad321b75bdf55177e1b512 | fix: filter subagent runtime wrappers from auto-capture | ## Summary
This PR prevents smart extraction from storing subagent runtime scaffolding such as `[Subagent Context]` and `[Subagent Task]` as long-term memories.
Closes #443.
## What changed
- filter wrapper-only subagent payloads during auto-capture ingress
- strip runtime wrapper lines in `stripEnvelopeMetadata()`... | diff --git a/index.ts b/index.ts
index 212dedecc..196f4a4ed 100644
--- a/index.ts
+++ b/index.ts
@@ -712,6 +712,8 @@ const AUTO_CAPTURE_INBOUND_META_SENTINELS = [
const AUTO_CAPTURE_SESSION_RESET_PREFIX =
"A new session was started via /new or /reset. Execute your Session Startup sequence now";
const AUTO_CAPTURE_... | 2 | 2 | 2 | [{"id": "G0", "claim": "stripAutoCaptureRuntimeWrappers() returns an empty string for any message that starts with a [Subagent Context] or [Subagent Task] wrapper, so in agent_end ingestion a payload mixing wrapper lines with real user content is dropped entirely and its facts never reach extraction; the filter should ... | null |
CortexReach__memory-lancedb-pro__522 | CortexReach/memory-lancedb-pro | 522 | defect | 3e3069261bb819097a98eb17ba8624a582075417 | 52caf2b77e47463747b346e685e2c1c31a07ad00 | fix: isOwnedByAgent derived ownership (#448) | ## Summary
Fixes \isOwnedByAgent\ in \src/reflection-store.ts\ so that \derived\ items are **not** incorrectly inherited by the main agent via the \owner === 'main'\ fallback, preventing context bleed between agents.
Also fixes a P1 bug where the \_initialized\ flag was set **before** \
egister()\ completed — if init... | diff --git a/index.ts b/index.ts
index 6cb1e2d58..a6580bb87 100644
--- a/index.ts
+++ b/index.ts
@@ -1614,9 +1614,7 @@ const pluginVersion = getPluginVersion();
// ============================================================================
// WeakSet keyed by API instance — each distinct API object tracks its own ... | 14 | 9 | 6 | [{"id": "G0", "claim": "The cli-smoke CI check is failing and must be fixed, or its root cause clearly explained, before review and merge.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The full test suite terminates with an unhandled EADDRINUSE on port 11... | null |
CortexReach__memory-lancedb-pro__593 | CortexReach/memory-lancedb-pro | 593 | defect | 0988a46ebae8d942d85683374be996a44acfec43 | a799d65c10273d64fe00601a85f6d93b087ee10b | fix: add Windows path support in toImportSpecifier + add tests (#575) | ## Summary
Fix `toImportSpecifier()` to handle Windows drive-letter paths (`C:\...` / `D:/...`) by converting them to `file://` URLs, and add the Windows APPDATA fallback from the closed PR #576.
## Why This PR Exists (vs. the Closed PR #576)
PR #576 was closed because the initial implementation had a **critical bug... | diff --git a/index.ts b/index.ts
index 4baf40f9c..90e657486 100644
--- a/index.ts
+++ b/index.ts
@@ -416,6 +416,8 @@ function toImportSpecifier(value: string): string {
if (!trimmed) return "";
if (trimmed.startsWith("file://")) return trimmed;
if (trimmed.startsWith("/")) return pathToFileURL(trimmed).href;
+... | 10 | 9 | 6 | [{"id": "G0", "claim": "toImportSpecifier() only converts drive-letter Windows paths, so UNC absolute paths like \\\\server\\share\\... are still returned unchanged and import(specifier) fails when the APPDATA fallback points to a UNC location; please extend toImportSpecifier to treat UNC roots as filesystem paths and ... | null |
CortexReach__memory-lancedb-pro__602 | CortexReach/memory-lancedb-pro | 602 | defect | 0988a46ebae8d942d85683374be996a44acfec43 | c22af4ad560494f2b0b291197dd4cde5d5a5afcb | fix: preserve newlines and show metadata in auto-recall | ## Summary
Two changes to improve auto-recall context injection quality:
1. **Preserve newlines in `sanitizeForContext`** — replace `\r\n` with literal `\n` instead of collapsing to a space. Line breaks carry semantic weight, especially in non-Latin scripts (Hebrew, CJK, Arabic) where a newline separates distinct tho... | diff --git a/index.ts b/index.ts
index 4baf40f9c..d5f422a13 100644
--- a/index.ts
+++ b/index.ts
@@ -1357,7 +1357,7 @@ export function detectCategory(
function sanitizeForContext(text: string): string {
return text
- .replace(/[\r\n]+/g, " ")
+ .replace(/[\r\n]+/g, "\\n")
.replace(/<\/?[a-zA-Z][^>]*>/g... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new metadata prefix completely removes the canonical tierPrefix, displayCategory and scope signals (and becomes an empty string for entries without folder/source/timestamp), which is a regression for general users; it should append metadata alongside the canonical `[tier][category:scope]` pr... | null |
CortexReach__memory-lancedb-pro__611 | CortexReach/memory-lancedb-pro | 611 | defect | 0988a46ebae8d942d85683374be996a44acfec43 | d0d15573c49517365e564d7289ead24ccf63127b | fix: 5 memory leaks + subagent blocking + AliceLJY nit fixes | ## Summary
Fixes 5 memory leak issues causing heap out of memory (Issue #598).
This PR was split from PR #603 to isolate Issue #598 (memory leaks). Issue #601 (subagent blocking) is now in PR #613.
---
## Root Cause
The OOM was caused by unbounded memory growth from:
1. `store.ts`: Unbounded promise chain in `runS... | diff --git a/index.ts b/index.ts
index 4baf40f9c..bad08306e 100644
--- a/index.ts
+++ b/index.ts
@@ -2221,6 +2221,10 @@ const memoryLanceDBProPlugin = {
const AUTO_RECALL_TIMEOUT_MS = parsePositiveInt(config.autoRecallTimeoutMs) ?? 5_000; // configurable; default raised from 3s to 5s for remote embedding APIs ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the destroy() shutdown path, calling doFlush() directly bypasses the flushPromise gate and can run concurrently with an in-flight flush(), so both flushes can compute metadata from stale pre-update reads and overwrite each other, silently dropping access counts during teardown.", "category": ... | null |
CortexReach__memory-lancedb-pro__628 | CortexReach/memory-lancedb-pro | 628 | defect | 0988a46ebae8d942d85683374be996a44acfec43 | bfe62369cec06ddf692abab4e5adb8f82df40c7a | fix: use absolute default path for mdMirror fallback directory | ## Summary
- Fixes the mdMirror fallback directory resolving to `{CWD}/memory-md` instead of a stable absolute path when `mdMirror.dir` is not configured
- Adds `getDefaultMdMirrorDir()` following the same pattern as the existing `getDefaultDbPath()` — resolves to `~/.openclaw/memory/md-mirror`
- Adds tests for the ne... | diff --git a/index.ts b/index.ts
index 4baf40f9c..f449514b7 100644
--- a/index.ts
+++ b/index.ts
@@ -245,6 +245,11 @@ function getDefaultWorkspaceDir(): string {
return join(home, ".openclaw", "workspace");
}
+function getDefaultMdMirrorDir(): string {
+ const home = homedir();
+ return join(home, ".openclaw", ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `export { getDefaultMdMirrorDir };` statement inserted between the JSDoc block and `resetRegistration()` makes that JSDoc (with its `@public` tag) attach to the export statement instead of `resetRegistration()`, so the export should be moved above the JSDoc or the JSDoc moved back next to th... | null |
CortexReach__memory-lancedb-pro__713 | CortexReach/memory-lancedb-pro | 713 | defect | 02b97bb7ba0123c127179b3f0d8f249b136fce11 | b76f5afa6c3154593f43824087f10004155fa95c | fix: model fallback to config.llm when resolveAgentPrimaryModelRef returns undefined (PR #618 continuation) | ## Summary
This PR continues the work from PR #618 with a clean diff.
## Changes
1. **index.ts** - Add `inferProviderFromBaseURL()` function:
- Uses URL hostname with `.endsWith(".suffix")` to prevent subdomain spoofing
- Supports minimax.io, openai.com, anthropic.com
2. **generateReflectionText()** - Model f... | diff --git a/index.ts b/index.ts
index 25b2012fd..818127b22 100644
--- a/index.ts
+++ b/index.ts
@@ -733,6 +733,25 @@ function splitProviderModel(modelRef: string): { provider?: string; model?: stri
return { model: s };
}
+
+/**
+ * When modelRef is a bare name (no / prefix), infer provider from baseURL.
+ * Use ... | 4 | 1 | 1 | [{"id": "G0", "claim": "generateReflectionText pulls llmConfig?.model through a cast and calls splitProviderModel(modelRef) with no runtime type check, so a non-string truthy llm.model (e.g. a number or object) makes splitProviderModel call .trim() and throw; guard the fallback with a typeof string check before splitti... | null |
CortexReach__memory-lancedb-pro__723 | CortexReach/memory-lancedb-pro | 723 | defect | 0545c91e03fc136995cb5dff635ba0d99ac1ee44 | 2bde62de2b6c800fcc4f89776e8720ba7d4636f9 | fix(regex-fallback): #675 bulkStore + batch/fallback dedup + mdMirror isolation + metadata failure isolation | ## Summary
Fixes Bug #3 — a regression introduced by PR #678 / Issue #675.
### Problem
When the regex-fallback path captures multiple texts in a single batch and none exist in the database yet, the per-entry dedup pre-check passes for all of them. This allows near-duplicate texts (e.g. two reformulations of the same... | diff --git a/index.ts b/index.ts
index f9cfe29bb..2c34a2c3c 100644
--- a/index.ts
+++ b/index.ts
@@ -3015,8 +3015,17 @@ const memoryLanceDBProPlugin = {
`memory-lancedb-pro: regex fallback found ${toCapture.length} capturable text(s) for agent ${agentId}`,
);
- // Store each capturabl... | 7 | 2 | 2 | [{"id": "G0", "claim": "The two standalone `);` tokens added in the fallback block make index.ts unparsable, so the plugin fails whenever the module is loaded.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new in-batch dedup compares vectors wi... | null |
CosmWasm__wasmd__1050 | CosmWasm/wasmd | 1,050 | defect | 319a9482a4b690cabe379ac3ee03880116904173 | e6b993cf6f0d70993839527e40925603ade0622f | Permission | Close #1020 | diff --git a/x/wasm/keeper/authz_policy.go b/x/wasm/keeper/authz_policy.go
index 1a222719a8..6d00a4f7bd 100644
--- a/x/wasm/keeper/authz_policy.go
+++ b/x/wasm/keeper/authz_policy.go
@@ -11,6 +11,7 @@ type AuthorizationPolicy interface {
CanInstantiateContract(c types.AccessConfig, actor sdk.AccAddress) bool
CanMod... | 7 | 7 | 2 | [{"id": "G0", "claim": "The create() flow should collapse the inline authorization switch into a single CanCreateCode call so the decision logic lives entirely in the pluggable AuthorizationPolicy implementations (separation of concerns), e.g. a 3-liner `if !authZ.CanCreateCode(chainDefaults, creator, instantiateAccess... | null |
CosmWasm__wasmd__1053 | CosmWasm/wasmd | 1,053 | defect | d8ebe64076c296aee61820bbd42fbe7994c0235c | 2c081f5e460ee32c839771e83b7039d54f08f794 | Add test for contract | #660
add test case: Can a contract close a wasm ibc channel that is not owned by the contract? | diff --git a/x/wasm/keeper/keeper.go b/x/wasm/keeper/keeper.go
index f29f6e18ed..87cfb30d97 100644
--- a/x/wasm/keeper/keeper.go
+++ b/x/wasm/keeper/keeper.go
@@ -960,6 +960,26 @@ func (k Keeper) setAccessConfig(ctx sdk.Context, codeID uint64, caller sdk.AccAd
return nil
}
+func (k *Keeper) HandleContractResponse(... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Keeper's HandleContractResponse method should not be exported, or at most exposed for tests only.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CosmWasm__wasmd__1076 | CosmWasm/wasmd | 1,076 | defect | a9ce273e3c1c4f7224e1293fcf1bfd5a50e4fe17 | 56223126ac8fe584c4168fcc8b6e6047caf2650a | Change genesis preserving contract history | Close #878 | diff --git a/app/sim_test.go b/app/sim_test.go
index 41f729099e..ef858bc919 100644
--- a/app/sim_test.go
+++ b/app/sim_test.go
@@ -196,6 +196,7 @@ func TestAppImportExport(t *testing.T) {
// delete persistent tx counter value
ctxA.KVStore(app.keys[wasm.StoreKey]).Delete(wasmtypes.TXCounterPrefix)
+ // still need ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should also preserve the contract's ContractCodeHistory on genesis export/import (the other half of issue #878), or alternatively this PR should merge and the work be finished in a follow-up PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CosmWasm__wasmd__1095 | CosmWasm/wasmd | 1,095 | defect | 48ef13db421b88824b02b5f236363b784edf4b71 | 3ce27e14265d7b511c128137818872eed3d16575 | Enable larger wasm bytecode upload for gov proposals | Resolves #1038 | diff --git a/README.md b/README.md
index c8fc9549f5..23fc921532 100644
--- a/README.md
+++ b/README.md
@@ -209,6 +209,7 @@ file of your custom chain.
* `wasmtypes.MaxLabelSize = 64` to set the maximum label size on instantiation (default 128)
* `wasmtypes.MaxWasmSize=777000` to set the max size of compiled wasm to ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The genesis import path validates code bytes against MaxWasmSize, so importing genesis with gov-proposal-sized contracts would fail; it needs to use MaxProposalWasmSize.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 4MB ... | null |
CosmWasm__wasmd__1121 | CosmWasm/wasmd | 1,121 | defect | f3ebd929cc83592b387b5535c6480a9365a65572 | fc7e0b20e4e45c32fe297cf621b201e3a63e20fd | Add UpdateInstantiateConfig command | Resolves #843 | diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md
index 54d3c82f17..6842734303 100644
--- a/docs/proto/proto-docs.md
+++ b/docs/proto/proto-docs.md
@@ -95,6 +95,8 @@
- [MsgStoreCodeResponse](#cosmwasm.wasm.v1.MsgStoreCodeResponse)
- [MsgUpdateAdmin](#cosmwasm.wasm.v1.MsgUpdateAdmin)
- [Msg... | 4 | 4 | 1 | [{"id": "G0", "claim": "ValidateBasic for MsgUpdateInstantiateConfig should also check that CodeID is not 0 (nit).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ValidateBasic for MsgUpdateInstantiateConfig should ensure NewInstantiatePermission is ... | null |
CosmWasm__wasmd__1163 | CosmWasm/wasmd | 1,163 | defect | c386f32b5801e2bfb366ca4e7eaa422f92a26c65 | a6a48eae79b471307b407bd205a05dc941cdc35b | Disallow only address permission | Resolves #1144
Reject `InstantiateByAddress` config in
* CLI
* MsgStoreCode
* MsgUpdateInstantiateConfig
so that no new state with deprecated permission should enter the system.
`InstantiateByAddress` would still work with the gov process to support proposals in flight.
| diff --git a/x/wasm/client/cli/gov_tx.go b/x/wasm/client/cli/gov_tx.go
index 4d1eb92870..36ba6c334f 100644
--- a/x/wasm/client/cli/gov_tx.go
+++ b/x/wasm/client/cli/gov_tx.go
@@ -82,14 +82,11 @@ func ProposalStoreCodeCmd() *cobra.Command {
}
cmd.Flags().String(flagRunAs, "", "The address that is stored as code cr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message for the disallowed instantiate-by-address flag should read \"not supported anymore. Use: %s\" (missing space before the colon).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__1164 | CosmWasm/wasmd | 1,164 | defect | c386f32b5801e2bfb366ca4e7eaa422f92a26c65 | 0f7782ceeb0e20d226f02040a1bd85ff1fc64d0d | Better to sdk coin convertion | Resolves #1118
* drops empty coins
* merges duplicate denoms
| diff --git a/x/wasm/keeper/handler_plugin.go b/x/wasm/keeper/handler_plugin.go
index c23a09b020..82c9dbdf47 100644
--- a/x/wasm/keeper/handler_plugin.go
+++ b/x/wasm/keeper/handler_plugin.go
@@ -209,6 +209,9 @@ func NewBurnCoinMessageHandler(burner types.Burner) MessageHandlerFunc {
if err != nil {
return nil,... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a test that merging coins of the same denom where one amount is zero (2foo + 0foo = 2foo) works as expected, to ensure Coins.Add does not do something strange.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
CosmWasm__wasmd__1179 | CosmWasm/wasmd | 1,179 | defect | f9fa04eab3aedd442d511a0c2b5264dfbd5daff8 | ee181b1e1773f45707f91c7f44754ea0f9e7a7c6 | [Do not merge] Emit events for setContractAdmin + setAccessConfig | Resolves #1173
I had started some work already before I saw #1177 . In order to encourage community contributions, I would put this PR on hold until further discussion with @tkxkd0159
| diff --git a/x/wasm/keeper/keeper.go b/x/wasm/keeper/keeper.go
index 5adb2075fd..2cee689a8d 100644
--- a/x/wasm/keeper/keeper.go
+++ b/x/wasm/keeper/keeper.go
@@ -581,8 +581,15 @@ func (k Keeper) setContractAdmin(ctx sdk.Context, contractAddress, caller, newAd
if !authZ.CanModifyContract(contractInfo.AdminAddr(), cal... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test spec field `expEvts` should be named to say it holds the expected attributes of the first event rather than whole events.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__122 | CosmWasm/wasmd | 122 | defect | 4ab0544c1becbdf0fe115603441e24397e099423 | bf25779923bbd561cdce73cbf4604c57527e2ca4 | Migrate contract backend functionality with go-cosmwasm stub impl | Start migrate contract functionality
* Resolves #116
* Resolves #118
--
- [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [x] Wrote tests
- [ ] Updated relevant documentation (`docs/`)
- [x] Added relevant `godoc` [comments](https://blog.golang.o... | diff --git a/go.mod b/go.mod
index 25bfe342a9..2679801ece 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/CosmWasm/wasmd
go 1.13
require (
- github.com/CosmWasm/go-cosmwasm v0.8.0
+ github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200603082939-5454cf9c526a
github.com/btcsuite/btcd v0.0.0-201908070054... | 6 | 5 | 3 | [{"id": "G0", "claim": "The gas metering in the new Migrate code needs to be adjusted to the gas metering changes merged in #115.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "After a finished migration the keeper should dispatch the messages retur... | null |
CosmWasm__wasmd__1225 | CosmWasm/wasmd | 1,225 | defect | 257552ffd32595b9f5bc2cbda3222f800c5da620 | fb40d0ba5e95975debd6ddbc4acde235f81e4b98 | Return IBC packet sequence number | Resolves #1154 | diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md
index bed0967db1..1d201ced88 100644
--- a/docs/proto/proto-docs.md
+++ b/docs/proto/proto-docs.md
@@ -37,6 +37,7 @@
- [cosmwasm/wasm/v1/ibc.proto](#cosmwasm/wasm/v1/ibc.proto)
- [MsgIBCCloseChannel](#cosmwasm.wasm.v1.MsgIBCCloseChannel)
- [MsgI... | 7 | 5 | 0 | [{"id": "G0", "claim": "The field comment in ibc.proto should read \"Sequence number of the IBC packet sent\" instead of \"sequence number of the transfer packet sent\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no need to append the... | null |
CosmWasm__wasmd__1233 | CosmWasm/wasmd | 1,233 | defect | ddedb03df4475de7a4ce209bf1554ac4c1bc8898 | f2fae7059ad935a7de7d9c04ea85486d9869ca44 | Return IBC packet sequence number (backport #1225) | This is an automatic backport of pull request #1225 done by [Mergify](https://mergify.com).
Cherry-pick of 4f1c57fc12b65b064ea8b91d69be78602826d12d has failed:
```
On branch mergify/bp/develop_sdk47/pr-1225
Your branch is up to date with 'origin/develop_sdk47'.
You are currently cherry-picking commit 4f1c57f.
(fix c... | diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md
index 956d953fe1..9c609e8b4a 100644
--- a/docs/proto/proto-docs.md
+++ b/docs/proto/proto-docs.md
@@ -37,6 +37,7 @@
- [cosmwasm/wasm/v1/ibc.proto](#cosmwasm/wasm/v1/ibc.proto)
- [MsgIBCCloseChannel](#cosmwasm.wasm.v1.MsgIBCCloseChannel)
- [MsgI... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added code contains unresolved merge-conflict markers in handler_plugin.go, leaving the HEAD-side SendPacket block unreachable.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
CosmWasm__wasmd__1234 | CosmWasm/wasmd | 1,234 | defect | 4f1c57fc12b65b064ea8b91d69be78602826d12d | 7ccb91e327c8a03877b49f7a129537d5b13a4a18 | Fix client checksum verification | Resolves #1232
Support raw and gzipped source codes in CLI checksum verification. // fyi: @orkunkl | diff --git a/x/wasm/client/cli/gov_tx.go b/x/wasm/client/cli/gov_tx.go
index 36ba6c334f..c516be2932 100644
--- a/x/wasm/client/cli/gov_tx.go
+++ b/x/wasm/client/cli/gov_tx.go
@@ -9,6 +9,8 @@ import (
"strconv"
"strings"
+ "github.com/CosmWasm/wasmd/x/wasm/ioutils"
+
"github.com/docker/distribution/reference"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use the test spec's own srcPath field instead of hardcoding \"../../keeper/testdata/hackatom.wasm\" in the call to parseStoreCodeArgs, so each spec is exercised with the input file it defines (including the gzip case) before merging.", "category": "testing", "verdict": "supported", "priority": "... | null |
CosmWasm__wasmd__124 | CosmWasm/wasmd | 124 | defect | 81d8560d414d7580ee8adb101f5dbce20815ba98 | f2c417e678a0aeb722df152a955da196191f5db6 | Update contract admin | Resolves #117
--
- [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [x] Wrote tests
- [ ] Updated relevant documentation (`docs/`)
- [x] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [x] Added a relevant change... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7a94a4f1e5..0b77ed8f5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -50,7 +50,8 @@ Base64 encoded transactions.
- `raw-bytes` convert raw-bytes to hex
* (wasmcli) [\#191](https://github.com/cosmwasm/wasmd/pull/191) Add cmd `decode-tx`, decodes a tx from hex or bas... | 2 | 2 | 0 | [{"id": "G0", "claim": "handleUpdateContractAdmin needlessly filters message events and could simply take all events from the event manager, as other handlers do.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetContractInfo returns *ContractInfo while ... | null |
CosmWasm__wasmd__1262 | CosmWasm/wasmd | 1,262 | defect | c245f7d00f9209f7838a52de9d6cb8582f545cfa | 340a93d37978b615a8be1923113d4bfe65fc73de | Set SDK version to v0.47x.0 | Resolves #1148
🎉 SDK [v0.47.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0) | diff --git a/INTEGRATION.md b/INTEGRATION.md
index 253d1f71e0..cada821a80 100644
--- a/INTEGRATION.md
+++ b/INTEGRATION.md
@@ -19,6 +19,8 @@ hardware it runs on.
| wasmd | Cosmos SDK |
|:-----:|:----------:|
+| v0.40 | v0.47.0 |
+| v0.31 | v0.45.14 |
| v0.30 | v0.45.11 |
| v0.29 | v0.45.8 |
| v0.28 | ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The buf dependency should be pinned by the v0.47.0 tag instead of a raw commit hash, and buf mod update must be run afterwards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__1357 | CosmWasm/wasmd | 1,357 | defect | 83b5be83848cd0b9ac7de43372b6cf8d106b7bca | 9a7b1bfb5697899a0f2a5cef99b41df56f779641 | More verbose error message (backport #1354) | Resolves #1342
backported | diff --git a/x/wasm/ioutils/ioutil.go b/x/wasm/ioutils/ioutil.go
index a34a43e9ea..b671e5ad65 100644
--- a/x/wasm/ioutils/ioutil.go
+++ b/x/wasm/ioutils/ioutil.go
@@ -5,13 +5,15 @@ import (
"compress/gzip"
"io"
+ errorsmod "cosmossdk.io/errors"
+
"github.com/CosmWasm/wasmd/x/wasm/types"
)
// Uncompress expe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR added an unresolved git merge-conflict block (<<<<<<< HEAD / ======= / >>>>>>>) in x/wasm/keeper/keeper.go, making the flagged return statement unreachable; it should be resolved before merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
CosmWasm__wasmd__1402 | CosmWasm/wasmd | 1,402 | defect | 7409aea6abd18c03f6126650b6d254d73fce01d6 | fbd0d8824977ab164a1eb751922103a963396632 | Feat : Improved Proposal validations | closes: #1184
Prevented 0 and duplicate Code IDs in PinCodesProposal, UnpinCodesProposal, UpdateInstantiateConfigProposal | diff --git a/x/wasm/types/errors.go b/x/wasm/types/errors.go
index 297f34d530..1f96d5b32d 100644
--- a/x/wasm/types/errors.go
+++ b/x/wasm/types/errors.go
@@ -85,6 +85,7 @@ var (
ErrNoSuchCodeFn = WasmVMFlavouredErrorFactory(sdkErrors.Register(DefaultCodespace, 28, "no such code"),
func(id uint64) error { return w... | 7 | 7 | 2 | [{"id": "G0", "claim": "The new ErrZero error should be dropped in favour of the generic ErrInvalid, following the repository's convention of fewer, more generic error types.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The zero-code-ID checks should r... | null |
CosmWasm__wasmd__1412 | CosmWasm/wasmd | 1,412 | defect | f3f69a639b5128400c44a4d835e5f365721bd8e3 | 00d5f7f0c822ec5db69bc9ad0cbcccbb0bd06b1c | Feat : Trimmed label to prevent white spaces | closes #1183
The aim of this pr is to prevent white spaces in labels by either silent trimming before storing or to fail when the label is not trimmed | diff --git a/x/wasm/types/proposal.go b/x/wasm/types/proposal.go
index 468f45b177..99d27db989 100644
--- a/x/wasm/types/proposal.go
+++ b/x/wasm/types/proposal.go
@@ -208,6 +208,10 @@ func (p InstantiateContractProposal) ValidateBasic() error {
if p.CodeID == 0 {
return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, ... | 4 | 4 | 1 | [{"id": "G0", "claim": "The untrim/trim logic in InstantiateContractProposal.ValidateBasic should be simplified to silently trim: replace the keep-or-trim block with an unconditional `p.Label = strings.TrimSpace(p.Label)`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
CosmWasm__wasmd__1419 | CosmWasm/wasmd | 1,419 | defect | e6d451bf9dd96a555b10e72aa3c0f6b820d34684 | 082717ed302ab635864e0f3d2f649f9709829eef | chore: lint main with latest golangci-lint | This PR is a regular update of the linter for wasmd
- bump golang and linter in ci
- cleanup lints
| diff --git a/.circleci/config.yml b/.circleci/config.yml
index f322a02247..1b8aa683f9 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3,7 +3,7 @@ version: 2.1
executors:
golang:
docker:
- - image: cimg/go:1.19
+ - image: cimg/go:1.20
commands:
make:
@@ -61,7 +61,7 @@ jobs:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please keep the Go version bump (CI image cimg/go:1.19 -> 1.20) out of this lint PR and do it in a separate PR, since the repository is still on Go 1.19.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CosmWasm__wasmd__1484 | CosmWasm/wasmd | 1,484 | defect | 17634778313992a5a9f6f6741cc728b9fb6c78dc | 7a2dab8e96613d3d34b66079ee7cc12601298157 | Deprecate alias.go | Resolves #1456 | diff --git a/app/app.go b/app/app.go
index 03eb468071..4d46e1c9f6 100644
--- a/app/app.go
+++ b/app/app.go
@@ -146,15 +146,15 @@ var (
// GetEnabledProposals parses the ProposalsEnabled / EnableSpecificProposals values to
// produce a list of enabled proposals to pass into wasmd app.
-func GetEnabledProposals() []w... | 1 | 1 | 1 | [{"id": "G0", "claim": "Bring back x/wasm/alias.go and mark everything in it as deprecated so downstream users of wasmd as a library get a softer transition before it is deleted in the next version.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
CosmWasm__wasmd__1494 | CosmWasm/wasmd | 1,494 | defect | 52a7a6ad2c00270867e1979eed1abb48c9ce04df | 3fbb7588f379ec2a19353b8245a0b7beb7c13323 | Allow better override of wasmVM in x/wasm keeper | The current code always creates one VM and then possibly overrides it with the options. However, creating the wasmVm will also create directories and initialize Rust structs that are not cleanly deleted. It would be better to never create it in the first place if it is overridden later.
This PR pushes the initializa... | diff --git a/x/wasm/keeper/keeper_cgo.go b/x/wasm/keeper/keeper_cgo.go
index 7f306516f0..eb322e9cd9 100644
--- a/x/wasm/keeper/keeper_cgo.go
+++ b/x/wasm/keeper/keeper_cgo.go
@@ -35,15 +35,11 @@ func NewKeeper(
authority string,
opts ...Option,
) Keeper {
- wasmer, err := wasmvm.NewVM(filepath.Join(homeDir, "wasm"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The implementation of lazily creating the wasmVM only when no option set it conflicts with WithWasmEngineDecorator, which requires the VM object to already exist; the author should come up with a solution.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
CosmWasm__wasmd__1522 | CosmWasm/wasmd | 1,522 | defect | 6ec360028a0203ed24ba6b448b344beecd97eb42 | 36788261c0bdcf72371901d2f8794e4b99e04925 | Minor chore | Minor updates
* extract `contains` helper method
* additional test cases
| diff --git a/x/wasm/keeper/msg_server.go b/x/wasm/keeper/msg_server.go
index 7c0d524ab5..ace3059d66 100644
--- a/x/wasm/keeper/msg_server.go
+++ b/x/wasm/keeper/msg_server.go
@@ -375,22 +375,13 @@ func (m msgServer) AddCodeUploadParamsAddresses(goCtx context.Context, req *type
}
addresses := params.CodeUploadAcce... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new \"add existing address\" test case duplicates the case already covered by \"authority cannot add existing addresses when permission is any of addresses\", so one of the two should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
CosmWasm__wasmd__1545 | CosmWasm/wasmd | 1,545 | defect | ae964a83d24a24fdfed9c8de89592b15956faf57 | 59b0df76d1ab4c4bad251257b550d2dffc10035d | marshaler to codec | SDK has changed verbiage and this PR changes the term "marshaler" to
codec to match
| diff --git a/app/app.go b/app/app.go
index 8da2b76d28..5ad9499835 100644
--- a/app/app.go
+++ b/app/app.go
@@ -313,7 +313,7 @@ func NewWasmApp(
) *WasmApp {
encodingConfig := MakeEncodingConfig()
- appCodec, legacyAmino := encodingConfig.Marshaler, encodingConfig.Amino
+ appCodec, legacyAmino := encodingConfig.Cod... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the local variable `marshaler` to `codec` in TestIBCFeesTransfer (line 32) and TestIBCFeesWasm (line 117) so the variable name matches the `Codec` field of EncodingConfig that this PR renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
CosmWasm__wasmd__1587 | CosmWasm/wasmd | 1,587 | defect | 78b5af29a26a2752b9216868246a3e7105086030 | a400aeb459b3c8f91fe5efe4942c919a47c4e2ec | Remove legacy gov proposal dependencies | Resolves #1583 | diff --git a/README.md b/README.md
index a2dd5c05ad..542b98a3d7 100644
--- a/README.md
+++ b/README.md
@@ -198,9 +198,6 @@ Available flags:
* `-X github.com/CosmWasm/wasmd/app.NodeDir=.corald` - set the config/data directory for the node (default `~/.wasmd`)
* `-X github.com/CosmWasm/wasmd/app.Bech32Prefix=coral` ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The legacy gov router must not be fully removed from app.go, because it is still used by some modules and may still be needed for in-flight proposals.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be fine to just re... | null |
CosmWasm__wasmd__1605 | CosmWasm/wasmd | 1,605 | defect | 11496534c617b4bc1e4f32ef5c95d88d44e9f219 | 36fbddd4d72c6f573690f6b54c0d72834bb761f5 | Add logging for query err before redacting | Closes #1593 | diff --git a/x/wasm/keeper/query_plugins.go b/x/wasm/keeper/query_plugins.go
index 01b764f14d..420cc30c66 100644
--- a/x/wasm/keeper/query_plugins.go
+++ b/x/wasm/keeper/query_plugins.go
@@ -71,6 +71,7 @@ func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) (
}
// Issue #759 - we don't r... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use debug instead of Info level for the \"Redacting submessage error\" log line so it does not confuse with extra output.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__1632 | CosmWasm/wasmd | 1,632 | defect | 7dba5c7c73e86e7e6f5fbdd14aa93360a671d172 | b9134e2bf2b77b413bdfdd310fe37e4ba54a8cec | Set default query limit and ensure constraints | After another round of feedback, I applied more restrictive pagination checks. Thanks @tubackkhoa
This may affect CLI and other clients | diff --git a/x/wasm/client/cli/query.go b/x/wasm/client/cli/query.go
index 2b064f5fbd..be7f5d5122 100644
--- a/x/wasm/client/cli/query.go
+++ b/x/wasm/client/cli/query.go
@@ -144,7 +144,7 @@ func GetCmdListCode() *cobra.Command {
SilenceUsage: true,
}
flags.AddQueryFlagsToCmd(cmd)
- flags.AddPaginationFlagsToCmd... | 1 | 1 | 0 | [{"id": "G0", "claim": "In GetCmdGetContractStateAll the query description passed to addPaginationFlags ends in a stray trailing space (\"contract state \"), which should be \"contract state\" as in the reviewer's suggestion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
CosmWasm__wasmd__1650 | CosmWasm/wasmd | 1,650 | defect | 3ea8575ebc208d7bd6c6d715bdeaa5e166d4dfbd | 1dd813d249cd88e67b7296e33ee7ac1e9773a0ad | Add label validation for non printable chars | Resolves #1623 | diff --git a/x/wasm/types/tx_test.go b/x/wasm/types/tx_test.go
index fea5d7e14b..4533991324 100644
--- a/x/wasm/types/tx_test.go
+++ b/x/wasm/types/tx_test.go
@@ -116,6 +116,24 @@ func TestInstantiateContractValidation(t *testing.T) {
},
valid: false,
},
+ "white space ending label": {
+ msg: MsgInstantia... | 2 | 2 | 1 | [{"id": "G0", "claim": "Avoid the double negative in the new validation error message; use the suggested wording \"label must have printable characters only\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The check must ensure only printable c... | null |
CosmWasm__wasmd__1666 | CosmWasm/wasmd | 1,666 | defect | 90d43687ce0facec3cf0c912cf5b331abfdf751c | 3af3036a79fce5098772ca844948725b1c5a3000 | Classic address tests | Added tests for `BuildContractAddressClassic` function.
And small spelling ;-) | diff --git a/x/wasm/keeper/addresses.go b/x/wasm/keeper/addresses.go
index 77ecaa1d4e..4f7093631d 100644
--- a/x/wasm/keeper/addresses.go
+++ b/x/wasm/keeper/addresses.go
@@ -32,7 +32,7 @@ func PredicableAddressGenerator(creator sdk.AccAddress, salt, msg []byte, fixMsg
}
}
-// BuildContractAddressClassic builds an... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Bech32 setup/cleanup code duplicated in both tests should be extracted into a separate private helper such as setup(t *testing.T).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test specs table should be declared... | null |
CosmWasm__wasmd__1904 | CosmWasm/wasmd | 1,904 | defect | 21b048d54e395ff9168e5c3037356a73797500ba | 12f8ec5aef73453a74f8a0b2aaf37ef822644c84 | Mark QuerySmart contract error as deterministic | We apparently didn't mark this as deterministic in #1804. | diff --git a/x/wasm/keeper/contract_keeper_test.go b/x/wasm/keeper/contract_keeper_test.go
index e917367d20..bb8194b49b 100644
--- a/x/wasm/keeper/contract_keeper_test.go
+++ b/x/wasm/keeper/contract_keeper_test.go
@@ -14,8 +14,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
+ "github.com/CosmWasm/wasmd/x... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should use assert.Contains(t, err.Error(), \"reply 1 not found\") instead of assert.Equal on the full error string, to make it more robust.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__1987 | CosmWasm/wasmd | 1,987 | defect | 2e545957fa57a548702c6c827661fb84ad8b4fdb | 46d721c74e6c6eab43b939c4b1e1904747dc603c | Handle discount in setup costs for in memory cache contracts | Resolves #1798 | diff --git a/app/ante.go b/app/ante.go
index 7a8f17e511..aeb139360d 100644
--- a/app/ante.go
+++ b/app/ante.go
@@ -55,6 +55,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
wasmkeeper.NewLimitSimulationGasDecorator(options.WasmConfig.SimulationGasLimit), // after setup context to enforce l... | 7 | 6 | 0 | [{"id": "G0", "claim": "In reply, discount should always be true because the parent call already charged the costs, and the added IsPinnedCode store lookup makes the new implementation consume more gas.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
CosmWasm__wasmd__2031 | CosmWasm/wasmd | 2,031 | defect | 6fa6afcf29b8f062cb7070f4bfebf9cd597044b1 | d2834affd6fabf025cc8b158ff9bddc3dfb2e13d | Add autofix protobuf job | closes #1967
Steps for the job are taken out of the Makefile's `proto-all` job.
Should we also add a `proto-lint` check to CI or does that already exist somewhere? | diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
new file mode 100644
index 0000000000..417f2c3ef7
--- /dev/null
+++ b/.github/workflows/autofix.yml
@@ -0,0 +1,27 @@
+name: autofix.ci # needed to securely identify the workflow
+
+on:
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Proto linting is not covered anywhere else, so the pull request should add it in here.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The Makefile should be updated so that the same protoImage is used for proto-lint and proto-c... | null |
CosmWasm__wasmd__2053 | CosmWasm/wasmd | 2,053 | defect | 036b4cdf6a55238aab1ba8583a295fa041a7182f | aeced6c1578ef3afa39a0306b408b1d284e6ce9a | Update 0.3x branch to wasmvm 1.5.5 | That should allow chains stuck on this version to at least receive security updates for wasmvm.
Is the `releases/v0.3x` branch correct? I see some changes there were never released. | diff --git a/.circleci/config.yml b/.circleci/config.yml
index fd69fdade5..40bee11c00 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -153,7 +153,7 @@ jobs:
at: /tmp/workspace
- checkout
- setup_remote_docker:
- version: 20.10.18
+ docker_layer_caching: true
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a comment to app/wasm.go stating that the cosmwasm_1_4 capability is not implemented on this branch.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment the PR added to app/wasm.go is inaccurate: the cosmwasm_1... | null |
CosmWasm__wasmd__208 | CosmWasm/wasmd | 208 | defect | 1c4d4d8f0e8f5aa30b2bb744b6cb6302e17cacab | a1aa2f5e4cd20e375851ed9a068d9956487e811e | Use prefix store for contract history | Resolves #196
After #199
Includes new CLI command:
`wasmcli query wasm contract-history [bech32_address]` to print all the code changes.
```json
wasmcli q wasm contract-history cosmos18r5szma8hm93pvx6lwpjwyxruw27e0k5uw835c
[
{
"operation": "Init",
"code_id": 1
},
{
"operation": "Migra... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a922881ce1..2e0754873b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [Unreleased]
### Features
+* (wasmd) [\#196](https://github.com/CosmWasm/wasmd/issues/196) Move history of contract code migrations to the... | 2 | 2 | 0 | [{"id": "G0", "claim": "appendToContractHistory could be simplified by reusing GetContractHistory instead of hand-unmarshalling the stored entries.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A migration guide for the client-visible query changes shou... | null |
CosmWasm__wasmd__2115 | CosmWasm/wasmd | 2,115 | defect | 5f0b5ef55e28fd6456a9fe10876a63b38165569d | eac3d9d73c52e77118f0bf9853df55ff735bfdb0 | Add gas cost for `UnpackAny` | breaking for people using a custom Any encoder
Benchmark results:
```
BenchmarkUnpackAny/garbage_any-8 2235267 521.9 ns/op 136 B/op 4 allocs/op
BenchmarkUnpackAny/single_MsgExec-8 1736608 686.1 ns/op 24 B/op 2 allocs/op
BenchmarkUnpackAny/10000_MsgExec-8 17... | diff --git a/benchmarks/bench_test.go b/benchmarks/bench_test.go
index 49aec11da7..ca238f6e71 100644
--- a/benchmarks/bench_test.go
+++ b/benchmarks/bench_test.go
@@ -7,11 +7,19 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
dbm "github.com/cosmos/cosmos-db"
+ "github.com/cosmos/gogoproto/proto"
"gi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The magic number 700000 in the AnyMsg gas-cost calculation should be extracted as a named constant with a short comment explaining what it represents.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__354 | CosmWasm/wasmd | 354 | defect | e8d26c713ffb22c773ab4a187ee1eaf55bc953b5 | 2a2ed987d04cfa5c6c5f6d836c34acee02359187 | Upgrade to cosmos-sdk v0.40.0-rc6 | Upgrade to [`cosmos-sdk v0.40.0-rc6`](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.40.0-rc6)
There is a known 🐛 [#8251](https://github.com/cosmos/cosmos-sdk/issues/8251) with this SDK version in the gentx CLI command. The workaround is documented in the issue as well:
```sh
# pass the staked amount as arg... | diff --git a/contrib/local/setup_wasmd.sh b/contrib/local/setup_wasmd.sh
index b1c8faf29c..c8a527f4f9 100755
--- a/contrib/local/setup_wasmd.sh
+++ b/contrib/local/setup_wasmd.sh
@@ -22,5 +22,5 @@ for addr in "$@"; do
wasmd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE"
done
# submit a genesis valid... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should add a changelog entry documenting the client-facing changes, such as the changed staking/gentx arguments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__389 | CosmWasm/wasmd | 389 | defect | 1920f80d181adbeaedac1eeea1c1c6e1704d3e49 | 3c77376d1885db271aad75a43691dcafca4e29a8 | Added randomized simulation parameters generation | After I integrated `wasmd` inside [desmos](https://github.com/desmos-labs/desmos) I found out that the simulation tests fails due to the fact that the `RandomizedParams` function of `module.go` returns `nil`.
```
--- FAIL: TestAppImportExport (128.47s)
panic: UnmarshalJSON cannot decode empty bytes [recovered]
pan... | diff --git a/x/wasm/module.go b/x/wasm/module.go
index 1d45ae517d..44837b6e2a 100644
--- a/x/wasm/module.go
+++ b/x/wasm/module.go
@@ -3,6 +3,7 @@ package wasm
import (
"context"
"encoding/json"
+ "github.com/CosmWasm/wasmd/x/wasm/simulation"
"math/rand"
"github.com/CosmWasm/wasmd/x/wasm/client/cli"
@@ -163,... | 4 | 4 | 4 | [{"id": "G0", "claim": "The upload-access param change must return a full JSON object for the param (e.g. json.Marshal of the AccessConfig) instead of a bare non-JSON string.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The instantiate-default-per... | null |
CosmWasm__wasmd__535 | CosmWasm/wasmd | 535 | defect | 0dd695c126367e09f212a5e86f5c07c627fbebad | 1be5133de2c090b603bd4db0d360cc994b48e04d | Store contract response in event | Resolves #431
| diff --git a/x/wasm/keeper/proposal_handler.go b/x/wasm/keeper/proposal_handler.go
index 77c29e9ba7..c842041ef2 100644
--- a/x/wasm/keeper/proposal_handler.go
+++ b/x/wasm/keeper/proposal_handler.go
@@ -1,6 +1,7 @@
package keeper
import (
+ "encoding/hex"
"fmt"
"github.com/CosmWasm/wasmd/x/wasm/types"
sdk "gi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The contract response data attribute added to the proposal events should also be returned in the non-proposal (msg server) methods, so it is the same everywhere.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new constant type... | null |
CosmWasm__wasmd__562 | CosmWasm/wasmd | 562 | defect | 86d96fd5f64257b75b3179eb0b4d2efa7f91ec98 | 98b4a12891f0208087e8ec064f6cc8841bbac64d | Reject invalid attributes | Closes #560
Return error on invalid events/attributes returned from contracts
| diff --git a/x/wasm/keeper/events.go b/x/wasm/keeper/events.go
index 23983774f1..571c9cff84 100644
--- a/x/wasm/keeper/events.go
+++ b/x/wasm/keeper/events.go
@@ -5,16 +5,20 @@ import (
"github.com/CosmWasm/wasmd/x/wasm/types"
wasmvmtypes "github.com/CosmWasm/wasmvm/types"
sdk "github.com/cosmos/cosmos-sdk/types"... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reserved-prefix error message should be reworded to say the attribute key starts with a reserved prefix (\"Attribute key starts with reserved prefix %s: '%s'\") instead of the unclear \"Attribute starts with %s: %s\".", "category": "documentation", "verdict": "supported", "priority": "P2", "... | null |
CosmWasm__wasmd__567 | CosmWasm/wasmd | 567 | defect | f6002fe94244ff2ac08e18f67ff9d19dc9b49fd7 | 4bdbb67066a05561c618c6767603ed2cd6670a31 | Adjust default msg gas | Closes #553 | diff --git a/x/wasm/keeper/gas_register.go b/x/wasm/keeper/gas_register.go
index a78b28c6c7..40d9503207 100644
--- a/x/wasm/keeper/gas_register.go
+++ b/x/wasm/keeper/gas_register.go
@@ -26,7 +26,8 @@ const (
DefaultEventAttributeDataCost uint64 = 1
// DefaultContractMessageDataCost is how much SDK gas is charged *... | 2 | 1 | 0 | [{"id": "G0", "claim": "The multiplication should be written as sdk.Gas(len(e.Type) * g.c.EventAttributeDataCost) because the cost factor is gas per byte, so the product should be computed in bytes before being widened to sdk.Gas.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced... | null |
CosmWasm__wasmd__60 | CosmWasm/wasmd | 60 | defect | 9842678d892e6f3e7376fb72b437fe5e00044102 | 47475b2558ca5b18323e3833057a14d5e23bd548 | Remove unneeded sends | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > >... | diff --git a/x/wasm/handler.go b/x/wasm/handler.go
index 8e184c8d51..58fd503af0 100644
--- a/x/wasm/handler.go
+++ b/x/wasm/handler.go
@@ -10,6 +10,7 @@ import (
const (
AttributeKeyContract = "contract_address"
AttributeKeyCodeID = "code_id"
+ AttributeSigner = "signer"
)
// NewHandler returns a handle... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new `signer` message attribute is unnecessary (sender is set automatically elsewhere) and can be misleading when multiple accounts can sign a transaction; if a custom name is needed for the message level, it should be `author`.", "category": "design", "verdict": "uncertain", "priority": "P2"... | null |
CosmWasm__wasmd__621 | CosmWasm/wasmd | 621 | defect | fc8d33eddc2d75b8b2337a7e1544e288ef6c1022 | 1badfc61d09690ee5bccf8a04a5862bab085c38b | Implement tx counter for transaction info | Resolves #601
Based on the #608 spike
Changes:
- Use `uint32` for the tx counter
- Sets wasmvm TransactionInfo
- Non default `0` counter but empty TransactionInfo on simulations
- Tests
- Better doc | diff --git a/app/ante.go b/app/ante.go
new file mode 100644
index 0000000000..3d06c56eba
--- /dev/null
+++ b/app/ante.go
@@ -0,0 +1,38 @@
+package app
+
+import (
+ wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ "github.com/cosmos/cosmos-sdk/x/auth/ante"
+ "github.com/... | 1 | 1 | 0 | [{"id": "G0", "claim": "A note should be added (suggesting INTEGRATION.md) that chains using x/wasm need to add this custom AnteHandler to their ante chain if they want tx index info.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
CosmWasm__wasmd__634 | CosmWasm/wasmd | 634 | defect | 62e976a55157c77f6bc2320a827d8851628e10e4 | 5ed122da0c05f48316ed4551f0155d4642e6241a | Benchmarks for gas pricing | Prepares #566
Prepares #631
- [x] Run Instantiation (pinned/unpinned) benchmarks in CI
- [x] Run secp256k1 verification benchmarks in CI (as reference for the 1 TerraGas/ms wasm definition)
- [x] Run compilation benchmarks in CI
- [x] Calculate new gas prices
I will update prices in a new PR, once we agree ... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4744bed7b2..d1c30fb2ec 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -86,6 +86,20 @@ jobs:
- store_artifacts:
path: /tmp/logs
+ benchmark:
+ executor: golang
+ parallelism: 1
+ steps:
+ - checkout
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "If the commented-out levelDB benchmark cases are not useful, they should be dropped from bench_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code-size debug output should use b.Logf() instead of fmt.Printf."... | null |
CosmWasm__wasmd__715 | CosmWasm/wasmd | 715 | defect | f621948ea8c51e333edcc539548406e3d2e90cbb | b53549616db31f2b9f6b7d0b7e605b8e8d0d201d | Proper systemerror follow-up | Adds a custom `ErrNoSuchContract` error, and map it to the corresponding `wasmvmtypes` error, as discussed in #701.
~~Needs feedback on registering the error, proper error names / types, and extending this mechanism to other errors.~~ | diff --git a/x/wasm/keeper/query_plugins.go b/x/wasm/keeper/query_plugins.go
index 4a4e500178..e9fb4d28eb 100644
--- a/x/wasm/keeper/query_plugins.go
+++ b/x/wasm/keeper/query_plugins.go
@@ -56,7 +56,18 @@ func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) (
defer func() {
q.Ctx.GasMete... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error mapping should settle on one form of the NoSuchContract type (value vs pointer, which matters for reflection) and use the typical type-assertion idiom instead of the type switch.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
CosmWasm__wasmd__765 | CosmWasm/wasmd | 765 | defect | 95d58b8f17af949484bd605d6291482fc37159e9 | 30bb2900c78e535e9253f8cb26036d06d1e673ae | Redact errors returned in reply | Part 1 of #759
The reply callback after executing a submessage no longer contains the entire error string on the failure case.
We only provide the error code and code space, which is guaranteed to be consistent (and part of the app hash) | diff --git a/x/wasm/keeper/msg_dispatcher.go b/x/wasm/keeper/msg_dispatcher.go
index edbfe162dc..9a17f4a22c 100644
--- a/x/wasm/keeper/msg_dispatcher.go
+++ b/x/wasm/keeper/msg_dispatcher.go
@@ -1,6 +1,8 @@
package keeper
import (
+ "fmt"
+
wasmvmtypes "github.com/CosmWasm/wasmvm/types"
sdk "github.com/cosmos/c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The 'Error: ' prefix on the redacted error string is redundant and the format should be clearer - webmaster128 proposes \"codespace: %s, code: %d\", while alpe would keep the parseable \"codespace/code\" form.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
CosmWasm__wasmd__776 | CosmWasm/wasmd | 776 | defect | f35a13fa120921cf0becb5a7a2f3a0d2d106afd9 | 46382135d3007cf2d35a33380376059cba13aabf | Verify Stargate Queries handles properly | Closes #762
| diff --git a/x/wasm/keeper/query_plugins.go b/x/wasm/keeper/query_plugins.go
index 63522add85..ae51f652ab 100644
--- a/x/wasm/keeper/query_plugins.go
+++ b/x/wasm/keeper/query_plugins.go
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
+ "strings"
"github.com/cosmos/cosmos-sdk/baseapp"
@@ -263,8 +264... | 4 | 3 | 1 | [{"id": "G0", "claim": "The deny-list check should use strings.HasPrefix(msg.Path, b) instead of strings.Contains so that only paths starting with a denied prefix are blocked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The deny list entries shou... | null |
CosmWasm__wasmd__779 | CosmWasm/wasmd | 779 | defect | 2700e6b03e3aca7fba226dfddb0d2f538cb44693 | 35541932890a64da3f18b9ba10077daa6948a5e5 | Prepare 0.24 | - [x] Fixes broken test on main (due to merging 3 PRs together)
- [x] Updates CHANGELOG | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 64fe73ebaf..95bb7829b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,17 +2,32 @@
## [Unreleased](https://github.com/CosmWasm/wasmd/tree/HEAD)
-**Fixed bugs + Api Breaking:**
+[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.24.0...master)
+
+## [v0.2... | 1 | 1 | 1 | [{"id": "G0", "claim": "System errors should also be excluded from redaction in msg_dispatcher.go's DispatchSubmessages (the redactError path around line 139), matching the not-redacted handling the PR adds for the query path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
CosmWasm__wasmd__823 | CosmWasm/wasmd | 823 | defect | 7a25e365fcbc7b7160a6b92c71ae461a8ab008ea | 7a29351463072a8daeb855b726fb933b355454cc | Add state sync support | This replaces #816 incorporating much of the feedback.
Main changes:
* Iterates over codes in the iavl tree to get proper list
* compresses wasm before sending over snapshot item
* skips duplicates (multiple codes with same byte code)
* uses wasmvm.Create() on restore, which will precompile the code
* pins al... | diff --git a/app/app.go b/app/app.go
index b6ba2ddab9..a932843fd2 100644
--- a/app/app.go
+++ b/app/app.go
@@ -98,6 +98,7 @@ import (
wasmappparams "github.com/CosmWasm/wasmd/app/params"
"github.com/CosmWasm/wasmd/x/wasm"
wasmclient "github.com/CosmWasm/wasmd/x/wasm/client"
+ wasmkeeper "github.com/CosmWasm/wasmd... | 12 | 11 | 4 | [{"id": "G0", "claim": "When other modules follow the wasm snapshotter the io.EOF condition will not occur, so finalize(ctx, ws.wasm) will not run in the scenarios that exit through the payload == nil return.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
CosmWasm__wasmd__850 | CosmWasm/wasmd | 850 | defect | 5233ed7bc7ef2860326877e9a17bc3bfcdf53ba0 | 74840900742620fe617e19d6c2c419ae1d0642a6 | Enforce default code permissions | Closes #840
Closes #761
We now define the `InstantiateDefaultPermission` as a restriction on the contracts, not a "helpful default".
That means, it is used if you do not set a permission explicitly, but it also provide a "maximum bound" on how permissive you can be.
That is, if `InstantiateDefaultPermission` i... | diff --git a/x/wasm/keeper/keeper.go b/x/wasm/keeper/keeper.go
index 5dbd5483f7..a6c9c05208 100644
--- a/x/wasm/keeper/keeper.go
+++ b/x/wasm/keeper/keeper.go
@@ -159,6 +159,15 @@ func (k Keeper) create(ctx sdk.Context, creator sdk.AccAddress, wasmCode []byte,
if !authZ.CanCreateCode(k.getUploadAccessConfig(ctx), cre... | 4 | 3 | 0 | [{"id": "G0", "claim": "Migration notes may be needed for permissioned chains (besides Stargaze and Osmosis) upgrading to this change, flipping StoreCodePermissions Nobody->Everybody and InstantiatePermissions Everybody->Nobody.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
CosmWasm__wasmd__984 | CosmWasm/wasmd | 984 | defect | f430ca3b141970b783c09ef8ec0a00a4b10cf98b | 8f7dfb1d27522d1465c49aac138e37428999fe00 | Upgrade to wasmvm v1.1.0 | Resolves #932
Part of #980
Bump wasmvm to version [v1.1.0](https://github.com/CosmWasm/wasmvm/releases/tag/v1.1.0)
Left todo:
- [x] update Changelog
- [x] ~~upgrade contracts to [cosmwasm v1.1.0](https://github.com/CosmWasm/cosmwasm/releases/tag/v1.1.0) ?~~ we keep the v1.0 contracts for regression | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a735308f23..3fee812325 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,7 +3,7 @@
## [Unreleased](https://github.com/CosmWasm/wasmd/tree/HEAD)
- Upgrade go to v1.18 [\#866]https://github.com/CosmWasm/wasmd/pull/866/) ([faddat](https://github.com/faddat))
- Upgrade to ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The compatibility table's cosmwasm-std column should read '1.0-1.1' for both the wasmd 0.29/wasmvm v1.1.0 and the wasmd 0.28/wasmvm v1.0.0 rows instead of the single versions '1.1' and '1.0'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Countly__countly-sdk-android__304 | Countly/countly-sdk-android | 304 | defect | f25b8b679ec42272615a180037fb2cc0a169a342 | 988c71affde4c3628a2ac82dfef246c349cf3e18 | Fix missing internal limits impl | setMaxSegmentationValues: - custom user properties has no limit
setMaxValueSize: - truncates user property picture (not picture path)
setMaxKeyLength: - Network Trace name not truncated | diff --git a/sdk/src/androidTest/java/ly/count/android/sdk/ModuleAPMTests.java b/sdk/src/androidTest/java/ly/count/android/sdk/ModuleAPMTests.java
index b45e73ebe..96e0aca49 100644
--- a/sdk/src/androidTest/java/ly/count/android/sdk/ModuleAPMTests.java
+++ b/sdk/src/androidTest/java/ly/count/android/sdk/ModuleAPMTests.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The giant hardcoded multi-thousand-character string in internalLimit_setProperties_maxValueSizePicture feels weird to look at; randomly generating a string with the desired length and validating it within the test would be better.", "category": "testing", "verdict": "supported", "priority": "P2"... | null |
CppMicroServices__CppMicroServices__1006 | CppMicroServices/CppMicroServices | 1,006 | defect | 0ea7fd4805c952d27c9f5804857344338023e55e | e2e175d0b34ed9146ca09ad6a7c5e1ad246e0fb4 | Remove Registration of Factory Configuration object even with valid config | Do not allow factory components to be registered. Implemented by always marking Configurations as unsatisfied | diff --git a/compendium/DeclarativeServices/src/manager/ConfigurationManager.cpp b/compendium/DeclarativeServices/src/manager/ConfigurationManager.cpp
index 03bdd65e5..a1dbb5f61 100644
--- a/compendium/DeclarativeServices/src/manager/ConfigurationManager.cpp
+++ b/compendium/DeclarativeServices/src/manager/Configuratio... | 11 | 3 | 0 | [{"id": "G0", "claim": "The local variable invalidService is declared without an initializer and should be initialized at declaration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The magic number 6 in testErroneousConfigurationInjection shoul... | null |
CppMicroServices__CppMicroServices__1018 | CppMicroServices/CppMicroServices | 1,018 | defect | 536abf48c5cb2528810034f063f7301eced5a5be | 00b07ce45a6c2672e6101ee2d076a5b85ed62057 | Test Case for Race Condition in Config Notifier | This test case does expose the bug fixed in #1016 for the ConfigNotifier. Essentially if we have a race between unregistering a listener for a config and then notifying of a config change, it can get past the `AnyListenersForPid` call made in `ConfigurationListenerImpl::ConfigurationEvent` and into `NotifyAllListeners`... | diff --git a/compendium/DeclarativeServices/src/manager/SingletonComponentConfiguration.hpp b/compendium/DeclarativeServices/src/manager/SingletonComponentConfiguration.hpp
index 454e28d79..8ea6d216e 100644
--- a/compendium/DeclarativeServices/src/manager/SingletonComponentConfiguration.hpp
+++ b/compendium/Declarative... | 6 | 5 | 0 | [{"id": "G0", "claim": "The ConfigAdminComponentCreationRace fixture class defines a default destructor but does not define a copy constructor, copy assignment operator, move constructor or move assignment operator (cppcoreguidelines-special-member-functions).", "category": "maintainability", "verdict": "supported", "p... | null |
CppMicroServices__CppMicroServices__1019 | CppMicroServices/CppMicroServices | 1,019 | defect | 536abf48c5cb2528810034f063f7301eced5a5be | b128540cac73b507cce7fa4bc280d825c8cb1183 | Safe Futures Addition | This allows users to wait on configuration updates (`Update()`, `UpdateIfDifferent()`, and `Remove()`) without risk of deadlocking the system on a thread starved environment | diff --git a/compendium/CM/include/cppmicroservices/cm/Configuration.hpp b/compendium/CM/include/cppmicroservices/cm/Configuration.hpp
index 7e0593833..b2399e851 100644
--- a/compendium/CM/include/cppmicroservices/cm/Configuration.hpp
+++ b/compendium/CM/include/cppmicroservices/cm/Configuration.hpp
@@ -24,6 +24,7 @@
... | 8 | 7 | 2 | [{"id": "G0", "claim": "The new SafeFuture class needs some unit tests, as the codecov report shows much of the PR's new code is uncovered.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the member function asyncStarted->compare_exchange_strong(expe... | null |
CppMicroServices__CppMicroServices__1030 | CppMicroServices/CppMicroServices | 1,030 | defect | aebd9f8424618ea401aba80292b565f8b9de4500 | de9e42b20ad4fb1a0de37a64252758b8ac206a47 | Allow for the presence of both a default constructor and one which takes the properties for the service | Not allowing a user to write a default constructor for a DS service implementation class is not ideal.
You error, even it is is logically correct as a class.
If **impl** implements **interface**
```
class impl: public interface
{
public:
impl(std::shared_ptr<cppmicroservices::AnyMap> prope... | diff --git a/compendium/DeclarativeServices/test/gtest/CMakeLists.txt b/compendium/DeclarativeServices/test/gtest/CMakeLists.txt
index 0fee7caa7..0815e7607 100644
--- a/compendium/DeclarativeServices/test/gtest/CMakeLists.txt
+++ b/compendium/DeclarativeServices/test/gtest/CMakeLists.txt
@@ -167,6 +167,7 @@ set(_test_b... | 10 | 9 | 0 | [{"id": "G0", "claim": "The new TEST_F in TestComponentConfigurationImpl.cpp triggers the cppcoreguidelines-avoid-non-const-global-variables warning about 'test_info_'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test declares 'instal... | null |
CppMicroServices__CppMicroServices__1040 | CppMicroServices/CppMicroServices | 1,040 | defect | 070fd93e73f6e85c4d8979cbd4629ceaa183802a | 41091afbda2027bed5d552fa8773800903685361 | Remove deadlock in config notification | Removes the 'ordering lock' that was doing little other than causing Deadlocks
Before change, the added test case causes deadlock, after change it does not | diff --git a/compendium/DeclarativeServices/src/manager/ConfigurationNotifier.cpp b/compendium/DeclarativeServices/src/manager/ConfigurationNotifier.cpp
index 02795c04f..454b25d9a 100644
--- a/compendium/DeclarativeServices/src/manager/ConfigurationNotifier.cpp
+++ b/compendium/DeclarativeServices/src/manager/Configura... | 11 | 3 | 1 | [{"id": "G0", "claim": "In the new AsyncWorkServiceThreadPool constructor the threadpool member should be initialized in the member initializer list rather than assigned in the body.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable 'h... | null |
CppMicroServices__CppMicroServices__1043 | CppMicroServices/CppMicroServices | 1,043 | defect | 2e4eca4d28e5089ec41a2ce85519fd7058572e2a | bcc2939b1fd760683a827d88e242bd368bff06fe | Fixes a race condition in Config Admin shutdown | In the current implementation, the **ConfigurationAdminImpl** object is being destroyed from a thread posted to the **AsyncWorkService**. This occurs because the **ConfigurationListenerImpl** holds the last reference to **configAdmin**. When **ConfigurationListenerImpl** completes its task of notifying listeners, it re... | diff --git a/compendium/ConfigurationAdmin/src/CMActivator.cpp b/compendium/ConfigurationAdmin/src/CMActivator.cpp
index 64d138a25..be02a70e5 100644
--- a/compendium/ConfigurationAdmin/src/CMActivator.cpp
+++ b/compendium/ConfigurationAdmin/src/CMActivator.cpp
@@ -76,6 +76,9 @@ namespace cppmicroservices
... | 5 | 3 | 0 | [{"id": "G0", "claim": "clang-tidy warns that the test_info_ variable expanded from the new TEST_F macro provides global access to a non-const object and suggests making the pointed-to data const.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "c... | null |
CppMicroServices__CppMicroServices__1047 | CppMicroServices/CppMicroServices | 1,047 | defect | 12eeb4398215151d17f7a51e2d32a6c49c789809 | 0f14b9e7b12b6acb4d37089d80139eaed8885dc5 | Make ServiceProperties an AnyMap | Some time ago, we wanted to start using AnyMap instead of std::unordered_map for ServiceProperties. A code comment was added describing it as deprecated to mark the intention to make this change, but that intention was lost over time.
The discrepancy between this comment and the current state of the code was flagged... | diff --git a/framework/include/cppmicroservices/AnyMap.h b/framework/include/cppmicroservices/AnyMap.h
index fa376c823..4953d3aae 100644
--- a/framework/include/cppmicroservices/AnyMap.h
+++ b/framework/include/cppmicroservices/AnyMap.h
@@ -144,6 +144,8 @@ namespace cppmicroservices
const_iter(ociter&& it)... | 12 | 6 | 2 | [{"id": "G0", "claim": "The new declaration of const_iter's copy-assignment operator should return 'const_iter&' instead of 'iterator'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new const_iter copy-assignment operator definition should not repea... | null |
CppMicroServices__CppMicroServices__1054 | CppMicroServices/CppMicroServices | 1,054 | defect | 1d60c448ce436891fd1369548d711e44ebd35f7f | 74490d64be915f641d40490d804eb25695f87111 | Reference Scoping Fix | with to references to prototype services. Also added test cases that validate proper behavior for references to both singleton and prototype services. | diff --git a/compendium/DeclarativeServices/src/ComponentContextImpl.cpp b/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
index dd2546d3c..10d09cc9a 100644
--- a/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
+++ b/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
@@ -69,40 +69,44 @@... | 6 | 3 | 1 | [{"id": "G0", "claim": "The literal 20 used for SERVICE_RANKING in TestComponentContextImpl.cpp is a magic number and should be a named constant.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GetRefAddr overrides in TestBundleDSFAC1's Servi... | null |
CppMicroServices__CppMicroServices__1064 | CppMicroServices/CppMicroServices | 1,064 | defect | 2dad11036c37e109c36ddb963a38198a6978cb0a | 2af7c066407a0c40311d862167e39c44dca2a0ba | New Dynamic Targeting Mechanism | This change allows users to, for Factory Components, create 'injection tags' in their reference targets. These tags, enclosed in `{{someKey}}`, correspond to the Configuration that is used to create a specific factory instance.
- If the key does not exist in the configuration that causes the factory instance to be c... | diff --git a/compendium/DeclarativeServices/src/manager/ComponentFactoryImpl.cpp b/compendium/DeclarativeServices/src/manager/ComponentFactoryImpl.cpp
index f96ea0cf9..340d442e4 100644
--- a/compendium/DeclarativeServices/src/manager/ComponentFactoryImpl.cpp
+++ b/compendium/DeclarativeServices/src/manager/ComponentFac... | 9 | 2 | 1 | [{"id": "G0", "claim": "The ComponentFactoryImpl constructor should take the BundleContext by value and move it into the member instead of passing it by const reference.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ComponentFactoryImpl constructor ... | null |
CppMicroServices__CppMicroServices__1066 | CppMicroServices/CppMicroServices | 1,066 | defect | 2dad11036c37e109c36ddb963a38198a6978cb0a | 406e8ca01c40fd689aef21d5e9850979f6367858 | Attempt to resolve a valgrind issue | trying to resolve this valgrind reported issue:
26: ==24460== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
26: ==24460== by 0x40147D9: calloc (rtld-malloc.h:44)
26: ==24460== by 0x40147D9: allocate_dtv (dl-tls.c:375)
26: ==24460== by 0x40147D9: _dl_allocate_tls (dl... | diff --git a/compendium/DeclarativeServices/test/TestUtils.cpp b/compendium/DeclarativeServices/test/TestUtils.cpp
index 7590c4bf6..c38f9d969 100644
--- a/compendium/DeclarativeServices/test/TestUtils.cpp
+++ b/compendium/DeclarativeServices/test/TestUtils.cpp
@@ -281,23 +281,11 @@ namespace test
AsyncWorkServic... | 2 | 1 | 0 | [{"id": "G0", "claim": "The ASSERT_NO_THROW(reg.Unregister()) line added by this PR triggers a clang-tidy cppcoreguidelines-avoid-goto warning (avoid using 'goto' for flow control).", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If this change fixes the g... | null |
CppMicroServices__CppMicroServices__1072 | CppMicroServices/CppMicroServices | 1,072 | defect | d0e21c4d2aef9c755e93760acfbab7bb0be6b566 | 8214ecd823cca6c7858640cad0930eed96682a38 | latent bug -- concurrent configuration creations for factories race | Similar to #834
Lock down the `managers` object within `SCRBundleExtension` to make sure concurrent updates don't happen
before fix, the new test cases failed 50-80% of the time either at:
` managers.push_back(std::move(compManager));`
or
` auto fut = compManager->Disable(singl... | diff --git a/compendium/DeclarativeServices/src/SCRBundleExtension.cpp b/compendium/DeclarativeServices/src/SCRBundleExtension.cpp
index a43775634..8aa69e7b0 100644
--- a/compendium/DeclarativeServices/src/SCRBundleExtension.cpp
+++ b/compendium/DeclarativeServices/src/SCRBundleExtension.cpp
@@ -55,7 +55,6 @@ namespace... | 5 | 3 | 0 | [{"id": "G0", "claim": "Use a default member initializer for the Barrier's 'generation' member instead of initializing it in the constructor (clang-tidy cppcoreguidelines-use-default-member-init suggestion).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", ... | null |
CppMicroServices__CppMicroServices__1079 | CppMicroServices/CppMicroServices | 1,079 | defect | 014a00cad5dd72a251dd56848bdff1bb931616f5 | edc3e64de60a4f07199d0a8e670bfbf4bb114c60 | Fix binding for prototype services | Binding for prototype services used to call `getService` twice for every bind operation:
1. once to put into the `compContext` `boundservicesCache`
2. anther time to invoke `bind` on the referencING service (i.e. to actually give the service the pointer to the bound service)
Because, for prototype services, `get... | diff --git a/compendium/DeclarativeServices/src/ComponentContextImpl.cpp b/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
index 053633378..06e37669d 100644
--- a/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
+++ b/compendium/DeclarativeServices/src/ComponentContextImpl.cpp
@@ -80,12 +80,18 @@... | 19 | 8 | 0 | [{"id": "G0", "claim": "Use emplace_back instead of push_back when adding the (sRef, interfaceMap) pair to the bound services cache in BindReference.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use emplace_back instead of push_back when adding th... | null |
CppMicroServices__CppMicroServices__1092 | CppMicroServices/CppMicroServices | 1,092 | defect | 3029626539c17b4d096f211b7f1f1fbfa3827868 | d1c471e2e2f1d51b89fb5f1dde788eff2343fd17 | Ensure locateService from within activate returns the ptr to the activated reference | This is just codifying what was described in the linked issue. This verifies that the behavior now works as intended -- this was fixed in the recent pr for prototype services.
ignore the regex thing, that will be fixed once I bring in the dev branch. I clearly branched off of that in my local area instead of develop... | diff --git a/compendium/DeclarativeServices/src/manager/BundleLoader.cpp b/compendium/DeclarativeServices/src/manager/BundleLoader.cpp
index 7fb5eb100..222993c35 100644
--- a/compendium/DeclarativeServices/src/manager/BundleLoader.cpp
+++ b/compendium/DeclarativeServices/src/manager/BundleLoader.cpp
@@ -29,7 +29,17 @@
... | 8 | 1 | 1 | [{"id": "G0", "claim": "The clang-tidy warning asks that the member 'ref' be given an initializer, suggesting 'std::shared_ptr<test::TestBundleDSUpstreamDependencyIsActivated> ref{}'.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The clang-tidy... | null |
CppMicroServices__CppMicroServices__1102 | CppMicroServices/CppMicroServices | 1,102 | defect | 65d248579982e63bdcb27e55327a2f152bdea5d1 | 931e9c598f3c2f0db63b9ebdc8907ea60152bd46 | I0184 | Fix #184
- Added check to make sure that the bundle name supplied on the command line matches the value of bundle.symbolic_name in the manifest file throwing an error if there's a mismatch
- Fixed up the test cases
| diff --git a/framework/test/gtest/ResourceCompilerTest.cpp b/framework/test/gtest/ResourceCompilerTest.cpp
index ae1a5cbbd..b687060ec 100644
--- a/framework/test/gtest/ResourceCompilerTest.cpp
+++ b/framework/test/gtest/ResourceCompilerTest.cpp
@@ -72,12 +72,6 @@ namespace
protected:
std::string rcbinpa... | 5 | 3 | 0 | [{"id": "G0", "claim": "clang-tidy warns against pointer arithmetic (options[RESADD]) on the new --res-add condition line.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "clang-tidy warns against pointer arithmetic (options[BUNDLENAME]) on the new ... | null |
CppMicroServices__CppMicroServices__1112 | CppMicroServices/CppMicroServices | 1,112 | defect | 980b52b2c253ea0a1fb70ff5ecafbe2ba8a195e4 | f283b6799c46d20bea7b5d130d4c8d06447b934c | New mechanism for `inject-references` | This value defaults to true already, but the user can supply a different bool to not inject any references.
This proposes an extension where the user can supply a bool or an array of strings. These strings would list the names of the references the service wishes to inject. | diff --git a/compendium/DeclarativeServices/src/ServiceComponentRuntimeImpl.cpp b/compendium/DeclarativeServices/src/ServiceComponentRuntimeImpl.cpp
index 9be98be92..bafc327e0 100644
--- a/compendium/DeclarativeServices/src/ServiceComponentRuntimeImpl.cpp
+++ b/compendium/DeclarativeServices/src/ServiceComponentRuntime... | 8 | 2 | 1 | [{"id": "G0", "claim": "clang-tidy warns that the requireBind member should use a default member initializer (bool requireBind{true}) instead of being initialized in the constructor's initializer list.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim... | null |
CppMicroServices__CppMicroServices__1141 | CppMicroServices/CppMicroServices | 1,141 | defect | bbf872d683a5e5361649f71bf86e66a753cc2fc0 | 71fcf0a3073a3ecf1708d7ed340f733a904ee371 | updates to factory service (w/ `Modified`) with services depending on it causes deadlock | STACK
```
1. std::mutex::lock(std::mutex * const this) (/usr/include/c++/12/bits/std_mutex.h:100)
2. std::lock_guard<std::mutex>::lock_guard(std::lock_guard<std::mutex> * const this, std::lock_guard<std::mutex>::mutex_type & __m) (/usr/include/c++/12/bits/std_mutex.h:229)
3. cppmicroservices::scrimpl::CCActiveSta... | diff --git a/compendium/DeclarativeServices/test/gtest/TestFactoryPid.cpp b/compendium/DeclarativeServices/test/gtest/TestFactoryPid.cpp
index aca51326d..44ad8f4d7 100644
--- a/compendium/DeclarativeServices/test/gtest/TestFactoryPid.cpp
+++ b/compendium/DeclarativeServices/test/gtest/TestFactoryPid.cpp
@@ -262,4 +262,... | 6 | 1 | 0 | [{"id": "G0", "claim": "GetService on an already-active SingletonComponentConfigurationImpl always re-invokes Activate, which deadlocks when a depending service is activated while the factory's Modified call holds the Active-state oneAtATimeMutex on the same thread — behavior the reviewers call a bug that should not ha... | null |
CppMicroServices__CppMicroServices__1193 | CppMicroServices/CppMicroServices | 1,193 | defect | b6e9a0e7b0bf353e59732b1e567eaf230e467c57 | e26baedde9146f102c87a8933a5c378fdde396b7 | Ensure `serviceReference` object properly manages interface on assignment | When assigning a `ServiceReference<T>` to a `ServiceReferenceBase`, rather than getting into the copy constructor in `ServieReference` which properly managed the `interfaceID` object, we were getting into the `ServiceReferenceBase::operator=` which ignored the `interfaceID` object. This led to situations where a `Servi... | diff --git a/framework/src/bundle/BundleHooks.cpp b/framework/src/bundle/BundleHooks.cpp
index dc0f92d1d..cc2c3270b 100644
--- a/framework/src/bundle/BundleHooks.cpp
+++ b/framework/src/bundle/BundleHooks.cpp
@@ -73,8 +73,13 @@ namespace cppmicroservices
for (auto srBaseIter = srl.rbegin(), srBaseEnd = srl.ren... | 3 | 2 | 0 | [{"id": "G0", "claim": "The empty catch block on the find-hook service lookup in framework/src/bundle/BundleHooks.cpp hides issues; the exception should be handled, re-thrown, or avoided.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty catc... | null |
CppMicroServices__CppMicroServices__1198 | CppMicroServices/CppMicroServices | 1,198 | defect | 45f056216edc79a844d3d9de6a4fa6c71f523abc | d78bfa1390ed261836556e1a6063d62c68204cd0 | Fix sporadic test failure with bundle trackers | It fails maybe 10-15% of the time right now...
```
Note: Google Test filter = BundleTrackerConcurrencyTest.TestOpeningTrackerWhileBundlesChange
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BundleTrackerConcurrencyTest
[ RUN ] BundleTra... | diff --git a/framework/include/cppmicroservices/detail/BundleAbstractTracked.h b/framework/include/cppmicroservices/detail/BundleAbstractTracked.h
index ed3c6b397..489c231c0 100644
--- a/framework/include/cppmicroservices/detail/BundleAbstractTracked.h
+++ b/framework/include/cppmicroservices/detail/BundleAbstractTrack... | 2 | 1 | 0 | [{"id": "G0", "claim": "Items should also be removed from `previouslyAdded` when someone stops tracking the item.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The insert into `previouslyAdded` should be avoided so the set does not grow indefinitely ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.