[WIP] Add context.Context as a param to engine's operations#3995
Draft
Copilot wants to merge 4 commits into
Draft
[WIP] Add context.Context as a param to engine's operations#3995Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
StorageEngine methods now require context.Context as first parameter. Update all test files to pass context.Background() to these calls. Also fix method references in delete_test.go to use lambda wrappers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: roman-khimov <22092804+roman-khimov@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nspcc-dev/neofs-node/sessions/91b62f09-335d-4c2b-bf97-7dcaea75d9c8 Co-authored-by: roman-khimov <22092804+roman-khimov@users.noreply.github.com>
Copilot stopped work on behalf of
roman-khimov due to an error
May 15, 2026 13:16
Member
|
@copilot, try again |
Agent-Logs-Url: https://github.com/nspcc-dev/neofs-node/sessions/80abcfde-9c04-42ca-8559-12bf263c4dad Co-authored-by: roman-khimov <22092804+roman-khimov@users.noreply.github.com>
Contributor
Author
Done. Updated all remaining test files ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3995 +/- ##
==========================================
- Coverage 27.98% 27.97% -0.02%
==========================================
Files 681 681
Lines 45623 45629 +6
==========================================
- Hits 12768 12763 -5
- Misses 31664 31674 +10
- Partials 1191 1192 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
context.Contextas first param to engine'sGet,GetBytes,GetStreammethodscontext.ContexttoGetRange,GetRangeStream,ReadObject,ReadPayloadRangecontext.ContexttoHead,ReadHeadercontext.ContexttoDelete,DeleteRedundantCopies,Dropcontext.ContexttoInhumeContainer,IsLockedcontext.ContexttoPutcontext.ContexttoListWithCursor,ListContainers,ContainerInfocontext.ContexttoSearchcontext.Contextto EC methods:GetECPart,ReadECPart,HeadECPart,ReadECPartHeader,GetECPartRange,ReadECPartRangecontext.ContexttoReviveObject,ObjectStatus,EvacuateselectOld(private method)