Skip to content

Envvar handling fixups#3024

Open
tursulin wants to merge 4 commits into
checkpoint-restore:criu-devfrom
tursulin:envvar-handling-fixups
Open

Envvar handling fixups#3024
tursulin wants to merge 4 commits into
checkpoint-restore:criu-devfrom
tursulin:envvar-handling-fixups

Conversation

@tursulin
Copy link
Copy Markdown

Follow up fixes/cleanups after 1961c5e ("plugins/amdgpu: Cleanup env variable handling")

Tvrtko Ursulin added 4 commits May 20, 2026 09:08
Copilot reports %d is correct for boolean and %zx for size_t, fix it.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: 1961c5e ("plugins/amdgpu: Cleanup env variable handling")
Copilot reports a possible false positive error on strtoul conversion due
errno not being reset on success. Fix it by clearing errnor prior to the
call.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Commit
1961c5e ("plugins/amdgpu: Cleanup env variable handling")
converted some error logs into warnings under the rationale of failures
not being fatal, but the execution continues with the default values.

Convert one more such error to a warning, as pointed out by Copilot that
makes things more consistent.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Copilot reports quotes in one warning message are unbalanced - fix it.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
@tursulin tursulin force-pushed the envvar-handling-fixups branch from a7592d9 to 94d5967 Compare May 20, 2026 08:23
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.98%. Comparing base (e40e6f7) to head (94d5967).
⚠️ Report is 2 commits behind head on criu-dev.

Additional details and impacted files
@@             Coverage Diff              @@
##           criu-dev    #3024      +/-   ##
============================================
- Coverage     57.01%   56.98%   -0.04%     
============================================
  Files           154      154              
  Lines         40452    40449       -3     
  Branches       8866     8867       +1     
============================================
- Hits          23064    23048      -16     
- Misses        17034    17047      +13     
  Partials        354      354              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants