Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eden tests still use RESTARTING and PURGING states #977

Open
eriknordmark opened this issue Jun 6, 2024 · 0 comments
Open

Eden tests still use RESTARTING and PURGING states #977

eriknordmark opened this issue Jun 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eriknordmark
Copy link
Contributor

eriknordmark commented Jun 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants