opencontainers / opencontainers/runc

flake TestFreezeBeforeSet on CentOS 7 and 8

Open
#3,540 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/ci
Dominant language
Go
Stars
13.5k
Forks
2.3k
Avg merge
2d 8h
Merged PRs (30d)
30

Description

Happened once in Cirrus CI (https://cirrus-ci.com/task/5418288451682304?logs=unit_tests#L549) while running CI for https://github.com/opencontainers/runc/pull/3512

=== RUN   TestFreezeBeforeSet
=== RUN   TestFreezeBeforeSet/slice,skip-devices
    freeze_test.go:171: failed to write "0\n": write /sys/fs/cgroup/cpuset/system.slice/system-runc_test_freeze_1.slice/cpuset.mems: no such device
=== RUN   TestFreezeBeforeSet/scope,skip-devices
=== RUN   TestFreezeBeforeSet/slice,will-freeze
=== RUN   TestFreezeBeforeSet/slice,pre-frozen,will-freeze
=== RUN   TestFreezeBeforeSet/scope,pre-frozen,skip-devices
=== RUN   TestFreezeBeforeSet/scope,pre-frozen
--- FAIL: TestFreezeBeforeSet (0.41s)
    --- FAIL: TestFreezeBeforeSet/slice,skip-devices (0.06s)
    --- PASS: TestFreezeBeforeSet/scope,skip-devices (0.07s)
    --- PASS: TestFreezeBeforeSet/slice,will-freeze (0.07s)
    --- PASS: TestFreezeBeforeSet/slice,pre-frozen,will-freeze (0.06s)
    --- PASS: TestFreezeBeforeSet/scope,pre-frozen,skip-devices (0.09s)
    --- PASS: TestFreezeBeforeSet/scope,pre-frozen (0.05s)

I've seen similar bugs but not this one. Filing just to ensure it's not lost.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with TestFreezeBeforeSet in freeze_test.go, especially the failure at line 171, and review the Cirrus CI task linked in the issue. Reproduce the failure on CentOS 7 or 8 and compare the slice and scope cases. Done means the intermittent cpuset.mems failure is explained and the test or its environment handling is reliably corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.