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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vigetlabs__microcosm__230 | vigetlabs/microcosm | 230 | defect | ef0d8e9133686a2632dc0114130a336fdfdf80c1 | 31bfa5ecfe7120170285f5730a36773ed9c2a299 | Presenter updates | Whew! I finally wrapped this up! This implements the new updates to Presenters:
```javascript
class SolarSystem extends Presenter {
setup () {
// runs before `this.getModel` has executed. Useful for setting up a repo fork
}
ready () {
// runs after setup, and the first model calculation
... | diff --git a/docs/api/presenter.md b/docs/api/presenter.md
index 128997a8..5f02674e 100644
--- a/docs/api/presenter.md
+++ b/docs/api/presenter.md
@@ -37,14 +37,16 @@ repo.patch({ planets: [ 'Mercury', 'Venus', 'Earth' ]})
class PlanetsPresenter extends Presenter {
- model (props, state) {
+ getModel (props, sta... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `view` documentation added by this PR says \"it create the associated component\" instead of \"it creates\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Presenter overview documentation should make clearer that o... | null |
vigetlabs__microcosm__233 | vigetlabs/microcosm | 233 | defect | 7ec3c4be118945b03781c1818b1db89524bb0760 | 0fe984d875768b2d7b549c47b9d041dc786f2f5a | General utility improvements, add update utility helper | Updates utility methods to avoid recursion, offering a small perf boost. Also allows keys to be set as dot notation paths like:
```javascript
set(obj, 'a.b.c', value)
```
It also adds an `update` helper. Often times, we want to modify data in place. This commit adds an `update` helper that works like a combinat... | diff --git a/docs/api/data-utilities.md b/docs/api/data-utilities.md
index bdf91c1d..3d3ef73e 100644
--- a/docs/api/data-utilities.md
+++ b/docs/api/data-utilities.md
@@ -65,6 +65,33 @@ let next = set(state, ['planets', 'earth', 'color'], blue)
console.log(next === subject) // true
```
+## update(target, key, value... | 5 | 5 | 1 | [{"id": "G0", "claim": "The documentation should say \"accepts\" instead of misspelling it \"excepts\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sentence should be reworded to \"If the provided keypath is missing on the provided target, ... | null |
vigetlabs__microcosm__24 | vigetlabs/microcosm | 24 | defect | f70258a9223ae40e2606cc1bd365d4667ad5b4e8 | d376cca5aed29cb94912b216d5a182ad6bd6a3f0 | Dev 7.2.0 | ### Outstanding tasks:
- [ ] Document the 3 action signatures
- [x] Link to error-first callback convention
- [ ] Are single-argument params too difficult to work with?
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index a228e4dd..74b33102 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,40 @@
# Changelog
+## 7.2.0
+
+### Noticeable changes
+
+- Action creators can now have the signature `action(params,
+ callback)`. This is an error-first callback (like node). If an error
+ is... | 4 | 3 | 0 | [{"id": "G0", "claim": "The CHANGELOG should link the phrase \"the error-first callback convention\" to http://thenodeway.io/posts/understanding-error-first-callbacks/ (or do so in the readme if there is a spot for it).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
vigetlabs__microcosm__276 | vigetlabs/microcosm | 276 | defect | d2523bb757344c3db5d87c3c5a45fb3b5532eae1 | dc86eab4192ca54ca4c3e8ac8d2c16357bd6db49 | Add history.wait() feature to wait for all outstanding actions | On one of our current projects, we have a bit of a hack to wait for all actions to complete before running a test. I want to more formally support that, and add some documentation around how it works.
This commit adds promise interop for action history. This is useful for waiting for history to complete before doin... | diff --git a/docs/api/history.md b/docs/api/history.md
new file mode 100644
index 00000000..3a904e5f
--- /dev/null
+++ b/docs/api/history.md
@@ -0,0 +1,182 @@
+# History
+
+1. [Overview](#overview)
+2. [API](#api)
+
+**Note: This is a work in progress document and feature. History has been a
+private API for a very lon... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `toggle` documentation should state that toggle works both ways (a second toggle re-enables the disabled actions).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'allows direct interop with promises' test in test/un... | null |
vigetlabs__microcosm__279 | vigetlabs/microcosm | 279 | defect | 5e09e3f6bad206ab5f2fcf79180b491202f3be83 | 08dc1e7ddd51f731d4e812edd523335b8c7fc36b | General action refactor | Changes related to actions:
- Action methods are assigned manually, instead of looping over a map
of statuses
- Renamed `action.disposable` to `action.complete`
- History listens to action changes, instead of actions telling
history to reconcile
Other changes:
- The uglify step now mangles propertes th... | diff --git a/rollup.config.js b/rollup.config.js
index 346e1f27..11465fb7 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -25,7 +25,12 @@ if (process.env.NODE_ENV === 'production') {
compress: {
passes: 5
},
- mangle: { toplevel: true }
+ mangleProperties: {
+ regex: /^_/... | 3 | 1 | 0 | [{"id": "G0", "claim": "The Action doc comment should not say \"Actions represent the state of an action\" (e.g. read \"Tasks represent...\" or revert to the original wording) because as written it reads oddly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
vigetlabs__microcosm__289 | vigetlabs/microcosm | 289 | defect | f6c13e639291cde9e1dd98fa81e6268ea20320db | c5ceecac1544a28f49acd5ac5dcfc10496031da9 | Rework generator sequence | cc @efatsi
It doesn't make sense to obscure the repo during an action generator sequence. Let's just pass it straight in:
```javascript
function sleep (time) {
return action => {
setTimeout(() => action.resolve(true), time)
}
}
function dream (time) {
return functio... | diff --git a/docs/api/actions.md b/docs/api/actions.md
index b1a2910b..1edaa729 100644
--- a/docs/api/actions.md
+++ b/docs/api/actions.md
@@ -135,9 +135,9 @@ function deleteUser (id) {
}
function confirmAndDelete (user) {
- return function * (send) {
- yield send(ask, `Are you sure you want to delete ${user.na... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added test 'can push new actions during history.wait() while processing a generator' seems a bit obscure, and things could blow up if something were to go awry in microcosm.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vigetlabs__microcosm__295 | vigetlabs/microcosm | 295 | defect | ec42ff7293a4c4d297112ccfb2afa1e1f53e2c9c | 14c7d4ac2f89e96de75735569ba625b5f46daa92 | Add batching | This commit exposes control over the release process so that changes can be batched together. It also ensures that this does not break `history.wait()`.
Additionally, it updates the canvas example to use a requestIdleCallback batching strategy. This improves write throughput about 60-80%, but I'm mostly looking forw... | diff --git a/docs/README.md b/docs/README.md
index aadbb25a..43cb82d6 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -33,3 +33,4 @@
2. [AJAX](recipes/ajax.md)
3. [Preact](recipes/preact.md)
4. [Hydrating State](recipes/hydrating-state.md)
+5. [Batch Updates](recipes/batch-updates.md)
diff --git a/docs/api/micro... | 8 | 5 | 1 | [{"id": "G0", "claim": "The canvas example's batching helper would be nicer as a reusable `microcosm-batch-updates` module.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The options example in docs/api/microcosm.md should demonstrate the concep... | null |
vigetlabs__microcosm__298 | vigetlabs/microcosm | 298 | defect | d7a1f5aaab605baa6089d8d798bf010cb50b0db9 | 73b731ce8bfb365b54d649c13457702aa49d45c2 | Action status methods are autobound | Action status methods, like `action.resolve()`, or `action.reject()` are now auto-bound. This means that you can pass them directly into a callback, and the scope of the method will remain as the action.
This is particularly useful when working with AJAX libraries. For example, when working with `superagent`:
``... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6893cc53..ec1b2c6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,31 @@
Microcosm classes.
- Fixed a bug where the first action dispatched would always fire a
change event, even if state didn't change.
+- Action status changing methods are auto-bound, and w... | 3 | 3 | 0 | [{"id": "G0", "claim": "The completed-action warning should use console.warn instead of console.assert(false, ...) (e.g. for wider browser support).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should say action status methods 'are a... | null |
vigetlabs__microcosm__299 | vigetlabs/microcosm | 299 | defect | d7a1f5aaab605baa6089d8d798bf010cb50b0db9 | 6e38e88e61793c5907f73616ea55d772f45d0084 | Pass first argument of action parameters as open state of promises | Name says it all
```javascript
function getPlanet (id) {
return fetch(`/planets/${id}`).then(res => res.json())
}
let action = repo.push(getPlanet, 'mars')
action.onOpen(data => console.log(data))
// 'mars'
action.onDone(data => console.log(data))
// { id: 'mars', name: 'Mars' }
```
Related issue... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6893cc53..a68f848e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@
Microcosm classes.
- Fixed a bug where the first action dispatched would always fire a
change event, even if state didn't change.
+- The first argument of `repo.push` is passed into the ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change from `command.apply(null, params)` to `command.apply(action, params)` rebinds the invoked action command's `this` from null to the action — an unexplained scope change that may be a bug.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vigetlabs__microcosm__300 | vigetlabs/microcosm | 300 | defect | 40cdd245e0d692e4fb6b98c7c394b4813f51e8bc | f576821ea3a38aa8611e4752ab2307c97782dd73 | Add `get` note for use without optional fallback. | Clarify basic failure case with a small snippet and a test. @nhunzaker this might be overkill for something so simple, but it seemed like it might be useful enough to call out.
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor... | diff --git a/docs/api/immutability-helpers.md b/docs/api/immutability-helpers.md
index df9e5076..a7f7339e 100644
--- a/docs/api/immutability-helpers.md
+++ b/docs/api/immutability-helpers.md
@@ -17,8 +17,8 @@ let user = { id: 'Billy', facts: { height: 72, age: 23 } }
let next = {...user, facts: {...facts, age: 24 } }
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rewrite the new test 'returns undefined if the fallback is undefined' to use get({}, 'key') instead of get(null, null), or cover both cases.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vigetlabs__microcosm__324 | vigetlabs/microcosm | 324 | defect | 0289fd6c5969f5cf7672798f3dc926f2643c3856 | 9e34c8f2ab7858ea78045885a0fa77095567d5f2 | Adds repo.all for parallel actions. Sugar in yield action format. | This commit adds the ability to batch together a group of actions under a parent "group" action. If all of the actions complete or cancel, the group resolves. Otherwise the action is categorically rejected.
This surfaces itself through a new Microcosm method: `repo.all([...actions])`:
```javascript
let group = ... | diff --git a/docs/api/actions.md b/docs/api/actions.md
index dfbdd950..e3d532c7 100644
--- a/docs/api/actions.md
+++ b/docs/api/actions.md
@@ -159,6 +159,26 @@ is rejected or cancelled with the same payload.
When all steps of the generator complete, the payload of the parent
action will be the resolved payload of the... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `onDone` callback inside `Action::link` would be better named `onResolve`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`repo.all` should be renamed to clearer terminology like `parallel`/`sequence`, since an outside reader ... | null |
vigetlabs__microcosm__333 | vigetlabs/microcosm | 333 | defect | dfe1d0d60ddd3f8fb046c62e70f0208ca8a5992d | aa9460523f4159640f0022cccc64afe9a165f926 | Implement toJSON for Action and History | This allows serialization of history for developer tools. This lets you do:
```javascript
JSON.stringify(repo.history)
// { size: 3, root: { id: 0, status: 'resolved', payload: true, children: [...] }
```
This is for:
https://github.com/vigetlabs/microcosm-devtools | diff --git a/src/action.js b/src/action.js
index 8ffcfe1b..b3e0c0ef 100644
--- a/src/action.js
+++ b/src/action.js
@@ -290,6 +290,16 @@ class Action extends Emitter {
}
}
}
+
+ toJSON() {
+ return {
+ id: this.id,
+ status: this.status,
+ type: this.type,
+ payload: this.payload,
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Action.toJSON includes `payload` and `children` in its output without ensuring they are serializable, so the action may not survive JSON.stringify.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "History.toJSON should include ... | null |
vigetlabs__microcosm__347 | vigetlabs/microcosm | 347 | defect | 2adf84e53102240ee1e5cde476dbcf874857fde4 | d89985e5dcdbcf296827706b3fc15f8fa46263ea | Add Flow | This commit adds FlowType to Microcosm. Additionally, it implements
types for the internal archive package.
Away we go. | diff --git a/.babelrc b/.babelrc
index be66a609..bf1df88a 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,8 +1,15 @@
{
"presets": [
- ["es2015", {"loose": true, "modules": false}],
+ [
+ "es2015",
+ {
+ "loose": true,
+ "modules": false
+ }
+ ],
"stage-2",
- "react"
+ "re... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Payload type alias is useless and should be reduced down to Object.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added get() annotation lacks a return type: either Flow does not assume void for unspecified returns and : ... | null |
vigetlabs__microcosm__351 | vigetlabs/microcosm | 351 | defect | 032e20287432050fe2c4e2c7ad042d9090dd5489 | 19c5593b077479595cc09e883ad1eb62a70ce09c | Add flow types to utilities. Optimize merge. | This commit adds flow types to the utilities module. It also uncovers an optimization where we can avoid returning a new object when the right-most value of a `merge` call is a superset. For example:
```javascript
let left = { green: true }
let right = { green: true, blue: true }
let answer = merge(left, right)
... | diff --git a/src/domain-engine.js b/src/domain-engine.js
index 44a017d6..284536dd 100644
--- a/src/domain-engine.js
+++ b/src/domain-engine.js
@@ -129,7 +129,7 @@ class DomainEngine {
return next
}
- dispatch(state: Object, action: Action) {
+ dispatch(state: Object, action: Action): Object {
let handl... | 5 | 4 | 1 | [{"id": "G0", "claim": "The optimized merge is hard to reason over: `first` is a misleading name for the last argument, the `first === copy` check should instead be an explicit `var first = null` initialization checked against null, and the dirty tracking would be clearer as `if (!dirty && !(key in first)) { dirty = tr... | null |
vigetlabs__microcosm__357 | vigetlabs/microcosm | 357 | defect | 66d2705579d9dc6e0166885bd5c801a0166cb50e | d3072e985ef2cc85623d81885f76616a483816a4 | More efficient comparison | I noticed this working through some performance stuff on our Formula abstraction for a client project. We can reduce the amount of garbage created by checking for changes quite a bit. Additionally, we had no formal benchmark for measuring changes to the comparison tree.
This reduces memory consumption by:
- Avoid... | diff --git a/Makefile b/Makefile
index de945551..eabc773f 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,7 @@ bench: compiled
@ $(call PROFILE, bench/dispatch-performance)
@ $(call PROFILE, bench/push-performance)
@ $(call PROFILE, bench/fork-performance)
+ @ $(call PROFILE, bench/compare-tree-performance)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The documentation should cover that update (with get and set) accepts a key path given as an array of keys, applying the processor to the keys it names.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
vigetlabs__microcosm__368 | vigetlabs/microcosm | 368 | defect | 1c6bf7ace56fd8e806c370b38e4ad4ad34f8da9f | c8e8f1e9db49e427a48b2733fe39025ca4f0b36d | #367 Coroutine can distinguish between thunks and pass-through params | See #367
**Question**: Should we do this? Does this make anything harder to do? Theoretically this could be a breaking change if someone is returning an argument and expecting it to be executed as a thunk (passing a thunk action body as an argument from the `repo.push` callsite) which seems like a potentially legit... | diff --git a/src/coroutine.js b/src/coroutine.js
index 837741c1..21804da0 100644
--- a/src/coroutine.js
+++ b/src/coroutine.js
@@ -99,9 +99,11 @@ export default function coroutine(
* Check for thunks. An escape hatch to direction work with an
* action. It is triggered by returning a function from a
* comman... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks the author to add a unit test covering the new coroutine behavior (function arguments returned from actions are not treated as thunks).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author notes the change ... | null |
vigetlabs__microcosm__371 | vigetlabs/microcosm | 371 | defect | f6831227a1340a773d3f140c7190ac76cf5627b5 | 40ac74749e4b0e142730e9fa51637365e881fe5e | History is an iterator | This commit implements the iterator interface for history. This is important for interoperability with other libraries: specifically Observables.
```
// Enumerate over history
for (var action of repo.history) {
console.log(action)
}
// Or quickly build an array from history
let activeBranch = Array.from(re... | diff --git a/src/history.js b/src/history.js
index 1c31a823..96919e59 100644
--- a/src/history.js
+++ b/src/history.js
@@ -12,6 +12,7 @@ import defaultUpdateStrategy from './default-update-strategy'
import { merge } from './utils'
import { BIRTH, START } from './lifecycle'
import { type Updater } from './default-upd... | 4 | 2 | 1 | [{"id": "G0", "claim": "Internal lifecycle actions such as the root `birth`/`start` node are included in `History#map` output and iteration (hence the map test expects 4 elements because of the root node), and internal actions like `birth` and `start` should be ignored.", "category": "design", "verdict": "supported", "... | null |
vigetlabs__microcosm__377 | vigetlabs/microcosm | 377 | defect | 59e04efde1dec5009c6a87b5c137c6537bf7ed0b | 01b9801c0b4bd084424a24f2d13832286be1c3ef | Cache domain handlers when possible | This commit changes the way we store snapshots such that they have context into their last operation. This lets us memoize domain handlers. Basically:
1. Is the prior snapshot value the same?
2. Is the prior action status the same?
3. Is the prior action payload the same?
If so, don't invoke the domain handler ... | diff --git a/flow/snapshot.js b/flow/snapshot.js
new file mode 100644
index 00000000..32bf0492
--- /dev/null
+++ b/flow/snapshot.js
@@ -0,0 +1,13 @@
+/**
+ * @fileoverview A snapshot is a reference to a specific dispatch for
+ * a given action. A microcosm instance maintains a bank of them to
+ * efficiently update sta... | 6 | 3 | 0 | [{"id": "G0", "claim": "Asks whether updateSnapshot could use the snapshot's stored value (\"let last = snap.last\") instead of recomputing state via recall.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment about falling back to creating a snapsh... | null |
vigetlabs__microcosm__387 | vigetlabs/microcosm | 387 | defect | e530f41114ae3bebf958548602207d465e4f803d | 113f6c7bcc99de24c1a3b76f7035dc84d1029407 | Test registration in terms of public API | Related to #380. I'm chipping away at only using the public API for testing. That way, we can eventually do some advanced build optimizations and still ensure the correctness of Microcosm. | diff --git a/src/history.js b/src/history.js
index e86b4b26..3b2a3340 100644
--- a/src/history.js
+++ b/src/history.js
@@ -206,6 +206,7 @@ class History extends Emitter {
} else {
// Always have a parent node, no matter what
let birth = new Action(BIRTH, 'resolve')
+
birth.adopt(action)
... | 5 | 4 | 0 | [{"id": "G0", "claim": "Question whether the new serialize/deserialize/getInitialState 'does not call infinitely' tests accomplish anything (the methods may never actually have been called infinitely), so they may be worthless.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
vigetlabs__microcosm__50 | vigetlabs/microcosm | 50 | defect | e11e99651e346694cd76dd968a25a97edb4a64a8 | f4b31ad295d876d03d036d10b9e2cd38e21bb3d8 | Replace optimistic updates with chat example | I added a chat example using the [Eliza](http://nlp-addiction.com/eliza/) chat bot. The goal of this example is to demonstrate optimistic updates.

| diff --git a/examples/chatbot/actions/sendChat.js b/examples/chatbot/actions/sendChat.js
new file mode 100644
index 00000000..3316cd9c
--- /dev/null
+++ b/examples/chatbot/actions/sendChat.js
@@ -0,0 +1,34 @@
+import fakeJAX from '../lib/fakejax'
+import uid from 'uid'
+
+/**
+ * `sendChat` is an ES6 generator. Generat... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be fun to add a little accessibility with an aria announcement for chat in the conversation component.", "category": "accessibility", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vigetlabs__microcosm__500 | vigetlabs/microcosm | 500 | defect | d6492c5d5e9fd2473eec090e20c0885529ca7ab1 | d84529d6443d6570626bf682d8499604ccf67c4b | [microcosm] Unify effect and domain behavior through agent class | This commit adds a new class to describe the dispatch behavior: an agent. Agents receive action dispatches from history and can manage their own internal state:
```javascript
import { start, stop } from '../actions/gps'
class GPS extends Agent () {
setup() {
this.listen()
}
listen() {
this.w... | diff --git a/packages/microcosm/src/agent.js b/packages/microcosm/src/agent.js
new file mode 100644
index 00000000..8fff7e11
--- /dev/null
+++ b/packages/microcosm/src/agent.js
@@ -0,0 +1,52 @@
+/**
+ * @fileoverview An agent is a general abstraction for intercepting actions.
+ * It is the basis of Domain and Effect
+ ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new `inherit` helper in proto.js has no test of its own — it is only covered indirectly through domain/effect usage — and should gain tests for its edge cases such as `null` and ES6 class property descriptors.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
vigetlabs__microcosm__512 | vigetlabs/microcosm | 512 | defect | 8d004b44a19c79c8a1934f113c2b2ca6a6b4afc6 | 1d122350283ff0168c2fb3f7d176bf80ac624137 | [microcosm] Async observables | *Review notes:* It's probably best to view this in split-view
### What is it
This commit updates the Observable abstraction in Microcosm such that it is asynchronous.
Updates to observables are queued with a universal scheduler. Until this scheduler "flushes" an observable, updates are buffered within an inter... | diff --git a/packages/microcosm/src/index.js b/packages/microcosm/src/index.js
index c170328f..7f12c668 100644
--- a/packages/microcosm/src/index.js
+++ b/packages/microcosm/src/index.js
@@ -15,3 +15,5 @@ export { tag } from './tag'
export { Domain } from './domain'
export { Effect } from './effect'
export { Agent }... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `++i` in the `flushSubscription` for-loop is confusing (and may increment `i` before the block runs), so it should be replaced with `i++`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test title has a typo: 'cle... | null |
vigetlabs__microcosm__516 | vigetlabs/microcosm | 516 | defect | 7c4c0d7e45a3818b60177184b3c9f14fd11b31e7 | 81fa97aaa57730280372b342c321fe5a5a1820a8 | [microcosm] Always, synchronously, emit the first observer.next() | This PR updates Observable such that the first "next" callback invokes immediately. This is important for Observable::map, particularly when binding data in React. Otherwise, React renders before the scheduler clears the queue for an observable. So you'll end up with something like:
```javascript
class UserShow e... | diff --git a/packages/microcosm/src/domain.js b/packages/microcosm/src/domain.js
index 1cfd6ccf..c8af1237 100644
--- a/packages/microcosm/src/domain.js
+++ b/packages/microcosm/src/domain.js
@@ -71,6 +71,13 @@ export class Domain<State: any = Object> extends Agent {
}
receive(action: Subject): void {
+ // Av... | 1 | 1 | 0 | [{"id": "G0", "claim": "The explanation of the scheduler-raise behavior should also be added as a comment in the code in observable.js.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vigetlabs__microcosm__519 | vigetlabs/microcosm | 519 | defect | fbd3d3806cc756837eb5e7a0d0731b87747bac02 | 4cc1b644718333861c34252d56397591aa363ff7 | Pass next when completing with a payload. Improve efficiency | **What**
As a part of the Microcosm 13 update, actions are moving away from a custom data type and embrace the [Observable](https://github.com/tc39/proposal-observable) standard interface. Unfortunately, that causes a few API incompatibilities that I'm trying to smooth over before a full release of 13.x.
In Micro... | diff --git a/packages/microcosm/src/agent.js b/packages/microcosm/src/agent.js
index 9e4b56bb..cc727cb1 100644
--- a/packages/microcosm/src/agent.js
+++ b/packages/microcosm/src/agent.js
@@ -21,7 +21,9 @@ export class Agent extends Subject {
this._preHistory()
- let tracker = repo.history.subscribe(this.rec... | 2 | 2 | 0 | [{"id": "G0", "claim": "It may be worth asserting in the ::filter test that `answers` is empty until after the scheduler has been flushed, to confirm the stream is lazy.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The status check in subject.js updat... | null |
vigetlabs__microcosm__62 | vigetlabs/microcosm | 62 | defect | 085634bb52597c831b9fed3e12a41cbd86b141cc | 317db284a501bafd9d17eef7650feae3024208c3 | Refactor plugin install process | This commit uses a more straightforward queue when installing plugins and removes the need to add a `__start` method to plugins.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c7161dc..8ffd52bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,14 @@
- Internalized `is-generator` package to reduce dependencies and cut
some dead code.
+- Refactored the install process to prevent needless extension and
+ simplify the installation queu... | 1 | 1 | 1 | [{"id": "G0", "claim": "installPlugin should check that a plugin's register property is a function rather than treating any truthy value as callable (resolving to a dev-only error per M003).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vigiloauth__vigilo__389 | vigiloauth/vigilo | 389 | defect | b658df81e0b6a99fa1f3556bb588f34dad67d100 | 64cd9ba61e63884cf25c97cd9c8c564b20028214 | Added password policy Admin endpoint w/ tests | Admin can now call an endpoint called "/password-policy" which will return the current configured password policy in a struct. The struct contains bools for whether the current policy require uppercase letters, numbers, and/or symbols in the password. It also includes the minimum length of the password policy in int fo... | diff --git a/internal/handlers/admin_handler.go b/internal/handlers/admin_handler.go
index f45aff84..4ec80a02 100644
--- a/internal/handlers/admin_handler.go
+++ b/internal/handlers/admin_handler.go
@@ -18,6 +18,13 @@ type AdminHandler struct {
module string
}
+type PasswordPolicyResponse struct {
+ RequireUp... | 4 | 4 | 0 | [{"id": "G0", "claim": "The PasswordPolicyResponse struct should be moved out of the handler into a new file in /domain/passwords/models.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A new method should be created in password_config.go to load the p... | null |
vigiloauth__vigilo__48 | vigiloauth/vigilo | 48 | defect | 4d2c29a2f4d7d6b15b1ff74157f426c682bfc7bb | 2dbf149b0b744245caef979fc6db8974c9430f69 | Issue #43: Implement InMemoryDatabase with Full CRUD support | ### Description
This PR includes:
- Implementation of an InMemoryDatabase to be used as the default database.
- A new interface to support CRUD operations.
- A custom logger to be used throughout the library.
- Unit tests for the InMemoryDatabase.
- A workflow file to run unit tests in GitHub Actions.
### Chan... | diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml
new file mode 100644
index 00000000..5ae6e4bb
--- /dev/null
+++ b/.github/workflows/run-unit-tests.yml
@@ -0,0 +1,26 @@
+name: Run Unit Tests
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+j... | 2 | 2 | 0 | [{"id": "G0", "claim": "The internal log package should use a single logger instance with four kinds of logging instead of four separate logger variables.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The internal log package should use structured loggi... | null |
vigna__sux-rs__37 | vigna/sux-rs | 37 | defect | 10524639f286710500503d1cdb412862dca8da76 | 5196c1ee80a0ea2ca803baf5a6d561df63623f41 | Allow AtomicBitVec to swap values atomically | This adds a swap method to AtomicBitVec.
It is just a set that returns the previous value | diff --git a/src/bits/bit_vec.rs b/src/bits/bit_vec.rs
index 3b52975c..ac609c1d 100644
--- a/src/bits/bit_vec.rs
+++ b/src/bits/bit_vec.rs
@@ -327,6 +327,11 @@ impl<B: AsRef<[AtomicUsize]>> AtomicBitVec<B> {
unsafe { self.set_unchecked(index, value, order) }
}
+ pub fn swap(&self, index: usize, value... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable `old_value` in `swap_unchecked` should be named `old_word`, because otherwise it looks like `value` and `old_value` have the same type.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
vigna__sux-rs__38 | vigna/sux-rs | 38 | defect | 093eb5935ee3686304d41f7f9880fa4aa7eb40ea | 70232b871a437cf6247d0e50b2d91547e53409fc | Allow initializing `BitVec` and `AtomicBitVec` with a custom value | This PR adds the ability to initialize `BitVec` and `AtomicBitVec` with a custom `bool` value instead of always defaulting to `false`. | diff --git a/src/bits/bit_vec.rs b/src/bits/bit_vec.rs
index 167d44f7..35e614f5 100644
--- a/src/bits/bit_vec.rs
+++ b/src/bits/bit_vec.rs
@@ -82,13 +82,22 @@ impl<B: AsRef<[usize]>> Index<usize> for BitVec<B> {
}
impl BitVec<Vec<usize>> {
- /// Create a new bit vector of length `len`.
+ /// Create a new bit ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new docstrings should be written in third person (\"Creates a new bit vector...\") to comply with the guidelines.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It might be interesting to add a `vec!`-like macro so bit ... | null |
vigna__sux-rs__53 | vigna/sux-rs | 53 | defect | b98d7923978419181cf508237d89527c1080b4c7 | ee2cd23de7f5283c236891649604e793b083e4d0 | Allow access to BitFieldVec backend and fix reset_atomic | This PR allows access to the backend of BitFieldVec and AtomicBitFieldVec if it implements `AsRef<[W]>`.
This could be useful if sometimes you need the ease of use of BitFieldVec and if sometimes you need the performance of word-by-word operations.
This PR also relaxes the bounds on some methods of AtomicBitFieldVe... | diff --git a/src/bits/bit_field_vec.rs b/src/bits/bit_field_vec.rs
index ebcca077..6a79ebe9 100644
--- a/src/bits/bit_field_vec.rs
+++ b/src/bits/bit_field_vec.rs
@@ -253,6 +253,18 @@ impl<W: Word, B: AsRef<[W]>> BitFieldVec<W, B> {
let word = core::ptr::read_unaligned(ptr);
(word >> (start_bit % 8)) ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `as_mut_slice` impl block should be bounded by `AsMut<[W]>` alone instead of `AsRef<[W]> + AsMut<[W]>`, since AsMut is sufficient as a trait bound.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vincent-herlemont__native_db__377 | vincent-herlemont/native_db | 377 | defect | 8165803bcd1de20e4eea63869b7b2181bb20b338 | 530228f423ca9f94d55a5a78b35e9537d96dfbb4 | feat: allow intersecting and unioning secondary scan iterators | Closes #376.
Allows secondary scan iterators to be combined with AND or OR operations. | diff --git a/src/transaction/query/scan/secondary_scan.rs b/src/transaction/query/scan/secondary_scan.rs
index d1867a17..82d8ba76 100644
--- a/src/transaction/query/scan/secondary_scan.rs
+++ b/src/transaction/query/scan/secondary_scan.rs
@@ -263,3 +263,182 @@ where
}
}
}
+
+use std::collections::HashSet... | 3 | 3 | 1 | [{"id": "G0", "claim": "Tests for the new and/or combinators should be added and grouped to ensure robust coverage: core AND behavior, core OR behavior, edge cases, and mixed scenarios.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear how an... | null |
vincent-herlemont__native_db__96 | vincent-herlemont/native_db | 96 | defect | b255129544cde666b21b9766799b5c2094fb19b6 | a169c322639691e7f1e5c0b7eed41e7ca82cdf19 | feat: Return the removed value as part of the Result when calling remove | This patch addresses a TODO to return the removed value when calling remove. Now native returns the removed value in the Result | diff --git a/benches/overhead_data_size.rs b/benches/overhead_data_size.rs
index 31f33766..beea32f3 100644
--- a/benches/overhead_data_size.rs
+++ b/benches/overhead_data_size.rs
@@ -127,7 +127,8 @@ fn use_native_db_get(db: &Database, x: u32) -> Data {
fn native_db_remove(db: &Database, data: Data) {
let rw = d... | 3 | 3 | 2 | [{"id": "G0", "claim": "The tests discard the value returned by rw.remove() with `let _ =` and should instead check that the returned value is correct with an assert.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "remove() should return a value of type ... | null |
vinhnx__VTCode__184 | vinhnx/VTCode | 184 | defect | 2166dc205fa5eab6c4873ae90e8dfb60f22ce70d | 95973d8a5081df4b379738be35b691b7f7534972 | Add Moonshot provider and refresh model catalog | ## Summary
- add a Moonshot.ai provider that reuses the OpenAI client surface and wire it through the factory, client, rig adapter, and backend types
- extend model constants, prompt cache configuration, and Provider/ModelId metadata to include Moonshot models while updating xAI listings to the Grok 4 family
- refresh ... | diff --git a/docs/models.json b/docs/models.json
index 31d05c3d4e..16006fae77 100644
--- a/docs/models.json
+++ b/docs/models.json
@@ -265,9 +265,9 @@
"name": "xAI",
"doc": "https://docs.x.ai/docs/models",
"models": {
- "grok-2-latest": {
- "id": "grok-2-latest",
- "name": "Grok 2 Late... | 1 | 1 | 1 | [{"id": "G0", "claim": "After this change the new Grok 4 identifiers contain no 'reasoning' substring, so XAIProvider::supports_reasoning (which still matches on 'reasoning') will classify every xAI model as non-reasoning and reasoning traces or effort will never be requested for Grok 4 / Grok 4 Code; it should be upda... | null |
vinhnx__VTCode__186 | vinhnx/VTCode | 186 | defect | 6ab50847faa0e4cc91256b9aa0ce185e9ab14e3d | dae522f374e7bd47f475fe0d2da76ea796b5f8f8 | Update Moonshot models and model picker layout | ## Summary
- replace Moonshot v1 listings with the latest kimi-k2 and kimi-latest variants in model metadata and documentation
- refresh Moonshot constants, model IDs, and provider detection/tests to use the new identifiers
- add blank separators between providers in the model picker for clearer grouping
- move the Ope... | diff --git a/Cargo.lock b/Cargo.lock
index 877b8310ae..1f1efc760d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -801,6 +801,29 @@ dependencies = [
"powerfmt",
]
+[[package]]
+name = "derive-getters"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74ef43543e701c01ad77... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new secure API key modal calls show_modal with a SecurePromptConfig, but show_modal still unconditionally sets input_enabled to false, so when the secure prompt is on screen the user cannot type the API key or submit it and the inline model picker cannot collect credentials for any provider ... | null |
vinhnx__VTCode__225 | vinhnx/VTCode | 225 | defect | 158f4179656b2df299f39ab4c13bc9ef7ddfab25 | 1080db035e9829b2c12a26152dd7e18aaf2c4dd0 | Rebase Ollama provider integration onto latest main | ## Summary
- rebase the Ollama provider integration onto the latest `main`
- align model info display with the factory-based provider inference helper
- register Ollama through the shared factory macro and add its built-in adapter implementation
## Testing
- cargo fmt
- cargo clippy
- cargo test
------
https://chatgp... | diff --git a/docs/models.json b/docs/models.json
index 6d0b0218dd..e40c03180b 100644
--- a/docs/models.json
+++ b/docs/models.json
@@ -1465,5 +1465,29 @@
}
}
}
+ },
+ "ollama": {
+ "id": "ollama",
+ "env": [],
+ "api": "http://localhost:11434/v1",
+ "name": "Ollama Local",
+ "doc":... | 1 | 1 | 1 | [{"id": "G0", "claim": "The default Ollama base URL constant is defined with a trailing `/v1`, so `chat_url()` builds `http://localhost:11434/v1/api/chat`, an invalid endpoint that with the default configuration makes every call fail with a 404/connection error unless the user overrides the base URL manually.", "catego... | null |
vinhnx__VTCode__240 | vinhnx/VTCode | 240 | defect | 8b2b1a25c71eaa4287402f57878eae431a18ec39 | 72f2909b444c5a6bf27286e74005b9da0f1e0cd6 | Add Claude Haiku 4.5 to Anthropic models | ## Summary
- add the claude-haiku-4-5 identifier to the Anthropic constants, model enum, and tests so it is treated as a supported model
- document the new model in docs/models.json and surface it through the /model picker along with coverage tests
## Testing
- cargo clippy
- cargo test
------
https://chatgpt.com/cod... | diff --git a/docs/models.json b/docs/models.json
index e40c03180b..3f7827e7c5 100644
--- a/docs/models.json
+++ b/docs/models.json
@@ -1285,6 +1285,21 @@
"output": 1.5e-05
}
},
+ "anthropic/claude-haiku-4.5": {
+ "id": "anthropic/claude-haiku-4.5",
+ "name": "Anthropic: Cla... | 1 | 1 | 1 | [{"id": "G0", "claim": "Adding \"claude-haiku-4-5\" to SUPPORTED_MODELS makes Provider::supports_reasoning_effort return true for Haiku even though docs/models.json declares \"reasoning\": false, so the UI may present reasoning controls and send reasoning_effort for a model the provider does not accept, resulting in 40... | null |
vinhnx__VTCode__292 | vinhnx/VTCode | 292 | defect | fdc997b2390cb6f0a3f5c1d74f04078aa319bd17 | 58330f8f4e0977cb2fb1624aa2c7b6536d8994bf | Use Ratatui provider selector in setup wizard | ## Summary
- switch the first-run setup wizard to an interactive Ratatui list selector with a manual-input fallback
- default the suggested provider/model to OpenAI and gpt-5 in fresh workspaces
- add the Ratatui and crossterm dependencies required for the new selector
## Testing
- cargo fmt
- cargo clippy
- cargo tes... | diff --git a/Cargo.lock b/Cargo.lock
index c502cdb65c..8efbb8c72c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4676,6 +4676,7 @@ dependencies = [
"colorchoice",
"console 0.16.1",
"criterion",
+ "crossterm 0.27.0",
"dialoguer",
"dotenvy",
"futures",
@@ -4688,6 +4689,7 @@ dependencies = [
"path-clean",
"p... | 2 | 2 | 2 | [{"id": "G0", "claim": "The provider selector enters raw mode and the alternate screen before building the Ratatui Terminal, so any failure in that initialization propagates via `?` before the bottom-of-function cleanup runs and leaves the user's terminal stuck in raw mode/alternate screen while the manual fallback pro... | null |
vinhnx__VTCode__335 | vinhnx/VTCode | 335 | defect | bf3717b8506e8b62ad73e56e03248eba992556ab | 511ded7930a4099c9ebe73a0a83153e55c84fa37 | Add loader tests and crate docs for vtcode-config | ## Summary
- document the vtcode-config crate with a top-level usage overview and example
- add integration-style tests covering ConfigManager search order with custom defaults providers
- mark the component extraction TODO item for vtcode-config testing/documentation as complete
## Testing
- cargo fmt
- cargo clippy ... | diff --git a/docs/component_extraction_todo.md b/docs/component_extraction_todo.md
index 0b35d38aae..378df1aaf2 100644
--- a/docs/component_extraction_todo.md
+++ b/docs/component_extraction_todo.md
@@ -23,7 +23,7 @@ This list tracks actionable tasks spawned from the component extraction plan as
- [x] Document migrati... | 1 | 1 | 1 | [{"id": "G0", "claim": "The loader tests swap the global ConfigDefaultsProvider and release the lock before running the closure, so parallel cargo test runs can replace the provider mid-test and fail nondeterministically; the tests should run serially or otherwise avoid mutating the global provider concurrently.", "cat... | null |
vinhnx__VTCode__354 | vinhnx/VTCode | 354 | defect | 6802e42f38fdac889d20f6f8769b47705651af67 | 64ad3857ea147fe3c23402474f13975ad3a82bfc | Enhance Ollama tool support | ## Summary
- update the Ollama provider guide and catalog docs to highlight tool calling, reasoning, streaming, and include the curated model picker list
- expand the Ollama constants and core model registry so all local/cloud IDs advertise reasoning metadata and surface in the picker
- overhaul the Ollama provider to ... | diff --git a/docs/PROVIDER_GUIDES.md b/docs/PROVIDER_GUIDES.md
index 6177ffd7e4..a1e7371cd3 100644
--- a/docs/PROVIDER_GUIDES.md
+++ b/docs/PROVIDER_GUIDES.md
@@ -26,12 +26,14 @@ This index collects provider-specific guides for configuring VT Code with differ
- [Model catalog](https://openrouter.ai/docs/llms)
- Def... | 6 | 6 | 6 | [{"id": "G0", "claim": "The new validation rejects any request where tool_choice is present, but the agent layer unconditionally sets tool_choice: Some(auto) whenever tools are enabled, so every Ollama tool invocation fails with InvalidRequest before reaching the API and the advertised tool support is never usable; the... | null |
vinhnx__VTCode__630 | vinhnx/VTCode | 630 | defect | 934ee6624721bcf55ca49a9307581df4545b5d45 | 46b5efe65801eaaec0adbf41734a4850b2487dfd | Advertise ACP commands | # Pull Request
## Description
Addressing #628
## Type of Change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functio... | diff --git a/.vtcode/tool-policy.json b/.vtcode/tool-policy.json
index 8389860ada..9939e1be53 100644
--- a/.vtcode/tool-policy.json
+++ b/.vtcode/tool-policy.json
@@ -2,25 +2,23 @@
"version": 1,
"available_tools": [
"apply_patch",
- "close_agent",
"cron_create",
"cron_delete",
"cron_list",
... | 7 | 6 | 3 | [{"id": "G0", "claim": "The docs index references docs/ACP_IMPLEMENTATION_SUMMARY.md and docs/ACP_SLASH_COMMAND_IMPLEMENTATION.md, which are not present in the repository, creating broken links and unresolved docs queries; the entries should point at existing files.", "category": "documentation", "verdict": "supported"... | null |
violentmonkey__violentmonkey__1443 | violentmonkey/violentmonkey | 1,443 | defect | 3d953c21ad49e253cc1bf258e3a49cff95fa85df | 747ef660351eb7f2d3372cc228731368d1051f88 | feat: `@unwrap` meta key | Fixes #966.
Fixes https://github.com/violentmonkey/violentmonkey/discussions/1442.
* `@grant` is ignored, `GM` and `GM_*` aren't available.
* I will add documentation when/if this is merged. | diff --git a/src/background/utils/preinject.js b/src/background/utils/preinject.js
index a77ff33f8c..4bf47d7b48 100644
--- a/src/background/utils/preinject.js
+++ b/src/background/utils/preinject.js
@@ -64,14 +64,14 @@ Object.assign(commands, {
});
/** @this {chrome.runtime.MessageSender} */
-function processFeedba... | 1 | 1 | 1 | [{"id": "G0", "claim": "The trailing `\\n;0` for suppressing non-cloneable-result errors in Firefox may still be needed when unwrapping is skipped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
viperproject__prusti-dev__1070 | viperproject/prusti-dev | 1,070 | defect | 9dd858438947b69b50ebb9aac9ac4f480ed4772e | 8277a145b153f5994e3120e4e080365d3cbde07b | Create missing Operand/Target Lifetimes for Reborrows | Create missing operand and target lifetimes in case of a reborrow where the lifetimes are not present in the derived lifetimes set and are therefore not created as usual.
Fixes: #1065 | diff --git a/prusti-interface/src/environment/procedure.rs b/prusti-interface/src/environment/procedure.rs
index 8b83576bf22..c47c439c36a 100644
--- a/prusti-interface/src/environment/procedure.rs
+++ b/prusti-interface/src/environment/procedure.rs
@@ -77,6 +77,30 @@ impl<'tcx> Procedure<'tcx> {
}
+ pub fn ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The prusti-tests/tests/verify_overflow/fail/core_proof/clone.rs test also needs a case that is expected to fail, e.g. a function that calls `clone` and then `assert!(false);`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
viperproject__prusti-dev__1096 | viperproject/prusti-dev | 1,096 | defect | 07c60b19c085af45129051a95530147b76d83343 | 040082328ac2b4d679c845ab2badc70bfcb84fb1 | Improve extern spec lifetime handling | Due to lifetime elision rules, lifetimes that can be elided in a method need to be explicitly annotated in an extern spec. This PR weakens the validity check for extern specs to ignore lifetimes (since they wont match). | diff --git a/prusti-interface/src/specs/external.rs b/prusti-interface/src/specs/external.rs
index e0dbe0c66c2..1cbc4ed8d29 100644
--- a/prusti-interface/src/specs/external.rs
+++ b/prusti-interface/src/specs/external.rs
@@ -159,9 +159,21 @@ impl<'v, 'tcx: 'v> ExternSpecResolver<'v, 'tcx> {
// type... | 1 | 1 | 1 | [{"id": "G0", "claim": "The extern spec for HashMap::get must explicitly declare the 'a lifetime, which does not match the real method's signature because the real get uses &self with an elided lifetime; the reviewer asks whether this could be addressed specially for &self and &mut self (so users need not add such anno... | null |
viperproject__prusti-dev__1116 | viperproject/prusti-dev | 1,116 | defect | a7fe6a031996705d740349e66c806a748ad9c344 | 435d4a00df2b9706d2e84a2b378c133f257f81e7 | Fix Issue 1022 | Fixes #1022.
Adding a precondition (other than `true`) to a trait method with preconditions and implementing an unspecified trait method with a predicate now cause errors. Additionally adding an `assert_on_expiry` pledge to the implementation of a trait method without pledges now causes a panic with the message "Re... | diff --git a/prusti-interface/src/specs/typed.rs b/prusti-interface/src/specs/typed.rs
index 501620b4692..15e31f8b7e6 100644
--- a/prusti-interface/src/specs/typed.rs
+++ b/prusti-interface/src/specs/typed.rs
@@ -1,10 +1,12 @@
use crate::{environment::Environment, utils::has_trait_bounds_ghost_constraint};
pub use co... | 3 | 1 | 1 | [{"id": "G0", "claim": "The author asks in what case an already refined item is refined, questioning the deletion of the refine_from_refined_with_empty test case.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new specs.rs code should be simplif... | null |
viperproject__prusti-dev__1138 | viperproject/prusti-dev | 1,138 | defect | aaf4cae0493ca69529b2b53f0590e23126cb83fe | 3b96ddaa25a9c938cf983c4020d9359c4ed133c6 | Ghost constraint improvements | I reworked ghost constraint parsing to directly use `syn` for the trait bounds and comma, only then handing the rest over to Prusti's parser. Additionally, I extended them to handle `pure` flags (in addition to the status quo of `requires` and `ensures`). The effects are as follows:
- Any trait bounds that are valid r... | diff --git a/prusti-specs/src/ghost_constraints/mod.rs b/prusti-specs/src/ghost_constraints/mod.rs
index 109e872a04b..d7b8145d4c8 100644
--- a/prusti-specs/src/ghost_constraints/mod.rs
+++ b/prusti-specs/src/ghost_constraints/mod.rs
@@ -1,30 +1,24 @@
use crate::{
- generate_for_ensures, generate_for_requires, parse... | 8 | 6 | 0 | [{"id": "G0", "claim": "Add a comment to do_generate_for_pure explaining that it is usable from other parts of prusti-specs and that it does not receive or check the attribute tokens, since the name alone is not amazing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
viperproject__prusti-dev__1140 | viperproject/prusti-dev | 1,140 | defect | aaf4cae0493ca69529b2b53f0590e23126cb83fe | cb14d12512cbc98d9ca3a00d571f41aade0776f3 | [WIP] Backport `prusti_assert!` and `prusti_assume!` | This should enable `prusti_assert!` and `prusti_assume!` to work when the `unsafe_core_proof` option is not enabled. | diff --git a/prusti-common/src/vir/to_viper.rs b/prusti-common/src/vir/to_viper.rs
index cd56a4919ca..137524e04b6 100644
--- a/prusti-common/src/vir/to_viper.rs
+++ b/prusti-common/src/vir/to_viper.rs
@@ -172,6 +172,12 @@ impl<'v> ToViper<'v, viper::Stmt<'v>> for Stmt {
Stmt::Assert(ref expr, ref pos) => {... | 4 | 4 | 2 | [{"id": "G0", "claim": "Remove the whitespace-only changes (the extra blank lines) in procedure_encoder.rs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The FIXME assumes loop-invariant specification blocks are adjacent; if that is the assumpt... | null |
viperproject__prusti-dev__1188 | viperproject/prusti-dev | 1,188 | defect | 5c5af0d70fbcd84e2286511b812c5a0c45802aba | 1b7c6bc16a68319445ea938d67b7fbcd7922a063 | Extern Spec Improvements | As part of [my thesis](https://ethz.ch/content/dam/ethz/special-interest/infk/chair-program-method/pm/documents/Education/Theses/Julian_Dunskus_MS_Description.pdf) under @Aurel300, I have been working with `#[extern_spec]` a lot and had to make some improvements, mostly to that but also to other things:
- `predicate... | diff --git a/prusti-contracts/prusti-specs/src/common.rs b/prusti-contracts/prusti-specs/src/common.rs
index 45d9e99f525..618835e23df 100644
--- a/prusti-contracts/prusti-specs/src/common.rs
+++ b/prusti-contracts/prusti-specs/src/common.rs
@@ -221,7 +221,7 @@ mod self_type_rewriter {
mod receiver_rewriter {
use ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The lossy extract_type_path conversion could result in accidentally declaring the wrong extern spec, so its safety of use needs clarifying or the conversion should not be applied where it can go wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
viperproject__prusti-dev__1281 | viperproject/prusti-dev | 1,281 | defect | 01353f4f7b4b21daafaffa6cc0b8cc779d699dff | fdb2d1ab16a2f1d464c7fe5292e142e4aa42b54f | Enable `encode_unsigned_num_constraint` by default | This commit partially fixes https://github.com/viperproject/prusti-dev/issues/1215.
The encoding of unsigned integers now contains the non-negative constraint by default, even if overflow checks are disabled. | diff --git a/prusti-tests/tests/verify/pass/issues/issue-1215.rs b/prusti-tests/tests/verify/pass/issues/issue-1215.rs
new file mode 100644
index 00000000000..fa9731a9a61
--- /dev/null
+++ b/prusti-tests/tests/verify/pass/issues/issue-1215.rs
@@ -0,0 +1,11 @@
+// compile-flags: -Pcheck_overflows=false
+
+use prusti_con... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new verify test does not need the check_overflows compile-flag, and compiletest.rs should be modified so that PRUSTI_ENCODE_UNSIGNED_NUM_CONSTRAINT is no longer forced to true, since the base config already sets it and otherwise the test would pass without the PR's config change being exerci... | null |
viperproject__prusti-dev__1303 | viperproject/prusti-dev | 1,303 | defect | 17b071c41c1b502d739ccf414a2445a1bad8a3f6 | 226f69007f8818d2960581892346648a44291bfd | implement opt-in verification | Adds `#[verified]` attribute and `opt_in_verification` configuration option plus tests and documentation, as discussed in #1187.
Closes #1187. | diff --git a/docs/dev-guide/src/config/flags.md b/docs/dev-guide/src/config/flags.md
index 52202754628..ee64f39bf6c 100644
--- a/docs/dev-guide/src/config/flags.md
+++ b/docs/dev-guide/src/config/flags.md
@@ -46,6 +46,7 @@
| [`MIN_PRUSTI_VERSION`](#min_prusti_version) | `Option<String>` | `None` | A |
| [`NO_VERIFY`]... | 2 | 2 | 0 | [{"id": "G0", "claim": "For consistency with the codebase convention, the pull request should import `prusti_common::config` as a module and qualify the call as `config::opt_in_verification()` instead of importing `opt_in_verification` directly.", "category": "maintainability", "verdict": "supported", "priority": "P3",... | null |
viperproject__prusti-dev__1318 | viperproject/prusti-dev | 1,318 | defect | 7c3bfa082238f6e40db4a5d197d1d16fef3167ca | 5b5ae4329bfbf3a721f62bc5ffb6a56f99ffa722 | Normalize field types | With associated types, you can have two types that are equal, but you can only see that after you normalize the types. See https://rustc-dev-guide.rust-lang.org/ty.html#comparing-types
I'm not sure if this is the right way or place to do normalization, but at least tests pass.
In the mir encoder, I can't use try_... | diff --git a/prusti-tests/tests/verify/pass/generic/associated-types.rs b/prusti-tests/tests/verify/pass/generic/associated-types.rs
new file mode 100644
index 00000000000..c7fca5ec7f1
--- /dev/null
+++ b/prusti-tests/tests/verify/pass/generic/associated-types.rs
@@ -0,0 +1,33 @@
+use prusti_contracts::*;
+
+trait Mode... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test is unclear about what it verifies (whether snapshot equality is supported for a concrete struct type vs an unresolved associated type), and the reviewer asks whether MyModel could set type Kind = i32 and the test instead compare gd.kind with a passed-in i32 value via a suggestion block.... | null |
viperproject__prusti-dev__1331 | viperproject/prusti-dev | 1,331 | defect | 01353f4f7b4b21daafaffa6cc0b8cc779d699dff | c49f9a76ef1e53efecce4cf5537c5bccddf29971 | Add macro to generate getters/setters for fields via JNI | This PR allows using a new macro `field_getter_setter` in the `viper-sys/build.rs`. For a given java class it will generate a getter/setter (rust code using JNI) for a certain field.
When reviewing this code please note that I have no prior experience with either Rust or Scala - hence there might be beginner mistake... | diff --git a/jni-gen/src/generators/class.rs b/jni-gen/src/generators/class.rs
index 1a74c26683f..1c09f88aef8 100644
--- a/jni-gen/src/generators/class.rs
+++ b/jni-gen/src/generators/class.rs
@@ -7,7 +7,7 @@
use crate::{
class_name::*,
errors::*,
- generators::{constructor::*, method::*, scala_object_get... | 6 | 6 | 1 | [{"id": "G0", "claim": "Please add some tests of the field macro to jni-gen/systest/ — that change is definitely required.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the field_getter_setter macro to just field.", "category": "maintainability"... | null |
viperproject__prusti-dev__1360 | viperproject/prusti-dev | 1,360 | defect | d1d4dccb179e8be4769045cd3956e1d98be69c52 | 9580a4fe563db479d218eeeff83d40c496f0ce1c | Implement export/import of quantifiers | When importing modules which contain specifications, these specs are also imported. The spec functions are serialized and written to a .specs file when the module is verified, and can be loaded from this file where the module is imported.
However, if there are quantifiers in the exported specs, this did not work befor... | diff --git a/prusti-contracts-build/build.rs b/prusti-contracts-build/build.rs
index 605d1dd2297..00f7de2cd45 100644
--- a/prusti-contracts-build/build.rs
+++ b/prusti-contracts-build/build.rs
@@ -47,6 +47,8 @@ fn main() {
cmd.arg("--release");
}
cmd.env_remove("CARGO_MANIFEST_DIR");
+ // This is ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Indent the predicate! block contents in library_contracts_lib/src/lib.rs with 4 spaces instead of 2.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
viperproject__prusti-dev__1364 | viperproject/prusti-dev | 1,364 | defect | 72dc31df0f705630c2dcec6ff341dba891a951b9 | 707339c706aa5cd8b20c864c72f4e91b524a2ce2 | JNI bindings - print actual class name on type mismatch | This PR is the follow-up to https://github.com/viperproject/prusti-dev/pull/1345
For all generated dynamic checks/assertions for Java Objects (that they are of expected type) it now prints what the actual type was in case of mismatch (for potential debugging purposes).
**This PR Includes:**
- Code to generate ... | diff --git a/jni-gen/builtins/utils.rs b/jni-gen/builtins/utils.rs
new file mode 100644
index 00000000000..0e54b145f6f
--- /dev/null
+++ b/jni-gen/builtins/utils.rs
@@ -0,0 +1,39 @@
+use jni::{errors::Result, objects::JObject, JNIEnv};
+use jni::strings::JavaStr;
+use std::ffi::CStr;
+
+fn java_str_to_string(string: &J... | 12 | 8 | 4 | [{"id": "G0", "claim": "The error-type conversion in jni-gen/builtins/utils.rs only compiles when systest and viper-sys take a regular dependency on jni-gen, which would break the high-level design of jni-gen; non-jni errors should be handled by replacing the `?`s with unwrap_or_else+panic instead.", "category": "desig... | null |
viperproject__prusti-dev__1476 | viperproject/prusti-dev | 1,476 | defect | a5c29c994cee03e1ba02c3bc2c2761803571d3f5 | f7ca19d984bf5005d30fa43769cedbe43c1ebfac | Fix windows CI builds | Currently, the CI is reporting warnings of this form when building on windows.
```
warning: output filename collision.
The bin target `prusti-driver` in package `prusti v0.2.2 (D:\a\prusti-dev\prusti-dev\prusti)` has the same output filename as the bin target `prusti-driver` in package `prusti v0.2.2 (D:\a\prusti-de... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 614482482ae..a8947bcf7d7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -217,6 +217,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
PRUSTI_CACHE_PATH: ${{ github.workspace }}/prusti_cache.bin
+ COMPIL... | 3 | 1 | 0 | [{"id": "G0", "claim": "Specify the target triple in `.cargo/config.toml` instead of adding target-selection logic to the CI workflows.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the suggested comment lines above COMPILATION_TARGET_PRUSTI in .githu... | null |
virtee__sev-snp-measure__36 | virtee/sev-snp-measure | 36 | defect | 015a9eefb5818c0d8f75c28fe0c5410cd23a3369 | 6e27d760a9bdcefec521ff4fd8ed32ee76752db6 | Add SVSM mode | Add an option that calculates the SNP launch measurement for the SNP + Coconut SVSM use-case.
Tested with Coconut SVSM main branch from 2024-01-13 (https://github.com/coconut-svsm/svsm/commit/4f312a3c2457595152dab568431fe52e2e566c87)
This adds a new mode "SNP+SVSM", which requires two additional inputs: The SVSM ... | diff --git a/sevsnpmeasure/cli.py b/sevsnpmeasure/cli.py
index a8012f7..9c7add9 100644
--- a/sevsnpmeasure/cli.py
+++ b/sevsnpmeasure/cli.py
@@ -49,7 +49,8 @@ def main() -> int:
description='Calculate AMD SEV/SEV-ES/SEV-SNP guest launch measurement')
parser.add_argument('--ver... | 10 | 10 | 4 | [{"id": "G0", "claim": "The pull request's code makes the linter (flake8) fail, and the lint errors should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The --dump-vmsa guard should allow dumping VMSAs in every mode that has VMSAs exc... | null |
virtee__sev__142 | virtee/sev | 142 | defect | 6a176a5f6068d30ac629fe59c13634a55076e7ae | 1c6b52f8638f35c3ead61c2235617f645d2cb5bb | Changing API for kernel 6.6 new IOCTL structure | In new kernel 6.6 the SNP IOCTL structure changed. We are completely removing the deprecated extended config and IOCTLs. I also bumped the release to 3.0 in this PR. THIS WILL NOT WORK ON KERNELS BEFORE SNP 6.6.
The new IOCTLS and it's uses have been added to this PR.
SNP_SET_CONFIG_START and SNP_SET_CONFIG_END ... | diff --git a/Cargo.lock b/Cargo.lock
index 9d94fd11..2d0dc638 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -852,7 +852,7 @@ dependencies = [
[[package]]
name = "sev"
-version = "2.0.2"
+version = "3.0.0"
dependencies = [
"bincode",
"bitfield",
diff --git a/Cargo.toml b/Cargo.toml
index f7967a3b..93a3ee5c 100644... | 10 | 9 | 1 | [{"id": "G0", "claim": "The snp_commit doc comment should describe what the firmware does (CommittedTCB, CommittedVersion, ReportedTCB, VLEK hashstick deletion) instead of the one-line summary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The do... | null |
virtee__sev__314 | virtee/sev | 314 | defect | f7f59c6b44c0210a70a0b208a219850fb5976f5c | d6c7866191b6d2d1327f1c3093892f522ac8f56f | Fix: Update Config structures to accurately reflect TCBs | When we updated the TCB structure, we overlooked modifying the config-related structures to account for differences in TCB layout across CPU generations.
This commit ensures that raw TCB bytes are correctly constructed for the FFI layer, and that conversions from the user-level structure to the FFI format use the appr... | diff --git a/src/firmware/host/mod.rs b/src/firmware/host/mod.rs
index 5c78fd46..f993da9d 100644
--- a/src/firmware/host/mod.rs
+++ b/src/firmware/host/mod.rs
@@ -264,11 +264,17 @@ impl Firmware {
/// );
/// let mut firmware: Firmware = Firmware::open().unwrap();
///
- /// let status: bool = firmware.... | 2 | 1 | 1 | [{"id": "G0", "claim": "Adding a generation parameter to snp_set_config breaks the existing public API, and the reviewer wants the original signature kept with the generation determined inside the function via CPUID.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", ... | null |
virtee__sev__32 | virtee/sev | 32 | defect | ce8dcca0a5a6ade547918b629e0d56dd00ad2220 | 631a579ff6ffb255c6e7c14944195b7640a844c8 | snp: Adding extended report features | - Added in FFI wrappers for Snp Extended Report Features.
- Added in user apis for interacting with the FFI.
- Added in some unit tests and system tests for validating behavior.
Signed-off-by: Larry Dewey <larry.dewey@amd.com> | diff --git a/src/firmware/linux/host/ioctl.rs b/src/firmware/linux/host/ioctl.rs
index 7063d9b7..0e60b9a1 100644
--- a/src/firmware/linux/host/ioctl.rs
+++ b/src/firmware/linux/host/ioctl.rs
@@ -24,6 +24,8 @@ impl_const_id! {
GetId<'_> = 8, /* GET_ID2 is 8, the deprecated GET_ID ioctl is 7 */
SnpPlatformSta... | 4 | 3 | 2 | [{"id": "G0", "claim": "A check should be added so that when data.certs is none, certs_len is set to 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "For consistency, the new ioctl values should be specified with the same radix as the already prese... | null |
virtee__sev__54 | virtee/sev | 54 | defect | 8b9f511a37363c6022000e7cbca9bce7c5a16f91 | 85aebb3808907392bc1be2357da2fdde875a4c56 | 43 patch ext report buffer | Adding in final changes for the extended report. These were tested on a milan box running 1.51.3. Final thing to test is the guest extended report call. | diff --git a/Cargo.toml b/Cargo.toml
index cc727c0e..c0dfb853 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,6 +37,8 @@ serde-big-array = "0.4.1"
kvm-ioctls = "0.11"
static_assertions = "^1.1.0"
bitfield = "^0.13"
+uuid = "^1.2"
+bincode = "^1.3"
[dev-dependencies]
kvm-bindings = ">=0.5"
diff --git a/src/firmwa... | 15 | 13 | 5 | [{"id": "G0", "claim": "The certificate-buffer error message misspells \"aligned\" (\"not alligned with 4K Pages\").", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The certificates length field should keep the kernel ABI name `certs_len` (it alway... | null |
virtee__tdx__1 | virtee/tdx | 1 | defect | 7b8614c0c9a3c962db532c7de78368b4bf88bf89 | 35446dd2a1798c18a1e6bf6db00dd81aabc25de1 | Implement KVM_TDX_CAPABILITIES | Implements the API for running the KVM_TDX_CAPABILITIES sub-ioctl() for the Intel TDX architecture.
The documentation for the structures implemented comes from the Intel TDX Module 1.5 ABI spec. | diff --git a/src/vm/linux/ioctl.rs b/src/vm/linux/ioctl.rs
index cdc649a..bb43022 100644
--- a/src/vm/linux/ioctl.rs
+++ b/src/vm/linux/ioctl.rs
@@ -1 +1,26 @@
// SPDX-License-Identifier: Apache-2.0
+
+/// Trust Domain eXtensions sub-ioctl() commands
+#[repr(u32)]
+pub enum CmdId {
+ KvmTDXCapabilities = 0,
+}
+
+/... | 20 | 18 | 3 | [{"id": "G0", "claim": "The TDX command identifier enum variant should drop the redundant KvmTDX prefix and be named GetCapabilities, since everything in this library is already TDX-specific.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The get_capabil... | null |
virtee__tdx__12 | virtee/tdx | 12 | defect | 81c10e3527056cca289561421f335a4084a70487 | a6dec7d231edee81adf329baf5864a1d0f3724ff | Implement remaining functionality to boot TD | Implements the `KVM_TDX_INIT_MEM_REGION` and `KVM_TDX_FINALIZE_VM` ioctls.
The last four commits are changes that are the result of incorporating the library into Libkrun. | diff --git a/Cargo.toml b/Cargo.toml
index f22a057..13893bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,8 @@ rust-version = "1.71"
[dependencies]
bitflags = "2.4.2"
-kvm-bindings = "0.7.0"
-kvm-ioctls = "0.16.0"
+kvm-bindings = { git = "https://github.com/jakecorrenti/kvm-bindings.git", branch = "tdx", fe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The kvm-bindings and kvm-ioctls dependency entries in Cargo.toml should point to the VirTEE forks of those repositories.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
virtee__tdx__16 | virtee/tdx | 16 | defect | cce9787e02d22fdc61972ce3701a9f1dd0ba5924 | e7abdf75f4215fd6c7fe8aa08c1fb19b1bce8240 | Update API | Update the API to be more ergonomic and more idiomatic. The new design is also more in line with what the virtee/sev crate is offering for an interface.
Additionally, update the Error type and handling to be more idiomatic as well.
Resolves: #14 | diff --git a/Cargo.toml b/Cargo.toml
index 2d71b4d..71193bd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,8 +14,9 @@ rust-version = "1.86"
[dependencies]
bitflags = "2.4.2"
-kvm-bindings = { git = "https://github.com/virtee/kvm-bindings.git", branch = "main", features = ["fam-wrappers"] }
-kvm-ioctls = { git = "h... | 1 | 1 | 1 | [{"id": "G0", "claim": "The gpa, nr_pages, attributes and source_addr parameters of init_mem_region could likely be wrapped in their own struct given to the user, as update_data does in the sev library.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
virtee__tdx__2 | virtee/tdx | 2 | defect | 313f1626514a6e1c7cf20764d2e650a1309306f8 | 89598039e31c8e49d81aa5fb7aa8fbbaad8a6fda | Implement InitVm | Implement the `KVM_TDX_INIT_VM` ioctl.
Additionally move some device agnostic types into a shared `src/linux/`
folder.
Exposes the vm filedescriptor in the `TdxVm` type.
Implement a conversion from `i32` to `TdxError`
| diff --git a/Cargo.toml b/Cargo.toml
index 18bab8d..c0ce766 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,4 +14,6 @@ rust-version = "1.71"
[dependencies]
bitflags = "2.4.2"
+kvm-bindings = "0.7.0"
kvm-ioctls = "0.16.0"
+vmm-sys-util = "0.12.1"
diff --git a/src/lib.rs b/src/lib.rs
index 0280808..9aaf65a 100644
--... | 7 | 6 | 0 | [{"id": "G0", "claim": "The doc comment for the attributes field should read '/// Guest TD attributes' instead of '/// attributes specifies various guest TD attributes'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mrconfigid doc comment sho... | null |
virtee__tdx__7 | virtee/tdx | 7 | defect | e84bc2741e0ae95cacc7364a5ca36d3cf07867ee | 9e1a7a193c559b62af3ee21a5958691e08b656c7 | Implement TDVF and INIT_VCPU | Adds a module that will provide an API for TDVF (TDX Virtual Firmware).
Adds the API to initialize a VCPU for TDX. | diff --git a/Cargo.toml b/Cargo.toml
index c0ce766..f22a057 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,4 +16,5 @@ rust-version = "1.71"
bitflags = "2.4.2"
kvm-bindings = "0.7.0"
kvm-ioctls = "0.16.0"
+uuid = "1.8.0"
vmm-sys-util = "0.12.1"
diff --git a/src/launch/linux.rs b/src/launch/linux.rs
index 11f6b89..c... | 6 | 6 | 4 | [{"id": "G0", "claim": "TdxVcpu should not consume the VcpuFd; it should hold a mutable reference instead, since hypervisors would otherwise have to clone the fd.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A function named `new` suggests creation of ... | null |
virtio-win__kvm-guest-drivers-windows__108 | virtio-win/kvm-guest-drivers-windows | 108 | defect | a2943d499bfb8ad91f191062506fe927ba624f6b | 8aa176626189d26013319771d3e53cc6c8d0ebb8 | [V2] support for multiple vendors | (v6) - tools and all drivers except NetKVM
(Balloon, pvpanic, vioinput, vioserial, vioscsi, viostor, viorng)
Introduce $(VENDOR) property (rhel by default).
There is no way to make substitutions inside inf file
except custom MSBuild target imported from .vcxproj
WDK/LegacyDDK scenarios are slightly different... | diff --git a/Balloon/sys/balloon.c b/Balloon/sys/balloon.c
index 9e2592130..14a61563b 100755
--- a/Balloon/sys/balloon.c
+++ b/Balloon/sys/balloon.c
@@ -13,6 +13,7 @@
*
**********************************************************************/
#include "precomp.h"
+#include "..\..\Tools\vendor.check.h"
#if defined(... | 3 | 1 | 0 | [{"id": "G0", "claim": "Vendor-specific values such as the copyright starting years should stay in dedicated vendor-specific files rather than being placed in the per-driver .props files and duplicated across Driver.RHEL.props and Driver.VZ.props.", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
virtio-win__kvm-guest-drivers-windows__1411 | virtio-win/kvm-guest-drivers-windows | 1,411 | defect | bd965ef1ad9bb380496d7386eb4afb02ddee6514 | 3dad1123e8ab8a0b2c474d18ded82cd57cdf0ec8 | select() null and zero timeout behaviour fix | The viosock-lib and driver must behave differently for cases when select() is called with 0sec timeout (needs to return immediately) and when it is called without timeout struct - nullptr (infinite timeout).
Added test for select() call in viosocklib-test with different timeout variants. | diff --git a/viosock/lib/viosocklib.c b/viosock/lib/viosocklib.c
index 662270c57d..ae8933e301 100644
--- a/viosock/lib/viosocklib.c
+++ b/viosock/lib/viosocklib.c
@@ -854,6 +854,10 @@ int WSPAPI VIOSockSelect(_In_ int nfds,
// timeout in 100-ns intervals
Select.Timeout = (SEC_TO_NANO((LONGLONG)timeout... | 1 | 1 | 1 | [{"id": "G0", "claim": "SocketSelectTest leaks resources: WSACleanup() is not called in several error paths after WSAStartup succeeds, and closesocket(sock) is missed on some paths where the socket exists; the function should use a single exit point or goto cleanup so both are always called.", "category": "correctness"... | null |
virtio-win__kvm-guest-drivers-windows__1500 | virtio-win/kvm-guest-drivers-windows | 1,500 | defect | 5b565d5e76fc7562d1a196d147d6d9cbb8340ddc | e79ba4d0851e95aa962944337d9866492d4d6cf3 | [vioserial] Fix Coverity issues | This PR addresses several static analysis warnings in the `vioserial` (`speed-test` and `app`).
**Changes:**
- **Resource Management:** Fixed resource leaks in client and server jobs within the `speed-test` utility.
- **Initialization:** Properly initialized `m_hWnd` in the `CNotifier` constructor to prevent unde... | diff --git a/vioserial/app/device.cpp b/vioserial/app/device.cpp
index 532bbc87db..e35b38cf50 100644
--- a/vioserial/app/device.cpp
+++ b/vioserial/app/device.cpp
@@ -189,22 +189,6 @@ BOOL CDevice::ReadEx(PVOID buf, size_t *size)
CloseHandle(ol.hEvent);
return res;
-
- if (!res)
- {
-
- printf(... | 2 | 2 | 0 | [{"id": "G0", "claim": "The memory allocated by malloc in do_client_job and do_server_job is used without checking whether the allocation succeeded, so a failed malloc would lead to a NULL pointer dereference; a check for the return value of malloc should be added after the call.", "category": "correctness", "verdict":... | null |
virtio-win__kvm-guest-drivers-windows__209 | virtio-win/kvm-guest-drivers-windows | 209 | defect | 4ff396dca682cf30a57649a574a57a6ba8d9827d | 7b2b3ffe9bb742273d0414513f8d82419c5d8a7e | Simplify event suppression | There's no point in telling VirtioLib about the event suppression setting using virtio_set_queue_event_suppression() or the bEnableInterruptSuppression field. VirtioLib can detect the presence of the VIRTIO_RING_F_EVENT_IDX feature (as acked by the driver) internally.
This series removes the API and all its uses, w... | diff --git a/Balloon/sys/balloon.c b/Balloon/sys/balloon.c
index 679908f7d8..2d31de2405 100755
--- a/Balloon/sys/balloon.c
+++ b/Balloon/sys/balloon.c
@@ -54,15 +54,12 @@ BalloonInit(
WdfObjectAcquireLock(WdfDevice);
// inflate
- params[0].bEnableInterruptSuppression = false;
params[0].Interrupt = d... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PublishIndices configuration parameter and its INF entry should be removed from the NDIS5 driver as well, as was already done for NDIS6.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The \"// Will be removed\" plac... | null |
virtual-kubelet__azure-aci__134 | virtual-kubelet/azure-aci | 134 | defect | efa418646fd637d983cea41e17a4c3fd43737d43 | e7b2349fd05125a9488c0e91aa46405db887d414 | Add kubernetes.azure.com/managed=false label for virtual node | Virtual node should not be added to LoadBalancer backend address pool and route tables should not be updated for it either. Hence, this PR marks virtual node as unmanaged.
Refer cloud provider docs https://kubernetes-sigs.github.io/cloud-provider-azure/topics/cross-resource-group-nodes/#unmanaged-nodes.
Fix #89. | diff --git a/provider/aci.go b/provider/aci.go
index 4872acd2..fd2e040e 100644
--- a/provider/aci.go
+++ b/provider/aci.go
@@ -1072,6 +1072,9 @@ func (p *ACIProvider) ConfigureNode(ctx context.Context, node *v1.Node) {
node.Status.NodeInfo.OperatingSystem = p.operatingSystem
node.ObjectMeta.Labels["alpha.service-co... | 1 | 1 | 0 | [{"id": "G0", "claim": "The failure message of the managed-label assertion in TestConfigureNode misspells the label as \"ubernetes.azure.com/managed\" and should read \"kubernetes.azure.com/managed\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
virtual-kubelet__azure-aci__199 | virtual-kubelet/azure-aci | 199 | defect | 01fd157163f42040d9a378be52a974afde6c8d6b | 48a680f67a2c6547cc3eba7ac800cbc6b64c5f3b | bug: fix CSI driver inline implementation | Update the Azure file CSI driver inline volume support: https://docs.microsoft.com/en-us/azure/aks/azure-files-volume#mount-file-share-as-an-inline-volume | diff --git a/provider/aci.go b/provider/aci.go
index 5b4603be..6f6fe54e 100644
--- a/provider/aci.go
+++ b/provider/aci.go
@@ -50,7 +50,8 @@ const (
subnetDelegationService = "Microsoft.ContainerInstance/containerGroups"
// Parameter names defined in azure file CSI driver, refer to
// https://github.com/kubernete... | 5 | 5 | 4 | [{"id": "G0", "claim": "Field names in CSI.VolumeAttributes are case insensitive, so the pull request should match them case-insensitively (per the azurefile-csi-driver reference code) instead of relying on lower-cased constant names.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
virtual-kubelet__azure-aci__299 | virtual-kubelet/azure-aci | 299 | defect | 7f3df723c06fe491affc757964f52746335fc779 | aa870495316984f0214be907493c10b5a72b4a9e | refactor: Use Azure SDK for auth | - Remove Azure German Cloud.
- Move the auth functionality into a separate folder and use Azure SDK instead.
old code path(s):
- https://github.com/virtual-kubelet/azure-aci/blob/master/provider/aci.go#L190-L260
- https://github.com/virtual-kubelet/azure-aci/blob/master/client/auth.go
- https://github.com/virtua... | diff --git a/go.mod b/go.mod
index 0fd387bc..49ef70b2 100644
--- a/go.mod
+++ b/go.mod
@@ -5,12 +5,13 @@ go 1.18
require (
contrib.go.opencensus.io/exporter/ocagent v0.4.12
github.com/Azure/azure-sdk-for-go v63.0.0+incompatible
- github.com/Azure/go-autorest/autorest v0.11.20
+ github.com/Azure/azure-sdk-for-go/sd... | 7 | 6 | 0 | [{"id": "G0", "claim": "The test fixture's tenantId and subscriptionId look like real IDs; add an inline comment saying they are faked strings.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With options left as an empty arm.ClientOptions, the loo... | null |
virtual-kubelet__azure-aci__305 | virtual-kubelet/azure-aci | 305 | defect | 803f4b76c38c80e93fdcd19f7e1978dd36790fee | c2934c1e71a80d5de0f2618c7b1cb80fe563035c | fix: Fix multi-volume issue | - Fix volume issue #303
- Add unit test to cover multiple volumes in case volume type is projected.
- Add e2e test case for pod with multi volume.
Root cause: Volume is not copied before it is appended to the list which causes all of the volumes in the list to have the same name because all of them refer to the s... | diff --git a/e2e/fixtures/multi-volume.yml b/e2e/fixtures/multi-volume.yml
new file mode 100644
index 00000000..71af789c
--- /dev/null
+++ b/e2e/fixtures/multi-volume.yml
@@ -0,0 +1,64 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: vk-e2e-volume
+ namespace: vk-test
+spec:
+ containers:
+ - command:
+ - sh
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The AzureFile branch should copy the volume name as well, like the EmptyDir/GitRepo/Secret/Projected branches the PR changed, since taking &volume.Name directly may alias the reused loop variable and give appended volumes the wrong name.", "category": "correctness", "verdict": "supported", "prio... | null |
virtual-kubelet__azure-aci__363 | virtual-kubelet/azure-aci | 363 | defect | ffca1be77e78417c02cc6571493757230bc4b4d2 | 2ce665d0f2c41048a83e648012fee4be6764172d | fix: Fix pod status migration | Fixes #354 | diff --git a/client/aci/client_test.go b/client/aci/client_test.go
index 17945ea2..d824332b 100644
--- a/client/aci/client_test.go
+++ b/client/aci/client_test.go
@@ -30,7 +30,6 @@ var (
location = "eastus2euap"
resourceGroup = "virtual-node-test-rg"
containerGroup = "virtual-... | 2 | 2 | 2 | [{"id": "G0", "claim": "In ListActivePods the PR replaced p.GetPods(ctx) with p.resourceManager.GetPods(), which reads pods from the local k8s-side resource manager instead of the pods running in ACI; it should use p.GetPods(ctx) to get pods from the ACI side.", "category": "correctness", "verdict": "supported", "prior... | null |
virtual-kubelet__azure-aci__388 | virtual-kubelet/azure-aci | 388 | defect | 549e66a2f1a9bd0df0e1f52af144027c5a5eaff7 | c7a11cab15d9f36ee4b6fb302a6cef16fece66e4 | feat: Add a validation init container | - Create Dockerfile and pkg folder for init container
- Add support for init container in helm chart, deployments for e2e tests
- Add support for init container in pipelines
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com> | diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index ade3fe9c..00000000
--- a/.dockerignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.dockerignore
-Dockerfile
-bin/
-helm/
-hack/
-charts/
-.circleci/
-README.md
-.gitignore
\ No newline at end of file
diff --git a/.github/workflows/create-release.yml b/.githu... | 1 | 1 | 1 | [{"id": "G0", "claim": "The branch handling a SetVNETConfig error in the init container is empty, so a network setup failure produces no error message, and Fei-Guo asks what error message will be provided since the init container is the key place for logs with remediation information.", "category": "correctness", "verd... | null |
virtual-kubelet__azure-aci__437 | virtual-kubelet/azure-aci | 437 | defect | c2d6825947dd78dc91dc5f38f38164a5c39146bc | 34cd35eddc243abe56873885166925b59abdcd45 | feat: Confidential compute changes - 2022-10-01-preview | Allow user to specify Confidential container sku and specify ConfidentialComputeCcePolicy via annotations | diff --git a/e2e/confidential_container_test.go b/e2e/confidential_container_test.go
new file mode 100644
index 00000000..c2c885c6
--- /dev/null
+++ b/e2e/confidential_container_test.go
@@ -0,0 +1,92 @@
+package e2e
+
+
+import (
+ "context"
+ "testing"
+ "time"
+
+ "github.com/virtual-kubelet/azure-aci/pkg/featureflag... | 3 | 3 | 0 | [{"id": "G0", "claim": "The default CCEPolicy may change so hardcoding it in the unit test and the e2e fixture will not help; the pull request should fall back to not setting the CCEPolicy and let ACI inject the latest policy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
virtual-kubelet__azure-aci__471 | virtual-kubelet/azure-aci | 471 | defect | 0bc818473d9a7eaab90dd9c80df796e6dd38b8b9 | 3514450986cbbdd6daaf4237beafd8366ff9094c | feat: record ACI events back to kubernetes (#470) | This is a first draft of a working events recording. I tried it on an actual AKS cluster.
Let me know what you think about it. | diff --git a/cmd/virtual-kubelet/main.go b/cmd/virtual-kubelet/main.go
index 18001601..9cf20039 100644
--- a/cmd/virtual-kubelet/main.go
+++ b/cmd/virtual-kubelet/main.go
@@ -198,13 +198,12 @@ func main() {
}
return nil
}
-
+ k8sClient, err := nodeutil.ClientsetFromEnv(kubeConfigPath)
+ if err != nil {
+ log.G... | 5 | 3 | 2 | [{"id": "G0", "claim": "The new log line in InitFeatureFlag that prints the enabled features should use Debug level instead of Info.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new test helper CreateContainerGroupEvent the parameter `type_` sho... | null |
virtual-kubelet__azure-aci__476 | virtual-kubelet/azure-aci | 476 | defect | 8df3ef3a74a20f48bd82eeaba2ee6a09488d2c8b | 9ac54e613fcbdb10bb05933e4abb27c033f83691 | fix: Use GetCG to retrieve InstanceView info | - The GetContainerGroupListResult API doesn't return the `InstanceView` status, which can cause nil. To mitigate this issue until ACI fixes it for VK, we had to get the CG info for each active CG.
- Remove return in GetPods and replace it with logs + continue | diff --git a/cmd/init-container/main.go b/cmd/init-container/main.go
index f41dd66f..8a05c6e8 100644
--- a/cmd/init-container/main.go
+++ b/cmd/init-container/main.go
@@ -108,10 +108,5 @@ func main() {
}, v1.EventTypeWarning, "InitFailed", "VNet config setup failed")
log.G(ctx).Fatal("cannot setup the VNet config... | 2 | 2 | 1 | [{"id": "G0", "claim": "The nil check for pod.Status.ContainerStatuses added in processPodUpdates is unnecessary: if the slice were nil the range loop over it would be a no-op, so the program cannot reach that state.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
virtual-kubelet__azure-aci__503 | virtual-kubelet/azure-aci | 503 | defect | 3dadd9ff3a015977a15bb597372f1da3046856c3 | 38a80cb38c0623c6ea934292d935ce0b672e882e | test: Added unit test for UpdatePodStatus | Added unit test for UpdatePodStatus in podTracker.go, Issue: [https://github.com/virtual-kubelet/azure-aci/issues/502](url) | diff --git a/pkg/provider/podsTracker_test.go b/pkg/provider/podsTracker_test.go
new file mode 100644
index 00000000..46e668c0
--- /dev/null
+++ b/pkg/provider/podsTracker_test.go
@@ -0,0 +1,81 @@
+package provider
+
+import (
+ "context"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/golang/mock/gomock"
+ "github.co... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the fakePods test helper to the shared test/util package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
virtual-kubelet__azure-aci__534 | virtual-kubelet/azure-aci | 534 | defect | e24d23ba5d87f6b04c7f37b252d405d9cb27a608 | eb9d38c742720c1b31a66090c47ddc5e236ccd9c | test: UT for ExtensionPodStatsToKubeletPodStats with bugfix | Issue Link: https://github.com/virtual-kubelet/azure-aci/issues/514 | diff --git a/pkg/metrics/real_time.go b/pkg/metrics/real_time.go
index c48588e6..9c0ab65f 100644
--- a/pkg/metrics/real_time.go
+++ b/pkg/metrics/real_time.go
@@ -168,7 +168,8 @@ func extensionPodStatsToKubeletPodStats(pod *v1.Pod, realtimePodStats *realtimeM
},
}
result.Containers = make([]stats.ContainerStats,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test should follow the same table-driven sub-test pattern used in the previously merged metrics test (linked from PR #521) instead of a single flat t.Run with a wall of assert.DeepEqual calls.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
virtual-kubelet__azure-aci__547 | virtual-kubelet/azure-aci | 547 | defect | b4d240dc8b7239bc356c520dc0ae220ff8d00ee2 | 54af71de7bc54d7cf861d6c1928772dae20c16df | fix: container state. | started is always true. make pod with startup probe fail.
ensure terminated container group report a terminated state in k8s. | diff --git a/pkg/provider/aci.go b/pkg/provider/aci.go
index 461cee47..67351cb8 100644
--- a/pkg/provider/aci.go
+++ b/pkg/provider/aci.go
@@ -1087,6 +1087,10 @@ func (p *ACIProvider) getInitContainers(ctx context.Context, pod *v1.Pod) ([]*az
log.G(ctx).Errorf("azure container instances initcontainers do not suppor... | 2 | 1 | 1 | [{"id": "G0", "claim": "The terminated branch should return a termination Reason other than \"Completed\" to go with the \"Terminated\" state.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code should not assume the container has started; how A... | null |
virtual-kubelet__azure-aci__589 | virtual-kubelet/azure-aci | 589 | defect | 8db48131f84cf55232604a5b9551447a89293dea | be2bcad265d2fc96b3d35a5507ccd0d2f3152811 | feat: Update ACI regions | - adding additional regions as per ACI team update and https://portal.microsofticm.com/imp/v3/incidents/incident/447689450/summary
- Regions added:
- Australia central
- Australia central 2
- China East 2
- China East 3
- China North 3
- France South
- Germany South
- Israel Central
- Italy ... | diff --git a/.github/workflows/aks-addon-tests.yml b/.github/workflows/aks-addon-tests.yml
index cce3454c..87cf0da0 100644
--- a/.github/workflows/aks-addon-tests.yml
+++ b/.github/workflows/aks-addon-tests.yml
@@ -23,7 +23,7 @@ env:
jobs:
export-registry:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The e2e workflow triggers should use `pull_request` instead of the more privileged `pull_request_target` (a security-motivated hardening of the pre-existing trigger).", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The nodeSele... | null |
virtual-kubelet__azure-aci__628 | virtual-kubelet/azure-aci | 628 | defect | 4a409232d66ff93efab0d8ee045b450099dc17b5 | 7815a186460473f77eaaed8650a6b2d9a789dc87 | fix: separate subnet create vs update and check for addressPrefixes field | - Added a check for subnet properties.AddressPrefixes incase properties.AddressPrefix is not set and added necessary unit tests
- To differentiate between subnet create vs update scenario:
- changed the existing "createSubnet" boolean to "updateSubnet" to minimize confusion - this bool indicates that an update is n... | diff --git a/pkg/network/aci_network.go b/pkg/network/aci_network.go
index 64dd93e0..973bf65d 100644
--- a/pkg/network/aci_network.go
+++ b/pkg/network/aci_network.go
@@ -128,23 +128,26 @@ func (pn *ProviderNetwork) setupNetwork(ctx context.Context, azConfig *auth.Conf
var rawResponse *http.Response
ctxWithResp := ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add a nil check for firstPrefix, since the AddressPrefixes[0] element the new branch dereferences may be nil.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error message saying both AddressPrefix and AddressPrefixes 'are... | null |
virtual-kubelet__azure-aci__634 | virtual-kubelet/azure-aci | 634 | defect | c28775bec1f5a88e54737c98e011733030608712 | 0b633e7c5c6a7a8321a175d09290daafd4fd4fe5 | fix: bugfixes and release condition update | - Subnet [PUT](https://learn.microsoft.com/en-us/rest/api/virtualnetwork/subnets/create-or-update?view=rest-virtualnetwork-2024-01-01&tabs=HTTP) findings for addressPrefix vs addressPrefixes usage:
- If neither is included in the payload, the request will return an error with code "AddressPrefixStringCannotBeNullOrE... | diff --git a/.github/workflows/chart.yml b/.github/workflows/chart.yml
index b9be0da6..54fb308a 100644
--- a/.github/workflows/chart.yml
+++ b/.github/workflows/chart.yml
@@ -3,7 +3,7 @@ name: publish_helm_chart
on:
pull_request:
branches:
- - release-**
+ - release-**-**
- master
types: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "helayoty questions why the removal of `subnet.Properties.AddressPrefix = &pn.SubnetCIDR` from the isCreate block is needed, i.e. why the address prefix is no longer set in the create case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
virtual-kubelet__azure-aci__680 | virtual-kubelet/azure-aci | 680 | defect | 933672f5b146d41f9410aa5c418a69995c2d7e9c | 7f047f8a25c67eecfbe21a1f1eec99244e7a49fb | fix: exclude confidential container test | Confidential pods are stuck in pending due to a regression with Plan9 mounts in the containerd package, causing the confidential container test to fail. Exluding this test from our e2e tests till the issue is resolved. | diff --git a/Makefile b/Makefile
index 781b8f2f..bb14b5d1 100644
--- a/Makefile
+++ b/Makefile
@@ -105,7 +105,7 @@ e2e-test:
IMG_URL=$(REGISTRY) IMG_REPO=$(IMG_NAME) IMG_TAG=$(IMG_TAG) \
INIT_IMG_REPO=$(INIT_IMG_NAME) INIT_IMG_TAG=$(INIT_IMG_TAG) \
LOCATION=$(LOCATION) RESOURCE_GROUP=$(E2E_CLUSTER_NAME) \
- $... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please add a comment about why the confidential container test is excluded from the e2e test run.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
virtual-kubelet__azure-aci__8 | virtual-kubelet/azure-aci | 8 | defect | 9046e2927a91768ed27a5d16a4a928f0e00dba23 | 7c7f07695034b45eb8585bde58ed0cdcc9e14f6b | Allow virtual-kubelet to use cluster domain | This allows `--cluster-domain` to be passed to virtual kubelet like a
traditional kublet, and use this to generate search-domains for
`/etc/resolv.conf`
* Only apply to pods with `DNSClusterFirst` to match kubelet
* Merge search-domains with any set in the `dnsConfig`
* Set `ndots` to the default 5
Related: #... | diff --git a/aci.go b/aci.go
index e30c1e25..0d8d1299 100644
--- a/aci.go
+++ b/aci.go
@@ -82,6 +82,7 @@ type ACIProvider struct {
vnetName string
vnetResourceGroup string
networkProfile string
+ clusterDomain string
kubeProxyExtension *aci.Extension
kubeDNSIP string
extraUserAg... | 1 | 1 | 0 | [{"id": "G0", "claim": "The assignment `containerGroup.ContainerGroupProperties.DNSConfig = p.getDNSConfig(pod)` was added twice in amendVnetResources - a typo duplicate line that should be removed so it appears only once.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
virtual-kubelet__virtual-kubelet__1006 | virtual-kubelet/virtual-kubelet | 1,006 | defect | 410e05878a80b9ce5e95efcfe40f801c57cdc144 | 1958686b4ac321fc46eab5fe2388a0fa1d8d488b | Add opentelemetry as tracing provider | **What type of PR is this?**
/feature
**What this PR does / why we need it:**
Fixes #1005
**Special notes for your reviewer:**
* Currently opentelemetry hasn't supported log signal in span, so left TODO comment as saving log in span.
* Latest opentelemetry (v1.7.0) requires go-logr/logr v1.2 which conflicts w... | diff --git a/go.mod b/go.mod
index 308f45073..66b653ff5 100644
--- a/go.mod
+++ b/go.mod
@@ -9,7 +9,7 @@ require (
github.com/docker/spdystream v0.0.0-20170912183627-bc6354cbbc29 // indirect
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190711103... | 4 | 3 | 1 | [{"id": "G0", "claim": "The package name should be lowercase `opentelemetry` instead of `openTelemetry`, per the suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment says log events cannot be added to spans yet, but opent... | null |
virtual-kubelet__virtual-kubelet__1258 | virtual-kubelet/virtual-kubelet | 1,258 | defect | 1f5e83b1d679841ddfe7b57a0deedf3d40d90522 | 3045c1b9a3cee9fecb0b59ac330b443fe6cfb8a3 | Allow providers to skip VK downward API resolution | Currently, VK attempts to resolve downward APIs before calling the provider's CreatePod or UpdatePod implementation. However, there are valid reasons a provider may want to do downward API resolution themselves.
This is a logical first step to expose downward resolution utilities to providers as discussed [here](htt... | diff --git a/node/nodeutil/controller.go b/node/nodeutil/controller.go
index f3b3205dd2..96d1a8aa50 100644
--- a/node/nodeutil/controller.go
+++ b/node/nodeutil/controller.go
@@ -254,6 +254,11 @@ type NodeConfig struct {
// Set the error handler for node status update failures
NodeStatusUpdateErrorHandler node.Erro... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests that validate the new downward-API-skipping logic should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
virtual-kubelet__virtual-kubelet__1397 | virtual-kubelet/virtual-kubelet | 1,397 | defect | 33a49ae1c212d96ffdf7bac2881bdbb3bca02c27 | 1a299eee33f8ad0889a712661849f826dcc4709c | fix: resolve memory leak in deletedPods map for sync providers | The deletedPods map in syncProviderWrapper was growing indefinitely due to a key format mismatch that occurred when the key format was changed in commit 3ff16942 (Nov 2020).
Root cause:
When pods are deleted, entries are stored in deletedPods with the key format "namespace/name" (via cache.MetaNamespaceKeyFunc). Th... | diff --git a/node/pod.go b/node/pod.go
index 07b69cd7df..8d887bebf7 100644
--- a/node/pod.go
+++ b/node/pod.go
@@ -389,7 +389,7 @@ func (pc *PodController) deletePodsFromKubernetesHandler(ctx context.Context, ke
defer func() {
if retErr == nil {
if w, ok := pc.provider.(syncWrapper); ok {
- w._deletePodKey(... | 2 | 2 | 2 | [{"id": "G0", "claim": "The call should pass metaKey instead of the mistyped metaKe, as offered in the suggestion block.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should implement at least one e2e test that proves the deletedPo... | null |
virtual-kubelet__virtual-kubelet__211 | virtual-kubelet/virtual-kubelet | 211 | defect | b4cb8099681118f8049234f12328f7a73c4b1a50 | c7444b36738841ab2c26f625d3bf4fcd7d84bbfb | Add namespace for storeKey in ResourceManager | Fix #196 .
We also have this problem when debug our huawei provider, fix it. | diff --git a/manager/resource.go b/manager/resource.go
index efbcc9e3ac..315fd0b9be 100644
--- a/manager/resource.go
+++ b/manager/resource.go
@@ -84,7 +84,7 @@ func (rm *ResourceManager) SetPods(pods *v1.PodList) {
if p.Status.Phase == v1.PodSucceeded {
continue
}
- rm.pods[p.Name] = &pods.Items[k]
+ rm.po... | 2 | 2 | 1 | [{"id": "G0", "claim": "The first parameter of GetPod should be named 'namespace' instead of 'namespaces'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The store key separator should be changed from '-' to '_' to avoid conflicts, since '-' is ... | null |
virtual-kubelet__virtual-kubelet__333 | virtual-kubelet/virtual-kubelet | 333 | defect | 7442189e771e1b9ddd661834118b65f810cb1fb4 | feb9617901ad9c6bbd9a8d18bc354fa1a80db136 | Update ACI liveness/readiness probe handling to work with named ports | This updates the ACI provider to check if a probe uses named ports or numeric values. Previously, it only attempted to use numeric values.
Fixes #331 | diff --git a/examples/nginx-pod-probes-named-ports.yaml b/examples/nginx-pod-probes-named-ports.yaml
new file mode 100644
index 000000000..7bb20fd17
--- /dev/null
+++ b/examples/nginx-pod-probes-named-ports.yaml
@@ -0,0 +1,33 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-named-ports
+spec:
+ containers:
+ -... | 5 | 4 | 1 | [{"id": "G0", "claim": "Remove dnsPolicy: ClusterFirst from the example pod spec, since Virtual Kubelet does not support cluster DNS yet.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's test suite is failing: providers/azure/aci_te... | null |
virtual-kubelet__virtual-kubelet__421 | virtual-kubelet/virtual-kubelet | 421 | defect | 688c10fa8b25024ae093cccdbb000414878a7102 | c3fac3d79cad092ba1bf04d399d9dcff2bb37415 | [ACI] Fallback to parse authConfig.Auth when Username field is not specified | Fix #411 | diff --git a/providers/azure/aci.go b/providers/azure/aci.go
index f5f693d1e..370ff8f3b 100644
--- a/providers/azure/aci.go
+++ b/providers/azure/aci.go
@@ -997,6 +997,38 @@ func (p *ACIProvider) getImagePullSecrets(pod *v1.Pod) ([]aci.ImageRegistryCrede
return ips, nil
}
+func convertAuthConfigToImageRegistryCred... | 1 | 1 | 0 | [{"id": "G0", "claim": "The helper's name `convertAuthConfigToImageRegistryCredential` is too long; it should be renamed to `makeRegistryCredential`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
virtual-kubelet__virtual-kubelet__452 | virtual-kubelet/virtual-kubelet | 452 | defect | ee2735541a590d1add0880d2cdd6aab5721ece5a | d2defa8b7db9295797b36ed8e099577770c6dd57 | env: fix pod envFrom processing | Fixes #444
This PR fixes how `ConfigMap` and `Secret` references in a pod's `envFrom` are computed.
cc @pires | diff --git a/vkubelet/env.go b/vkubelet/env.go
index f63d458f3f..cd9a7eb025 100644
--- a/vkubelet/env.go
+++ b/vkubelet/env.go
@@ -38,6 +38,11 @@ func (s *Server) populateEnvironmentVariables(pod *corev1.Pod) error {
if vf.Optional != nil && !*vf.Optional && errors.IsNotFound(err) {
return fmt.Errorf("Secr... | 3 | 2 | 1 | [{"id": "G0", "claim": "The newly added catch-all validation returns an error whenever err is not nil, so it fails even when the secret reference is optional (unlike the first validation, which only errors for non-optional references), and the same problem applies to the ConfigMap handling above.", "category": "correct... | null |
virtual-kubelet__virtual-kubelet__557 | virtual-kubelet/virtual-kubelet | 557 | defect | 5afb24809d15ce9a9c549b063700b6338a7f1d06 | 0ae62cb81bad6ad4a2c05e80231da6d75bd58b02 | Patch the node status instead of updating it. | Virtual-kubelet updates the node status periodically.
This change proposes we use the `Patch` API instead of `Update`,
to update the node status.
This avoids overwriting any node updates made by other controllers
in the system, for example an attach-detach controller.
Patch API does a strategic merge instead of ov... | diff --git a/Gopkg.lock b/Gopkg.lock
index fe46af7b9..3d8de2ab0 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -24,7 +24,6 @@
packages = [
"services/batch/2017-09-01.6.0/batch",
"services/network/mgmt/2018-08-01/network",
- "services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh",
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The copied functions should take only the node client (v1.NodeInterface) instead of pulling in the whole core (v1.CoreV1Interface) interface.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The log field should be named `node.Statu... | null |
virtual-kubelet__virtual-kubelet__574 | virtual-kubelet/virtual-kubelet | 574 | defect | 6cb323eec244fca3bc7fd15e9eb1e86b1d3c5c3c | 8e950a5d04fa10b8a41d4e8bd4b42cbabf877945 | Use I/O stream for provider logs interface | Providers must still update the implementation to actually gain any
benefit here, but this makes the provider interface a bit more sane. | diff --git a/providers/alibabacloud/eci.go b/providers/alibabacloud/eci.go
index 23d68e1efd..06d305569a 100644
--- a/providers/alibabacloud/eci.go
+++ b/providers/alibabacloud/eci.go
@@ -19,8 +19,10 @@ import (
"github.com/cpuguy83/strongerrors"
"github.com/virtual-kubelet/virtual-kubelet/log"
"github.com/virtual... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request changes functionality in many providers that cannot be tested, so only the code, not the functionality, can be reviewed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
virtual-kubelet__virtual-kubelet__613 | virtual-kubelet/virtual-kubelet | 613 | defect | 024b9e10c66374aad16b9a94537e2d754f82e997 | b9e1df69dfe064c35071c1215cfa5099c714567a | Light up UpdatePod | This PR updates the vkublet/pod.go createOrUpdate(..) method to actually handle
updates.
The createOrUpdatePod gets the Pod from the provider as before, but now if it exists the method
checks the hash of the spec against the spec of the new pod instead of simply returning. If the spec has changed, it then calls p... | diff --git a/Gopkg.lock b/Gopkg.lock
index de6eefda4f..374d9eb1b7 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -1334,6 +1334,7 @@
"github.com/cpuguy83/strongerrors",
"github.com/cpuguy83/strongerrors/status",
"github.com/cpuguy83/strongerrors/status/ocstatus",
+ "github.com/davecgh/go-spew/spew",
... | 2 | 1 | 0 | [{"id": "G0", "claim": "If providers apply pod updates asynchronously, the update could be called repeatedly without being applied; keep track of the last update (de-duplicate updates).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The 'Pod %s exists, upd... | null |
virtual-kubelet__virtual-kubelet__628 | virtual-kubelet/virtual-kubelet | 628 | defect | d183dbbe17dcf22385e4b2e60816e461c263c86f | ec8972fef3db4736128ab4ee83b2a9c463f826b1 | Use Running Pods Endpoint for testing | * Use the VKUBELET API for fetching the pods during testing, which
makes it easier to run testing without wiring up an entire cluster
* Runningpods does not require each provider to implement the
optional stats interface for testing.
* This also splits out some of the tests (Disentangles them)
* This a... | diff --git a/hack/skaffold/virtual-kubelet/pod.yml b/hack/skaffold/virtual-kubelet/pod.yml
index 5aaba2342..48e2c66a5 100644
--- a/hack/skaffold/virtual-kubelet/pod.yml
+++ b/hack/skaffold/virtual-kubelet/pod.yml
@@ -23,6 +23,13 @@ spec:
- --klog.logtostderr
- --log-level
- debug
+ env:
+ - name: K... | 3 | 1 | 0 | [{"id": "G0", "claim": "findPodInPods should return a bool instead of an error so the asserts simplify, and the check of whether the pod is running could live in the framework as e.g. f.PodIsRunning(pod).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
virtual-kubelet__virtual-kubelet__734 | virtual-kubelet/virtual-kubelet | 734 | defect | cad19238fd83afb6f180c1c78adad40de0532f39 | 8fcd6827f0b9eb4819e0a47044fc22560a37d4b7 | Do not mutate pods, nor hand off pod references to provider | This moves to a model where any time that pods are given to a
provider, it uses a DeepCopy, as opposed to a reference. If the
provider mutates the pod, it prevents it from causing issues
with the informer cache. | diff --git a/go.mod b/go.mod
index 18f5f57ac6..968aa905ec 100644
--- a/go.mod
+++ b/go.mod
@@ -12,7 +12,7 @@ require (
github.com/evanphx/json-patch v4.1.0+incompatible // indirect
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/groupcache v0.0.0-20181024230925-c65c006176ff // indirect
- github.com/... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pod comparison should use github.com/google/go-cmp/cmp instead of reflect.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The inline field-by-field pod comparison in createOrUpdatePod should be moved into a helper functi... | null |
virtual-kubelet__virtual-kubelet__735 | virtual-kubelet/virtual-kubelet | 735 | defect | 47f5aa45df2960772c223a20717df834df6ffad0 | 2c3c762355cc37cc686bb7740f8123dffa570906 | Add methods to wait for pod controller exit and errors | Adds Done() and Err() to pod controller
Allows callers to wait for pod controller exit in addition to readiness.
This means the caller does not have to deal handling errors from the pod
controller running in a gorutine since it can wait for exit via `Done()`
and check the error with `Err()` | diff --git a/cmd/virtual-kubelet/internal/commands/root/root.go b/cmd/virtual-kubelet/internal/commands/root/root.go
index baaa99eca7..6687c9dc8e 100644
--- a/cmd/virtual-kubelet/internal/commands/root/root.go
+++ b/cmd/virtual-kubelet/internal/commands/root/root.go
@@ -18,7 +18,6 @@ import (
"context"
"os"
"path... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pod controller should expose a way to wait for it to shut down and to retrieve the error after shutdown, which the test harness lost when wireUpSystem started returning nil instead of the shutdown error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
virtual-kubelet__virtual-kubelet__743 | virtual-kubelet/virtual-kubelet | 743 | defect | 2f2625c8e253a53aadaf965e477a99b349f64e4e | 472e6bdd944c77f653e0cd3555de73ca7addb6a0 | Add unit tests for #584 | This PR adds unit tests for changes made in #584. It also fixes two small typos in the codebase. | diff --git a/README.md b/README.md
index f686a11aaa..d041dc29f9 100644
--- a/README.md
+++ b/README.md
@@ -179,7 +179,7 @@ type PodLifecycleHandler interface {
```
There is also an optional interface `PodNotifier` which enables the provider to
-asyncronously notify the virtual-kubelet about pod status changes. If t... | 4 | 2 | 1 | [{"id": "G0", "claim": "Skipping waiting containers in updatePodStatus changes behavior for them, and sargun asks what causes the crash the change guards against.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pod-status update path may not make... | null |
virtual-kubelet__virtual-kubelet__760 | virtual-kubelet/virtual-kubelet | 760 | defect | f10a16aed799b057efbaed6999f2b9e191b8ddfd | 476f091c8233fe6571f2b1f2cc3123e1343dda52 | Do not delete pods in a non-graceful manner | This moves from forcefully deleting pods to deleting pods in a
graceful manner. It keeps track of the pods that were deleted,
so the provider doesn't get duplicate pod deletions unnecessarily.
It only retries deletion if the pod's graceperiod was reduced. | diff --git a/node/lifecycle_test.go b/node/lifecycle_test.go
index bf16e854f7..eb0d2c8215 100644
--- a/node/lifecycle_test.go
+++ b/node/lifecycle_test.go
@@ -94,8 +94,7 @@ func TestPodLifecycle(t *testing.T) {
ctx = log.WithLogger(ctx, log.L)
- // isPodDeletedPermanentlyFunc is a condition func that waits until ... | 5 | 5 | 2 | [{"id": "G0", "claim": "When the provider no longer has the pod (DeletePod/GetPod return NotFound), the PR should still Get it and force-delete it from the API server rather than leave it there until the grace period passes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.