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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
thrasher-corp__gocryptotrader__1726 | thrasher-corp/gocryptotrader | 1,726 | defect | 1fab9c72d2e0cbcebb78f942ba627d3e6101e9ed | c7ff26959cb54bd4f7b2aa86cb092855b18f14eb | order: Add `Side` type MarshalJSON method | # PR Description
Adds MarshalJSON method
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking cha... | diff --git a/exchanges/order/order_test.go b/exchanges/order/order_test.go
index 04c0258d44a..f072a4adb85 100644
--- a/exchanges/order/order_test.go
+++ b/exchanges/order/order_test.go
@@ -2123,6 +2123,16 @@ func TestSideUnmarshal(t *testing.T) {
assert.ErrorAs(t, s.UnmarshalJSON([]byte(`14`)), &jErr, "non-string val... | 3 | 3 | 0 | [{"id": "G0", "claim": "The strings passed as third args to the new test's assert calls are used by testify as failure messages rather than descriptions of what is expected, so they should be dropped (and the same pattern in the test above optionally fixed).", "category": "maintainability", "verdict": "supported", "pri... | null |
thrasher-corp__gocryptotrader__1737 | thrasher-corp/gocryptotrader | 1,737 | defect | ca62b0a4c2663bf592f44b0da68c22a030ea66f0 | f42039947cc52f67f277c3921e08c770e2235ad8 | Config: OrderManager upgrade | * Replaces `*bool` with a boolean in `orderManager.Enabled` and `orderManager.RespectOrderHistoryLimits`
* Replaces negative `FuturesTrackingSeekDuration` with positive
* Removes runtime default FuturesTrackingSeekDuration and replaces with an error
## Stacked Dependencies
- [x] #1671
- [x] #1735 ( Only due to v... | diff --git a/backtester/data/kline/api/api_test.go b/backtester/data/kline/api/api_test.go
index 7990f1ba65c..356b1554441 100644
--- a/backtester/data/kline/api/api_test.go
+++ b/backtester/data/kline/api/api_test.go
@@ -7,7 +7,6 @@ import (
"time"
"github.com/thrasher-corp/gocryptotrader/backtester/common"
- "gi... | 11 | 8 | 2 | [{"id": "G0", "claim": "Remove convert.BoolPtr completely and fix the other bool pointers relating to config like logger, so the PR can be done as one version upgrade.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PairStore examples in the docs should... | null |
thrasher-corp__gocryptotrader__1766 | thrasher-corp/gocryptotrader | 1,766 | defect | 50448ec6a04731e5876884c734dcf634e8a68e08 | 3d1342ca47e6b4aa6a083fa7c7f6b7f8e55d558f | GateIO: Fix GetFuturesContractDetails for Deliveries and minor other fixes | # GateIO
* 🐛 🚨 Fix GetFuturesContractDetails for Deliveries
Was returning the product of all the contracts, so 1444 instead of 38 contracts.
Doesn't touch anything else around this; Futures asset split coming separately
* Rename Get*PersonalTradingHistory to GetMy*TradingHistory
* Remove duplicate DeliveryTradin... | diff --git a/.golangci.yml b/.golangci.yml
index b59ae9635b3..721dfbf15c0 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -150,6 +150,9 @@ issues:
- text: "Expect WriteFile permissions to be 0600 or less"
linters:
- gosec
+ - text: 'shadow: declaration of "(err|ctx)" shadows declaration at'
+ ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The pre-existing DeliveryFutures branch of GetFuturesContractDetails uses index `j`, the mark of a missed copy-paste in how the contracts were built and appended.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new govet... | null |
thrasher-corp__gocryptotrader__1808 | thrasher-corp/gocryptotrader | 1,808 | defect | 636adb88224ddac13d97d404d5c3f0429922fa52 | 44ac1ccb40ece81a0f6b484958fb58c3a09fbf44 | exchanges/btse: Handle TRUMPSOL in MarketPair.Pair and add test coverage | # PR Description
TRUMP strikes again with a special edge case for BTSE's MarketPair Pair method handling as no other symbols experience this issue.
Fixes #1802
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## How has this been tested
- [x] go test ./... -race
- [x] golang... | diff --git a/exchanges/btse/btse_test.go b/exchanges/btse/btse_test.go
index 28f493c058b..44e13423887 100644
--- a/exchanges/btse/btse_test.go
+++ b/exchanges/btse/btse_test.go
@@ -752,6 +752,34 @@ func TestStripExponent(t *testing.T) {
assert.ErrorIs(t, err, errInvalidPairSymbol, "Should error on a symbol with too m... | 7 | 5 | 0 | [{"id": "G0", "claim": "The BTCUSD test case that expects errInvalidPairSymbol should not also declare expectedSymbol \"BTCUSD\", since no symbol is expected on an error case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's assertion b... | null |
thrasher-corp__gocryptotrader__1813 | thrasher-corp/gocryptotrader | 1,813 | defect | 8fad9856690db86b933095b635c9184795b7fd8c | 7888984f1399ad60475256043e77817b7dcd23d2 | Kraken: Fix sending trades to the websocket DataHandler |
# PR Description
Currently, the Kraken trades are not streaming via the websocket.
Fix: when the tradeFeed is set to `true`, send the data down to the WebSocket DataHandler. Add a test.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complet... | diff --git a/exchanges/kraken/kraken_test.go b/exchanges/kraken/kraken_test.go
index 2babae23b81..352c369d443 100644
--- a/exchanges/kraken/kraken_test.go
+++ b/exchanges/kraken/kraken_test.go
@@ -27,6 +27,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/sharedtestvalues"
"github.com/thrasher-corp/g... | 6 | 6 | 1 | [{"id": "G0", "claim": "Collapse the wrapped two-line condition onto one line: `if !saveTradeData && !tradeFeed {`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unchecked type assertions on the trade fields will panic if the data type is d... | null |
thrasher-corp__gocryptotrader__1845 | thrasher-corp/gocryptotrader | 1,845 | defect | e544e99c48f2a440b3dec5ec3a96a35903b232e8 | bed899ecfa41bf8b28e109d75c75d8aae38d7756 | BTSE: Fix sending trades to the websocket DataHandler | # PR Description
Currently, the BTSE trades are not streaming via the websocket.
The following changes were made:
- Update the raw trade data to match the API docs
- Fix extracting the pair from the topic
- Update the test
- Amend the configtest to enable the trade feed
## Type of change
- [x] Bug fix (no... | diff --git a/exchanges/btse/btse_test.go b/exchanges/btse/btse_test.go
index 0572e529302..f3523ed0b61 100644
--- a/exchanges/btse/btse_test.go
+++ b/exchanges/btse/btse_test.go
@@ -24,6 +24,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/stream"
"github.com/thrasher-corp/gocryptotrader/exchanges/su... | 3 | 3 | 3 | [{"id": "G0", "claim": "The wsTradeData type does not match the live tradeHistoryApi payload (wrong field set and mismatched JSON keys), so unmarshalling live trades fails with an int64/string mismatch error and no trades are processed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in... | null |
thrasher-corp__gocryptotrader__1867 | thrasher-corp/gocryptotrader | 1,867 | defect | 956d38be5ed49ac97bfc14b230e1d94ae3c239fd | aba0c7da26127420d386ee431748bd7a97c14675 | Config: Eliminate shared config version package vars | * Fixes shared vars in both runtime and test packages
* Fixes test func names in Version6
Fixes #1864
## Type of change
- [x] Test fix (non-breaking change which fixes an issue) | diff --git a/config/versions/v2.go b/config/versions/v2.go
index d2ebea68198..e7f8af32aea 100644
--- a/config/versions/v2.go
+++ b/config/versions/v2.go
@@ -13,26 +13,21 @@ func init() {
Manager.registerVersion(2, &Version2{})
}
-const (
- from = "GDAX"
- to = "CoinbasePro"
-)
-
// Exchanges returns just GDAX a... | 3 | 1 | 1 | [{"id": "G0", "claim": "The reviewer questions why the shared from/to package consts in v2.go are a problem at all, i.e. the rationale for the PR removing them.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request does not build: config/versions... | null |
thrasher-corp__gocryptotrader__1885 | thrasher-corp/gocryptotrader | 1,885 | defect | 676b2e0367751cb56323959c47bbc7d85830726a | 882f43b7b8cdf581b0ae62472a6ba53133206b43 | cmd/documentation: Add pagination support for contributors | # PR Description
After wondering why there were duplicates being added to the contributor list in a non-deterministic fashion, I wondered if it was due to an API pagination limit and turns out it was. This PR adds pagination support to the docs tool after several years 😆Default display list is sorted by contributor... | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 4a1bcb6dd3f..3a46e585b9a 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1,59 +1,88 @@
Thanks to the following contributors:
thrasher- | https://github.com/thrasher-
-shazbert | https://github.com/shazbert
dependabot[bot] | https://github.com/apps/dependabot
+shazber... | 6 | 3 | 0 | [{"id": "G0", "claim": "Use a proper context (e.g. context.Background()) instead of context.TODO() in the GetContributorList call in main; gbjk's reply additionally asks for a `ctx := context.Background()` near the top of main rather than a context hidden inside an if condition.", "category": "maintainability", "verdic... | null |
thrasher-corp__gocryptotrader__1909 | thrasher-corp/gocryptotrader | 1,909 | defect | 3a553870052382c7bd568b9aa2ef0d5faa99dcc0 | f9a3eb388a3702e80801bfe6a140bde4cde967cc | orderbook: flatpack map and mutex to rwmutex | # PR Description
* Slightly improves access to depth ptr for updating and fetching across routines
* Removes string to lower; not needed and adds overhead in hot path
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (... | diff --git a/exchanges/orderbook/depth.go b/exchanges/orderbook/depth.go
index fa59e45c30b..245629f3087 100644
--- a/exchanges/orderbook/depth.go
+++ b/exchanges/orderbook/depth.go
@@ -53,7 +53,7 @@ type Depth struct {
// NewDepth returns a new orderbook depth
func NewDepth(id uuid.UUID) *Depth {
- return &Depth{_I... | 9 | 6 | 0 | [{"id": "G0", "claim": "The reviewer requests that all methods on the internal (s *store) type be unexported, arguing the change makes the order book store a singleton that should only be interacted with through package-level functions like orderbook.Butts().", "category": "design", "verdict": "opposed", "priority": "P... | null |
thrasher-corp__gocryptotrader__1926 | thrasher-corp/gocryptotrader | 1,926 | defect | 9f659e71e346de23906f17e274b68284e7139e1b | 7665e77c33dd54e76ba190f043c178ad6bb1f149 | Kraken: Protect authToken with RWMutex to prevent race | From Jules:
This commit introduces a sync.RWMutex to protect the global `authToken` variable in `exchanges/kraken/kraken_websocket.go`.
The race condition occurred due to concurrent read/write access to `authToken` from different goroutines, notably between `WsConnect` (write) and functions like `wsCancelOrder`, ... | diff --git a/exchanges/kraken/kraken_websocket.go b/exchanges/kraken/kraken_websocket.go
index 00b90fbf52f..9d34bcf8b05 100644
--- a/exchanges/kraken/kraken_websocket.go
+++ b/exchanges/kraken/kraken_websocket.go
@@ -9,6 +9,7 @@ import (
"net/http"
"strconv"
"strings"
+ "sync"
"text/template"
"time"
@@ -80,... | 5 | 2 | 1 | [{"id": "G0", "claim": "Use `defer authTokenMutex.Unlock()` immediately after `Lock()` in `WsConnect` to guarantee the mutex is always released, even if future code paths return early or panic.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repe... | null |
thrasher-corp__gocryptotrader__1929 | thrasher-corp/gocryptotrader | 1,929 | defect | 9f659e71e346de23906f17e274b68284e7139e1b | 263f925536b8e1de6691f821d184b64324afd61c | config: Fix TestPromptForConfigEncryption race | # PR Description
From jules:
Here's how I resolved a race condition in the encryption prompt tests:
I've refactored `promptForConfigEncryption` to accept an `io.Reader`. This allows tests to use `strings.NewReader` instead of relying on the global `os.Stdin`. This change isolates the input source for `TestPrompt... | diff --git a/config/config.go b/config/config.go
index 4bf5be05d5d..f916ffc1363 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1487,7 +1487,7 @@ func (c *Config) readConfig(d io.Reader) error {
// If they agree, c.EncryptConfig is set to Enabled, the config is encrypted and saved
// Otherwise, c.EncryptConf... | 7 | 3 | 1 | [{"id": "G0", "claim": "Subtests invoke t.Parallel() and capture the loop variable tc by reference, which can cause each subtest to see the same tc value; introduce a scoped variable (tc := tc) before t.Run to avoid the closure capture issue.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope":... | null |
thrasher-corp__gocryptotrader__1980 | thrasher-corp/gocryptotrader | 1,980 | defect | 0fd33341da0ac75c744d008d5d248342449dc2e4 | 9931503aed47e60cba1759f1a973677da5520a96 | bybit: fix UpdateAccountInfo free and hold calculations | # PR Description
For free field available to withdraw is a separate to tradable amounts. New calculation derives diff from borrow amount as wallet balance includes negative amounts that are borrowed. Then reduces the result by the locked amount which can be a limit order.
Hold is just the locked amount.
## Ty... | diff --git a/exchanges/bybit/bybit_test.go b/exchanges/bybit/bybit_test.go
index 0047c6ab8cc..f494223b67a 100644
--- a/exchanges/bybit/bybit_test.go
+++ b/exchanges/bybit/bybit_test.go
@@ -2886,15 +2886,15 @@ func TestUpdateAccountInfo(t *testing.T) {
case 0:
assert.Equal(t, currency.USDC, r.Accounts[0].Curren... | 4 | 3 | 1 | [{"id": "G0", "claim": "The free balance calculation is complex and difficult to understand; extract it or make it readable (borrowed + wallet - locked), e.g. via a loop variable and without the redundant parentheses.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
thrasher-corp__gocryptotrader__1990 | thrasher-corp/gocryptotrader | 1,990 | defect | 2ab4379189c6d1d5704aebcc8a7062ecdf31ee88 | ecd90c385b2021d5dacb7aa5f5e4c8e282088b10 | Okx: Fix websocket candle subscription handling | * Okx: Fix MarkPriceCandles not including Pair
* Fix panic in BusinessSubscribe when no pairs
* Fix websocket candle subscription handling
Note: This is aimed at a bare minimum footprint.
There's a lot of refactoring and driveby fixes that I wanted to do, but then this would become huge.
I tried 3 times to find ... | diff --git a/exchanges/okx/okx_business_websocket.go b/exchanges/okx/okx_business_websocket.go
index 2f3ace0bdca..3e965bab161 100644
--- a/exchanges/okx/okx_business_websocket.go
+++ b/exchanges/okx/okx_business_websocket.go
@@ -6,9 +6,11 @@ import (
"fmt"
"net/http"
"strconv"
+ "strings"
"time"
gws "github... | 7 | 4 | 1 | [{"id": "G0", "claim": "The condition uses string constants (candle, indexCandlestick, markPrice) that may not be defined or accessible in this scope; consider using defined constants or checking they are properly declared.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"i... | null |
thrasher-corp__gocryptotrader__1995 | thrasher-corp/gocryptotrader | 1,995 | defect | 3178366d8620c34ac63d7003ccbf49bd1faa8610 | 5371fb338aa918e5c6b0a68e70a222e38118c109 | Deribit: Replace bespoke message IDs with uuid v7 | This PR is a prototype for changes that can be made to most of the exchanges.
UUID V7 is a time ordered unique identifier. I'd generally been clinging to V4 until recently)
By using standard IDs directly in our exchange implementations we reduce inter-linking, testing plane, and overall code.
The aim is that by ... | diff --git a/exchanges/deribit/deribit_types.go b/exchanges/deribit/deribit_types.go
index d5ede2320b0..15815d82e68 100644
--- a/exchanges/deribit/deribit_types.go
+++ b/exchanges/deribit/deribit_types.go
@@ -63,6 +63,8 @@ var (
errRefreshTokenRequired = errors.New("refresh token is required")
errSub... | 9 | 5 | 2 | [{"id": "G0", "claim": "The return statement added to WsConnect makes the whole function exit when authentication fails, but it should keep the existing behaviour of logging the error, disabling authenticated endpoints and still establishing the connection.", "category": "correctness", "verdict": "supported", "priority... | null |
thrasher-corp__gocryptotrader__2011 | thrasher-corp/gocryptotrader | 2,011 | defect | 7ebc3925320ffe2b7fdc1d3316663dc94dfb0996 | c4dd115f29f219396459bd9102e27d1e66b11e5b | GateIO: Fix account sequence issue, expand structs, add tests | # PR Description
When doing order ops they return the same timestamp, so this makes GCT an unhappy 👶
```console
2025-08-21 11:25:16 ERR connection URL:[wss://fx-ws.gateio.ws/v4/ws/usdt] error: cannot update balance for 12870774.usdtmarginedfutures.PFVS out of sequence subLogger=LOG
```
* account: just makes... | diff --git a/exchanges/account/account.go b/exchanges/account/account.go
index a405cf7ebb6..29cd890c07e 100644
--- a/exchanges/account/account.go
+++ b/exchanges/account/account.go
@@ -396,7 +396,7 @@ func (b *ProtectedBalance) load(change *Balance) error {
}
b.m.Lock()
defer b.m.Unlock()
- if !b.updatedAt.IsZero... | 7 | 6 | 1 | [{"id": "G0", "claim": "In processBalancePushData the account balance's Currency field is set from bal.Currency instead of the potentially reassigned c, so the options USDT fallback is not applied to the reported balance; use c instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
thrasher-corp__gocryptotrader__2021 | thrasher-corp/gocryptotrader | 2,021 | defect | d5b2cf1759222eea04644b13dbf63e49cb420171 | baf2d8afb5e49fdf265c5a2ee5c2e2eab1f9bb3d | exchanges/order, GateIO: Update USDT margined futures pathway for cancel all orders | # PR Description
Gateio: Fixes pair formatting issue with pair in `CancelAllOrders` and side issue.
Order: Removes field count and opt for map insertion len check instead as it will be bypassed on grpc anyway if not set.
Order; Adds Load method so we don't need to instantiate the map and we could add more checks l... | diff --git a/engine/rpcserver.go b/engine/rpcserver.go
index b0e9525fb72..ce81032c307 100644
--- a/engine/rpcserver.go
+++ b/engine/rpcserver.go
@@ -1439,12 +1439,10 @@ func (s *RPCServer) CancelAllOrders(ctx context.Context, r *gctrpc.CancelAllOrde
// TODO: Change to order manager
resp, err := exch.CancelAllOrders... | 11 | 10 | 3 | [{"id": "G0", "claim": "The switch from cancel.Status to cancel.FinishAs when building the cancellation response should be verified to ensure FinishAs carries the correct status information (suggesting a revert to Status).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id... | null |
thrasher-corp__gocryptotrader__2023 | thrasher-corp/gocryptotrader | 2,023 | defect | a3c042cb93f6d4bc6077a595274b8b65d39f1f4b | 8022f4be3277fd928e0e69c6ca48f34023b0e480 | GateIO: Fix and standardise ping handling | # PR Description
* Fixes ping handler bug
* standardises to single func
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds fu... | diff --git a/exchange/websocket/connection.go b/exchange/websocket/connection.go
index e1e7968e660..80106c744a1 100644
--- a/exchange/websocket/connection.go
+++ b/exchange/websocket/connection.go
@@ -282,7 +282,7 @@ func (c *connection) ReadMessage() Response {
// method on WebsocketConnection type has been called... | 7 | 5 | 0 | [{"id": "G0", "claim": "The options and delivery futures ping handler delay was changed from 5 seconds to 15 seconds without explanation; it should be documented or reverted if unintentional.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ping... | null |
thrasher-corp__gocryptotrader__203 | thrasher-corp/gocryptotrader | 203 | defect | 19f65df23628214805efb6db122a84e9ce629dba | 7cd57d6e01b6dc78a89d946258cd6243d2fe6100 | Requester update | ## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [x] New feature (non-breaking change which adds functionality)
# How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please... | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 75a763f4882..6886d5764f7 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3,15 +3,18 @@ Thanks to the following contributors:
thrasher- | https://github.com/thrasher-
shazbert | https://github.com/shazbert
gloriousCode | https://github.com/gloriousCode
-140am | https://... | 2 | 1 | 0 | [{"id": "G0", "claim": "Replace the hardcoded retry-loop bound with a request var called DefaultTimeoutRetryAttempts set to 3, changing the loop to i < DefaultTimeoutRetryAttempts+1 (overridable later via the engine refactor).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
thrasher-corp__gocryptotrader__2051 | thrasher-corp/gocryptotrader | 2,051 | defect | b74888577c5f9f6ecaf1d3712a837d540a849d98 | 7c64facbfd378628836f46a11219a56423e252f6 | Okx: Fix authenticated websocket login | # PR Description
Please include a summary of the change, feature or issue which this pull request addresses. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1970
if i use SendAuthenticatedWebsocketRequest,i will got err
<img width="945" heigh... | diff --git a/exchanges/okx/okx_types.go b/exchanges/okx/okx_types.go
index 50cbe3d71cc..86b79fa99ea 100644
--- a/exchanges/okx/okx_types.go
+++ b/exchanges/okx/okx_types.go
@@ -3171,6 +3171,12 @@ type WebsocketLoginData struct {
Sign string `json:"sign"`
}
+// WebsocketOp holds the operation and arguments
+t... | 9 | 8 | 2 | [{"id": "G0", "claim": "WebsocketOp.Args typed as any reduces type safety; consider a more specific type like []WebsocketLoginData.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The operation name 'login' is hardcoded as a magic string and should be def... | null |
thrasher-corp__gocryptotrader__2069 | thrasher-corp/gocryptotrader | 2,069 | defect | 72f7b3b6183a150073ba94283d8976c91f46a1d8 | 96c4ec0c3e5bb672d28f48afaab22390c7825c00 | bybit: Enhance order execution limits | # PR Description
Updates order execution limits
depends #2018
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Break... | diff --git a/exchange/order/limits/limits_types.go b/exchange/order/limits/limits_types.go
index 8d2c9a31a18..cf9422a9479 100644
--- a/exchange/order/limits/limits_types.go
+++ b/exchange/order/limits/limits_types.go
@@ -52,6 +52,7 @@ type MinMaxLevel struct {
MinPrice float64
MaxPrice ... | 13 | 6 | 0 | [{"id": "G0", "claim": "Appending contracts[i].Name to the pairs slice might be incorrect as the naming suggests a type mismatch; the reviewer suggests restoring currency.NewPairFromString with error handling.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c... | null |
thrasher-corp__gocryptotrader__2073 | thrasher-corp/gocryptotrader | 2,073 | defect | dcf98ec7003c4ea3e732c628fc56c93fae6c91bf | d563e2a3c6bf7949344f2a230f3862605771d3d5 | request/rate limit: add context value check and fix bug | # PR Description
* Change `RateLimit` function to be method of `RateLimiterWithWeight`
* Have single time value on all delay calls so that reservations can be cancelled correctly
* Add function `WithNoDelayPermitted` so that any delay will error for e.g. outbound orders that are time critical
* RM reservations ty... | diff --git a/exchange/websocket/connection.go b/exchange/websocket/connection.go
index d7a8bbf8575..2d05f14d449 100644
--- a/exchange/websocket/connection.go
+++ b/exchange/websocket/connection.go
@@ -214,7 +214,7 @@ func (c *connection) writeToConn(ctx context.Context, epl request.EndpointLimit,
}
if rl != nil {... | 27 | 20 | 1 | [{"id": "G0", "claim": "The zero-weight check should be `r.weight <= 0` so it matches the error message and handles negative weights consistently.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `for i := range r.weight` loop over the numeric Weigh... | null |
thrasher-corp__gocryptotrader__2090 | thrasher-corp/gocryptotrader | 2,090 | defect | 5d4e5b06274622eb98012a4bf28ce8bb92cc2412 | 1eb2cad85f543fb09e5545963ef7e27804b3aa4d | common.go: Update ErrorCollector to use mutex and simplify error collection in concurrent operations | # PR Description
* leverages `sync.WaitGroup Go` method to auto scale so we don't need to specify routine count
* uses `common.AppendError` on field errs protected by mutex so we don't need to specify chan len
* privatises fields so only have method calls, reducing caller complexity
* have func closure return an... | diff --git a/common/common.go b/common/common.go
index bc60ba0cc9f..865e1714ed9 100644
--- a/common/common.go
+++ b/common/common.go
@@ -553,31 +553,31 @@ func ExcludeError(err, excl error) error {
}
// ErrorCollector allows collecting a stream of errors from concurrent go routines
-// Users should call e.Wg.Done a... | 8 | 6 | 0 | [{"id": "G0", "claim": "The closures passed to ErrorCollector.Go capture the range loop variables (batchedSubs in ParallelChanOp, a in deribit UpdateTradablePairs, id in kraken wsCancelOrders) directly and may therefore all run with the last iteration's value, so earlier batches, asset types or order IDs could be skipp... | null |
thrasher-corp__gocryptotrader__2094 | thrasher-corp/gocryptotrader | 2,094 | defect | bda9bbec664da8e3c890f84feda569207dc4fead | 13a89e4aded023dfc247b1f3e3e9f945b0fcf566 | Deribit: Fix future_combo instrument parsing | Deribit seems to have opened up more instruments for future combos and is using a `-` delimiter in them, throwing off our parsing rule that it's always 3 parts for them.
This change adds in the "FS" part, which seems consistent.
I would have added checking for such a part to option_combo but some of them are miss... | diff --git a/exchanges/deribit/deribit.go b/exchanges/deribit/deribit.go
index 3240b8140ec..f020db7b4c4 100644
--- a/exchanges/deribit/deribit.go
+++ b/exchanges/deribit/deribit.go
@@ -2619,7 +2619,9 @@ func getAssetFromInstrument(instrument string) (asset.Item, error) {
return asset.Futures, nil
case currencySuff... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new case condition could panic with an index out of bounds when partsLen is less than 2, so add an explicit partsLen >= 2 check or change the condition to partsLen > 2 before accessing currencyParts[partsLen-2].", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "i... | null |
thrasher-corp__gocryptotrader__2101 | thrasher-corp/gocryptotrader | 2,101 | defect | 9441f33f42dcf0a42c39e13e5073f4628858f1d7 | 266015d3bec7bdf14063ca2957cb92eab5834fd5 | refactor: use reflect.TypeFor instead of reflect.TypeOf and improve related tests | # PR Description
Try to use better api reflect.TypeFor instead of reflect.TypeOf when we have known the type.
More info https://github.com/golang/go/issues/60088
Fixes # (issue)
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## How has this been tested
Please d... | diff --git a/cmd/exchange_wrapper_coverage/main.go b/cmd/exchange_wrapper_coverage/main.go
index 2471b8c6e41..05cdd8da40a 100644
--- a/cmd/exchange_wrapper_coverage/main.go
+++ b/cmd/exchange_wrapper_coverage/main.go
@@ -65,7 +65,7 @@ func main() {
log.Println("Done.")
var dummyInterface exchange.IBotExchange
- t... | 4 | 4 | 4 | [{"id": "G0", "claim": "Remove the now-unused `dummyInterface` variable in cmd/exchange_wrapper_coverage/main.go, which the switch to reflect.TypeFor left declared and not used.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "loader_test.go uses *ten... | null |
thrasher-corp__gocryptotrader__2102 | thrasher-corp/gocryptotrader | 2,102 | defect | 9441f33f42dcf0a42c39e13e5073f4628858f1d7 | c34631786f282bc5034c56549cce6cb6b2c9444a | GateIO: Add GetEstimatedInterestRate REST endpoint | # PR Description
* Add func with tests
* change field types to lib types.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds ... | diff --git a/exchanges/gateio/gateio.go b/exchanges/gateio/gateio.go
index d9b2fe05787..a3ae270320b 100644
--- a/exchanges/gateio/gateio.go
+++ b/exchanges/gateio/gateio.go
@@ -166,6 +166,8 @@ var (
errMissingAPIKey = errors.New("missing API key information")
errInvalidTextPrefix =... | 6 | 6 | 1 | [{"id": "G0", "claim": "The errTooManyCurrencyCodes message should be worded around the actual error rather than stating a limitation, e.g. errors.New(\"too many currency codes supplied\").", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The too-many... | null |
thrasher-corp__gocryptotrader__2134 | thrasher-corp/gocryptotrader | 2,134 | defect | 43d83769ecf898859f47d951b557f99607aaa6d6 | 22990eb406c6e49c8b4dd48b3626cfa04de4b6a4 | Deribit: Add futureComboPairToString func, remove redundant endpoints and fix test issues | # PR Description
Adds a futureComboPairToString func similar to the others, removes redundant endpoints and fixes related tests
Fixes #2099
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## How has this been tested
- [x] go test ./... -race
- [x] golangci-lint run... | diff --git a/exchanges/deribit/deribit.go b/exchanges/deribit/deribit.go
index f020db7b4c4..c132343c038 100644
--- a/exchanges/deribit/deribit.go
+++ b/exchanges/deribit/deribit.go
@@ -292,17 +292,6 @@ func (e *Exchange) GetHistoricalVolatility(ctx context.Context, ccy currency.Cod
return data, e.SendHTTPRequest(ctx,... | 3 | 2 | 0 | [{"id": "G0", "claim": "Using currency.Pair as a map key in TestFutureComboPairToString will cause a compilation error because the Pair struct is claimed to be non-comparable, so the test should be refactored to a slice of test-case structs (optionally with t.Run subtests).", "category": "correctness", "verdict": "unce... | null |
thrasher-corp__gocryptotrader__2157 | thrasher-corp/gocryptotrader | 2,157 | defect | 4378812ed8f44103467a6779716bc6a0fb5ea700 | a3f993f1b2b0d0e2261421b43d768317f42c9fda | engine/kucoin: change validation logic for credentials | # PR Description
With regards to Kucoin when futures was the only thing enabled it would fail when trying to verify/validate the credentials key and turn it off.
engine:
* Add logic that sets spot first then a futures item then falls back to first available asset.
* **I stopped the setting of false to the cr... | diff --git a/engine/engine.go b/engine/engine.go
index a1d37a7c264..b4926020210 100644
--- a/engine/engine.go
+++ b/engine/engine.go
@@ -708,17 +708,13 @@ func (bot *Engine) LoadExchange(name string) error {
return err
}
- if bot.Settings.EnableAllPairs &&
- exchCfg.CurrencyPairs != nil {
- assets := exchCfg.C... | 4 | 2 | 0 | [{"id": "G0", "claim": "Indexing `enabled[0]` without checking whether the enabled asset list is empty can panic and crash LoadExchange when an exchange reports authenticated support but has zero enabled assets.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", ... | null |
thrasher-corp__gocryptotrader__2163 | thrasher-corp/gocryptotrader | 2,163 | defect | 7dbca5147bce9f71771668eac518e3168d462dd2 | 8d1a22aeb01939536a345c461b803358a7c4d8d9 | CI: Add backend live test build job for mock_test_off tests | # PR Description
Adds a live build CI test with mock_test_off (but excludes some exchanges from running TestMain since they perform network operations, getting us banned) due to TestMain still being executed. Thanks to @cranktakular for reporting this
## Type of change
- [x] Bug fix (non-breaking change which ... | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c4e442c7526..7b5fc0efb7a 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -118,6 +118,31 @@ jobs:
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+
+ backend... | 4 | 4 | 0 | [{"id": "G0", "claim": "Define the websocket relay buffer size 10000 as a constant instead of a magic number, ideally a shared one in the sharedtestvalues package, since the same value is used in binance_live_test.go and poloniex_live_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "... | null |
thrasher-corp__gocryptotrader__2189 | thrasher-corp/gocryptotrader | 2,189 | defect | 8743dc2a65d2a9c0944a9be23377059ee6e78df4 | 967721baefa6cfc75932b0191ca773c32882a835 | exchanges/binance, okx, poloniex: Fix various test failures | ## Summary
This PR stabilizes wrapper/funding-rate tests and fixes Poloniex ticker update formatting behavior with a minimal patchset.
### What changed
- **Binance tests** (`TestGetLatestFundingRates`)
- Isolated test state by using a fresh local exchange instance in-test.
- Kept CoinMarginedFutures request shape ... | diff --git a/exchanges/binance/binance_test.go b/exchanges/binance/binance_test.go
index 107c3bd0f56..f6d722f237d 100644
--- a/exchanges/binance/binance_test.go
+++ b/exchanges/binance/binance_test.go
@@ -2803,23 +2803,32 @@ func TestGetHistoricalFundingRates(t *testing.T) {
func TestGetLatestFundingRates(t *testing... | 3 | 2 | 1 | [{"id": "G0", "claim": "In TestGetHistoricCandles the new skip branch should continue only on the specific no-data error rather than on any non-nil error for futures (and spread/options), so real failures like auth or parsing errors still fail the test.", "category": "correctness", "verdict": "supported", "priority": "... | null |
thrasher-corp__gocryptotrader__2192 | thrasher-corp/gocryptotrader | 2,192 | defect | 97c28a88881136d2404376327105df00a2732f89 | d464dc9694bcfc33989593dc0dbaf05087d8c69e | engine, OKX, backtester, trade: Resolve race conditions and harden test stability | ## Summary
This PR is a single squashed commit that resolves race conditions and hardens test stability across engine, OKX, backtester, database, dispatch, orderbook, ticker, and trade processor paths.
### Engine race fixes
- fix `ExchangeManager.Shutdown` so worker goroutines no longer mutate `m.exchanges` directly
-... | diff --git a/engine/engine_test.go b/engine/engine_test.go
index 1e8861aece4..5d8363f6971 100644
--- a/engine/engine_test.go
+++ b/engine/engine_test.go
@@ -340,12 +340,12 @@ var unsupportedDefaultConfigExchanges = []string{
}
func TestGetDefaultConfigurations(t *testing.T) {
- t.Parallel()
+ // Intentionally seria... | 6 | 4 | 1 | [{"id": "G0", "claim": "The `results` channel should be explicitly closed after all possible sends have completed, as good channel-management practice.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR's fix for issue #1614 is incomplete: ge... | null |
thrasher-corp__gocryptotrader__2194 | thrasher-corp/gocryptotrader | 2,194 | defect | 76c32053454235e5db58af9ed1d81f123ed74742 | f09bad619b9e6d1d9b16b23bd7fa0d3bb2b80329 | bybit: migrate spot margin endpoints to v5 and align test/fixture coverage | ## Summary
Closes #2121.
Migrates Bybit spot-margin calls to current v5 routes and aligns parsing/tests with live response shapes.
## Changes
- Move to:
- `spot-margin-trade/data`
- `spot-margin-trade/collateral`
- `spot-margin-trade/max-borrowable` (auth v5)
- Parse collateral response via `collateralRatioList... | diff --git a/exchanges/bybit/bybit.go b/exchanges/bybit/bybit.go
index 0195236ec2d..359a5176807 100644
--- a/exchanges/bybit/bybit.go
+++ b/exchanges/bybit/bybit.go
@@ -23,6 +23,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/kline"
"github.com/thrasher-corp/gocryptotrader/exchanges/order"
"githu... | 6 | 4 | 2 | [{"id": "G0", "claim": "Use a value-only `for...range` loop instead of indexing into the slice for readability and idiomatic Go in GetMarginCoinInfo's collateral mapping.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The initial check for `\"\"... | null |
thrasher-corp__gocryptotrader__2199 | thrasher-corp/gocryptotrader | 2,199 | defect | 6de28592686a7525ab56cde7c2030df95a741304 | 8f6aeb4a2277bf4582e466e7df4decac0bbc6a57 | tests: add shared authenticated websocket precheck helper | ## Summary
- add `SkipTestIfCannotUseAuthenticatedWebsocket` to `internal/testing/exchange`
- migrate equivalent authenticated websocket precheck call sites to use the helper in:
- `exchanges/bitfinex/bitfinex_test.go`
- `exchanges/bitmex/bitmex_test.go`
- `exchanges/coinut/coinut_test.go`
- `exchanges/gemini/g... | diff --git a/exchanges/bitfinex/bitfinex_test.go b/exchanges/bitfinex/bitfinex_test.go
index b6b32211583..37aa1880adc 100644
--- a/exchanges/bitfinex/bitfinex_test.go
+++ b/exchanges/bitfinex/bitfinex_test.go
@@ -1111,13 +1111,7 @@ func TestGetDepositAddress(t *testing.T) {
}
func TestWSAuth(t *testing.T) {
- if !e... | 3 | 2 | 0 | [{"id": "G0", "claim": "SkipTestIfCannotUseAuthenticatedWebsocket should accept testing.TB instead of *testing.T, matching other helpers in the package, so it is usable from a broader set of test helpers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
thrasher-corp__gocryptotrader__2209 | thrasher-corp/gocryptotrader | 2,209 | defect | 9e3abe86bcae7db5789e36b179d5547acc0db485 | 9a54fcec670aeb534c4a7e002e0300196ba5ae5e | kraken: handle authenticated websocket subscriptions without pairs | Fixes #1930.
Kraken authenticated websocket channels such as `myTrades` / `myOrders` (`ownTrades` / `openOrders`) do not include pairs, but the current subscribe path still waits for `len(s.Pairs)` responses and later assumes subscription status payloads always contain a `pair`, which can fail with `buffer size must b... | diff --git a/exchanges/kraken/kraken_test.go b/exchanges/kraken/kraken_test.go
index 79b2baba9f1..a3c81092cd6 100644
--- a/exchanges/kraken/kraken_test.go
+++ b/exchanges/kraken/kraken_test.go
@@ -1,6 +1,7 @@
package kraken
import (
+ "context"
"errors"
"log"
"net/http"
@@ -17,6 +18,7 @@ import (
"github.co... | 4 | 4 | 2 | [{"id": "G0", "claim": "In handleSubResps, a pairless authenticated subscription should have exactly one response, so an error should be returned when len(resps) != 1 and the single response passed to getSubRespErr, instead of iterating over the slice.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
thrasher-corp__gocryptotrader__2210 | thrasher-corp/gocryptotrader | 2,210 | defect | 9e3abe86bcae7db5789e36b179d5547acc0db485 | bd6b3dc6465b41671a75c7ee88a0823046a8baef | gateio: use contract stats for perpetual open interest | Addresses #1803.
`GetOpenInterest` was deriving a notional-style value from contract metadata instead of using GateIO's reported `open_interest`. This switches `asset.CoinMarginedFutures` and `asset.USDTMarginedFutures` to `GetFutureStats`, which exposes the actual contract `open_interest` field.
Delivery futures are... | diff --git a/exchanges/gateio/gateio_test.go b/exchanges/gateio/gateio_test.go
index 55dfddc01fb..19db0870320 100644
--- a/exchanges/gateio/gateio_test.go
+++ b/exchanges/gateio/gateio_test.go
@@ -2880,7 +2880,16 @@ func TestGetOpenInterest(t *testing.T) {
Asset: a,
})
assert.NoErrorf(t, err, "GetOpenInterest... | 4 | 3 | 2 | [{"id": "G0", "claim": "The loop selecting the latest ContractStat is unidiomatic and hard to read, and is possibly redundant since GetFutureStats is called with limit=1 (the reviewer suggests an idiomatic range loop, or simplifying to stats[0] if the limit=1 assumption holds).", "category": "readability", "verdict": "... | null |
thrasher-corp__gocryptotrader__2236 | thrasher-corp/gocryptotrader | 2,236 | defect | ef1e5334f2893a1160ab5f1ba9bc88d23465a657 | 834246103961a5f160d5867361116e619d2b53b7 | Bitfinex: Accept trailing ticker timestamps | ## Summary
- Accept Bitfinex REST trading ticker payloads with a trailing timestamp field.
- Accept Bitfinex REST funding ticker payloads with a trailing timestamp field.
- Preserve strict validation by only allowing the legacy payload widths and the new timestamp-appended widths.
- Add direct regression coverage for l... | diff --git a/exchanges/bitfinex/bitfinex.go b/exchanges/bitfinex/bitfinex.go
index 8d0e2750d02..b30d5685b1e 100644
--- a/exchanges/bitfinex/bitfinex.go
+++ b/exchanges/bitfinex/bitfinex.go
@@ -683,7 +683,14 @@ func tickerFromResp(symbol string, respAny []any) (*Ticker, error) {
if strings.HasPrefix(symbol, "f") {
... | 4 | 2 | 2 | [{"id": "G0", "claim": "When accepting the 11-field trading ticker payload, the code drops the last element without validating it, so a malformed non-timestamp extra field would be silently accepted; it should validate the 11th element is a numeric timestamp before slicing and otherwise return errTickerInvalidResp.", "... | null |
thrasher-corp__gocryptotrader__294 | thrasher-corp/gocryptotrader | 294 | defect | ee28d18f189fb1f022e746a81e3290c4bea46931 | c9e72a881a6d093a1fc14fc32b3697e1d1b1bead | Connection checker update | Adds logic to ensure nothing proceeds a connectivity check and adds tests
- [x] New feature (non-breaking change which adds functionality)
# How Has This Been Tested?
go test ./...
# Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code... | diff --git a/connchecker/connchecker.go b/connchecker/connchecker.go
index 03b725f7cce..9bb82e4293a 100644
--- a/connchecker/connchecker.go
+++ b/connchecker/connchecker.go
@@ -2,6 +2,7 @@ package connchecker
import (
"net"
+ "strings"
"sync"
"time"
@@ -10,7 +11,14 @@ import (
// DefaultCheckInterval is a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test function name TestNew could be updated to reflect what the test actually tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Checking the error for a string match might break in the future or on a non-tested OS... | null |
thrasher-corp__gocryptotrader__483 | thrasher-corp/gocryptotrader | 483 | defect | c0d2ac5e51f55ddfef326af67af397b14c560b84 | 8fe64df1ed53f810f50bbefda23a57ed76af486f | Binance: Fix Request Rate Limits | # PR Description
Request types / variations contribute different weights towards the limit Binance enforces. These can be considerably more than 1 per request, which results in the server side limits being hit, producing 429 and 418 responses and bans
## Type of change
- [x] Bug fix (non-breaking change which ... | diff --git a/exchanges/binance/binance.go b/exchanges/binance/binance.go
index 2431c3e154d..72b469c4834 100644
--- a/exchanges/binance/binance.go
+++ b/exchanges/binance/binance.go
@@ -75,7 +75,7 @@ func (b *Binance) GetExchangeInfo() (ExchangeInfo, error) {
var resp ExchangeInfo
path := b.API.Endpoints.URL + excha... | 4 | 3 | 1 | [{"id": "G0", "claim": "The doc comment on the exported NewBurstableRateLimit should begin with a summary that starts with the declared name NewBurstableRateLimit, not NewRateLimit.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The limitOrderbook... | null |
thrasher-corp__gocryptotrader__485 | thrasher-corp/gocryptotrader | 485 | defect | 8ab6a7f6535257d3ea1d0b5a1f45ec9eb07863f3 | 4ba1f90aa1a17b964971502beed9d7bec4bd0f47 | Portfolio: Add support for XRP balance fetching and fix ETH address balance 404 issue | # PR Description
Also syncs address balances straight away instead of waiting the default time for the tick to hit channel.
Fixes #
When we call an ETH address it falls through to another block explorer then errors out. Now it does not.
## Type of change
Please delete options that are not relevant and ad... | diff --git a/engine/portfolio.go b/engine/portfolio.go
index 81363547e2d..3e239b12070 100644
--- a/engine/portfolio.go
+++ b/engine/portfolio.go
@@ -60,11 +60,11 @@ func (p *portfolioManager) run() {
log.Debugf(log.PortfolioMgr, "Portfolio manager shutdown.")
}()
+ p.processPortfolio()
for {
select {
cas... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new GetRippleBalance() function needs a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please rename the XrpBalance field (and its use) to spell XRP in capitals.", "category": "maintainability", "verdict": "supported", ... | null |
thrasher-corp__gocryptotrader__652 | thrasher-corp/gocryptotrader | 652 | defect | 3c72a199f2a8f48caad49ea8140716bd324dbb37 | 87632059e4a17eda489dd9ad8d95e1fbac27ce49 | rpcserver/exchanges: Add additional param checks plus other minor bugfixes/improvements | # PR Description
A test for backtester keeps creating files every time its run. This PR is supposed to delete the files right after they are created.
Also while testing other PRs I found it difficult to navigate through my silly mistakes based on the errors provided:

https://github.com/thrasher-corp/gocryptotrader/issues/662
- [X] Bug fix (non-breaking change which fixes an issue)
## How has this been tested
- [x] go test ./... -race
- ... | diff --git a/exchanges/coinbene/coinbene.go b/exchanges/coinbene/coinbene.go
index a8a4d4a8d6e..298760f0690 100644
--- a/exchanges/coinbene/coinbene.go
+++ b/exchanges/coinbene/coinbene.go
@@ -27,9 +27,9 @@ type Coinbene struct {
const (
coinbeneAPIURL = "https://openapi-exchange.coinbene.com/api/exchange/"
... | 1 | 1 | 0 | [{"id": "G0", "claim": "SendAuthHTTPRequest in coinbene.go does not set the Endpoint field when building the authenticated request, so all authenticated requests are blocked and return the ratelimit error; the reviewer asks the author to fix it while here.", "category": "correctness", "verdict": "supported", "priority"... | null |
thrasher-corp__gocryptotrader__725 | thrasher-corp/gocryptotrader | 725 | defect | b5aa3eddb205b08221a4994afe8ba825af27d8f0 | 418e0572285cb864a2c55e8b16ab21bb6d727fbb | ftx: add basic exchange order execution limits for lower bound | # PR Description
Adds in step increments for price and amount and amount minimum to reduce request errors from API endpoint.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
... | diff --git a/exchanges/ftx/ftx.go b/exchanges/ftx/ftx.go
index 06ab7c88301..39b355d711f 100644
--- a/exchanges/ftx/ftx.go
+++ b/exchanges/ftx/ftx.go
@@ -17,6 +17,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/common/crypto"
"github.com/thrasher-corp/gocryptotrader/currency"
exchange "github.com/thrasher-c... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use MinProvideSize instead of SizeIncrement for the minimum amount in the FTX limits, since it seems more correct.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above FetchExchangeLimits should read 'FetchExchang... | null |
thrasher-corp__gocryptotrader__770 | thrasher-corp/gocryptotrader | 770 | defect | 1e79384b250d07271e77a582cb791983e0194b81 | b6d03ed3974a0920a3914b3ef97743fcdb50cea9 | bithumb: Add missing functionality | # PR Description
Adds Missing API functionality: Assets status
This alerts caller of current withdrawal and deposit status.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue... | diff --git a/exchanges/bithumb/bithumb.go b/exchanges/bithumb/bithumb.go
index 333f64f5f7d..0ba2f3c068c 100644
--- a/exchanges/bithumb/bithumb.go
+++ b/exchanges/bithumb/bithumb.go
@@ -31,6 +31,7 @@ const (
publicOrderBook = "/public/orderbook/"
publicTransactionHistory = "/public/transaction_history/"
p... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new errSymbolIsEmpty sentinel should also be used in GetAccountInformation and GetOrders instead of their ad-hoc errors.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Status struct's DepositStatus and WithdrawalS... | null |
thrasher-corp__gocryptotrader__775 | thrasher-corp/gocryptotrader | 775 | defect | a1a667bab9150e611dc04bad43fa49457171936a | fe3b2f11e734ce3ebc9b5055c2e56abacb92e987 | engine/order manager: Initial REST managed order updating (resolves #772) | # PR Description
When a placed order is filled or partially filled, the orderStore is expected to update the order status accordingly, both in WS and in REST mode. Currently, for exchanges where no websocket stream is available/active, active orders will never get updated: they'll never turn into filled or partially... | diff --git a/engine/order_manager.go b/engine/order_manager.go
index af2696a7c58..859e32b3c63 100644
--- a/engine/order_manager.go
+++ b/engine/order_manager.go
@@ -240,7 +240,7 @@ func (m *OrderManager) GetOrderInfo(exchangeName, orderID string, cp currency.Pa
return order.Detail{}, err
}
- err = m.orderStore.a... | 13 | 12 | 9 | [{"id": "G0", "claim": "The ErrOrdersAlreadyExists comparison in GetOrderInfo can be dropped now that the store call is an upsert that never returns that error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error returned by getActiveOrders... | null |
thrasher-corp__gocryptotrader__907 | thrasher-corp/gocryptotrader | 907 | defect | bf5ced90ca075eeff58c7c98fcfab27408d7d697 | 0ff0d88359f4291ea60fc41d3a65a480dd08baf4 | orderbook: export NewDepth(), add methods to orderbook.Unsafe type | # PR Description
Exports NewDepth functionality for testing and implementation outside of the library.
Adds methods for basic checks and data fetching directly from the linked list.
Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.... | diff --git a/exchanges/orderbook/depth.go b/exchanges/orderbook/depth.go
index fc1265a1e92..5acfcb7a0e5 100644
--- a/exchanges/orderbook/depth.go
+++ b/exchanges/orderbook/depth.go
@@ -28,7 +28,7 @@ type Depth struct {
}
// NewDepth returns a new depth item
-func newDepth(id uuid.UUID) *Depth {
+func NewDepth(id uu... | 8 | 6 | 1 | [{"id": "G0", "claim": "Add a zero check before dividing by the sum of the top bid and ask amounts in GetImbalance, because zero amounts would panic the application.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the comment on GetBestAsk, which... | null |
thrasher-corp__gocryptotrader__939 | thrasher-corp/gocryptotrader | 939 | defect | c6ad429827a0e156e0fbd5f6c8bfa70d9449d8f8 | 8897f01b7aa5566a1daf41acad9dff52dcb054f9 | alert: Add optimizations | # PR Description
* Add sync pool for re-use between instances.
* generate a specific persistent routine for alerting when needed, instead of every time an alert is required.
* Preaallocate channels in separate blocking routines to reduce friction.
* In hold routine don't select and default out as we are re-using... | diff --git a/exchanges/alert/alert.go b/exchanges/alert/alert.go
index b9ae6315554..fcf2032c0ca 100644
--- a/exchanges/alert/alert.go
+++ b/exchanges/alert/alert.go
@@ -5,6 +5,19 @@ import (
"sync/atomic"
)
+// pool is a silent shared pool between all notice instances for alerting
+// external routines waiting on ... | 4 | 2 | 1 | [{"id": "G0", "claim": "Putting the Wait() reply channel into a global pool while still returning it publicly lets a stale holder receive alerts not meant for it, so the pitfall needs a programmatic solution or, failing that, documentation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
thrasher-corp__gocryptotrader__941 | thrasher-corp/gocryptotrader | 941 | defect | d735effc8e4e1d49aeffab3798b0384d00833d3b | 998bc8609240e0ea8006933b49091da0beb638d1 | btcm: add order execution limit wrapper support | Fixes # (issue)
## Type of change
Please delete options that are not relevant and add an `x` in `[]` as item is complete.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing f... | diff --git a/exchanges/btcmarkets/btcmarkets_test.go b/exchanges/btcmarkets/btcmarkets_test.go
index 603f8e65a2a..35f5e7e20f7 100644
--- a/exchanges/btcmarkets/btcmarkets_test.go
+++ b/exchanges/btcmarkets/btcmarkets_test.go
@@ -1040,3 +1040,25 @@ func TestGetTimeInForce(t *testing.T) {
t.Fatalf("received: '%v' but ... | 3 | 3 | 0 | [{"id": "G0", "claim": "In UpdateOrderExecutionLimits the `!a.IsValid() ||` clause is a redundant double-check when only spot is supported, and the reviewer asks whether it is needed at all.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Inside ... | null |
thrasher-corp__gocryptotrader__989 | thrasher-corp/gocryptotrader | 989 | defect | 68db4155bfd376ff7cec91b348b02627c002436d | 10a716bdd10c6798af49634fba188ebab86a1803 | backtester: custom strategy plugins | 
# PR Description
This PR allows for a user to build custom strategies that are not part of the main codebase. This PR uses Golang plugins which you can read about [here](https://pkg.go.dev/plugin). They do n... | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index d7c1b56f45a..941c0fdeef5 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3,8 +3,8 @@ Thanks to the following contributors:
thrasher- | https://github.com/thrasher-
shazbert | https://github.com/shazbert
gloriousCode | https://github.com/gloriousCode
-dependabot-preview... | 2 | 2 | 1 | [{"id": "G0", "claim": "The sentence \"Otherwise the plugin will refuse to load\" should end with a period.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The example command should run the example plugin via `--strategypluginpath=\"./plugins/stra... | null |
thread__django-lightweight-queue__20 | thread/django-lightweight-queue | 20 | defect | 32637c1e9a37dc416df802805420d38f9af18d79 | 006f6784c6dfbcf3af7ccf088077724985ab93c8 | Add a mechanism to deduplicate queues | We ignore the created timestamp as that doesn't actually affect the jobs and is present only for logging purposes.
Note: I've not yet tested the command; I plan to do that tomorrow if I have time. | diff --git a/django_lightweight_queue/backends/reliable_redis.py b/django_lightweight_queue/backends/reliable_redis.py
index f0dd98c..5653e04 100644
--- a/django_lightweight_queue/backends/reliable_redis.py
+++ b/django_lightweight_queue/backends/reliable_redis.py
@@ -101,6 +101,28 @@ def processed_job(self, queue, wor... | 5 | 4 | 1 | [{"id": "G0", "claim": "The parser.add_argument line in queue_deduplicate.py is too long and should be wrapped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The deduplicate method should document its return value and make the early `return 0, ... | null |
thread__django-lightweight-queue__44 | thread/django-lightweight-queue | 44 | defect | 2fcd5e3323d102f4646b4222f8505b14ad08eab8 | ef3911a6ddeb65f3da4b2df468ffcdef696074f7 | Avoid redundant work in ReliableRedisBackend.startup | This aims to speed up queue startup when using this backend as we have seen in production that this can take a while.
In particular if a master process is restarted while other machines are still processing jobs then the startup on that machine can end up retrying the move of in-flight jobs repeatedly while racing a... | diff --git a/django_lightweight_queue/backends/reliable_redis.py b/django_lightweight_queue/backends/reliable_redis.py
index 8cb99da..7d535ff 100644
--- a/django_lightweight_queue/backends/reliable_redis.py
+++ b/django_lightweight_queue/backends/reliable_redis.py
@@ -3,6 +3,7 @@
from .. import app_settings
from ..jo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider using Redis SCAN instead of KEYS when listing processing queue keys, possibly in a separate PR, to reduce startup time when multiple workers start up simultaneously.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
thread__django-lightweight-queue__45 | thread/django-lightweight-queue | 45 | defect | df211364525274bfdffaaab027c360f984582ad4 | c142bbd9ee174bf2e8f28c0d05cab4f41d827a39 | Add a mechanism to pause work on (redis) queues | This can be specified either as a duration or a time to un-pause, though either way the internal implementation relies on Redis' `SETEX` command. Both Redis backends are supported and use the same approach for compatibility. | diff --git a/django_lightweight_queue/backends/redis.py b/django_lightweight_queue/backends/redis.py
index 7eb44e3..327a0cc 100644
--- a/django_lightweight_queue/backends/redis.py
+++ b/django_lightweight_queue/backends/redis.py
@@ -1,8 +1,13 @@
+import datetime
+
import redis
from .. import app_settings
from ..jo... | 5 | 4 | 2 | [{"id": "G0", "claim": "Returning None after blocking during a pause without checking for work is confusing, and it should be clarified in a comment why releasing the job back and always reporting 'we did no work' is the expected behaviour.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope... | null |
thread__django-lightweight-queue__70 | thread/django-lightweight-queue | 70 | defect | 05436d58a116d9ce6c1132d57e7c6f956028975e | c8e150246b871fc39d47f32c02600923dcb8ec80 | Allow runtime settings overrides | ### Summary
This builds on #62 to introduce support for Django settings being overridden at runtime. While true changes to settings at runtime are not supported, this aims to simplify testing ([`django.test.override_settings`](https://docs.djangoproject.com/en/3.2/topics/testing/tools/#django.test.override_settings)... | diff --git a/django_lightweight_queue/app_settings.py b/django_lightweight_queue/app_settings.py
index d6e8e58..8ddd4dd 100644
--- a/django_lightweight_queue/app_settings.py
+++ b/django_lightweight_queue/app_settings.py
@@ -1,53 +1,90 @@
-from typing import Dict, Union, Mapping, TypeVar, Callable, Optional, Sequence
+... | 2 | 1 | 0 | [{"id": "G0", "claim": "AppSettings should make add_layer part of the typed Settings API (e.g. by inheriting from Settings via a protocol) so that django_lightweight_queue/utils.py does not need the cast.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ma... | null |
threat9__routersploit__170 | threat9/routersploit | 170 | defect | 041c29eab1742f7a62e4828a388d70f581147d5b | e949a544e1f90fa29a401647ca704293b1d1d292 | Grandstream GXV3611_HD RCE exploit and search function | This adds a module that exploits Grandstream GXV3611 IP cameras (see [here](https://www.exploit-db.com/exploits/40441/) and [here](http://boredhackerblog.blogspot.com/2016/05/hacking-ip-camera-grandstream-gxv3611hd.html)).
I also added a module search function ([#155](https://github.com/reverse-shell/routersploit/is... | diff --git a/routersploit/interpreter.py b/routersploit/interpreter.py
index 7bf480cc4..ef646cf46 100644
--- a/routersploit/interpreter.py
+++ b/routersploit/interpreter.py
@@ -159,6 +159,7 @@ class RoutersploitInterpreter(BaseInterpreter):
help Print this help menu
use <module> ... | 7 | 7 | 4 | [{"id": "G0", "claim": "The .DS_Store files added by the push are breaking the Travis build and the auto-complete; remove them from the changes.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The try/except around the telnet interaction belongs in t... | null |
thredup__rollbar-sourcemap-webpack-plugin__30 | thredup/rollbar-sourcemap-webpack-plugin | 30 | defect | 304cfab9dad320af39d489020b49f1e61a55d23e | fedddb3713d14a66e8d8490136628dd1b8220167 | Add showWarnings option to avoid logging when not needed | We are having a problem in our CI process where we find ourselves having failing builds due to a connection problem with Rollbar's API. This causes Node to exit with a process status of 2, which waterfalls into our build to fail completely just because it couldn't upload the sourcemap to Rollbar.
We want to have con... | diff --git a/README.md b/README.md
index 93e6642..0cd9538 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,8 @@ Allowed values are as follows:
all sourcemaps emitted by webpack will be uploaded, including those for unnamed chunks.
- `silent`: *(optional)* `true | false` If `false`, success messages will be logge... | 2 | 2 | 2 | [{"id": "G0", "claim": "Failed source-map uploads should be reported as warnings rather than dropped, so the failure is still visible but does not fail the build.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Validation errors in the plugin configu... | null |
three-types__three-ts-types__27 | three-types/three-ts-types | 27 | defect | 1a4f806083eae4b5acf5cee1e47929d8943d7816 | 06c5961d937bd6e86fc7b65a09d6b02e78dff5c6 | [r126] Add SSRPass | <!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file).
Also, please make sure you're familiar with and follow the instructions in the contributi... | diff --git a/types/three/OTHER_FILES.txt b/types/three/OTHER_FILES.txt
index fb0a97189..d85d1fd3a 100644
--- a/types/three/OTHER_FILES.txt
+++ b/types/three/OTHER_FILES.txt
@@ -215,19 +215,16 @@ examples/jsm/postprocessing/BokehPass.d.ts
examples/jsm/postprocessing/ClearPass.d.ts
examples/jsm/postprocessing/CubeTextu... | 13 | 12 | 7 | [{"id": "G0", "claim": "The SSRPass class property `groundReflector` should be typed `Reflector | null` (as the suggestion block proposes) rather than `Reflector`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The SSRPass properties typed through `... | null |
threefoldtech__zos__1029 | threefoldtech/zos | 1,029 | defect | 8c19f9e0478c5db384834266b4d2659369a7f7f4 | e0df40b2bb840b17e10b1bb62817e689effa3fa0 | do use the proper size when doing capacity planning for 0-DB namespace | fixes #1027 | diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go
index ede006377..df41b47f5 100644
--- a/pkg/storage/storage.go
+++ b/pkg/storage/storage.go
@@ -344,7 +344,7 @@ func (s *storageModule) CreateFilesystem(name string, size uint64, poolType pkg.
return pkg.Filesystem{}, fmt.Errorf("invalid volume name. zdb p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment above the createSubvol call in pkg/storage/zdb.go should be updated, since it still says the zdb instance is created with 0 (unlimited) although the call now passes size.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
threefoldtech__zos__1060 | threefoldtech/zos | 1,060 | defect | d020662fa01f3eed0c6567ddd1b54bf8c97e4a57 | 5eace96c5920a29d3eee27f2b6d5433d53bea858 | Vdisk allocation fix | Fixes #1059
This fixes 2 issues:
- First one regarding reservation caching. A failed reservation should not be cached, otherwise it causes counters discrepancy (still testing this for now)
- The bigger changes are related to vdisk allocation the new code will utilize ALL disks if needed | diff --git a/pkg/provision/engine.go b/pkg/provision/engine.go
index 01eb71525..f2db28275 100644
--- a/pkg/provision/engine.go
+++ b/pkg/provision/engine.go
@@ -235,25 +235,31 @@ func (e *Engine) provision(ctx context.Context, r *Reservation) error {
return errors.Wrapf(err, "failed to build result object for reserv... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the requested disk size to the error message shown when finding a candidate to host a vdisk fails.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__1085 | threefoldtech/zos | 1,085 | defect | 5c7a4aad96bb59cedfb810908f95facee3e27e7d | 170c640624fed59b8dfe5af13d020eb94ea68eb3 | Vm pub ip | Before merging this, a new explorer version should be deployed on devnet, where the reservation version is incremeted to 2.
Nodes will need to be rebooted to get the new network setup which allows public IP's. I'd prefer this does not happen immediatly, since that will not be the case in the field, and we should tes... | diff --git a/cmds/networkd/main.go b/cmds/networkd/main.go
index 0aa799639..d2a9ca7de 100644
--- a/cmds/networkd/main.go
+++ b/cmds/networkd/main.go
@@ -99,16 +99,16 @@ func main() {
}
}
- ndmz, err := buildNDMZ(nodeID.Identity())
+ ndmzNs, err := buildNDMZ(nodeID.Identity())
if err != nil {
log.Fatal().Err... | 1 | 1 | 1 | [{"id": "G0", "claim": "The comment stating that dualstack nodes have a dedicated physical interface (so EnsureRoutable is a no-op) is not true, because being dualstack does not imply having two traffic interfaces — e.g. a single-nic dualstack node — so the no-op leaves such a node without a guaranteed route out.", "ca... | null |
threefoldtech__zos__1124 | threefoldtech/zos | 1,124 | defect | b14ca7d4de89ef380274f0691151ca042f945c63 | 703f1f883aa65e49304cda6ff13c66a0b5e5b980 | support 1.1.0 version for seed | should fix #1123
- makes 1.0.0 the default for non versioned seed files
- supports 1.1.0 with mnemonic
- added test for 1.0.0 loading
- added test for 1.1.0 loading | diff --git a/go.mod b/go.mod
index 42c9faf6d..0f30f500d 100644
--- a/go.mod
+++ b/go.mod
@@ -35,6 +35,7 @@ require (
github.com/threefoldtech/0-fs v1.3.1-0.20201203163303-d963de9adea7
github.com/threefoldtech/tfexplorer v0.4.1-0.20201120111415-6fefe983b035
github.com/threefoldtech/zbus v0.1.4
+ github.com/tyler-s... | 3 | 3 | 3 | [{"id": "G0", "claim": "LoadSeed should return the result of bip39.EntropyFromMnemonic directly instead of assigning it to seed and err before the unconditional trailing `return seed, nil`, which drops the conversion error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
threefoldtech__zos__1214 | threefoldtech/zos | 1,214 | defect | b3f08d1c8062061a13c60575ff78e0339a8211b2 | e2e37172a7a1ac1392c0e212361652212619b284 | Set the correct container cpu limit | This PR fixes the issue where containers were using all the cpu they could find on the host.
It has the following implications:
- load will be divided over all the cpus on the host, but cannot exceed the total reserved cpu for that container.
- monitoring a container cpu will be harder because the load is divid... | diff --git a/pkg/container/opts.go b/pkg/container/opts.go
index ec4e5067f..e376081d0 100644
--- a/pkg/container/opts.go
+++ b/pkg/container/opts.go
@@ -3,7 +3,6 @@ package container
import (
"context"
"fmt"
- "math"
"path"
@@ -108,7 +107,7 @@ func WithCPUCount(cru uint) oci.SpecOpts {
return fmt.Errorf(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The literal 100000 in cruToLimit should be a named constant, per the suggested `const period = 100000`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__1261 | threefoldtech/zos | 1,261 | defect | befac03f43d02e6c492c08b7e80310127eeb91dd | ce796c393fe753217538ac69981bf4b6fbf85944 | Generic vms | Changes:
- Add generic VMs workload
- Add validation for ssh keys and plain secrets in k8s (if the plain secret contains white spaces or new lines, part of it is ignored or it might crash the VM)
- Pull out some of the common code of vms and k8s in vmutils
Notes:
Not tested on public ips yet.
Related issu... | diff --git a/pkg/provision/primitives/converter.go b/pkg/provision/primitives/converter.go
index 362cdc6bd..c32836be1 100644
--- a/pkg/provision/primitives/converter.go
+++ b/pkg/provision/primitives/converter.go
@@ -190,7 +190,7 @@ func K8SToProvisionType(w workloads.Workloader) (Kubernetes, string, error) {
k8s :... | 5 | 3 | 0 | [{"id": "G0", "claim": "The doc comment added above VMToProvisionType still reads 'K8SToProvisionType converts type to internal provision type' and should say VMToProvisionType.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked whe... | null |
threefoldtech__zos__143 | threefoldtech/zos | 143 | defect | a23fdc2fa5aa2676206d265b0c268c4921dc0fdd | 770618fcfa25f3e76d78bfac44fa6663436d2b0b | provisiond: implement cryptography primitives for resource identification | fixes #83 | diff --git a/cmds/networkd/go.mod b/cmds/networkd/go.mod
index 97c9357de..ae00a1a8c 100644
--- a/cmds/networkd/go.mod
+++ b/cmds/networkd/go.mod
@@ -5,6 +5,7 @@ go 1.12
require (
github.com/cenkalti/backoff v2.1.1+incompatible
github.com/golang/protobuf v1.3.2 // indirect
+ github.com/pkg/errors v0.8.1
github.co... | 5 | 3 | 3 | [{"id": "G0", "claim": "Using the reservation's user as the container name can cause conflicts when the same user hosts multiple containers on the same node; the containerID should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Veri... | null |
threefoldtech__zos__1432 | threefoldtech/zos | 1,432 | defect | b0cf29ace4e2f85e43124c7bec59cc39c51d01f0 | 9c87e6d3b2f69999c67ccca2ad24b927e05a673a | Add qsfs update method | Stuff to figure out:
1. is there a way to get the old workload result as is to avoid recomputing it?
2. is there a way to get the old workload config to check if a non-destructive update is possible?
Update:
A1. Requires embedding the engine in the provisioner object and fetching the old deployment, or modifying ... | diff --git a/go.sum b/go.sum
index 24d3a0ea4..3394e21bb 100644
--- a/go.sum
+++ b/go.sum
@@ -324,6 +324,7 @@ github.com/d2g/dhcp4client v1.0.0/go.mod h1:j0hNfjhrt2SxUOw55nL0ATM/z4Yt3t2Kd1mW
github.com/d2g/dhcp4server v0.0.0-20181031114812-7d4a0a7f59a5/go.mod h1:Eo87+Kg/IX2hfWJfwxMzLyuSZyxSoAug2nGa1G2QAi8=
github.com/... | 6 | 6 | 5 | [{"id": "G0", "claim": "UpdateMount should not fetch addresses from the ygg0 interface inside the network namespace itself; the networkd should recompute the ygg IP instead, so qsfs doesn't know about interface names and/or namespaces.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
threefoldtech__zos__1699 | threefoldtech/zos | 1,699 | defect | 487eb2aa6e0e0d1f5067f174c970366bed2b7000 | 591bceb10e7692640669abccfd0895d498731aca | Fix usage calculation to find disks candidate | After switching vdisks allocations from fallocate to truncate. to suport
ssd over-provisioning. we needed to change and fix how we calculate
used space on a disk as follows
- subvolume with quota limit is assumed to be full usage of the
subvolume
- subvolume with no-quota limit, we sum total size of all files ... | diff --git a/pkg/storage/disk.go b/pkg/storage/disk.go
index b7bf39610..6ef3618ab 100644
--- a/pkg/storage/disk.go
+++ b/pkg/storage/disk.go
@@ -8,6 +8,7 @@ import (
"os/exec"
"path/filepath"
"strings"
+ "syscall"
"github.com/g0rbe/go-chattr"
"github.com/pkg/errors"
@@ -177,6 +178,8 @@ func (s *Module) Disk... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Available calculation `usage.Size - (usage.Size + uint64(size))` looks wrong — because of overprovisioning, subtracting only from the size can cause overflow — and should be `SSDOverProvisionFactor * usage.Size - (usage.Used + uint64(size))`.", "category": "correctness", "verdict": "supp... | null |
threefoldtech__zos__1756 | threefoldtech/zos | 1,756 | defect | be8814a1635aa15a59532a6f17b0b6437d8ec7d2 | c645e08815af34ca130369d6d3eb3ae852d17fdc | Br pub exit issue | This PR includes
- Fix public exit nic detection, errors where not handled correctly which caused some nics to be selected when they shouldn't
- Show the current node setup on UI (single, dual) and what nic is selected
- Add authorized (only the farmer can make) calls to the node rmb interface:
- List all physica... | diff --git a/client/node.go b/client/node.go
index 4b61114fe..ae05ede06 100644
--- a/client/node.go
+++ b/client/node.go
@@ -85,6 +85,23 @@ type Version struct {
ZInit string `json:"zinit"`
}
+type Interface struct {
+ IPs []string `json:"ips"`
+ Mac string `json:"mac"`
+}
+
+type ExitDevice struct {
+ // IsSing... | 2 | 2 | 1 | [{"id": "G0", "claim": "The docstring on SetPublicExitLink is incomplete — it stops mid-sentence at \"the method does nothing if\" and never says what the method does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cmds/modules/zui/net.go imports ... | null |
threefoldtech__zos__182 | threefoldtech/zos | 182 | defect | a8d7db7961c49bb6b36e58ae9491b48cc749a710 | dbad1f6fc04c001b0c555e9cde0e8cb322b0f8a5 | provision: implement reservation expiration | the provision modules now keeps track of the reservation currently
deployed on the node.
It then check periodically which reservation have expired and
decomission them from the system.
fixes #121 | diff --git a/.travis.yml b/.travis.yml
index 4fc3116b7..2ae82281c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ install:
script:
- pushd modules && make getdeps && popd
-- pushd modules && make getdeps && popd
+- pushd modules && make verifiers && popd
- pushd cmds && make && popd
# after_success... | 11 | 5 | 1 | [{"id": "G0", "claim": "The local reservation store currently only has a memory backend and needs to be moved to disk.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR does not handle the case where the provisiond process restarts.", "category": "co... | null |
threefoldtech__zos__1855 | threefoldtech/zos | 1,855 | defect | 4dd56bfca0e5360a71756e544406baa19044e2a6 | 73d41112bf14b7ef165087a616276aaf16f5859d | Events stream | ## Rewrite event distribution system
This improves on the internal delivery system of the events so instead of using zbus pub/sub streams we use redis streams which is much more powerful as follows:
- Events are scanned from the chain. If the events subsystem is down
during the delivery of the event, the missed... | diff --git a/cmds/modules/noded/main.go b/cmds/modules/noded/main.go
index 8650edc28..e88508a97 100644
--- a/cmds/modules/noded/main.go
+++ b/cmds/modules/noded/main.go
@@ -90,6 +90,11 @@ func action(cli *cli.Context) error {
return errors.Wrap(err, "fail to connect to message broker server")
}
+ consumer, err :... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `events` field on `ContractEventHandler` should be named `redisConsumer` (a more specific name) instead of `events` for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__1908 | threefoldtech/zos | 1,908 | defect | 35722b39535586241591626252996bec873d3588 | 73aefb61e95787623837cc0ae81092c99594b5ea | validate backend | ## Related issues
- https://github.com/threefoldtech/zos/issues/1886
- https://github.com/threefoldtech/zos/issues/1906 | diff --git a/pkg/gridtypes/zos/gw_fqdn.go b/pkg/gridtypes/zos/gw_fqdn.go
index 56fbdc0f7..c8430b459 100644
--- a/pkg/gridtypes/zos/gw_fqdn.go
+++ b/pkg/gridtypes/zos/gw_fqdn.go
@@ -6,6 +6,7 @@ import (
"net"
"net/url"
"regexp"
+ "strconv"
"github.com/pkg/errors"
"github.com/threefoldtech/zos/pkg/gridtypes"
... | 7 | 7 | 1 | [{"id": "G0", "claim": "Expand the Valid docstring to explain the function's validation behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inject the passed backend value into the 'failed to parse backend' error message.", "category": "maint... | null |
threefoldtech__zos__1910 | threefoldtech/zos | 1,910 | defect | 35722b39535586241591626252996bec873d3588 | dfacdb7d92c4fc8082e9b9cd8c64c86b8b724183 | return pools capacity | Add an external api over rmb to return the node pools, and their total size and used capacity for each pool. the idea is to make it easier to do capacity planning knowing the available space per pool | diff --git a/client/node.go b/client/node.go
index 11a17e3c7..4745d0d57 100644
--- a/client/node.go
+++ b/client/node.go
@@ -186,6 +186,13 @@ func (n *NodeClient) Counters(ctx context.Context) (total gridtypes.Capacity, us
return result.Total, result.Used, result.System, nil
}
+// Pools returns statistics of separ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Adding w.Name to the Challenge output in pkg/gridtypes/workload.go is a breaking change that will require updates in clients.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
threefoldtech__zos__1924 | threefoldtech/zos | 1,924 | defect | 3f9ef198609b2a34e5f4097a122083d109a81dd0 | ae745a4d9f542cec8e0ae37424b43551d9bc9d02 | Gateway private network | Fixes #1674
- Add optional `network`. If set the gateway can then proxy traffic to that network. Which means user can gateway traffic to a private workload that lives inside this network.
- Backward compatible with older configurations, user can still use yggdrasil backends although not recommended for reliability ... | diff --git a/bins/packages/nnc/nnc.sh b/bins/packages/nnc/nnc.sh
new file mode 100644
index 000000000..c7ac3cde4
--- /dev/null
+++ b/bins/packages/nnc/nnc.sh
@@ -0,0 +1,33 @@
+NNC_VERSION="1.0.0-rc2"
+NNC_CHECKSUM="7fbadaae30c19b79e6348bf1bd1d29fc"
+NNC_LINK="https://github.com/threefoldtech/nnc/releases/download/v${NN... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commented-out proxyConfigPath field left in gatewayModule should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__1996 | threefoldtech/zos | 1,996 | defect | e56e0a4a4a84400cf13a86bf9b734922d52c7761 | c02ca8006cc1e72427caef6b660fb4d16064e2f3 | Use SSID to identify PCI devices | Use SSID to further specify which device is connected to PCI.
Related: #1994
Notes:
- Some GPUs will still not be identified accurately due to `pci.ids` not having SSID for all devices. | diff --git a/pkg/capacity/pci.go b/pkg/capacity/pci.go
index 9662ad04a..82201c031 100644
--- a/pkg/capacity/pci.go
+++ b/pkg/capacity/pci.go
@@ -22,6 +22,10 @@ type Device struct {
ID uint16
// Name is device name according to PCI database
Name string
+ // SubsystemVendorID is device subsystem vendor ID according... | 1 | 1 | 1 | [{"id": "G0", "claim": "Representing devices with a flat string-keyed Devices map (composite \"%04x%04x%04x\" lookup keys) does not reflect the natural vendor->device->subdevice hierarchy, so Devices should go back to map[uint16]Device with subdevices held on Device as a Subdevices list (exposed via a GetSubdevice help... | null |
threefoldtech__zos__2017 | threefoldtech/zos | 2,017 | defect | 437422fc83d56e8904cdb0df2339ba6150209571 | 7f11a8c959052f2b6583cfa2d4909c7a7fae69f7 | Sort zmount workloads in descending order | Sort zmount workloads so larger disks get assigned first.
Related: #2016 | diff --git a/pkg/provision/engine.go b/pkg/provision/engine.go
index 51dd8c20b..017b2829c 100644
--- a/pkg/provision/engine.go
+++ b/pkg/provision/engine.go
@@ -15,6 +15,7 @@ import (
substrate "github.com/threefoldtech/tfchain/clients/tfchain-client-go"
"github.com/threefoldtech/zos/pkg"
"github.com/threefoldtec... | 7 | 7 | 1 | [{"id": "G0", "claim": "The variable holding the zmount data should be named `zmount` instead of `data`, and the function should return `zmount.Size` after the rename.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `not a zmount` error messa... | null |
threefoldtech__zos__2023 | threefoldtech/zos | 2,023 | defect | 5aabc89ddccb43bce6258cd56b0d5898edd99720 | 5f70f99512b01cff2933b59d9a3a8305465c0c36 | save device type instead of caching it | ### Issues
- https://github.com/threefoldtech/zos/issues/1970 | diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go
index 0b26fd2a3..68b9b7584 100644
--- a/pkg/cache/cache.go
+++ b/pkg/cache/cache.go
@@ -13,7 +13,7 @@ const (
// VolatileDir creates a new cache directory that is stored on a tmpfs.
// This means data stored in this directory will NOT survive a reboot.
-// Use th... | 9 | 7 | 2 | [{"id": "G0", "claim": "DeviceInfo.Type() swallows every read error as not-found because it returns (type, bool) and treats any error as false, so it should return (type, bool, error) and only report false for os.ErrNotExist; hiding other errors can mask a broken disk or filesystem.", "category": "correctness", "verdic... | null |
threefoldtech__zos__2084 | threefoldtech/zos | 2,084 | defect | c9a7dbfafdf1126cabc19e6f1ffb4524fd39a43a | 41a3cc824dc443e13bdcf84edd881e9c477f74bf | Vlan support | Add support for new boot params
- `vlan:priv` (optional) sets the private subnet vlan
- `vlan:pub` (optional) sets the public subnet vlan (only in single node setup)
Please read docs for more details. | diff --git a/cmds/internet/main.go b/cmds/internet/main.go
index 8c5161b0b..14ff4991c 100644
--- a/cmds/internet/main.go
+++ b/cmds/internet/main.go
@@ -12,6 +12,7 @@ import (
"github.com/vishvananda/netlink"
"github.com/threefoldtech/zos/pkg/app"
+ "github.com/threefoldtech/zos/pkg/environment"
"github.com/thr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The behavior of Params.GetOne (it returns the last item when the key is passed multiple times on the cmdline) should be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__2088 | threefoldtech/zos | 2,088 | defect | 066371c71e98f8d6befa42337b01c45947e60a20 | b9aee2a515c62b4d00b6d9c85644ece523511f7a | Move zos-update-worker to zos/tools | ### Description
Move zos-update-worker to zos/tools
### Related Issues
- #2077
- #2099 | diff --git a/.github/workflows/ISSUE_TEMPLATE/bug_report.md b/.github/workflows/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 000000000..dbc6ddafe
--- /dev/null
+++ b/.github/workflows/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,24 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+l... | 4 | 4 | 4 | [{"id": "G0", "claim": "The move drags too many unrelated worker files (.gitignore in subdirectories, codeowners files, go mods, Makefile, Taskfile) into the zos repo, so the PR still needs refactoring to be converged with zos.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
threefoldtech__zos__2160 | threefoldtech/zos | 2,160 | defect | 6d53ef0a7d8f1836f9862be5893143672571a8b3 | 601a5ecf106cab27ba1e70cf5ff99764d7a1d4c8 | add rmb diagnostics call | ### Description
- add new rmb call `zos.system.diagnostics` returns the output of `zbusdebug` command
- add new perf task to check the node reaches for grid services
### Related Issues
- https://github.com/threefoldtech/zos/issues/2153
- https://github.com/threefoldtech/zos/issues/2163
### Checklist
- [ ] ... | diff --git a/cmds/modules/noded/main.go b/cmds/modules/noded/main.go
index b17419f6a..c22f6420e 100644
--- a/cmds/modules/noded/main.go
+++ b/cmds/modules/noded/main.go
@@ -15,6 +15,7 @@ import (
substrate "github.com/threefoldtech/tfchain/clients/tfchain-client-go"
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk... | 8 | 8 | 2 | [{"id": "G0", "claim": "The Diagnostics type does not belong in cmds/modules/noded/main.go since cmds is only for command binaries; it should live in client/node.go next to zos.statistics.get.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The worker-sta... | null |
threefoldtech__zos__2201 | threefoldtech/zos | 2,201 | defect | 931cb6497aece909b7ff914afc85282006cda79f | 70479976c8f107dd72683344cc8ddb1894f02fc6 | use mocking for boot testing | ### Description
create unit tests for boot pkg using mocking
### Related Issues
List of related issues
### Checklist
- [ ] Tests included
- [ ] Build pass
- [ ] Documentation
- [ ] Code format and docstring
| diff --git a/pkg/app/boot.go b/pkg/app/boot.go
index 0806f2b8a..ff43715a5 100644
--- a/pkg/app/boot.go
+++ b/pkg/app/boot.go
@@ -1,6 +1,8 @@
package app
import (
+ "io"
+ "io/fs"
"os"
"path/filepath"
@@ -8,17 +10,55 @@ import (
)
// bootedPath is the path where to store the booted flag
-var bootedPath = "... | 2 | 2 | 1 | [{"id": "G0", "claim": "The concrete filesystem type should be named `defaultFileSystem` instead of `defaultBootManager`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bootManager wrapper complicates the code and does not match the agreed a... | null |
threefoldtech__zos__2216 | threefoldtech/zos | 2,216 | defect | cc99e13882adbe406bdf2ae5afea96afc21ec212 | 6aa89c886726351e562318cfb51b7fd26afae22f | add proper timeouts for the http get calls |
### Description
by creating a custom HTTP client and assigning a default value as a timeout based on each operation
### Related Issues
- https://github.com/threefoldtech/zos/issues/2214
### Checklist
- [ ] Tests included
- [ ] Build pass
- [ ] Documentation
- [ ] Code format and docstring
| diff --git a/pkg/environment/config.go b/pkg/environment/config.go
index 61e8f8e7d..2f2618ca1 100644
--- a/pkg/environment/config.go
+++ b/pkg/environment/config.go
@@ -7,11 +7,16 @@ import (
"net/http"
"sort"
"strings"
+ "time"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
)
+const (
+ defaultHttp... | 4 | 4 | 0 | [{"id": "G0", "claim": "The growing argument list of getConfig (now including the HTTP timeout) may not scale if more client behaviour needs customizing in the future; a better way may exist.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Creating a new ... | null |
threefoldtech__zos__2261 | threefoldtech/zos | 2,261 | defect | 656471b3780e64ddae42d11abbc7aeb2218489b4 | 9cd6e8fe705d6e250b0bb1293b5ceff48b323401 | Try upgrading in memory if there is an error with flist download | ### Description
Try upgrading in memory if there is an error with flist download
### Related Issues
- #2228
### Checklist
- [ ] Tests included
- [x] Build pass
- [x] Documentation
- [x] Code format and docstring
| diff --git a/pkg/upgrade/upgrade.go b/pkg/upgrade/upgrade.go
index e648f1f5f..e01314543 100644
--- a/pkg/upgrade/upgrade.go
+++ b/pkg/upgrade/upgrade.go
@@ -294,17 +294,25 @@ func (u *Upgrader) updateTo(link hub.TagLink) error {
return nil
}
-func (u *Upgrader) flistCache() string {
- return filepath.Join(u.root, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "install should not fall back to an in-memory update on every getFlist error; the decision should be based on the actual storage/cache state (and made at the highest level when calling update), since the error may be a mere network issue.", "category": "design", "verdict": "supported", "priority"... | null |
threefoldtech__zos__2270 | threefoldtech/zos | 2,270 | defect | 8dc3cc38f9d65b2c8cb79605ce8fff8638b96a16 | 720c28663f2ffc9e6f5b1362c4cb6f256a57718f | Add volume workload | ### Description
Add `volume` workload to allow the user to create volumes and attach them to zmachines, it should offer more performance, usability and easier upgrades to `bcachefs`
### Changes
- new `volume` workload
- it supports growing and shrinking the quota while the VM is running
### Related Issues
... | diff --git a/cmds/modules/provisiond/main.go b/cmds/modules/provisiond/main.go
index 3aef3ff16..577b6b609 100644
--- a/cmds/modules/provisiond/main.go
+++ b/cmds/modules/provisiond/main.go
@@ -318,6 +318,7 @@ func action(cli *cli.Context) error {
// comes first.
provision.WithStartupOrder(
zos.ZMountType,
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Provision should use the Name returned by VolumeCreate instead of the locally constructed volumeName, so things keep working if VolumeCreate's implementation changes to return a different name/id.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
threefoldtech__zos__2342 | threefoldtech/zos | 2,342 | defect | 3b7358a8cc8bd97f33627b72a2d0f845768334de | 29253a863afba63ab9b040e4e464e26a970bf775 | Integrate mycelium in zos | ### Description
Integrate mycelium in zos and allow flists to be served over mycelium
### Changes
Add mycelium to networkd
### Related Issues
- #2338
### Checklist
- [ ] Tests included
- [x] Build pass
- [x] Documentation
- [x] Code format and docstring
| diff --git a/bins/packages/vector/files/vector.yaml b/bins/packages/vector/files/vector.yaml
index 397193aa1..ee0efbae5 100644
--- a/bins/packages/vector/files/vector.yaml
+++ b/bins/packages/vector/files/vector.yaml
@@ -14,6 +14,7 @@ sources:
- b-*
- br-*
- dumdum
+ - mydumdum... | 15 | 15 | 3 | [{"id": "G0", "claim": "The pull request needs an architecture decision record (ADR) for mycelium.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "mountRO should use the namespace it was passed (rather than the default namespace) when it runs the f... | null |
threefoldtech__zos__245 | threefoldtech/zos | 245 | defect | 0fe23f6f94b203e3e8c7144e89ecd32b9c43d8ce | 93ed5335d1f1a8c01aa0fc76a67c6774ff6dc816 | WIP: environment detection | This is a preparation to fix #190 | diff --git a/cmds/identityd/main.go b/cmds/identityd/main.go
index 8bbf5fead..69c493e00 100644
--- a/cmds/identityd/main.go
+++ b/cmds/identityd/main.go
@@ -11,6 +11,7 @@ import (
"github.com/cenkalti/backoff"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
+ "github.com/threefoldtech/zosv2/modules/gedis"
"... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks why the environment detection does not use a switch, and suggests instead defining the environments up front (e.g. `var development = Environment{...}` per mode) and returning the proper one from NewManager, rather than the sequence of if-blocks hardcoding settings on a manager... | null |
threefoldtech__zos__302 | threefoldtech/zos | 302 | defect | 6c46e1d4371d45369f44e14d19cb1c35f4244ab5 | e19274ec1beef37c215f70e2ee64988822d60472 | update tfuser to work with revised network and BCDB | fixes #287 | diff --git a/go.mod b/go.mod
index 9a5c2685b..b3a450ccf 100644
--- a/go.mod
+++ b/go.mod
@@ -53,7 +53,7 @@ require (
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20190607034155-226bf4e412cd
google.golang.org/appengine v1.6.1 // indirect
- google.golang.org/grpc v1.2... | 1 | 1 | 0 | [{"id": "G0", "claim": "Delete the now-unneeded pkg/network/watcher.go, which is confusing, and stop using the temporary TNoDBUtils interface that tffarmer still relies on and that was only meant to separate the zos API from the tooling API.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
threefoldtech__zos__332 | threefoldtech/zos | 332 | defect | 2ad0b43e047a72755ee58c1a5b9969cd8bc78cc2 | 65aa7c0039ad3c79422394c15be361bbebadc2fc | Upgrade Uninstall | Support removing old files and services. This will make sure only the needed binaries are available on the system. | diff --git a/cmds/upgraded/main.go b/cmds/upgraded/main.go
index a3b404c08..66cd44fdb 100644
--- a/cmds/upgraded/main.go
+++ b/cmds/upgraded/main.go
@@ -79,11 +79,13 @@ func main() {
broker string
interval int
ver bool
+ debug bool
)
flag.StringVar(&broker, "broker", redisSocket, "connection s... | 5 | 4 | 1 | [{"id": "G0", "claim": "The node registration call in the upgrade watcher loop should also have a backoff retry, in case a network issue prevents the version from being registered right away.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The deferr... | null |
threefoldtech__zos__366 | threefoldtech/zos | 366 | defect | 90b07cc5d75d9487bd15a1e398d77f6943e12cbd | b667a2ca0d64dc590b01395f60c8b727c90be26f | Migration routine to reuse disks from v1 | This detects if a disk is was used by zos v1
and make sure the disk is cleaned up for v2 usage
Fixes #339 | diff --git a/pkg/storage/filesystem/btrfs_test.go b/pkg/storage/filesystem/btrfs_test.go
index 1e6d47f28..616809fbe 100644
--- a/pkg/storage/filesystem/btrfs_test.go
+++ b/pkg/storage/filesystem/btrfs_test.go
@@ -15,6 +15,10 @@ type TestDeviceManager struct {
devices DeviceCache
}
+func (m *TestDeviceManager) Rese... | 3 | 2 | 0 | [{"id": "G0", "claim": "The \"sp_\" pool-name prefix should be defined as a constant instead of being repeated as string literals.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "wipe should not create an msdos partition table with parted first; ... | null |
threefoldtech__zos__386 | threefoldtech/zos | 386 | defect | 72c779427fe1b36da030fb70e93ec826babad387 | 06a868f1530e1c0307d5571040015b4e20e9dcc4 | Also send node id v1 to BCDB when registring the node | this is required to be able to match nodes between v1 and v2. | diff --git a/pkg/gedis/commands_identity.go b/pkg/gedis/commands_identity.go
index 4d1043a3c..7498276fa 100644
--- a/pkg/gedis/commands_identity.go
+++ b/pkg/gedis/commands_identity.go
@@ -25,22 +25,25 @@ import (
func (g *Gedis) RegisterNode(nodeID pkg.Identifier, farmID pkg.FarmID, version string, location geoip.Loc... | 2 | 1 | 1 | [{"id": "G0", "claim": "NodeIDv1() computes the v1 node id from the zos bridge's own MAC, but v1 never had a zos bridge and a linux bridge's MAC is not persisted across re-creation, so this likely yields the wrong id — v1 probably used the physical network card instead.", "category": "correctness", "verdict": "supporte... | null |
threefoldtech__zos__419 | threefoldtech/zos | 419 | defect | eab4f9f6ccf99fa34473a23bdaeb0f633c33b95b | 05605b66448baeb4290f0bc97eb20bd3c2a886f6 | deletes qgroups when deleting sub volumes | fixes #397
fixes #409
The sub-volume delete method has been updated to also delete the
associated qgroup at the same time.
A new method "Maintenance" has been added to the Volume interface
so any left over qgroups from before this commit will be also cleaned
as soon as storaged is updated and restarted | diff --git a/pkg/storage/filesystem/btrfs.go b/pkg/storage/filesystem/btrfs.go
index ee2030fef..7d5e8921a 100644
--- a/pkg/storage/filesystem/btrfs.go
+++ b/pkg/storage/filesystem/btrfs.go
@@ -174,6 +174,10 @@ func (p *btrfsPool) mounted(fs *Btrfs) (string, bool) {
return "", false
}
+func (p *btrfsPool) ID() int ... | 3 | 3 | 2 | [{"id": "G0", "claim": "removeVolume destroys the qgroups before removing the subvolume; the subvolume should be removed first so that a failed subvolume deletion cannot leave a subvolume without its size limit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
threefoldtech__zos__425 | threefoldtech/zos | 425 | defect | 0825f02cc9f51ae9bb223856c47a65a8b1e74173 | b62d68952681cae351f45472a898dc43bc1d02e6 | Install/update binaries from tf-zos-bins | This PR in draft for the following reasons
- bootstrap need to also make sure binaries are installed from the tf-zos-bins repository
- we need to agree on a script hook mechanism to make sure actions are taken when new binaries are installed.
Suggestions:
- An action files in the flist (yaml may be) with a limit... | diff --git a/bootstrap/Makefile b/bootstrap/Makefile
index 3840443e3..aa44d11c7 100644
--- a/bootstrap/Makefile
+++ b/bootstrap/Makefile
@@ -6,12 +6,10 @@ install: build
mkdir -p ${ROOT}/etc/zinit/
mkdir -p ${ROOT}/bin
mkdir -p ${ROOT}/sbin
-
- # install interent
- cp ../etc/zinit/internet.yaml ${ROOT}/etc/zini... | 1 | 1 | 1 | [{"id": "G0", "claim": "The refactored waitPidFile now always waits at minimum `delay` (100ms) before checking and returning, whereas the previous implementation would return immediately when the condition was already met.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
threefoldtech__zos__439 | threefoldtech/zos | 439 | defect | b74119834de09da63ec5ecacb2a9825df7573287 | 1af8cbfe91cd9d36d4f4f5e39b6433f60e58fbf2 | Derive static mac for ndmz and public ns public if | Derive a static mac address for the public interace in both the ndmz and public namespace (if available), based on the node ID and a static prefix. This ensures these interfaces always have the same MAC.
Fixes #316 | diff --git a/cmds/networkd/main.go b/cmds/networkd/main.go
index 5da87cde9..1dc63c395 100644
--- a/cmds/networkd/main.go
+++ b/cmds/networkd/main.go
@@ -76,7 +76,7 @@ func main() {
ifaceVersion := -1
exitIface, err := db.GetPubIface(nodeID)
if err == nil {
- if err := configurePubIface(exitIface); err != nil {
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ndmz error message should not use the abbreviation \"didn't\" and should read \"did not received\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
threefoldtech__zos__481 | threefoldtech/zos | 481 | defect | 105a7ce5f05517ce2259df31658eb103b73b4eb2 | d5ae39516ead0d7708a7d1f7944e7c11108fc13a | Encrypt zdb password | Fixes #396 | diff --git a/go.sum b/go.sum
index 277d9f062..e422af5c1 100644
--- a/go.sum
+++ b/go.sum
@@ -64,6 +64,7 @@ github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c h1:+pKlWGMw7gf6bQ
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA=
github.com/d... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR encodes the password with base58 after encryption; it should use hex instead so that the way we encrypt/encode things is consistent with the network reservation code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The node ... | null |
threefoldtech__zos__488 | threefoldtech/zos | 488 | defect | d7c755aa8c19f7225d872053f643285aebfc0021 | 4a65a107cd2baebcbd3212cf92e48ae02a53b056 | provisiond: avoid to try to decommission reservation that are not provisioned | This is specially important for node booting cause the first time they
ask for reservation they get the full list of reservation for a node.
Skipping not provisioned reservation makes this process nearly a no-op. | diff --git a/pkg/provision/engine.go b/pkg/provision/engine.go
index 1a484bb00..5dd7e34dd 100644
--- a/pkg/provision/engine.go
+++ b/pkg/provision/engine.go
@@ -13,12 +13,13 @@ import (
"github.com/rs/zerolog/log"
)
-// ReservationReadWriter define the interface to store
+// ReservationCache define the interface t... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's tests are failing.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The BCDB should not send expired reservations - the node still detects expiration with normal methods - to avoid sending a lot of unneeded data ove... | null |
threefoldtech__zos__538 | threefoldtech/zos | 538 | defect | b8095117724206dd1da6f751027da1ee448e071e | afc9d8a2b351f06e69e13a27f83390249044d004 | internet: improve logic used to choose the slave interface of zos bridge | fixes #537 | diff --git a/cmds/internet/main.go b/cmds/internet/main.go
index 511fa23c2..5dac4cf22 100644
--- a/cmds/internet/main.go
+++ b/cmds/internet/main.go
@@ -8,14 +8,18 @@ import (
"time"
"github.com/cenkalti/backoff/v3"
+ "github.com/pkg/errors"
"github.com/rs/zerolog/log"
+ "github.com/vishvananda/netlink"
"gi... | 7 | 4 | 0 | [{"id": "G0", "claim": "The for-select loop in analyseLink should break out with a labeled loop (e.g. 'break myloop') instead of the current construct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message should read 'no route with d... | null |
threefoldtech__zos__558 | threefoldtech/zos | 558 | defect | 328df4540f655658acebe9a0d1451f5c046c9f3d | 399a97982083705266bbbf0a205b9223395ca24a | Improve storage initializing | Wwhen some new devices are available, some list issue occures affecting expected volumes list on runtime.
This fixes #557 and report when filesystem creation fails. | diff --git a/pkg/storage/filesystem/btrfs.go b/pkg/storage/filesystem/btrfs.go
index 3573edc93..f8f2484a5 100644
--- a/pkg/storage/filesystem/btrfs.go
+++ b/pkg/storage/filesystem/btrfs.go
@@ -398,6 +398,10 @@ func (p *btrfsPool) Type() pkg.DeviceType {
return p.devices[0].DiskType
}
+func (p *btrfsPool) Devices()... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Dump() log line misspells the label key as \"labem\" and should use .Send() instead of .Msg(\"dump\") so the debug line prints its arguments without a message body.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comme... | null |
threefoldtech__zos__578 | threefoldtech/zos | 578 | defect | 205e8bf586b372ca8bd529c1be872045c665569e | 0a4af50eea0283e285133fb7199d940b590e77ac | container: support user defined logs endpoint | This PR allows user to forward container stdout/stderr to external endpoint. Right now, only redis is supported. You can define on container reservation a new field `logs` which contains information where to push logs:
```
"logs": [
{
"type": "redis",
"data": {
... | diff --git a/docs/provision/provision.md b/docs/provision/provision.md
index 078e750a6..016518042 100644
--- a/docs/provision/provision.md
+++ b/docs/provision/provision.md
@@ -109,6 +109,8 @@ type Container struct {
Network Network `json:"network"`
// ContainerCapacity is the amount of resource to allocate to the ... | 14 | 14 | 2 | [{"id": "G0", "claim": "The redis logger should use a different channel for stderr, or at least prefix stderr lines the way the console logger does.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The corresponding schema structures should be added t... | null |
threefoldtech__zos__717 | threefoldtech/zos | 717 | defect | 6ec4600ad7cfb441060b553dac70fc620ef06a19 | 626887d43594c9ed5796b185e3f0c436ece1d995 | Add multiple asset support in escrow | Also adds support for FreeTFT
Closes #663
Closes #667 | diff --git a/tools/client/client.go b/tools/client/client.go
index f5bd9e66a..4c03d8c41 100644
--- a/tools/client/client.go
+++ b/tools/client/client.go
@@ -60,7 +60,7 @@ type Phonebook interface {
// Workloads interface
type Workloads interface {
- Create(reservation workloads.Reservation) (resp wrklds.Reservation... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new interface parameter is misspelled \"supporteCurrencies\" and should be \"supportedCurrencies\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add documentation covering the new currencies ... | null |
threefoldtech__zos__88 | threefoldtech/zos | 88 | defect | 6c4a89ff941c4829d67063188551ce26702125b0 | d36be0d70211bf33453a54d357426e293f47433b | Close #84: Cache devices in memory | Also prefer to use only indexing in loops over slices, to avoid
unneeded copies | diff --git a/modules/storage/filesystem/btrf_test.go b/modules/storage/filesystem/btrf_test.go
index 6dbadeaac..e8c3ff144 100644
--- a/modules/storage/filesystem/btrf_test.go
+++ b/modules/storage/filesystem/btrf_test.go
@@ -93,27 +93,27 @@ type TestDeviceManager struct {
devices TestDevices
}
-func (m TestDeviceM... | 4 | 1 | 1 | [{"id": "G0", "claim": "New() should not panic on initialization failure but return the error so main() can panic or log.Fatal.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ReleaseFilesystem should extract the pool id from the path and only scan that p... | null |
threefoldtech__zos__959 | threefoldtech/zos | 959 | defect | e1593e2809dc867bc1372132893250b1d7f28c23 | bd18b35399c64dbf363ab992532c78d7e5cf2e40 | flistd: force stop the 0-fs process even if mountpoint is already dead | fixes #956 | diff --git a/pkg/flist/flist.go b/pkg/flist/flist.go
index 7ac346ee5..41cc3a45f 100644
--- a/pkg/flist/flist.go
+++ b/pkg/flist/flist.go
@@ -378,10 +378,21 @@ func (f *flistModule) Umount(path string) error {
if err := syscall.Unmount(path, syscall.MNT_DETACH); err != nil {
log.Error().Err(err).Str("path", path)... | 1 | 1 | 1 | [{"id": "G0", "claim": "forceStop should first ask the 0-fs process nicely with SIGTERM (so it can unmount its read-only fuse layer) and only send SIGKILL if it is still not dead by then, instead of killing it immediately.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
thu-ml__tianshou__1098 | thu-ml/tianshou | 1,098 | defect | 8a0629ded612aa9db5ffe9c4bcb0ffd0d2dca53a | a4206eeb40474a5bc431cd2e44ccd620e9996d9c | Allow two (same/different) Batch objs to be tested for equality | Closes: https://github.com/thu-ml/tianshou/issues/1086
### Api Extensions
- Batch received new method: `to_numpy_`. #1098
- `to_dict` in Batch supports also non-recursive conversion. #1098
- Batch `__eq__` now implemented, semantic equality check of batches is now possible. #1098
### Breaking Changes
- Th... | diff --git a/test/base/test_batch.py b/test/base/test_batch.py
index f11a8d60e..9f0775c26 100644
--- a/test/base/test_batch.py
+++ b/test/base/test_batch.py
@@ -565,6 +565,47 @@ def test_batch_standard_compatibility() -> None:
Batch()[0]
+def test_batch_eq() -> None:
+ # Different keys
+ batch1 = Bat... | 8 | 8 | 4 | [{"id": "G0", "claim": "__eq__ should annotate other as Any and return False via an isinstance check before any other logic, instead of `other: Self` with a type: ignore, because a user can put anything on the right side of == and a non-Batch other would attribute-error or compare equal by shared __dict__.", "category"... | null |
thu-ml__tianshou__1195 | thu-ml/tianshou | 1,195 | defect | fb0561ab7ff30747c7a1c773c8693c59982834b3 | ae726fd4e3839511610b204424acf2d18b8fbe6f | High-level API: Establish a strong link between the actor and the distribution function | Establish a strong link between the actor and the distribution function (dist_fn) used in policies by creating the distribution function in the actor factory which knows which function is appropriate.
Consequently, remove the policy parameter 'dist_fn' from the high-level API because it is determined automatically, ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 84fd582e2..aa29e70a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
## Release 1.1.0
-### Api Extensions
+### Changes/Improvements
- `evaluation`: New package for repeating the same experiment with multiple seeds and aggregating the results. #1074 #1141... | 4 | 1 | 1 | [{"id": "G0", "claim": "The interface method create_dist_fn should declare its return type as None instead of TDistFnDiscrOrCont | None.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ActorFactory.create_dist_fn can have its return type fixed to TDistFnCon... | null |
thu-ml__tianshou__333 | thu-ml/tianshou | 333 | defect | 825da9bc538f495e75785d81cafbe722e23c0792 | faaf573092e875c9c05c8c0775cc988f2453b817 | Fix SAC loss explode | fix #332
| diff --git a/examples/mujoco/run_experiments.sh b/examples/mujoco/run_experiments.sh
index 3f0f8a9c5..6b38c2cb8 100755
--- a/examples/mujoco/run_experiments.sh
+++ b/examples/mujoco/run_experiments.sh
@@ -6,6 +6,6 @@ TASK=$1
echo "Experiments started."
for seed in $(seq 0 9)
do
- python mujoco_sac.py --task $TASK... | 4 | 2 | 2 | [{"id": "G0", "claim": "The DDPG and TD3 docstrings should say the default action_bound_method is \"clip\" instead of \"tanh\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added assert in DDPGPolicy.__init__ will cause an error when S... | null |
thu-ml__tianshou__359 | thu-ml/tianshou | 359 | defect | f4e05d585aadf82ce6705d19ebca71d52a805725 | 3e3f2c47178738470ee132f16849649e5322ac8e | Add discrete Conservative Q-Learning for offline RL | - A tianshou implementation of the discrete Conservative Q-Learning for offline/batch RL
- Reference: [paper](https://arxiv.org/pdf/2006.04779.pdf) and [code](https://github.com/aviralkumar2907/CQL)
| diff --git a/examples/atari/README.md b/examples/atari/README.md
index 24840f25d..7d5072716 100644
--- a/examples/atari/README.md
+++ b/examples/atari/README.md
@@ -67,4 +67,19 @@ We test our BCQ implementation on two example tasks (different from author's ver
| Task | Online DQN | Behavioral | BCQ ... | 4 | 2 | 1 | [{"id": "G0", "claim": "The README's new CQL results table is missing the behavioral scores (eps=0.2) for Pong and Breakout that the reviewer asks to be filled in.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because pytest runs test scripts in ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.