Skip to content

test(placement): ignore foreign-project instances in packing harness - #437

Merged
rldyourmnd merged 1 commit into
mainfrom
test/placement-starlark-project-filter-20260908
Sep 8, 2026
Merged

test(placement): ignore foreign-project instances in packing harness#437
rldyourmnd merged 1 commit into
mainfrom
test/placement-starlark-project-filter-20260908

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Summary

  • get_instances / get_instances_count now return only the queried Incus project.
  • Empty InstanceSnapshot.Project still means the queried project, so existing 4GiB packing fixtures are unchanged.
  • Occupancy in not-fleet no longer fills gha-fleet RAM.

Test plan

  • go test -C internal/incusplacement/starlarkexec ./...
  • go vet -C internal/incusplacement/starlarkexec ./...
  • go test ./internal/incusplacement
  • root go.mod / go.sum unchanged vs provider pin
  • hosted Gate / Static

Incus get_instances(project, location) returns that project only.
Stamping the query project onto every snapshot instance let other
projects fill gha-fleet RAM.

Signed-off-by: rldyourmnd <danil@nddev.it.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rldyourmnd
rldyourmnd merged commit 90909db into main Sep 8, 2026
10 checks passed
@rldyourmnd
rldyourmnd deleted the test/placement-starlark-project-filter-20260908 branch September 8, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant