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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vmg__redcarpet__389 | vmg/redcarpet | 389 | defect | d1aa93594a31235fb049717c40987b5130887337 | 34a41816cdc955fe83a042db08775c1d113c8961 | A hyphen and an equal should not be converted to heading | Hello.
I guess a hyphen and an equal should not be converted to heading.
For example, this code will convert to heading.
``` ruby
redcarpet = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
redcarpet.render("-") #=> "<h2></h2>\n"
# But, I'd expected to get "<p>-</p>\n"
```
Also, this behavior leads to incorrect outp... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 37a4e025..694b85cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+* A hyphen and a equal should not be converted to heading.
+
+ *namusyaka*
+
* Fix emphasis character escape sequence detection while mid-emphasis.
*jcheatham*
diff --git... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use \"an\" instead of \"a\" before \"equal\" in the CHANGELOG entry line.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test using the second example with HTML_TOC covering the new hyphen/equal non-heading behaviour.... | null |
vmihailenco__msgpack__111 | vmihailenco/msgpack | 111 | defect | 200315d5c8aab339f5a5cd44219f4b50ad0782df | 108b9684837780706fccbb41f19d202667ce7265 | Add support for encoding structs as arrays. | Updates https://github.com/vmihailenco/msgpack/issues/110 | diff --git a/README.md b/README.md
index 8a5c0654..ff0bf0e8 100644
--- a/README.md
+++ b/README.md
@@ -5,11 +5,12 @@ Supports:
- Appengine *datastore.Key and datastore.Cursor.
- [CustomEncoder](http://godoc.org/gopkg.in/vmihailenco/msgpack.v2#example-CustomEncoder)/CustomDecoder interfaces for custom encoding.
- [Ex... | 1 | 1 | 1 | [{"id": "G0", "claim": "When decoding a struct from an array whose element count n exceeds the struct's field count i, the excess array elements should be Skip()-ed instead of the loop just breaking and leaving them unconsumed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
vmihailenco__msgpack__191 | vmihailenco/msgpack | 191 | defect | 6ab02c0ddf38d837488a746aa8709f6ecffc2fde | 5b4f13da25c93b3e4fde637f37f43c947a583a39 | Expose extension encoding/decoding in Encoder/Decoder | Provides low level functionality in case clients want to bypass RegisterExt() and implement their own generic Encode/Decode function (just as EncodeMapLen and EncodeArrayLen do). | diff --git a/decode.go b/decode.go
index 7ad2cf6c..a3d27b34 100644
--- a/decode.go
+++ b/decode.go
@@ -335,7 +335,8 @@ func (d *Decoder) DecodeInterface() (interface{}, error) {
return d.DecodeMap()
case codes.FixExt1, codes.FixExt2, codes.FixExt4, codes.FixExt8, codes.FixExt16,
codes.Ext8, codes.Ext16, codes.E... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request should leave DecodeInterface and DecodeInterfaceLoose unchanged instead of adding d.s.UnreadByte() and calling the argument-less extInterface(), because the project avoids unreading bytes for performance.", "category": "performance", "verdict": "supported", "priority": "P1", "sc... | null |
vmihailenco__msgpack__224 | vmihailenco/msgpack | 224 | defect | abe680308d0beea7c2c861876fdc269996e7662e | f65f98d38915d6c692283df331c924f8127e7588 | No allocations on `EncodeTime`, run benchmarks | Use per-instance lazily-allocated buffer to avoid allocations
in `EncodeTime`. We can't use use `e.buf`, as it's used to
encode extLen, and it's smaller than required (9 bytes).
Using buffer on stack doesn't work, as Go doesn't have
a way to figure out if `e.write(b)` escapes or not, so it thinks
it always escapes... | diff --git a/Makefile b/Makefile
index b62ae6a4..29660d2b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,4 +2,5 @@ all:
go test ./...
env GOOS=linux GOARCH=386 go test ./...
go test ./... -short -race
+ go test ./... -run=nothing -bench=. -benchmem
go vet
diff --git a/bench_test.go b/bench_test.go
index 4078c5cf..c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new time buffer field should be grouped with the other `buf` field, renamed to `timeBuf`, and given a comment explaining why `e.buf` cannot be reused (it is used to encode extLen).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmihailenco__msgpack__250 | vmihailenco/msgpack | 250 | defect | 5da022eb256fbcfd6f933b4d6bc977723c28334e | ee566304b03a3f60f53e894d60a79dc771fe216b | Allow floating point numbers to use a compact representation. | If a float32/64 is an integer and representable in int64 then use a compact integer encoding. | diff --git a/encode_number.go b/encode_number.go
index e92ad88e..f4170a84 100644
--- a/encode_number.go
+++ b/encode_number.go
@@ -143,10 +143,21 @@ func (e *Encoder) EncodeInt(n int64) error {
}
func (e *Encoder) EncodeFloat32(n float32) error {
+ if e.useCompact {
+ m := float64(n)
+ if !math.IsInf(m, 0) && !ma... | 1 | 1 | 0 | [{"id": "G0", "claim": "The math.IsInf and math.IsNaN checks in EncodeFloat32 and EncodeFloat64 are unnecessary and can be removed to make the code simpler and faster.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmihailenco__msgpack__330 | vmihailenco/msgpack | 330 | defect | 674095b6a22178ae45b7062ab3055cc94ed9ec94 | 6689e47341ef79ade1917e833fe94574340bd469 | small optimizations. | Hello, here at @AlpineIQ we use msgpack extensively, however as some of our caches grew, we hit some roadblocks with memory for decoding.
I took a crack at the decoder and come up with this PR:
- remove `bytesAllocLimit/sliceAllocLimit/maxMapSize`, always allocate the full size since it's known beforehand.
- all... | diff --git a/decode.go b/decode.go
index 5df40e5d..1006b380 100644
--- a/decode.go
+++ b/decode.go
@@ -18,12 +18,6 @@ const (
disallowUnknownFieldsFlag
)
-const (
- bytesAllocLimit = 1e6 // 1mb
- sliceAllocLimit = 1e4
- maxMapSize = 1e6
-)
-
type bufReader interface {
io.Reader
io.ByteScanner
@@ -74,6 +6... | 3 | 3 | 3 | [{"id": "G0", "claim": "Removing the allocation limits lets a tiny malicious MsgPack message make the decoder attempt a huge allocation (e.g. 1TB) and panic, so the limits should be kept under a flag or the panic recovered.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id... | null |
vmihailenco__msgpack__40 | vmihailenco/msgpack | 40 | defect | 9dbd4ac30c0b67927f0fb5557fb8341047bd35f7 | dca6e0d3e109d182860cfa589e3a2f82b5b27ad1 | Add support for inlining struct fields. | msgpack encoder differ in behaviour from the json one - the latter inlines
fields of an embedded struct as they were part of the parent struct.
While we can't change the behaviour due to compatibility reasons we can
introduce `inline` opt, which will make the encoding similar in
behaviour to the json one.
/cc @vmihai... | diff --git a/.travis.yml b/.travis.yml
index 900e9984..ddc73169 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,8 +3,11 @@ language: go
go:
- 1.3
- 1.4
+ - 1.5
- tip
+sudo: false
+
install:
- go get gopkg.in/check.v1
- go get github.com/ugorji/go-msgpack
diff --git a/README.md b/README.md
index 347... | 4 | 2 | 2 | [{"id": "G0", "claim": "The new tag option should probably be named `embed` instead of `inline`, to match Go's naming of the concept.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test case for a struct embedding time.Time with the inline option (Custom... | null |
vmware-tanzu__cartographer__1016 | vmware-tanzu/cartographer | 1,016 | defect | cada263d8f5cae3fb22787d46c53fba763e80789 | 3e52bb863fdd7b12065085beb5127ab9bb72916d | Emit ResourceOutputChanged event | ## Changes proposed by this PR
When Cartographer observes a change to a resource's output in a future reconciliation pass, it now emits a ResourceOutputChanged event.
The event message indicates the resource and new output values.
Passing RESTMapper to resolve the GVR of the resource to build the event message... | diff --git a/pkg/controllers/deliverable_reconciler.go b/pkg/controllers/deliverable_reconciler.go
index 596348c22..ac372ffe2 100644
--- a/pkg/controllers/deliverable_reconciler.go
+++ b/pkg/controllers/deliverable_reconciler.go
@@ -21,6 +21,7 @@ import (
"github.com/go-logr/logr"
corev1 "k8s.io/api/core/v1"
rbac... | 2 | 2 | 2 | [{"id": "G0", "claim": "Putting the output values in the ResourceOutputChanged event message creates another place that would need redacting of sensitive information, and since the RFC does not call for the output values to be in the event they should be removed for now, pending feedback on how to deal with sensitive d... | null |
vmware-tanzu__cartographer__1059 | vmware-tanzu/cartographer | 1,059 | defect | 7c00c5ffa72387b2e7bbe822ce19452c8aa772fa | ef538f71c44a2be5f04c07d17482979a769ac268 | Refactor Params handling | A small effort to absorb some Go practices:
1. Accept interfaces
2. Return structs
3. Describe the interface where you ingest it
This is part of a larger effort to disentangle realizer and component. We picked params as a simple target to start with.
There's still more interfaces that Params could imbibe, fo... | diff --git a/pkg/realizer/component.go b/pkg/realizer/component.go
index d15572bc6..1c2188e6c 100644
--- a/pkg/realizer/component.go
+++ b/pkg/realizer/component.go
@@ -87,6 +87,8 @@ func (r *resourceRealizer) Do(ctx context.Context, resource OwnerResource, bluep
log := logr.FromContextOrDiscard(ctx).WithValues("temp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Ginkgo prose for the params test should be renamed from \"ParamsBuilder\" to \"ParamGenerator\" to match the refactored naming.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
vmware-tanzu__cartographer__231 | vmware-tanzu/cartographer | 231 | defect | 77ee9657b2af7dbb2d68353419f8f246da58ad5b | 28589fe8e8ec43f495dae465e8caea39b34c7c32 | select resource by labels | Implements #163
If 0 or more than 1 resources match the supplied labels then an error is generated. | diff --git a/config/crd/bases/carto.run_pipelines.yaml b/config/crd/bases/carto.run_pipelines.yaml
index f53848089..c5a414998 100644
--- a/config/crd/bases/carto.run_pipelines.yaml
+++ b/config/crd/bases/carto.run_pipelines.yaml
@@ -64,6 +64,23 @@ spec:
required:
- name
... | 4 | 3 | 0 | [{"id": "G0", "claim": "Use a plain map[string]interface{} instead of *map[string]interface{} for the TemplatingContext Selected field, since maps are already reference types.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Structure resolveSelector with ... | null |
vmware-tanzu__cartographer__678 | vmware-tanzu/cartographer | 678 | defect | 89eac60015487d15d2fdacd285847d2c9c079427 | be9816d468f2abe35ce351a5c09ed565a6a8e652 | Cleanup orphaned objects when blueprint template changes | Co-authored-by: Marty Spiewak <mspiewak@vmware.com>
<!--
Thanks for submitting a pull request to Cartographer!
Also check the [PR guidelines] if you haven't already!
-->
[PR requirements]: https://github.com/vmware-tanzu/cartographer/blob/main/CONTRIBUTING.md#commit-message-and-pr-guidelines
## Changes pr... | diff --git a/config/crd/bases/carto.run_clusterdeliveries.yaml b/config/crd/bases/carto.run_clusterdeliveries.yaml
index de2a625e1..bd8d77322 100644
--- a/config/crd/bases/carto.run_clusterdeliveries.yaml
+++ b/config/crd/bases/carto.run_clusterdeliveries.yaml
@@ -169,6 +169,7 @@ spec:
- Clus... | 2 | 1 | 1 | [{"id": "G0", "claim": "The orphan check should consider the whole apiVersion (e.g. GroupVersionKind) to account for version bumps and group changes, instead of comparing only Kind and Name.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error r... | null |
vmware-tanzu__cartographer__745 | vmware-tanzu/cartographer | 745 | defect | 47376b76c4ee7c6332ab24f1d3e1506d3539ff80 | 1e3001c19a2615567f8419dcddcd630ea780c51f | Generate webhooks with kubebuilder | <!--
Thanks for submitting a pull request to Cartographer!
Also check the [PR guidelines] if you haven't already!
-->
[PR requirements]: https://github.com/vmware-tanzu/cartographer/blob/main/CONTRIBUTING.md#commit-message-and-pr-guidelines
## Changes proposed by this PR
<!--
Add the story that is resolv... | diff --git a/Makefile b/Makefile
index 20e2c4c8e..62d6a6552 100644
--- a/Makefile
+++ b/Makefile
@@ -35,11 +35,20 @@ config/crd/bases/*.yaml &: $(crd_sources)
-f ./hack/boilerplate.go.txt \
config/crd/bases
+config/webhook/manifests.yaml: $(crd_sources)
+ $(CONTROLLER_GEN) \
+ webhook \
+ paths=./pkg/apis/v1a... | 2 | 1 | 1 | [{"id": "G0", "claim": "hack/release.sh passes ./hack/overlays/webhook-overlay.yaml to ytt, but the overlay file this pull request adds is hack/overlays/webhook-configuration.yaml, so the release script references a file that does not exist and would not apply the webhook configuration.", "category": "correctness", "ve... | null |
vmware-tanzu__cartographer__876 | vmware-tanzu/cartographer | 876 | defect | 693036beb08f237ad45e3715c92a61a7e718cd81 | 13a0cdc90dd6f5692b279263314beb3c001622ae | 486 runnable output bug | Change the behaviour of runnable's outputs:
1. outputs come from the latest StampedObject with a succeeded:true status. objects without a suceeded status are ignored.
2. not specifying outputs is legal - supports terminal/throwaway tasks
| diff --git a/pkg/realizer/runnable/realizer.go b/pkg/realizer/runnable/realizer.go
index 208eb29b0..e68c6e1d0 100644
--- a/pkg/realizer/runnable/realizer.go
+++ b/pkg/realizer/runnable/realizer.go
@@ -125,7 +125,7 @@ func (r *runnableRealizer) Realize(ctx context.Context, runnable *v1alpha1.Runna
log.Error(err, "fai... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the constant `StatusPath` to a more specialized name such as `StatusSucceededPath`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__cartographer__972 | vmware-tanzu/cartographer | 972 | defect | a7e2b73248b8bff0abb5ae5f942282cd76cb4ca8 | a2128ac2669255216f558aedced7686b7c10e530 | Modify markersFor to search LoadRoots packages for matching filename | Upgrade controller-tools to 0.9.2.
Closes #913, #914 | diff --git a/go.mod b/go.mod
index e42acfed5..f1e5fe7bb 100644
--- a/go.mod
+++ b/go.mod
@@ -20,7 +20,7 @@ require (
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
sigs.k8s.io/cluster-api v1.2.1
sigs.k8s.io/controller-runtime v0.12.3
- sigs.k8s.io/controller-tools v0.8.0
+ sigs.k8s.io/controller-tools v0.9.2
s... | 1 | 1 | 0 | [{"id": "G0", "claim": "In markersFor, the len(packages) != 1 error should read \"got %d package(s) for package ref: %s\" and print packageRef instead of saying \"file\" and printing filename.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__crash-diagnostics__164 | vmware-tanzu/crash-diagnostics | 164 | defect | 0d1da11b52f60eeb11ccdd430f5eed17a5fd3f54 | 729a91e5421c27703c7c23c06a03b02a22cc95f3 | Adds `--args-file` flag to crashd run command | Instead of passing a number of key=value arguments via the command line, the script executor can now pass a path to a file containing key-value pairs which can be passed to the diagnostics file.
```bash
$ cat /tmp/script.args
foo=bar
# this is a valid comment
blah = bleep
# this will result in the above display... | diff --git a/cmd/cmd_suite_test.go b/cmd/cmd_suite_test.go
new file mode 100644
index 00000000..e5c7f738
--- /dev/null
+++ b/cmd/cmd_suite_test.go
@@ -0,0 +1,16 @@
+// Copyright (c) 2020 VMware, Inc. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+
+package cmd
+
+import (
+ "testing"
+
+ . "github.com/on... | 2 | 1 | 0 | [{"id": "G0", "claim": "An args-file entry with an empty value (`key =`) should probably not be valid — a value should always have to be provided.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parse each line with a simple `strings.Split(line, \"=\")` a... | null |
vmware-tanzu__crash-diagnostics__165 | vmware-tanzu/crash-diagnostics | 165 | defect | 42bbcc3b6dc02b15a6f9db09589109187dbeeb58 | c9f7da1d2e500bd814e885a11526cd415b5909b1 | Adds support for passphrase protected ssh key | Adds the ability to start/stop an instance of the `ssh-agent` and add/remove keys to/from this `ssh-agent` instance. This instance of the agent is alive only for the scope of the execution of the Starlark script. Thus, the default instance of the ssh-agent in use by the current shell remains unchanged.
This patch ad... | diff --git a/.github/workflows/compile-test.yaml b/.github/workflows/compile-test.yaml
index 873f1e3b..a0eaf963 100644
--- a/.github/workflows/compile-test.yaml
+++ b/.github/workflows/compile-test.yaml
@@ -6,10 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Set up Go 1.13
+ - name: Set up Go ... | 6 | 6 | 3 | [{"id": "G0", "claim": "AddKey should run ssh-add via the sshAddCmd variable returned by Prog.Avail (the full path found for the command) instead of the literal \"ssh-add\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Stop() should not return on ... | null |
vmware-tanzu__crash-diagnostics__187 | vmware-tanzu/crash-diagnostics | 187 | defect | 8b79e7dc6ecf1dacbfa1270eb7f7946409269a8c | 1bec6c360e079ce173e1c5360993973056e4f3cc | add prog_avail_local function | This PR adds `prog_avail_local` support for crashd scripts.
`prog_avail_local` check if a program is available on host machine.
Example script:
```
def run():
prog="echo"
path = prog_avail_local(prog=prog)
if path == "":
print("prog '{}' is not available".format(prog))
else:
... | diff --git a/starlark/prog_avail_local.go b/starlark/prog_avail_local.go
new file mode 100644
index 00000000..21084392
--- /dev/null
+++ b/starlark/prog_avail_local.go
@@ -0,0 +1,27 @@
+// Copyright (c) 2020 VMware, Inc. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+
+package starlark
+
+import (
+ "fmt... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add tests that exercise the actual starlark script, as run_local_test.go does.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vmware-tanzu__crash-diagnostics__189 | vmware-tanzu/crash-diagnostics | 189 | defect | 7e95157ab2e439683b375b83466edcb1a21e7a5c | 4bef29d708bdb60e4750069b6c941f6095190c96 | Implements support for copy_to() starlark function | This patch, overall, implements the new `copy_to()` Crashd script command.
It also includes the following updates:
* package ssh to support CopyFrom and CopyTo
* New tests in ssh package
* Addition of copyToFunc Starlark Go function
* Tests for copyToFunc
Fixes #150 | diff --git a/ssh/agent.go b/ssh/agent.go
index 8d6a365d..82dc194a 100644
--- a/ssh/agent.go
+++ b/ssh/agent.go
@@ -89,6 +89,7 @@ func (agent *agent) Stop() error {
logrus.Debugf("stopping the ssh-agent with Pid: %s", agent.Pid)
p := echo.New().Env(agent.GetEnvVariables()).RunProc("ssh-agent -k")
+ logrus.Debugf("... | 2 | 1 | 0 | [{"id": "G0", "claim": "The copyToFunc doc comment should also show an example usage of the named arguments source_path and target_path.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's remote-directory setup (MakeRemoteTestSSHDir) may be... | null |
vmware-tanzu__crash-diagnostics__190 | vmware-tanzu/crash-diagnostics | 190 | defect | 3e9c3f5f9b6009858724cb3e0aa02e4a0ab1ddf3 | a0976d0c7fdbdefce66df1b4dff7bd1376637f89 | add parameter to capture_local | solve #183 capture_local should include an append flag | diff --git a/docs/README.md b/docs/README.md
index 2c0ff347..a4462dce 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -480,6 +480,7 @@ This function runs a command locally on the machine running the script. It then
| `workdir`|A parent directory where captured files will be saved|No, defaults to `crashd_config.wo... | 2 | 1 | 1 | [{"id": "G0", "claim": "Please add a new test case that actually validates whether content is appended to an existing file when append=True (create the file at the location first, run captureLocalFunc, then validate the content).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
vmware-tanzu__crash-diagnostics__264 | vmware-tanzu/crash-diagnostics | 264 | defect | eddef8d7edd80015f17fdd4aec2f6943f148c731 | 761b2e1ee66e787c976b2ada79f9c018ac4fd50b | Capture logs using kube_capture(what="logs") in parallel. Do not fail on error | - **Adds ability to change the print format to yaml for kube_capture**
- **Capture pod logs in parallel and ignore errors**
| diff --git a/k8s/container_logger.go b/k8s/container_logger.go
index d995a48..2b8d7d3 100644
--- a/k8s/container_logger.go
+++ b/k8s/container_logger.go
@@ -33,7 +33,7 @@ func (c ContainerLogsImpl) Fetch(ctx context.Context, restApi rest.Interface) (i
req := restApi.Get().Namespace(c.namespace).Name(c.podName).Resour... | 4 | 1 | 0 | [{"id": "G0", "claim": "Use errors.Wrapf instead of string concatenation when wrapping the container-log-stream error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The printer is initialized only when outputFormat is json or yaml, so omitting ... | null |
vmware-tanzu__sonobuoy__1011 | vmware-tanzu/sonobuoy | 1,011 | defect | 1b0ea1acc5cc5a258e6220bd25da0b0800df5c2d | 08afdc95a3ff3b395e2379eb45c81610079c7965 | Default to enableing progress updates from E2E plugin | As of v1.17 the Kubernetes E2E test image will support progress
updates if the URL is specified.
Fixes #992
**Special notes for your reviewer**:
Do the following to test:
```
$ go install && sonobuoy run --kube-conformance-image-version=v1.17.0-beta.2
```
It doesn't matter that your cluster may not be ... | diff --git a/pkg/client/gen.go b/pkg/client/gen.go
index aa37cbf86..85f982f91 100644
--- a/pkg/client/gen.go
+++ b/pkg/client/gen.go
@@ -25,6 +25,7 @@ import (
"sort"
"strings"
+ version "github.com/hashicorp/go-version"
"github.com/pkg/errors"
"github.com/vmware-tanzu/sonobuoy/pkg/config"
@@ -38,8 +39,9 @@... | 5 | 5 | 1 | [{"id": "G0", "claim": "The progress-report URL hardcoded in updateExtraArgs uses port 8099 even though the port is configurable in the config object, so it should be taken from there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The \"E2E_EXTRA_A... | null |
vmware-tanzu__sonobuoy__1296 | vmware-tanzu/sonobuoy | 1,296 | defect | a36d1b433a4c424cc8a27b2d872acf5c4de731b7 | 8721f13ff605ce876ad12599e56e03739b3ff714 | Enables plugins to specify config map information | The most common configuration option that we don't easily support is
a plugin specification that also includes config map info. By supporting
this we can easily support different deployment configurations without
specifying the entire `sonobuoy gen` yaml manually and sharing that.
This is particularly useful for ... | diff --git a/pkg/client/gen.go b/pkg/client/gen.go
index 40308a88f..5a7307edd 100644
--- a/pkg/client/gen.go
+++ b/pkg/client/gen.go
@@ -62,6 +62,9 @@ type templateValues struct {
NodeSelectors map[string]string
+ // configmap name, filename, string
+ ConfigMaps map[string]map[string]string
+
// CustomRegistrie... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new Manifest.DeepCopyObject needs to range over the inner values too because Configs is a map of maps.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR should be consistent about naming config vs configs (e.g. against ... | null |
vmware-tanzu__sonobuoy__133 | vmware-tanzu/sonobuoy | 133 | defect | a30e22036aaa809033fbc73da9db5b9b0118ca1d | f44615c77259987fbb6e45747731d4b4b1c00f0e | Change how plugins work | Instead of creating our own schema for a plugin we will use annotations
to get metadata to sonobuoy instead. We can then define full kubernetes
resources as plugins.
The resources we define are templates. The idea is to eventually move
these templates over to ksonnet and have a nice ksonnet library for the
share... | diff --git a/examples/quickstart.yaml b/examples/quickstart.yaml
index 9cb07082e..865d916b0 100644
--- a/examples/quickstart.yaml
+++ b/examples/quickstart.yaml
@@ -112,91 +112,48 @@ metadata:
---
apiVersion: v1
data:
- e2e.yaml: |
- driver: Job
- name: e2e
- resultType: e2e
+ e2e.tmpl: |
+ apiVersion:... | 8 | 5 | 1 | [{"id": "G0", "claim": "Group the var declarations in daemonset.go's Run function for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a TODO comment about switching to .Apps once extensions is deprecated, or explicitly wrap.", "c... | null |
vmware-tanzu__sonobuoy__1344 | vmware-tanzu/sonobuoy | 1,344 | defect | 564f6228d9eeda816384bafc6304633d5e7f5981 | a29c1e15e59c1c6a5e705fed6e1bc810841cedba | Wire e2e focus/skip/mode/parallel into existing env structure | Removing types that are e2e specific while keeping our flags
for convenience/shorthand.
Signed-off-by: John Schnake <jschnake@vmware.com> | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 079c786b3..baa0f9374 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -22,6 +22,7 @@ import (
"regexp"
"strings"
+ "github.com/vmware-tanzu/sonobuoy/pkg/client"
"github.com/vmware-tanzu/sonobuoy/pkg/image"
"gopkg.i... | 3 | 3 | 0 | [{"id": "G0", "claim": "The golden test gen-config-no-flags.golden now shows the default plugins (e2e, systemd-logs) injected when the custom config sets Plugins:null; the author needed to verify why, make sure a custom config's explicitly-set plugins are not modified, and update the test to check a run which specifies... | null |
vmware-tanzu__sonobuoy__1368 | vmware-tanzu/sonobuoy | 1,368 | defect | f9f2b4e62a592342acf21e581ded35087fc9bfc8 | 974747f985d7eca1d1c5b0fc6eab17ce8f1000eb | Tweak CLI language | Misc changes to CLI help/messages to clarify behavior or make
it more consistent with current descriptions of what Sonobuoy
does and how.
Fixes #1172
Signed-off-by: John Schnake <jschnake@vmware.com>
| diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 614ebe928..eb1fbd107 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -100,7 +100,7 @@ func AddDNSPodLabelsFlag(str *[]string, flags *pflag.FlagSet) {
func AddSonobuoyImage(image *string, flags *pflag.FlagSet) {
flags.Strin... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Long help text in cmd/sonobuoy/app/root.go should read \"Sonobuoy is a Kubernetes component\" instead of the grammatically wrong \"Sonobuoy is an Kubernetes component\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__1369 | vmware-tanzu/sonobuoy | 1,369 | defect | f9f2b4e62a592342acf21e581ded35087fc9bfc8 | 715b6d2bc0dad89d7d4a4ba4002fdb3b158e47c1 | Update site docs | Just a quick update to some language in the site docs to
reflect recent changes to Sonobuoy.
Signed-off-by: John Schnake <jschnake@vmware.com> | diff --git a/site/content/docs/master/faq.md b/site/content/docs/master/faq.md
index 93a358737..273b8a6ce 100644
--- a/site/content/docs/master/faq.md
+++ b/site/content/docs/master/faq.md
@@ -11,7 +11,7 @@ The default mode for the e2e plugin (`non-disruptive-conformance`) will run all
This is to help prevent you from... | 1 | 1 | 0 | [{"id": "G0", "claim": "The last sentence of the new Plugin Installation paragraph reads as if something is missing and should be rephrased, e.g. \"With this new functionality...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__1612 | vmware-tanzu/sonobuoy | 1,612 | defect | 5200a142dd512ddaf72d6d95885b19f0a6f7a3e4 | ba2000e5f8dc8ef71d9fea82c2003c495705682e | Issue1595: deal with plugins with unknown total tests count | **What this PR does / why we need it**:
Issue1595
Some plugins do not declare the total number of tests, so the progress update is confusing
**Which issue(s) this PR fixes**
- Fixes #1595 | diff --git a/cmd/sonobuoy/app/status.go b/cmd/sonobuoy/app/status.go
index bea057c8b..4620e7afa 100644
--- a/cmd/sonobuoy/app/status.go
+++ b/cmd/sonobuoy/app/status.go
@@ -31,7 +31,6 @@ import (
"github.com/vmware-tanzu/sonobuoy/pkg/client"
"github.com/vmware-tanzu/sonobuoy/pkg/errlog"
- "github.com/vmware-tanzu... | 2 | 2 | 1 | [{"id": "G0", "claim": "The progress output is too big and looks bulky in the CLI; a min field width of 3 (instead of 5) would be fine.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestPrintStatus/StatusSummary and TestPrintStatus/StatusShowAll are fai... | null |
vmware-tanzu__sonobuoy__1723 | vmware-tanzu/sonobuoy | 1,723 | defect | c4593e0bb114da9836385449b968534b404c3b1e | 543a4c9c4d7341b1eb1e128f149f4e819d9ff21b | User provided ConfigMap validation | **What this PR does / why we need it**:
Adds basic validation for the value of the ConfigMap field in plugin manifest. Parses YAML using the Unmarshal function provided by the Go yaml package.
**Which issue(s) this PR fixes**
- Fixes #1663
**Special notes for your reviewer**:
**Release note**:
```
release... | diff --git a/pkg/client/interfaces.go b/pkg/client/interfaces.go
index 5b326fcca..cd2b56f9d 100644
--- a/pkg/client/interfaces.go
+++ b/pkg/client/interfaces.go
@@ -21,6 +21,7 @@ import (
"fmt"
"io"
"regexp"
+ "strings"
"time"
"github.com/pkg/errors"
@@ -107,6 +108,15 @@ func (gc *GenConfig) Validate() erro... | 3 | 2 | 1 | [{"id": "G0", "claim": "The invalid-YAML test literals could use Go backtick strings instead of escaped quotes, since backticks keep `\"` from being a special character and avoid escaping.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a few... | null |
vmware-tanzu__sonobuoy__1745 | vmware-tanzu/sonobuoy | 1,745 | defect | 092122acc9a51612f202b5eefb80e16dbe640f50 | 67f07fe9595e6a658cfd7e4c9ecd66254e5b127d | Add readable mode to results command | *What this PR does / why we need it:*
Adds "readable" mode to the results command. Replaces \n with a new line and \t with a tab to make the output to stdio from the sonobuoy_results.yaml file more readable (dump mode does not do this).
Which issue(s) this PR fixes
Fixes https://github.com/vmware-tanzu/sonobuoy/... | diff --git a/cmd/sonobuoy/app/results.go b/cmd/sonobuoy/app/results.go
index 1e91e5ed4..47cec93eb 100644
--- a/cmd/sonobuoy/app/results.go
+++ b/cmd/sonobuoy/app/results.go
@@ -17,6 +17,7 @@ limitations under the License.
package app
import (
+ "bytes"
"compress/gzip"
"encoding/json"
"fmt"
@@ -47,6 +48,9 @@ c... | 3 | 3 | 1 | [{"id": "G0", "claim": "The readable-mode branch of printSinglePlugin should return the io.Copy error wrapped with context (e.g. errors.Wrapf with the plugin name) instead of panicking, which was only acceptable for a quick POC.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
vmware-tanzu__sonobuoy__1753 | vmware-tanzu/sonobuoy | 1,753 | defect | 41f2081921e7e18b3511e2883c48e5db76639513 | a0c629c90a9137e0a475cf433a5e2a67456fb90a | Update plugin ordering to latest Sonobuoy version | **What this PR does / why we need it**:
Plugins should be able to run in a predetermined order. Adds order key to sonobuoy-config (lower number has a higher priority)
**Which issue(s) this PR fixes**
- Fixes #1684 | diff --git a/cmd/sonobuoy/app/testdata/pluginDef-container.golden b/cmd/sonobuoy/app/testdata/pluginDef-container.golden
index e28e808cb..2385b0e35 100644
--- a/cmd/sonobuoy/app/testdata/pluginDef-container.golden
+++ b/cmd/sonobuoy/app/testdata/pluginDef-container.golden
@@ -1,5 +1,6 @@
sonobuoy-config:
driver: ""... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add `,omitempty` to the `Order` field's JSON tag in SonobuoyConfig so zero values are not serialized, keeping existing tests working as-is and cutting goldenfile LOC churn.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "The diff f... | null |
vmware-tanzu__sonobuoy__1780 | vmware-tanzu/sonobuoy | 1,780 | defect | 684a594e9d1406bb26708d9eea17beab425ec695 | 089020501d6365682da55b6d44590b287666ba5b | Allow worker to upload directory instead of file | Current flow requires the plugin to tar up the results then
point to them. It would simplify things if we allowed pointing
to a directory and we do the tar process ourselves.
Fixes #1776
Signed-off-by: John Schnake <jschnake@vmware.com> | diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go
index b7f17ef95..452f4c827 100644
--- a/pkg/worker/worker.go
+++ b/pkg/worker/worker.go
@@ -227,7 +227,20 @@ func allOtherContainersCompleted(myNS, myPod, myContainer string) bool {
func handleWaitFile(resultFile, url string, client *http.Client) error {
var... | 3 | 3 | 1 | [{"id": "G0", "claim": "The variable 'fi' should be renamed to something more readable such as 'file'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable 'tb' in TestDoneFileDirectory should be renamed to 'tarball' for readability.", "c... | null |
vmware-tanzu__sonobuoy__203 | vmware-tanzu/sonobuoy | 203 | defect | 692a4e56b5bd901315adc1d4fd3e55046e7c0422 | 1e595a8508ea16b4e7ab1900fcab40ebbbd5436e | seperate stress tests into integration tests | Stress tests don't work very well on OSX, so run them
seperately. | diff --git a/.travis.yml b/.travis.yml
index 7b53f47df..2304e8afa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,4 +4,4 @@ services:
- docker
install: true
-script: VERBOSE=true make test
+script: VERBOSE=true make int
diff --git a/Makefile b/Makefile
index a1d8f8eb3..d6240ed31 100644
--- a/Makefile
+++ b/Makef... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Travis CI script should run `make test int` (both the unit-test and integration-test targets) instead of `make int` alone.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__217 | vmware-tanzu/sonobuoy | 217 | defect | 5987c55622feb5f6904c0b79fe057d3e4f2b3aa8 | a3eff4275cf82a76ecae9508654afb9761045682 | Use APIMachinery to serialise and deserialize sonobuoy manifests | The result of a bunch of hard-won APIMachinery lessons | diff --git a/pkg/plugin/driver/daemonset/daemonset.go b/pkg/plugin/driver/daemonset/daemonset.go
index f5c19d51d..61402a9df 100644
--- a/pkg/plugin/driver/daemonset/daemonset.go
+++ b/pkg/plugin/driver/daemonset/daemonset.go
@@ -18,13 +18,13 @@ package daemonset
import (
"bytes"
- "encoding/json"
"fmt"
"time"
... | 3 | 2 | 0 | [{"id": "G0", "claim": "Split loadDefinition into loadDefinition and loadDefinitionFromFile.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider representing the driver as an actual v1.Pod object so the YAML templating could be avoided.", "c... | null |
vmware-tanzu__sonobuoy__220 | vmware-tanzu/sonobuoy | 220 | defect | 21c2329f3994de8fbdb2d477293bac79a3929cd6 | cad8a50bdd2df87df62b4099f85d7ab39a48a4ca | Sonobuoy CA | This PR has been spun out of #190, because that PR was wayyy to big.
@chuckha I tried to follow your requests in the previous PR.
Doesn't add any new functionality, but lays an important foundation for #154 | diff --git a/pkg/backplane/ca/authtest/testserver.go b/pkg/backplane/ca/authtest/testserver.go
new file mode 100644
index 000000000..15aa785be
--- /dev/null
+++ b/pkg/backplane/ca/authtest/testserver.go
@@ -0,0 +1,65 @@
+package authtest
+
+import (
+ "crypto/tls"
+ "net/http"
+ "net/http/httptest"
+ "testing"
+
+ "git... | 1 | 1 | 1 | [{"id": "G0", "claim": "nextSerial (used by ServerKeyPair/MakeServerConfig) is not thread safe; add a sync.Mutex or document that an Authority must not be used from multiple goroutines.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__258 | vmware-tanzu/sonobuoy | 258 | defect | 5a5249c1680fe1ad2894c4f939b457c345a232b4 | 6a3e61d0486771f298d35bba53792f268709e6cf | Annotation updater | Implements [SEP4](https://github.com/heptio/sonobuoy/blob/master/docs/enhancements/status-reporting.md) | diff --git a/pkg/backplane/status/status.go b/pkg/backplane/status/status.go
new file mode 100644
index 000000000..41016e881
--- /dev/null
+++ b/pkg/backplane/status/status.go
@@ -0,0 +1,45 @@
+package status
+
+import "fmt"
+
+const (
+ // Running means the sonobuoy run is still in progress
+ Running string = "running... | 8 | 7 | 1 | [{"id": "G0", "claim": "The PR author dislikes Aggregator.Wait taking a results-channel out-parameter and asks for alternative designs for tapping into incoming results.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The status.Status.Status naming (pack... | null |
vmware-tanzu__sonobuoy__281 | vmware-tanzu/sonobuoy | 281 | defect | 3a68e3ebd9485904eb99c476b028d50175b8a714 | daa33ca03c270a1ecc2e717d4f220a009e17edc1 | The following PR changes how the master kubeconfig is loaded | and eliminates the kubeconfig settings in sonobuoys config struct.
I still need to finish my testing on it and am breaking up commits to each part.
/cc @liztio | diff --git a/cmd/sonobuoy/app/kubeconfig.go b/cmd/sonobuoy/app/kubeconfig.go
index e7fb3bd3b..b3bfb7ece 100644
--- a/cmd/sonobuoy/app/kubeconfig.go
+++ b/cmd/sonobuoy/app/kubeconfig.go
@@ -37,6 +37,14 @@ func (c *Kubeconfig) Set(str string) error {
// Get returns a rest Config, possibly based on a provided config
f... | 3 | 2 | 2 | [{"id": "G0", "claim": "The new in-cluster detection condition is backwards: rest.InClusterConfig() is only attempted when an explicit kubeconfig path is set, when it should be attempted when no explicit path is given (compare ExplicitPath to the empty string).", "category": "correctness", "verdict": "supported", "prio... | null |
vmware-tanzu__sonobuoy__401 | vmware-tanzu/sonobuoy | 401 | defect | 334783945376c257f4aa276b66c8b1f966c9a46c | e2aac318d7fb42f25e9c5b47d52e1a8640fbf0de | Fixes duplicate runs | * Adds lots of tests for merging behavior
* Adds tests to some other parts of the code relating to configuration manipulation.
* Removes duplicate search paths in the default case.
Signed-off-by: Chuck Ha <chuck@heptio.com>
**What this PR does / why we need it**:
**Which issue(s) this PR fixes**
- Fixes #... | diff --git a/cmd/sonobuoy/app/sonobuoyconfig.go b/cmd/sonobuoy/app/sonobuoyconfig.go
index 070b8beba..f49058bda 100644
--- a/cmd/sonobuoy/app/sonobuoyconfig.go
+++ b/cmd/sonobuoy/app/sonobuoyconfig.go
@@ -68,18 +68,25 @@ func (c *SonobuoyConfig) Get() *config.Config {
}
// GetConfigWithMode creates a config with th... | 6 | 3 | 0 | [{"id": "G0", "claim": "GenerateManifest in pkg/client/gen.go was not the appropriate place for setting defaults.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The purpose of setting raw: \"not empty\" in the conformance-mode test case is unclear.", "... | null |
vmware-tanzu__sonobuoy__479 | vmware-tanzu/sonobuoy | 479 | defect | 2a398589126ef743240f3e904ee0795de5d29a95 | 6f64a209490cc4f9ef76ed008c81b7f4c402f943 | Autodetect version | **What this PR does / why we need it**:
Sonobuoy will now detect the server's version and try to run the appropriate conformance container
**Which issue(s) this PR fixes**
- Fixes #444
**Special notes for your reviewer**:
**Release note**:
```
sonobuoy run automatically detects server version, gen uses la... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index e90425f24..1c0fcef56 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -58,11 +58,27 @@ func AddSonobuoyImage(image *string, flags *pflag.FlagSet) {
// AddKubeConformanceImage initialises an image url flag.
func AddKubeConfor... | 8 | 5 | 1 | [{"id": "G0", "claim": "The helper should be named getClient and its error should be checked and handled directly rather than relying on rbacMode.Enabled handling the nil case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DefaultKubeConformanceImage mu... | null |
vmware-tanzu__sonobuoy__563 | vmware-tanzu/sonobuoy | 563 | defect | 81ba7c5903710bf985770e4f10c360c339baa3cf | b3149b537788b0f2e6d491a5a2d1b290a1ca7704 | Version bump | Signed-off-by: Ruben Orduz <rubenoz@gmail.com>
**What this PR does / why we need it**:
It updates sonobuoy to support version 1.13
**Which issue(s) this PR fixes**
- Fixes #561
**Special notes for your reviewer**:
**Release note**:
```
Sonobuoy has been updated to support Kubernetes version 1.13.x. S... | diff --git a/Gopkg.toml b/Gopkg.toml
index b57bfcd30..025483f86 100644
--- a/Gopkg.toml
+++ b/Gopkg.toml
@@ -66,15 +66,15 @@
name = "github.com/viniciuschiele/tarx"
[[constraint]]
- branch = "release-1.11"
+ branch = "release-1.13"
name = "k8s.io/api"
[[constraint]]
- branch = "release-1.11"
+ branch = ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should drop the Gopkg.toml client (k8s.io constraint branch) update and add the markdown/docs changes instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__617 | vmware-tanzu/sonobuoy | 617 | defect | 68c265da30c9118bb1c46e09121c2b81212df826 | c525d9bd578e442f94dc754ef2949a05a814cf3a | Use upstream conformance image when >= v1.13 | Transition to using the upstream conformance image. They started
publishing it after v1.13.0 so for versions before that we still
need to support the heptio/kube-conformance image.
This PR adds the conditional logic for choosing the right image
as well as extends the version-getting logic so that for versions
at... | diff --git a/cmd/sonobuoy/app/gen.go b/cmd/sonobuoy/app/gen.go
index e1a6eba4b..4db3739fd 100644
--- a/cmd/sonobuoy/app/gen.go
+++ b/cmd/sonobuoy/app/gen.go
@@ -95,14 +95,15 @@ func (g *genFlags) Config() (*client.GenConfig, error) {
return nil, err
}
- var discoveryClient discovery.ServerVersionInterface
var ... | 7 | 3 | 0 | [{"id": "G0", "claim": "Sonobuoy should not default to (or ever run) the moving `latest` conformance image tag and should move to versioned image tags, since an upstream change to `latest` can break the tests or be invalid for older clusters and give users false positives.", "category": "design", "verdict": "supported"... | null |
vmware-tanzu__sonobuoy__626 | vmware-tanzu/sonobuoy | 626 | defect | e347dedbf56564355ee6396c8fe2f3462e93b91a | 917397d28083a623f7809031eca255f44004952a | Show list of images used for upstream Kubernetes E2E tests | **What this PR does / why we need it**:
Allows users to see what images are used in upstream e2e tests by adding a new command: `images e2e`.
**Which issue(s) this PR fixes**
- Fixes #604
**Release note**:
```
release-note: Adds a new command `images e2e` which shows all upstream images used for E2E plugin te... | diff --git a/Gopkg.lock b/Gopkg.lock
index 425a43a61..2ed56b7e1 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -688,6 +688,14 @@
pruneopts = "UT"
revision = "e5bc2a7bbbdf78f2a331b8c23838d1bbb1c6b40a"
+[[projects]]
+ branch = "master"
+ digest = "1:d6a310dcbc14bd1fa3b2bf336252ccf1f49143d511cfb8bdb8d1e6e8bb97fe25"... | 4 | 3 | 1 | [{"id": "G0", "claim": "The validateVersion helper does not need to be exported; keep it unexported.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The k8s.io/kubernetes/test/utils/image dependency added to Gopkg.lock is not used and should not be vendor... | null |
vmware-tanzu__sonobuoy__644 | vmware-tanzu/sonobuoy | 644 | defect | f2fda3a8669f49a86d65028cdaa4b90bd0be5a38 | aa0c11cf00667c2fbcf7c3bcbb3078779b05c815 | Use default image for worker | The worker's default image was using a hardcoded
value and not referencing the const that was
defined for that purpose leading to the
aggregator and worker using different images.
* Notes for reviewer
A seemingly minor problem, I worry about what some of the edge cases might be if we have different defaults ther... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index d38d8ba56..f4cb68cf8 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -47,6 +47,8 @@ const (
MasterContainerName = "kube-sonobuoy"
// MasterResultsPath is the location in the main container of the master pod where results will be archived... | 1 | 1 | 1 | [{"id": "G0", "claim": "Since the default image constant now pins to a versioned tag, the image pull policy should be changed from Always to IfNotPresent so an already-present image is not pulled again, especially in air-gapped environments.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
vmware-tanzu__sonobuoy__670 | vmware-tanzu/sonobuoy | 670 | defect | ee5546b2fc43c7a3a194563f1ab20bd324f20e9a | 7846b6152fe0fe61ffd64818aee157c87b34d201 | Add `gen plugin` command to generate boilerplate for plugins | When creating a plugin there are two main steps:
- generating the plugin manifest
- putting that manifest into the `sonobuoy gen` YAML to run it
This addresses the first point. Using this command we can generate
the boilerplate YAML for most standard plugins. It allows
customizing the plugin type, name, image,... | diff --git a/cmd/sonobuoy/app/envvars.go b/cmd/sonobuoy/app/envvars.go
new file mode 100644
index 000000000..99708849b
--- /dev/null
+++ b/cmd/sonobuoy/app/envvars.go
@@ -0,0 +1,43 @@
+/*
+Copyright the Sonobuoy contributors 2019
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this f... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the debug fmt.Println lines left in the pluginDriver Set method.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Delete the trivial toYAML helper and call the encoder directly.", "category": "maintainability", "verd... | null |
vmware-tanzu__sonobuoy__686 | vmware-tanzu/sonobuoy | 686 | defect | f488867a438cdafb4f1acb77da42b84ad10268e0 | 1f5d5d533355356852527b464c52c2369f31429e | Add CLI flag for aggregation timeout | **What this PR does / why we need it**:
One of the most common config settings that may change between
different environments and test cases is the amount of time
Sonobuoy will wait for results. Currently, this value is configurable
but it is in a nested config structure and not terribly well
documented at this ti... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index f9ab58e07..bfb6f54dd 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -38,6 +38,7 @@ const (
sonobuoyImageFlag = "sonobuoy-image"
imagePullPolicyFlag = "image-pull-policy"
pluginFlag = "plugin"
+ timeoutFlag ... | 5 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks whether the new --timeout flag and the existing --wait flag, both of which determine waiting, should do the same thing and be combined into one flag.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new timeout f... | null |
vmware-tanzu__sonobuoy__706 | vmware-tanzu/sonobuoy | 706 | defect | 3bef2a4abf41f5107047217a53c488466f17b6da | 7d433c8a8f24a52a2bb2fd205afcead2eee1b666 | Check for container running before following logs | **What this PR does / why we need it**:
Don't attempt to stream logs from containers until they are `Running`
**Which issue(s) this PR fixes**
- Fixes
**Special notes for your reviewer**:
**Release note**:
```
Improves the `sonobuoy logs -f` command by waiting until containers are running to stream logs ins... | diff --git a/pkg/client/logs.go b/pkg/client/logs.go
index faef251f3..74ac9b968 100644
--- a/pkg/client/logs.go
+++ b/pkg/client/logs.go
@@ -20,6 +20,7 @@ import (
"fmt"
"io"
"sync"
+ "time"
"github.com/pkg/errors"
"k8s.io/api/core/v1"
@@ -180,8 +181,47 @@ type logStreamer struct {
client kube... | 4 | 2 | 0 | [{"id": "G0", "claim": "sonobuoy logs takes a static snapshot of pods at startup so pod logs (e.g. plugins started later) that were not in that list are never streamed; it should keep checking for new pods on a regular basis.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"... | null |
vmware-tanzu__sonobuoy__709 | vmware-tanzu/sonobuoy | 709 | defect | 65e2319c071ddecb1787625e6ed6e94e8d628499 | 02635104a3afb0f68cd4c33d179c15498fce48be | Set any plugin env vars from the CLI | **What this PR does / why we need it**:
Added a new flag and backing type in order to gather and
set env vars on any plugin from the command line which
makes it easier to iterate on plugins/tests.
This PR does the following:
- adds new flag --plugin-env and backing type
- adds new field on GenConfig in order ... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 6759cd06c..301bc5cf1 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -296,6 +296,12 @@ func AddPluginSetFlag(p *pluginList, flags *pflag.FlagSet) {
flags.VarP(p, "plugin", "p", "Which plugins to run. Can either point to a l... | 3 | 2 | 1 | [{"id": "G0", "claim": "The design doc specified that an error be thrown when a plugin named in the env-var overrides does not exist (DNE), and that behavior is not yet implemented; the author will add it and a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
vmware-tanzu__sonobuoy__763 | vmware-tanzu/sonobuoy | 763 | defect | e257b5096d3c94c9534e4a0ce2a4fd5f331638f1 | 37a38f698f499ea3b585e90b508c9c205c7b1e91 | Add basic validation of configs | **What this PR does / why we need it**:
This adds basic checking and validation of configs passed to some of the
interface function implementations in the Sonobuoy client. It is primarily
being added to prevent panics caused by passing nil configs to these
functions. It could be expanded in future to provide more c... | diff --git a/cmd/sonobuoy/app/delete.go b/cmd/sonobuoy/app/delete.go
index 5fe00e083..829969426 100644
--- a/cmd/sonobuoy/app/delete.go
+++ b/cmd/sonobuoy/app/delete.go
@@ -26,12 +26,12 @@ import (
"github.com/spf13/cobra"
)
-var deleteopts client.DeleteConfig
-
var deleteFlags struct {
- kubeconfig Kubeconfig
+ ... | 11 | 11 | 1 | [{"id": "G0", "claim": "The table in TestDeleteInvalidConfig should get a `desc` field with a short human-readable name per case and each case should run as a subtest using that desc.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should drop t... | null |
vmware-tanzu__sonobuoy__811 | vmware-tanzu/sonobuoy | 811 | defect | 020a7e4c45ad185ebd26375d50d0c0311820b828 | 1ecd350be63ada7050dfbff89ce727abf2e06f24 | Remove use of global sonobuoy pod name | **What this PR does / why we need it**:
Previously the sonobuoy pod name was stored in a global variable and was
updated before it was used. Now, instead of updating the global variable
the function that determines the pod name returns it instead.
Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
**Specia... | diff --git a/pkg/client/retrieve.go b/pkg/client/retrieve.go
index 6c1b4acc8..558444085 100644
--- a/pkg/client/retrieve.go
+++ b/pkg/client/retrieve.go
@@ -60,12 +60,15 @@ func (c *SonobuoyClient) RetrieveResults(cfg *RetrieveConfig) (io.Reader, <-chan
}
// Determine sonobuoy pod name
- pluginaggregation.SetStat... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new error-wrap messages referring to the 'status pod' are confusing and should be reworded (e.g. 'failed to get the name of the aggregator pod to set the status on'), including the similar lines the reviewer did not comment on individually.", "category": "maintainability", "verdict": "suppor... | null |
vmware-tanzu__sonobuoy__845 | vmware-tanzu/sonobuoy | 845 | defect | 2fb844c646e88e7128de1e1afd31b25280f76a1f | f9a01da08e474562250e15c29143db3cd40f92e9 | Set OwnerReference on Plugin resources | **What this PR does / why we need it**:
When creating Pod or DaemonSet resources when running plugins, we didn't
mark them as owned by the Sonobuoy aggregator pod. This meant that if
the aggregator pod was deleted, the resources created by that pod would
be orphaned and would have to be deleted manually. This chang... | diff --git a/pkg/client/retrieve.go b/pkg/client/retrieve.go
index e0a50f092..837058138 100644
--- a/pkg/client/retrieve.go
+++ b/pkg/client/retrieve.go
@@ -60,7 +60,7 @@ func (c *SonobuoyClient) RetrieveResults(cfg *RetrieveConfig) (io.Reader, <-chan
}
// Determine sonobuoy pod name
- podName, err := pluginaggre... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add tests for GetAggregatorPod before it leaves draft / is ready for review, since the new function is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In GetAggregatorPodName the multi-step error ... | null |
vmware-tanzu__sonobuoy__873 | vmware-tanzu/sonobuoy | 873 | defect | cfde6a0e310d20daa07b021e6b3df5f8cc6de636 | 3c35ca953851ea2c0c8656fb20a487d07edb19de | Remove unnecessary legacy branding | Removes `heptio` from the default namespace and updates all test files.
Updates a few other locations where Heptio was used as part of test naming unnecessarily.
I will follow up in another PR to update the Copyright notices and a separate one to remove the extended-e2e mode since those are each different concern... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index cbbad86d9..76f903417 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -5,7 +5,7 @@ All authors to the project retain copyright to their work. However, to ensure
that they are only submitting work that they have rights to, we are requiring
everyone to acknowled... | 3 | 1 | 0 | [{"id": "G0", "claim": "One test still references testdata tar archives that read the config with the older namespace, which the author could update but does not feel strongly about since the single unit test functions appropriately.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduce... | null |
vmware-tanzu__sonobuoy__885 | vmware-tanzu/sonobuoy | 885 | defect | 8bd715b352f502328e3fb8e2d6decc7addbecc66 | e44fc2395c2117f7b909306722e32d59752bae88 | Add certified conformance mode and non-disruptive-conformance mode | **What this PR does / why we need it**:
With K8s v1.16, disruptive tests may not be part of the conformance
suite. As a result, we need to ensure that user workloads are
protected by default while still allowing for CNCF certification
test runs.
In this PR we:
- rename the default `conformance` mode to be `non... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 242387ac8..6ea3b26ed 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -55,7 +55,7 @@ func AddNamespaceFlag(str *string, flags *pflag.FlagSet) {
// Mode can be partially or fully overridden by specifying config, e2e-focus, and... | 1 | 1 | 0 | [{"id": "G0", "claim": "A link to the relevant issues/PRs/discussions explaining why the disruptive tests are in the non-disruptive skip list should be added to the comment for future reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware-tanzu__sonobuoy__925 | vmware-tanzu/sonobuoy | 925 | defect | 3a8f83ac4a00e4df3838f2a992353eb84de80062 | cbe5e1ab7d1d30eeb20ae2e3ff1a792053b08115 | Allow piping input to sonobuoy run | **What this PR does / why we need it**:
Often a user wants to use `sonbouoy gen` to generate some YAML and
then modify it using tools like jq or yq. We even have this workflow
documented and the user has to, end the end, pipe the data into
`kubectl apply -f`.
`sonobuoy run` is just a shorthand for `sonobuoy gen`... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 7dc99cdec..1d59e1d69 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -26,10 +26,10 @@ import (
"gopkg.in/yaml.v2"
- ops "github.com/vmware-tanzu/sonobuoy/pkg/client"
- "github.com/vmware-tanzu/sonobuoy/pkg/config"
"gi... | 3 | 2 | 1 | [{"id": "G0", "claim": "The removed plugin-listing section could have been gated by a check that the config is non-empty, though the author considered such a guard not valuable.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The --file flag help... | null |
vmware-tanzu__sonobuoy__987 | vmware-tanzu/sonobuoy | 987 | defect | bda80c2f69bf2f771f7d8dc230146dc432bb4d74 | fd52819911de8f05f3ab2ab1652de0f8c2652026 | Allow DNS pod selectors to be configured | **What this PR does / why we need it**:
The preflight checks for Sonobuoy assume the namespace and labels of the
DNS pods. Although the preflight checks can be skipped, some users may
want to still run these checks and ensure that they pass before testing.
To allow this, this change introduces two new flags that ar... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 1d59e1d69..d364b2755 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -50,6 +50,26 @@ func AddNamespaceFlag(str *string, flags *pflag.FlagSet) {
)
}
+// AddDNSNamespaceFlag initialises the dns-namespace flag.
+// The valu... | 2 | 2 | 0 | [{"id": "G0", "claim": "The dns-pod-labels flag help should clarify how multiple selectors are specified (whether it is a comma-delimited list).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vmware-tanzu/sonobuoy imports should be grouped in ... | null |
vmware-tanzu__sonobuoy__989 | vmware-tanzu/sonobuoy | 989 | defect | bda80c2f69bf2f771f7d8dc230146dc432bb4d74 | 9ed3bad7cf0b4d6f05f9a68c914b3db983dbe507 | Allow plugins to be specified via a URL | **What this PR does / why we need it**:
We currently allow loading plugins from the local file system
but for sharing of plugins it makes sense to allow users to
specify a URL.
**Which issue(s) this PR fixes**
Fixes #986
**Special notes for your reviewer**:
**Release note**:
```
The `--plugin` flag now s... | diff --git a/cmd/sonobuoy/app/args.go b/cmd/sonobuoy/app/args.go
index 1d59e1d69..01aa7d432 100644
--- a/cmd/sonobuoy/app/args.go
+++ b/cmd/sonobuoy/app/args.go
@@ -311,7 +311,7 @@ func AddSSHUserFlag(user *string, flags *pflag.FlagSet) {
// AddPluginSetFlag adds the flag for gen/run which keeps track of which plugins... | 1 | 1 | 0 | [{"id": "G0", "claim": "When a plugin fails to decode, loadSinglePlugin's generic error makes it hard to tell which plugin failed; return the unwrapped error from loadSinglePlugin and instead wrap it in loadSinglePluginFromURL and loadSinglePluginFromFile so those include the plugin's location.", "category": "maintaina... | null |
vmware__govmomi__1044 | vmware/govmomi | 1,044 | defect | 3c1bff8adbaf7408746a1f3b28ace708639b9e3e | 3a2890079e34e56fd94cc2dd42e03c320d347659 | Issues 1039 979 | - Implement Destroy task for HostSystem
- nit PortKeys in DistributedVirtualPortgroup
| diff --git a/object/host_system.go b/object/host_system.go
index a350edfdeb..e8bf87e107 100644
--- a/object/host_system.go
+++ b/object/host_system.go
@@ -151,3 +151,16 @@ func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int32) (*Ta
return NewTask(h.c, res.Returnval), nil
}
+
+func (h HostSyste... | 3 | 2 | 1 | [{"id": "G0", "claim": "The Destroy method added to object.HostSystem need not be added because it is already defined in the embedded Common struct.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The simulator's host DestroyTask should fail with... | null |
vmware__govmomi__1065 | vmware/govmomi | 1,065 | defect | 8872366d5b156a8cbef4b7291cd6e9026b8129a5 | 097fe4a84e5a2747493215f65bb656abebc4f0b1 | issue 1061 take 2 | Adds test for and fixes #1061. | diff --git a/simulator/property_collector.go b/simulator/property_collector.go
index 8dc3174468..21b9f6b777 100644
--- a/simulator/property_collector.go
+++ b/simulator/property_collector.go
@@ -262,7 +262,7 @@ func (rr *retrieveResult) collectAll(ctx *Context, rval reflect.Value, rtype ref
}
}
-func (rr *retrieve... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new TestPropertyCollectorUnsetValues should use property.Collector.RetrieveOne instead of building a raw types.RetrieveProperties request.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should also cover a field path... | null |
vmware__govmomi__1109 | vmware/govmomi | 1,109 | defect | 4d314dc93b497ab78a7552bb9237ef3116622fe5 | b3a2f0e4cc13a7c4df0c776338d2c4102b8e1723 | Add STS support for token renewal | Mostly a refactor as "Issue" and "Renew" requests are similar, but also adds new types and their canonicalizers.
Removed time.Time wrapper, using string type instead.
This avoids an issue where xml.Marshal was dropping trailing zeros from the timestamp,
causing an invalid body digest.
Fixes #1093 | diff --git a/govc/session/login.go b/govc/session/login.go
index 18de1d7ce8..b499c23674 100644
--- a/govc/session/login.go
+++ b/govc/session/login.go
@@ -45,7 +45,6 @@ type login struct {
life time.Duration
cookie string
token string
- actas string
ext string
}
@@ -65,8 +64,7 @@ func (cmd *login) Reg... | 6 | 4 | 2 | [{"id": "G0", "claim": "Add a default case to the Condition-type switch in Conditions.C14N so unexpected Condition types are logged instead of silently ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider writing the toString body to a b... | null |
vmware__govmomi__1154 | vmware/govmomi | 1,154 | defect | 7736cdc786f6d1a3a5110a717c361e65d4d00b16 | ee730444abc7762cc552054c613c03299c1e99bb | Optionally check root CAs for validity | When ValidateRootCAs is set to true, each certificate SetRootCAs trys to
add to the root CA pool is checked for validity; if any certificate is
not valid, the method returns an error.
By default, ValidateRootCAs is false, thus this is an opt-in. If consumers of the method want to receive errors, they have to expli... | diff --git a/vim25/soap/client.go b/vim25/soap/client.go
index d94b6a0565..6045fe7904 100644
--- a/vim25/soap/client.go
+++ b/vim25/soap/client.go
@@ -72,11 +72,29 @@ type Client struct {
Version string // Vim version
UserAgent string
+ // ValidateRootCAs: if set to true, the soap client will ensure the root CA... | 4 | 4 | 1 | [{"id": "G0", "claim": "Root CA validation should be mandatory instead of opt-in via an exported option field.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The exported ValidateRootCAs option field should be unexported (validateRootCAs) and left for te... | null |
vmware__govmomi__1270 | vmware/govmomi | 1,270 | defect | e2607bac629ba4e95030bc8571c056c72cf10a39 | d69c97877ca61071104c725b15d1c1ed0356e1fa | vcsim: add setCustomValue support | Implements `setCustomValue` method for Entities.
First commit only implements it for simulator's `VirtualMachine`, but can be added to other objects as well like so:
```
func (vm *VirtualMachine) SetCustomValue(req *types.SetCustomValue) soap.HasFault {
return SetCustomValue(vm, req)
}
```
I based this on `Rena... | diff --git a/object/common.go b/object/common.go
index dfeee4a36..265db091b 100644
--- a/object/common.go
+++ b/object/common.go
@@ -130,3 +130,14 @@ func (c Common) Rename(ctx context.Context, name string) (*Task, error) {
return NewTask(c.c, res.Returnval), nil
}
+
+func (c Common) SetCustomVal(ctx context.Conte... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new client-side helper method should be named SetCustomValue instead of SetCustomVal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The simulator should use the Context mechanism (a *Context param, ctx.Caller and ctx... | null |
vmware__govmomi__1406 | vmware/govmomi | 1,406 | defect | 533826d4e997b07997ff60eccf2faa74b3324e8f | defd1a71c01900da95e07e8b0f91a847a20d8b33 | Add error check for deferred functions | Hi @dougm,
I fixed here some errcheck issues. PTAL, the log types could be others than **Fatal**. See,
```
$ golangci-lint run --skip-dirs '^vim25/xml/*' --disable-all --enable=errcheck
``` | diff --git a/event/processor.go b/event/processor.go
index b8760a8e49..dc8e490283 100644
--- a/event/processor.go
+++ b/event/processor.go
@@ -19,6 +19,7 @@ package event
import (
"context"
"fmt"
+ "log"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/view"
@@ -115,7 +116,11 @@ func (p *event... | 1 | 1 | 1 | [{"id": "G0", "claim": "Replace log.Fatal with log.Print (or simply ignore the error, e.g. `_ = x.Destroy(...)`) in the deferred destroy calls and add context such as \"destroy event view: %s\" to the log message, since log.Fatal terminates the program.", "category": "correctness", "verdict": "supported", "priority": "... | null |
vmware__govmomi__1442 | vmware/govmomi | 1,442 | defect | 088b8fb881648af161312ad70dffd09145d3b7a9 | 05dfd0324e2155d325d6a5cef84289a642f3211a | Support resignature of vmfs snapshots | Added ability (and a test that skips unless there is an available snapshot) to resignature vmfs snapshots. Basically [this](https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.storage.doc/GUID-EEFEB765-A41F-4B6D-917C-BB9ABB80FC80.html) flow | diff --git a/object/host_datastore_system.go b/object/host_datastore_system.go
index 7b738e611..191e770d4 100644
--- a/object/host_datastore_system.go
+++ b/object/host_datastore_system.go
@@ -117,3 +117,19 @@ func (s HostDatastoreSystem) QueryVmfsDatastoreCreateOptions(ctx context.Context
return res.Returnval, nil... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in the new exported method name: 'ResignatureUresolvedVmfsVolumes' should be spelled 'ResignatureUnresolvedVmfsVolumes' (likewise in the test function name).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware__govmomi__3778 | vmware/govmomi | 3,778 | defect | 0ba65479504f239f4806110e486db207c782c975 | b6df70b97a049eca3208c58d2edf70d2af40ea93 | vcsim: Add VirtualMachine.PromoteDisks_Task method | - govc: Add vm.disk.promote command
- api: Add object.VirtualMachine.PromoteDisks method
- vcsim: Use vmdk.Descriptor for vmdk file metadata
- govc: Add import.vmdk '-i' flag to output vmdk info only
- api: Extend vmdk.Info to include Descriptor
- fix: vcsim: Avoid possible race in SessionManager.Logout
... | diff --git a/cli/device/info.go b/cli/device/info.go
index 372e81ed97..bfa1a7f9e1 100644
--- a/cli/device/info.go
+++ b/cli/device/info.go
@@ -90,6 +90,20 @@ func match(p string, devices object.VirtualDeviceList) object.VirtualDeviceList
return matches
}
+func Match(devices object.VirtualDeviceList, args []string)... | 4 | 3 | 0 | [{"id": "G0", "claim": "The exported Match function should have a doc comment, especially since it is unclear what `args` means.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SectorSize should perhaps not be a constant, since with 4kn disks the s... | null |
vmware__govmomi__3804 | vmware/govmomi | 3,804 | defect | 7f7745ea1e2535427a090d41696fbf1f54c7183d | e62c1ccb501ff596f7d45905513107d6946cffd1 | Add shared disk parameters to Cns AttachDetach Spec | ## Description
Add new parameters to Cns AttachDetach Spec for supporting multiwriter.
Also fixed the test where CnsAlreadyRegisteredFault is expected when the same volume is re-created. This has changed and we should not be getting any error: https://bugzilla-vcf.lvn.broadcom.net/show_bug.cgi?id=3538552#c1
Clos... | diff --git a/cns/client_test.go b/cns/client_test.go
index 1eae5412ee..8571d3b61e 100644
--- a/cns/client_test.go
+++ b/cns/client_test.go
@@ -966,7 +966,11 @@ func TestClient(t *testing.T) {
VolumeId: cnstypes.CnsVolumeId{
Id: volumeId,
},
- Vm: nodeVM.Reference(),
+ Vm: nodeVM.Reference(),
+ D... | 2 | 1 | 1 | [{"id": "G0", "claim": "The test should allow skipping the new shared-disk parameters when FSS is disabled, and should only set them when the VC client API is 9.1.0 or above.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The json tags of the new op... | null |
vmware__govmomi__3805 | vmware/govmomi | 3,805 | defect | 7f7745ea1e2535427a090d41696fbf1f54c7183d | 00a3e328ab0572e433bea4a71c67756167110cca | update CNS CnsVolumeCreateSpec and CnsSnapshotCreateSpec for Transaction Support |
## Description
This PR enhances the CNS API spec definitions to support transactional workflows during volume and snapshot creation.
**CnsVolumeCreateSpec**
- Added VolumeId field to enable volume creation using a generated FCD ID.
**CnsSnapshotCreateSpec**
- Added SnapshotId field to support creating a... | diff --git a/cns/client_test.go b/cns/client_test.go
index 1eae5412ee..bd6260c6ac 100644
--- a/cns/client_test.go
+++ b/cns/client_test.go
@@ -13,6 +13,7 @@ import (
"testing"
"github.com/dougm/pretty"
+ "github.com/google/uuid"
"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/object"
@@ -29,6 +3... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test should not generate a random volume UUID with uuid.New() but instead pass the PVC UID \"901e87eb-c2bd-11e9-806f-005056a0c9a0\" as the volumeID, so the tests mirror how CSI will supply the volume ID with transaction support.", "category": "testing", "verdict": "supported", "priority": "P... | null |
vmware__govmomi__3806 | vmware/govmomi | 3,806 | defect | da9b4f23ed438e275fa3bf23f9c7078b7d012d44 | 24f4996f8b64c49e49449e9ee38a35003ad3ecef | skip CNS transaction tests when env CNS_RUN_TRANSACTION_TESTS is not set | ## Description
FSS for CNS transaction API change is not enabled and API is under development.
We need an option to skip running Transaction related tests.
when env `CNS_RUN_TRANSACTION_TESTS` is not set to `true`, tests related CNS transaction API are skipped.
This PR also updates `CnsVolumeCreateSpec` and `Cn... | diff --git a/cns/client_test.go b/cns/client_test.go
index 4b2f07758..883e6321e 100644
--- a/cns/client_test.go
+++ b/cns/client_test.go
@@ -44,6 +44,10 @@ func TestClient(t *testing.T) {
datastore := os.Getenv("CNS_DATASTORE")
datastore2 := os.Getenv("CNS_DATASTORE2")
+ // set CNS_RUN_TRANSACTION_TESTS environme... | 1 | 1 | 0 | [{"id": "G0", "claim": "Some extra whitespace spacing got added to the CnsSnapshotCreateSpec field declarations in cns/types/types.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
vmware__govmomi__3815 | vmware/govmomi | 3,815 | defect | 39c6f0f94465a5d0d87e0e9f1bf0692663601380 | c7b60eb03e0ab5e09991ee432de99075c629c8a8 | api: Update folder.PlaceVMsXCluster to filter clusters based on candidate networks availability | ## Description
The PlaceVmsXCluster API is being updated to filter eligible clusters based on the availability of candidate networks.
Each input vm will take the list of candidate networks.
This change does the following:
extends the API definitions to reflect the changes.
extends the simulator to supp... | diff --git a/cli/folder/place.go b/cli/folder/place.go
index 797dd861c5..ead4e49d02 100644
--- a/cli/folder/place.go
+++ b/cli/folder/place.go
@@ -88,10 +88,11 @@ type place struct {
pool flags.StringList
Type typeFlag
+ CandidateNetworks flags.StringList
}
func init() {
- cli.Register("folder.place", ... | 7 | 6 | 2 | [{"id": "G0", "claim": "The four lines building the candidate network specs have incorrect indentation and should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable `candidate` should be renamed to \"candidateNetworks\" ... | null |
vmware__govmomi__3827 | vmware/govmomi | 3,827 | defect | 7d0426427f42de7a0bfed369732832e45f27cf89 | 08a0189ef4a71291ee2aa080836e5a5ca9b6b80e | Update folder.PlaceVMsXCluster to return available candidate networks | ## Description
The PlaceVmsXCluster API is being updated to return the list of available candidate networks in the recommendation.
This change does the following.
1. Extend the Initial Placement Action Struct
A new type ClusterClusterInitialPlacementActionEx is defined in types/unreleased.go to extend the exi... | diff --git a/cli/folder/place.go b/cli/folder/place.go
index cab2d43680..481ec130fe 100644
--- a/cli/folder/place.go
+++ b/cli/folder/place.go
@@ -268,7 +268,7 @@ func (res *placementResult) Dump() any {
return res.Result
}
-func (res *placementResult) initialPlacementAction(w io.Writer, pinfo types.PlaceVmsXClust... | 2 | 1 | 0 | [{"id": "G0", "claim": "Print the available network paths in cli/folder/place.go with a tab instead of spaces, following the file's existing formatting practices.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep the same naming pattern for th... | null |
vmware__govmomi__3829 | vmware/govmomi | 3,829 | defect | 385a5dc2e15fd32fd173dfc5f71d15832f87cf50 | 8d112f27eba3478e6f291d1c76e6c54a809f3e8a | binding for CnsKubernetesQueryFilter | ## Description
This PR is adding go binding for CnsKubernetesQueryFilter
## How Has This Been Tested?
Verified executing test against vCenter and confirmed QueryVolume API using CnsKubernetesQueryFilter as filter and CnsQueryFilter as filter working as expected.
Request with KubernetesQueryFilter
```
... | diff --git a/cli/volume/ls.go b/cli/volume/ls.go
index b1eb53367c..f4504512e2 100644
--- a/cli/volume/ls.go
+++ b/cli/volume/ls.go
@@ -224,7 +224,7 @@ func (cmd *ls) Run(ctx context.Context, f *flag.FlagSet) error {
var info []types.BaseCnsVolumeOperationResult
for {
- res, err := c.QueryVolume(ctx, cmd.CnsQuery... | 3 | 1 | 0 | [{"id": "G0", "claim": "Add comments on CnsKubernetesQueryFilter explaining how to use it and how filtering combines when multiple filter values or keys are specified.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing the Filter field type o... | null |
vmware__govmomi__3844 | vmware/govmomi | 3,844 | defect | 1410588887216b9388bb729edc8a33991d18e7f7 | a9c0506fac4459a877a92ccb2df789878c47060b | vcsim: Deep copy the vm ExtraConfig to snapshot | Deep copy the vm ExtraConfig to snapshot when creating the snapshot, since the extraConfig in snapshot is readonly and shouldn't be changed after creation.
Closes: #(issue-number)
## How Has This Been Tested?
Unit test added https://github.com/vmware/govmomi/pull/3844/files#diff-b35a5438ae55f6945576f6761268cdc... | diff --git a/simulator/snapshot.go b/simulator/snapshot.go
index 2ffe51665c..12bfe9083a 100644
--- a/simulator/snapshot.go
+++ b/simulator/snapshot.go
@@ -218,3 +218,9 @@ func (v *VirtualMachineSnapshot) ExportSnapshot(ctx *Context, req *types.ExportS
},
}
}
+
+func copyConfigFromVmConfig(src *types.VirtualMachin... | 2 | 2 | 0 | [{"id": "G0", "claim": "Update the commit message to use one of the supported subject prefixes per .chglog/config.yml.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR description \"Tested in VM Op\" is insufficient and should point to the un... | null |
vmware__govmomi__3850 | vmware/govmomi | 3,850 | defect | 1410588887216b9388bb729edc8a33991d18e7f7 | c1b2e578ad86f8e66bae74a0bb248f3c2716322a | Add PodVMInfo type and method | ## Description
This patch adds support to PodVMInfo VMODL APIs under HostRuntimeInfo which includes hasPodVM and podVMOverheadInfo properties. In addition this patch also adds UpdatePodVMProperty method under HostSystem. The PodVMInfo property and method will be updated by ESXi host and will be consumed by DRS to de... | diff --git a/object/host_system.go b/object/host_system.go
index 9ef257e60f..8f9172a37b 100644
--- a/object/host_system.go
+++ b/object/host_system.go
@@ -140,3 +140,28 @@ func (h HostSystem) ExitMaintenanceMode(ctx context.Context, timeout int32) (*Ta
return NewTask(h.c, res.Returnval), nil
}
+
+func (h HostSyste... | 3 | 3 | 1 | [{"id": "G0", "claim": "The if/else chain in UpdatePodVMProperty should be rewritten as a switch statement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error handling tail after the method call should be rewritten as `_, err := methods.Up... | null |
vmware__govmomi__3858 | vmware/govmomi | 3,858 | defect | 83504793baa5057a0a649eb1820a22f365551c79 | 98f07fd46304cdabe2c58e55bfaa84122a3ddfcb | api: Support vmx-22 |
## Description
This patch adds support for the vmx-22 hardware version.
Closes: `NA`
## How Has This Been Tested?
By running the GH actions.
## Guidelines
Please read and follow the `CONTRIBUTION` [guidelines] of this project.
[guidelines]: https://github.com/vmware/govmomi/blob/main/CONTRIBUTI... | diff --git a/vim25/types/hardware_version.go b/vim25/types/hardware_version.go
index 01497dce14..b30cdff7a7 100644
--- a/vim25/types/hardware_version.go
+++ b/vim25/types/hardware_version.go
@@ -18,27 +18,64 @@ const (
)
const (
+ // VMX3 was introduced in ESX 2.x.
VMX3 HardwareVersion = iota + 3
+
+ // VMX4 was ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new comment says VMX22 was introduced in \"ESXi 9.0\", but the product was renamed to ESX in 9.0, so the comment should use the ESX name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment for VMX12 states o... | null |
vmware__govmomi__3880 | vmware/govmomi | 3,880 | defect | 2e6fc268e98baa4f2ed2e79a600acd2806bd3e40 | 05c18f4c8e47d1a56e724c57c4c5026ee85c95e1 | fix: change `controllerKey` and `unitNumber` to `*int32` | ## Description
Change the type if controllerKey and unitNumber to *int32 in CnsVolumeAttachDetachSpec.
Closes: https://github.com/vmware/govmomi/issues/3883
## How Has This Been Tested?
Complete govmomi testing logs:
[Testing.rtf](https://github.com/user-attachments/files/22716462/Testing.rtf)
```
... | diff --git a/cns/client_test.go b/cns/client_test.go
index bd5bcb3048..c3a601aa46 100644
--- a/cns/client_test.go
+++ b/cns/client_test.go
@@ -1223,6 +1223,8 @@ func TestClient(t *testing.T) {
t.Logf("Volume detached successfully")
if run_shared_disk_tests_tests == "true" && isvSphereVersion91orAbove {
+ unitNum... | 4 | 3 | 1 | [{"id": "G0", "claim": "The commits fail the DCO check and must be signed off, using the @broadcom.com email instead of the legacy @vmware.com one.", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Open an issue and link it to this pull request for traceab... | null |
vmware__govmomi__3898 | vmware/govmomi | 3,898 | defect | d74e7b6cad31e21ece88f2f6091469287fe795a9 | 896ad848360d7ffe1e7727cbf5e8c819e8f8be50 | vmdk: Add stream-optimised VMDK writer | ## Description
This adds functionality to create stream-optimized VMDK files from raw disk images, complementing the existing reader functionality in the vmdk package.
Key features:
- Creates stream-optimized VMDKs with zlib compression
- Optimizes zero-filled grains to save space
- Handles partial grains and ... | diff --git a/vmdk/writer.go b/vmdk/writer.go
new file mode 100644
index 0000000000..8782491164
--- /dev/null
+++ b/vmdk/writer.go
@@ -0,0 +1,343 @@
+// © Broadcom. All Rights Reserved.
+// The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
+// SPDX-License-Identifier: Apache-2.0
+
+package vmdk
+
+imp... | 4 | 3 | 0 | [{"id": "G0", "claim": "Please add comments on the exported symbols in vmdk/writer.go (the constant at line 17 and the ones below it).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constants use C-style all-caps names; Go does not, so rewrite... | null |
vmware__govmomi__3903 | vmware/govmomi | 3,903 | defect | 46e57ebd6cef21d40aee0dad142ceb467e36e217 | b425c17faa6175fb928acaaa9264e6ac25e29cc3 | Add property-based filtering capabilities and skipCount functionality to injection rules. | # Summary
Adds two enhancements to the fault injection rules:
1. Property Filter Support - inclusion and exclusion callback filters, with
convenience functions for expressing AND or OR matches using property.Match syntax
3. Skip Count Functionality - skip the first N matches before injecting faults
# Details... | diff --git a/simulator/fault_injection.go b/simulator/fault_injection.go
index 10b1a59d6..ae9122f40 100644
--- a/simulator/fault_injection.go
+++ b/simulator/fault_injection.go
@@ -7,9 +7,12 @@ package simulator
import (
"fmt"
"math/rand"
+ "regexp"
+ "strings"
"sync"
"time"
+ "github.com/vmware/govmomi/vim2... | 2 | 2 | 2 | [{"id": "G0", "claim": "The custom property filter syntax (regexp operator and quoted values) should be replaced with property.Match, which is simpler and consistent with other areas of the code base.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fi... | null |
vmware__govmomi__3913 | vmware/govmomi | 3,913 | defect | 3496d486c037a64a572615f203e0e634df6a5aa1 | ab12f809ac50b1714421e31a3658309f2d8c2845 | chore(deps): bump golang.org/x/text from 0.28.0 to 0.31.0 | ## Description
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.28.0 to 0.31.0 which in turn updates the Go version requirement across the project to 1.24.
**Dependency updates:**
* Bumped the `golang.org/x/text` dependency from `v0.28.0` to `v0.31.0` in all relevant `go.mod` files to incorpora... | diff --git a/go.mod b/go.mod
index b2fbd3d3ed..a69965d613 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/vmware/govmomi
-go 1.23.0 // required for slices/maps package and built-in clear function
+go 1.24.0 // required for slices/maps package and built-in clear function
require (
github.com/a... | 1 | 1 | 1 | [{"id": "G0", "claim": "One more govet issue is causing the tests to fail and still needs to be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
vmware__govmomi__714 | vmware/govmomi | 714 | defect | 35ddbd457a017bd933712fbbab56f4d6cacb32b5 | ea1a02c802f844ddd1354f6fee1697d93c7557b4 | PBM Support in govmomi - Additional PBM functionality | Added additional wrapper functions for PBM support in govmomi. The below functionalities are included.
- GetCompatibleDatastores
- GetNonCompatibleDatastores
- CreatePbmCapabilityProfileSpec
- CreatePbmProfile
- UpdatePbmProfile
- DeletePbmProfile
- QueryAssociatedEntity
- QueryAssociatedEntities
- ... | diff --git a/pbm/client.go b/pbm/client.go
index cf09d2668..5b51ea353 100644
--- a/pbm/client.go
+++ b/pbm/client.go
@@ -18,6 +18,7 @@ package pbm
import (
"context"
+ "fmt"
"github.com/vmware/govmomi/pbm/methods"
"github.com/vmware/govmomi/pbm/types"
@@ -94,3 +95,170 @@ func (c *Client) CheckRequirements(ct... | 7 | 6 | 2 | [{"id": "G0", "claim": "GetCompatibleDatastores and GetNonCompatibleDatastores duplicate almost the same code and each makes its own remote call; move the shared code into a private function or, better, a single method plus a helper type so CheckRequirements is not called twice.", "category": "design", "verdict": "supp... | null |
vmware__govmomi__849 | vmware/govmomi | 849 | defect | afc000248ef6871bc71199ea9d790bc4abbe2dd2 | b24e99e78e1905bc063ab7436eede7f64b9ed760 | Implement missing features in vcsim | - Add CustomFieldsManager
- Add Portgroup related operations | diff --git a/govc/test/extension.bats b/govc/test/extension.bats
index bc82cf459c..6c1b1d2b88 100755
--- a/govc/test/extension.bats
+++ b/govc/test/extension.bats
@@ -3,7 +3,7 @@
load test_helper
@test "extension" {
- vcsim_env_todo
+ vcsim_env
govc extension.info | grep Name: | grep govc-test | awk '{print ... | 2 | 1 | 0 | [{"id": "G1", "claim": "Blank lines should be inserted between statements in simulator/dvs.go, as in the existing code, to make it easier to read later.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G3", "claim": "The filter functionality of FetchDVPorts is n... | null |
vmware__govmomi__867 | vmware/govmomi | 867 | defect | 746ba04278336f2429a09fc823f56fa93ba9f076 | 15cc2a8a81f33016967150a1c08c2bc163a45d6f | Support clearing vm boot order | The device.boot command and VirtualDeviceList.BootOrder can now clear any existing boot order by using DeviceTypeNone. | diff --git a/govc/device/boot.go b/govc/device/boot.go
index 977b10c011..481f49e70f 100644
--- a/govc/device/boot.go
+++ b/govc/device/boot.go
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
+Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, V... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new DeviceTypeNone branch in BootOrder appends a bare BootableDevice with no explanation, so it is not obvious why that clears the existing boot order.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware__govmomi__967 | vmware/govmomi | 967 | defect | 68f3d8490ce3e7967e0ec283cd13bee465887c78 | 57aeb84961aaea5028b0ad14e7f8c9d3960f9025 | vcsim: Honor the input spec in ReConfig VM | Including NestedHVSupported and other values, putting them into vm.Config if they are not nil.
Fix #956 | diff --git a/govc/test/vm.bats b/govc/test/vm.bats
index b421af07a2..22c12bbbff 100755
--- a/govc/test/vm.bats
+++ b/govc/test/vm.bats
@@ -107,6 +107,12 @@ load test_helper
assert_success
assert_line "SyncTimeWithHost: true"
+ run govc vm.change -nested-hv-enabled=true -vm $id
+ assert_success
+
+ hv=$(govc ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Keep the spec-application table typed instead of using reflection — replace the interface{} apply2 loop in VirtualMachine.apply with a typed struct of src/dst bool pointers iterated explicitly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
vmware__govmomi__997 | vmware/govmomi | 997 | defect | aa51a704a031bcf500e185f7712f1812d8e3fef6 | 9ea25a74875f07aebb08c44e1559b4c7a2e048d2 | vcsim: add UpdateOptions support | Fixes #989 | diff --git a/govc/option/set.go b/govc/option/set.go
index 09d18f4488..f5f5c9e0a7 100644
--- a/govc/option/set.go
+++ b/govc/option/set.go
@@ -25,6 +25,7 @@ import (
"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
+ "github.com/vmware/govmomi/vim25/so... | 1 | 1 | 0 | [{"id": "G0", "claim": "In UpdateOptions, the ENOENT.-prefix failure-path check should be moved before the m.find(setting.Key) lookup.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware__splinterdb__107 | vmware/splinterdb | 107 | defect | 495a2f70039f66e3f74285e69b283bbd14c0e6b6 | 05d2b4a140531a30ab098c83546d911cf6e91f0f | (#106) Add tests for kvstore_iterator() with non-NULL start key | This commit adds couple of small test cases to exercise the
kvstore_basic_iter_init(), with a non-NULL start_key, to
validate that we are correctly positioning the start scan
on the requested key. Also, verify that if the specified start_key
does not exist that the scan is positioned on the 1st key.
Minor miscel... | diff --git a/include/splinterdb/kvstore_basic.h b/include/splinterdb/kvstore_basic.h
index d1291a9f..700662b9 100644
--- a/include/splinterdb/kvstore_basic.h
+++ b/include/splinterdb/kvstore_basic.h
@@ -162,7 +162,7 @@ kvstore_basic_iter_init(const kvstore_basic * kvsb, // IN
);
void
-kvstore_basic_iter_... | 7 | 6 | 2 | [{"id": "G0", "claim": "platform_free() should also set the caller's input handle to NULL in all cases, but this PR only applies a localized fix in iter_deinit and defers the broader change to later work.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "clai... | null |
vmware__splinterdb__12 | vmware/splinterdb | 12 | defect | 36273656fa64fd5d05770bc45ad93c0c9043fda5 | 192e648981e2b83b984fe2699b88779a467cfca3 | kvstore functional test | Backfilling a basic, single-threaded functional test of the existing `kvstore` API.
```
make
sudo make setcap
bin/driver_test kvstore_test
```
Example output:
```
Dispatch test kvstore_test
kvstore_test: starting
Fingerprint size 29 too large, max value size is 5, setting to 27
fingerprint_size: 27
filt... | diff --git a/README.md b/README.md
index f4e49ed5..b34af4f5 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,8 @@ sudo apt install -y libaio-dev libconfig-dev libxxhash-dev
Build
```
+export CC=clang-8
+export LD=clang-8
make
```
diff --git a/src/kvstore.c b/src/kvstore.c
index f4e01927..838a3ea8 100644
--- ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The README need not mandate clang-8 (export CC=clang-8 / LD=clang-8) as the compiler for building, the reviewer asks whether that requirement is needed.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The key buffer in kvsto... | null |
vmware__splinterdb__155 | vmware/splinterdb | 155 | defect | fdac74b9a08da73d78e2e747f3431842f80d2297 | e18098fb098f29d4c61dfedf9b05204f9c2324d6 | Removed all fixmes into issues or nothing as appropriate | Removes all fixmes. Many were out of date or otherwise no longer apply. All others were moved into issues. | diff --git a/include/splinterdb/data.h b/include/splinterdb/data.h
index 0636cae7..efe466da 100644
--- a/include/splinterdb/data.h
+++ b/include/splinterdb/data.h
@@ -33,28 +33,6 @@ typedef uint32 (*key_hash_fn)(const void *input, size_t length, uint32 seed);
typedef message_type (*message_class_fn)(const data_config ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The FIXME lifted above splinter_deinit makes \"this race shouldn't exist\" ambiguous, so move or duplicate that part back down at the conditional or elaborate the comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vmware__splinterdb__212 | vmware/splinterdb | 212 | defect | de78c98907649d8839f01ef41710b955b12972a9 | 61be1baf986e4f0e1836d314af89d535b29dd033 | (#211) Change ASSERT_EQUAL(), ASSERT_NOT_EQUAL(), ASSERT_TRUE(), ASSERT_FALSE() to accept user-supplied msgs with parameters. | This commit enhances following CTests-assertion checking macros, defined in ctest.h, to now,
optionally, receive a user-supplied msg w/arguments:
- ASSERT_EQUAL(), ASSERT_STREQ(), ASSERT_STREQN()
- ASSERT_NOT_EQUAL()
- ASSERT_TRUE(), ASSERT_FALSE()
In some test files, mainly variable_length_btree*test... | diff --git a/tests/unit/ctest.h b/tests/unit/ctest.h
index 05546dee..5ad485f8 100644
--- a/tests/unit/ctest.h
+++ b/tests/unit/ctest.h
@@ -168,14 +168,14 @@ void assert_data(const unsigned char* exp, size_t expsize,
#define ASSERT_DATA(exp, expsize, real, realsize) \
assert_data(exp, expsize, real, realsize, __FI... | 6 | 4 | 2 | [{"id": "G0", "claim": "The two demo-only assertions in variable_length_btree_test.c (ASSERT_TRUE(0, ...) and ASSERT_EQUAL(-1, generation, ...)) are marked RESOLVE and must be reverted before check-in, or the test suite will fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduc... | null |
vmware__splinterdb__217 | vmware/splinterdb | 217 | defect | 3674df67d33ea910dfbcda1c558ee11788840a84 | 8e9b4d8bd6c0c9778e7b7b3196fe2288490c98ff | Enhance command-line processing to support --config options for unit-tests. | (#210) Enhance command-line processing to support --config options for unit-tests.
This commit updates the naiive argument processing for Ctests to now support the following syntax:
$ unit_test [ --<config options> ]* [ <suite-name> [ <testcase-name> ] ]
$ standalone_test [ --<config options> ]* ... | diff --git a/tests/functional/btree_test.c b/tests/functional/btree_test.c
index 155f1616..a5f28e97 100644
--- a/tests/functional/btree_test.c
+++ b/tests/functional/btree_test.c
@@ -1502,7 +1502,8 @@ btree_test(int argc, char *argv[])
data_config * data_cfg = TYPED_MALLOC(hid, data_cfg);
splinter_config ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The global variables arg_c/arg_v should be renamed to Ctest_argc/Ctest_argv.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why not modify the CTEST_SETUP()/setup function type to accept argc/argv parameters instead of us... | null |
vmware__splinterdb__271 | vmware/splinterdb | 271 | defect | 29889b5b45b4333e1a9b1fbb4655198e71c7f0e9 | 406cddc51b827e9905d2223c78215e96210238fe | Ehoffman/novla | remove uses of variable length arrays due to sketchy compiler support and a desire to move these allocations off the stack.
the general approach is to use platform_aligned_malloc to get memory. I do think these interfaces need to be revisited a little, but hopefully we can make this a little cleaner later. | diff --git a/Makefile b/Makefile
index 121df981..737174db 100644
--- a/Makefile
+++ b/Makefile
@@ -83,7 +83,7 @@ INCLUDE = -I $(INCDIR) -I $(SRCDIR) -I $(SRCDIR)/platform_$(PLATFORM)
include .libconfig.mk
#######END libconfig
-DEFAULT_CFLAGS += -D_GNU_SOURCE -ggdb3 -Wall -pthread -Wfatal-errors -Werror
+DEFAULT_CFL... | 19 | 17 | 3 | [{"id": "G0", "claim": "The concurrently-inserting test should use TYPED_ARRAY_ZALLOC instead of a raw platform_aligned_malloc for the params/threads arrays.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "splinterdb_kv_lookup should be rearrange... | null |
vmware__splinterdb__275 | vmware/splinterdb | 275 | defect | d76be8399b9f821ed5ed603c6f1310ee402f61b1 | 86deedbaa24724fd82012a9c0c0203fd12751ad3 | (#274) Support --list arg to list unit-test suite-names & test-case names | This commit adds the `--list` argument which can be used to list all the suite-names that can be run from the `unit_test` binary. It can also be used to list the test case names for a specific suite-name, or for a standalone unit-test binary.
Overhaul the unit-test `README.md` docs to reflect the current state of u... | diff --git a/tests/unit/README.md b/tests/unit/README.md
index 4eed2869..b33ef101 100644
--- a/tests/unit/README.md
+++ b/tests/unit/README.md
@@ -1,4 +1,4 @@
-# SplinterDB Unit-Testing
+# SplinterDB Unit Testing
We have adapted the [CTest framework](https://github.com/bvdberg/ctest),
which is a unit testing framew... | 5 | 4 | 1 | [{"id": "G1", "claim": "The README's statement that all unit-test code lives under the `splinterdb/tests/unit` sub-directory is wrong, since `splinterdb` is not a subdirectory of this repo.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The INCLUD... | null |
vmware__splinterdb__277 | vmware/splinterdb | 277 | defect | 10a917ef42575d56a9c9659731b36524ae393e6d | 963fdd60e20679b2ef41f3bbb858e77211d24e86 | (#272) Rework splinter_test to address slow performance of unit tests | This commit rearranges the build logic and test-exec logic to address the slow performance of unit-tests that has been introduced by the addition of `unit/splinter_test` tests (under SHA d76be83).
- `Makefile` rules are adjusted to -not- include `splinter_test` in the `unit_test` binary. Standalone `unit/splinter_te... | diff --git a/Makefile b/Makefile
index 6f734af9..f036bae5 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,16 @@ SRC := $(shell find $(SRCDIR) -name "*.c")
COMMON_TESTSRC := $(shell find $(TESTS_DIR) -maxdepth 1 -name "*.c")
FUNCTIONAL_TESTSRC := $(shell find $(FUNCTIONAL_TESTSDIR) -name "*.c")
+
+# Symbol for all... | 9 | 8 | 1 | [{"id": "G1", "claim": "The alignment of the config_set_defaults initializer block in tests/config.c is strange and should be formatted consistently.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "Extracting the test-config default constants out... | null |
vmware__splinterdb__295 | vmware/splinterdb | 295 | defect | f9b47b5d83cfd4abe938ef98b73d051a2c7a2324 | 6b3d6a260659ba9cfdf2c920cfeb10dfcef0b6b5 | Public API fixups | Low-hanging fruit left over from #289:
- Switch `_Bool` to the platformized `bool`
- Switch `size_t` to `uint64` (except in the function signature for the key hash)
- restore `splinterdb_lookup_result_found`
This doesn't try to lift `writable_buffer` up to the main API functions yet. That could be a further fo... | diff --git a/include/splinterdb/data.h b/include/splinterdb/data.h
index 93bdd2af..7ec591c3 100644
--- a/include/splinterdb/data.h
+++ b/include/splinterdb/data.h
@@ -70,25 +70,25 @@ typedef void (*key_or_message_to_str_fn)(const data_config *cfg,
uint64 key_or_mess... | 4 | 2 | 0 | [{"id": "G0", "claim": "The found accessor should be named `splinterdb_lookup_found()` rather than `splinterdb_lookup_result_found()` (including in the Rust bindings), since the parameter type already conveys `result`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
vmware__splinterdb__297 | vmware/splinterdb | 297 | defect | 18af864a1276170daf43303758aca6de8f0d5e32 | 31b3a9282ad424db90b68fe32042011cac02ab2c | Platformize public API | Applications now need to compile with
```
-DSPLINTERDB_PLATFORM_DIR=platform_linux
```
but can still get away with a single `-I` flag on their compile line. | diff --git a/Dockerfile b/Dockerfile
index eab78ddd..b784edbc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -40,8 +40,8 @@ RUN $compiler --version \
FROM $run_env_image
# Put the library and headers in the standard location
-COPY --from=build /splinterdb-install/lib/* /usr/local/lib/
-COPY --from=build /splinterdb-in... | 4 | 3 | 0 | [{"id": "G0", "claim": "The platform compiler flag should be a single variable such as -DPLATFORM=platform_linux (rather than -DPLATFORM_$(PLATFORM)) that can also be used to build the platform #include path.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
vmware__splinterdb__323 | vmware/splinterdb | 323 | defect | a8566beb49dbbef63b67aa2717f3c4539d0d2a6a | 3488bc5acbd8f5c2f7d2ba559a5f4488013ad2f1 | Extend test.sh to run a small collection of stress / performance tests on nightly basis. | Extend `test.sh` to run new tests under `RUN_NIGHTLY_TESTS=true` env-var.
(Will fill out the description later ... just getting this into review.)
Status:
1. Tests passed on Nimbus-VM overnight
2. Rerunning on Fusion-VM (locally on my Mac) and on Nimbus right now.
Run outputs:
**Nimbus**:
```
**... | diff --git a/src/trunk.c b/src/trunk.c
index 49052da7..95eb2dd2 100644
--- a/src/trunk.c
+++ b/src/trunk.c
@@ -6128,7 +6128,11 @@ trunk_async_callback(cache_async_ctxt *cache_ctxt)
if (UNLIKELY(ctxt->state == async_state_get_root_reentrant)) {
trunk_async_set_state(ctxt, async_state_trunk_node_lookup);
}... | 6 | 3 | 1 | [{"id": "G0", "claim": "A test data-generation execution bug may be producing messages shorter than data_handle, which tripped the new platform_assert in tests/test_data.c during one run.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The debug_assert... | null |
vmware__splinterdb__338 | vmware/splinterdb | 338 | defect | 810621b5d2bd47b10409d1a407bcaac72d683397 | feceb9749b2834852e0154f82f65731175228329 | Public API works with slices | This exposes the `slice` type in the public API, replacing `length, pointer` pairs. | diff --git a/include/splinterdb/public_util.h b/include/splinterdb/public_util.h
index 2258ad67..1f9afddc 100644
--- a/include/splinterdb/public_util.h
+++ b/include/splinterdb/public_util.h
@@ -4,6 +4,9 @@
#ifndef __PUBLIC_UTIL_H__
#define __PUBLIC_UTIL_H__
+#include "splinterdb/platform_public.h"
+
+/* Opaque res... | 4 | 2 | 0 | [{"id": "G0", "claim": "The encode_key helper should put its result in a writable_buffer instead of a caller-provided fixed-length buffer.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new slice-based code should call slice_length(in_key) instead of r... | null |
vmware__splinterdb__394 | vmware/splinterdb | 394 | defect | 1ca78ba7d03c05c74b34de39e2a49579b5f2c966 | 27931d72dc3639fa30b7063b2c4e9eb72c22dbe9 | (#353) Add --verbose-progress test-config option. Add config_parse_test | This commit adds following testing infrastructure, which will be used in
future work to diagnose slow-running perf-tests:
- Add --verbose-progress test-config option. Introduce one small new print
msg under this option in splinter_test --perf test case
- Add new config_parse_test to verify that the config parsi... | diff --git a/Makefile b/Makefile
index 9f3f2bbb..a46d459e 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,13 @@ FUNCTIONAL_TESTSRC := $(shell find $(FUNCTIONAL_TESTSDIR) -name "*.c")
UNIT_TESTSRC := $(shell find $(UNIT_TESTSDIR) -name "*.c")
TESTSRC := $(COMMON_TESTSRC) $(FUNCTIONAL_TESTSRC) $(UNIT_TESTSRC)
-# S... | 9 | 5 | 0 | [{"id": "G0", "claim": "The added Makefile rule for config_parse_test looks like a rebase artifact that duplicates the rule at L390.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The cfg_idx loop variables in config_parse should use a consistent ... | null |
vmware__splinterdb__400 | vmware/splinterdb | 400 | defect | 4b6707b5d5f5a40b28abc7259cce4b801a2e0eed | 1becd58c1c84f9ba10d09ba4da0f50f412e7b962 | Add checks and unit-tests for few more invalid config params. | Convert some existing platform_assert()s that validate disk-size,
extent-size and related config params to proper error messages.
Return proper $rc, and add few negative unit-tests to validate
these user-errors. (Checks were discovered while building C-sample
programs, through wrong-code.) Sanitize text of a few fe... | diff --git a/src/rc_allocator.c b/src/rc_allocator.c
index 12e7a749..f6081388 100644
--- a/src/rc_allocator.c
+++ b/src/rc_allocator.c
@@ -236,6 +236,45 @@ rc_allocator_config_init(rc_allocator_config *allocator_cfg,
allocator_cfg->extent_capacity = capacity / io_cfg->extent_size;
}
+/*
+ *----------------------... | 3 | 2 | 1 | [{"id": "G0", "claim": "If rc_allocator_valid_config replicates constraints established by rc_allocator_config_init, it should also check that page_size divides extent_size and that page_capacity * page_size == capacity.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
vmware__splinterdb__401 | vmware/splinterdb | 401 | defect | e677a4ef9c229ec2f9ef38183e7738d2fb78d89d | 24ff682f144508cdf1f48fc1abd6dfa70bcc709e | (#305) Add instrumentation to track assertion in clockcache_get_internal() | Test splinter_test --perf, and some other tests, are randomly tripping up a
debug assertion in clockcache_get_internal(), which reports that we
are trying to cache a page from an unallocated extent. This problem is
not reproducible. This commit improves the assertion message to report
addresses involved, and also c... | diff --git a/src/allocator.h b/src/allocator.h
index dde07010..12cadb8c 100644
--- a/src/allocator.h
+++ b/src/allocator.h
@@ -90,6 +90,7 @@ typedef platform_status (*alloc_super_addr_fn)(allocator *al,
uint64 *addr);
typedef void (*remove_super_addr_fn)... | 5 | 4 | 1 | [{"id": "G0", "claim": "Stop exposing extent_num through the allocator ops virtual function (it has no clear meaning outside rc_allocator.c and serves only a temporary debug_assert) and instead compute it directly as base_addr / cache_extent_size(cfg) in clockcache.c.", "category": "design", "verdict": "supported", "pr... | null |
vmware__splinterdb__418 | vmware/splinterdb | 418 | defect | 23991a93582caad87462851d037f2a60df3edf10 | c43355da02a447323283367db9742e4c25c383a9 | Rework btree_pack to be completely Merkle-friendly | In a properly Merkle-ized tree, we cannot add a pointer from parent to child until we have finished mutating the child. Ideally, we won't add the pointer until we have in fact unlocked the child.
The current `btree_pack` code violates this rule in two ways. First, it adds children to parents as soon as it creates ... | diff --git a/src/btree.c b/src/btree.c
index 18f2655e..7939ef93 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -63,6 +63,11 @@ slice positive_infinity = {0, &positive_infinity_buffer};
* store BTREE_UNKNOWN_COUNTER for these counters.
*/
#define BTREE_UNKNOWN_COUNTER (0x7fffffffUL)
+static const btree_pivot_stats B... | 5 | 5 | 0 | [{"id": "G0", "claim": "The forward declarations of btree_pack_complete_node/btree_pack_complete_extent should be avoided by reordering the functions, and a quick comment explaining what they do would be good.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
vmware__splinterdb__421 | vmware/splinterdb | 421 | defect | 32c1d0d34f3b487fff0a5ec15c431bcbdc1c4bea | 2c49dacc0153fd2fe74750cea7e56839601aa724 | (#419) Fix bug in splinterdb_iterator_init() when min_key is configured. | This commit fixes a latent bug in splinterdb_iterator_init() which might
cause splinterdb_iterator_valid() to incorrectly return FALSE when
min_key is configured. Add a test case to demonstrate the problem,
albeit one that only fails in debug-mode.
As a defensive check against test/user-code attempting to add inv... | diff --git a/include/splinterdb/splinterdb.h b/include/splinterdb/splinterdb.h
index 5fc7e46b..f73b3f21 100644
--- a/include/splinterdb/splinterdb.h
+++ b/include/splinterdb/splinterdb.h
@@ -292,4 +292,7 @@ splinterdb_iterator_get_current(splinterdb_iterator *iter, // IN
int
splinterdb_iterator_status(const splinterd... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new splinterdb_validate_key_in_range() declaration should not be added to the public include/splinterdb/splinterdb.h, since it sets a trap for users once the min/max-key configuration goes away; the test can use it without putting it in the public API.", "category": "design", "verdict": "sup... | null |
vmware__splinterdb__471 | vmware/splinterdb | 471 | defect | f2cf43540374f743351174e0cc2a1f6e398e6fc0 | 9cff7c0dee3672b7ede4bd76776d9151da8320ad | (#462) Prepend OS-pid and platform thread-ID to assert message. | To better debug assertion failures, this commit extends the assert message to prepend the OS-pid and thread-ID (index) of the running Splinter thread that encountered the assertion.
A sample output from this amended assertion message looks like:
```
OS-pid=2235, Thread-ID=0, Assertion failed at tests/unit/misc_... | diff --git a/src/platform_linux/platform.c b/src/platform_linux/platform.c
index fcae639a..86e9e72a 100644
--- a/src/platform_linux/platform.c
+++ b/src/platform_linux/platform.c
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
#include <stdarg.h>
+#include <unistd.h>
#include "platform.h"
#include <sys/m... | 2 | 1 | 0 | [{"id": "G0", "claim": "The assert message should report the kernel thread ID via gettid() (labeled OS-tid) in addition to the PID and SplinterDB's thread-ID, matching tools like htop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new pid/tid fields... | null |
vmware__splinterdb__473 | vmware/splinterdb | 473 | defect | f2cf43540374f743351174e0cc2a1f6e398e6fc0 | 52d69e5ecd20bc64c3c4226488af0f478ba91741 | (#456) Add io_apis_test IO exerciser. Minor cleanup of laio.c | This commit adds a new `io_apis_test` target under `functional/driver_test`.
This new test exercises sync IO APIs and async reads APIs, as a way to do minimal validation of the IO sub-system and its APIs.
Minor code & comment cleanup is done in `laio.c` to improve readability and understanding of this module.
... | diff --git a/src/clockcache.c b/src/clockcache.c
index f3449ea5..7ecd0038 100644
--- a/src/clockcache.c
+++ b/src/clockcache.c
@@ -3054,14 +3054,46 @@ clockcache_print(platform_log_handle *log_handle, clockcache *cc)
bool
clockcache_page_valid(clockcache *cc, uint64 addr)
{
- if (addr % clockcache_page_size(cc) !=... | 15 | 12 | 1 | [{"id": "G0", "claim": "The error log for an address not divisible by the page size should say so, e.g. 'address not divisible by page size'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error log on the unreferenced-extent failure path shou... | null |
vmware__splinterdb__493 | vmware/splinterdb | 493 | defect | 67ee82ddf39a9da275757f9857e3ca071958c820 | 1b70fe66f3f46c6c7d29bfed5aaf01496c3222b4 | When file open fails, return error code instead of crashing | Fixes #482 | diff --git a/src/platform_linux/laio.c b/src/platform_linux/laio.c
index 49d2ec47..a82cb281 100644
--- a/src/platform_linux/laio.c
+++ b/src/platform_linux/laio.c
@@ -97,7 +97,11 @@ io_handle_init(laio_handle *io,
} else {
io->fd = open(cfg->filename, cfg->flags);
}
- platform_assert(io->fd != ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rephrase the file-open error message to \"open() '%s' failed: %s\\n\" so it is clear the system call open() failed and the filename is visibly quoted, even when it is an empty string.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.