Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Eden tests still use RESTARTING and PURGING states #977

@eriknordmark

Description

@eriknordmark

Description

We are seeing various failures in the eden tests.

One of them is about purging. One eden log snippet is:

eden pod purge eclient-mount
edenProg: /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden timewait: 0s
test eden.app.test -test.v -timewait 2m HALTING eclient-mount
testProg: /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden.app.test timewait: 0s
test eden.app.test -test.v -timewait 10m RUNNING eclient-mount
testProg: /home/runner/actions-runner/_work/eve/eve/eden/dist/bin/eden.app.test timewait: 0s
time="2024-06-06T11:38:03Z" level=info msg="Test is running: 2024-06-06T11:38:03Z"
time="2024-06-06T11:39:43Z" level=info msg="Test is running: 2024-06-06T11:39:43Z"
time="2024-06-06T11:41:23Z" level=info msg="Test is running: 2024-06-06T11:41:23Z"
time="2024-06-06T11:43:03Z" level=info msg="Test is running: 2024-06-06T11:43:03Z"
time="2024-06-06T11:44:43Z" level=info msg="Test is running: 2024-06-06T11:44:43Z"
time="2024-06-06T11:46:23Z" level=info msg="Test is running: 2024-06-06T11:46:23Z"
Error: [stdout]
Docker app's state test
=== RUN TestAppStatus
apps: '[eclient-mount]' state: 'RUNNING' secs: 600
time: 2024-06-06T11:36:34.807546766Z out: appName eclient-mount state changed to HALTING
app_test.go:171: ASSERTION FAILED (2024-06-06T11:46:34.80800601Z): expected apps [eclient-mount] in RUNNING state
app_test.go:173: actual eclient-mount: HALTING
app_test.go:175: history of states for eclient-mount:
app_test.go:177: state: no info from controller received in: 2024-06-06T11:36:34.797310138Z
app_test.go:177: state: HALTING received in: 2024-06-06T11:36:34.80753279Z

Grepping in the source code I see
$ grep -r RESTARTING
export/eclient/testdata/app_local_info.txt:exec -t 5m bash wait-for-app-state.sh app1 RESTARTING
export/eclient/testdata/app_local_info.txt:exec -t 5m bash wait-for-app-state.sh app1 RESTARTING
$ grep -r PURGING
export/volume/testdata/volumes_test.txt:test eden.app.test -test.v -timewait 2m PURGING eclient-mount
export/eclient/testdata/app_local_info.txt:exec -t 5m bash wait-for-app-state.sh app1 PURGING
export/eclient/testdata/app_local_info.txt:exec -t 5m bash wait-for-app-state.sh app1 PURGING
pkg/openevec/pod.go: if im.GetAinfo().State == info.ZSwState_PURGING {

EVE was changed in lf-edge/eve#3905 so we need to update these eden tests.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions