fix(cypress): close attachments file before proceeding#4734
fix(cypress): close attachments file before proceeding#4734juliusknorr merged 2 commits intomainfrom
Conversation
|
@juliushaertl frankly i have no idea why the delete request would fail with a 423 for a file that has just been copied. Do you know why it might fail? |
2 flaky tests on run #11913 ↗︎Details:
|
|||||||||||||||||||||||||||
| Test | Artifacts | |
|---|---|---|
| Test all attachment insertion methods > See test files in the list and display hidden files |
Output
Screenshots
|
|
nodes/FrontMatter.spec.js • 1 flaky test
| Test | Artifacts | |
|---|---|---|
| Front matter support > Reopen front matter |
Output
Screenshots
|
|
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
3288448 to
e5fa2a9
Compare
|
https://cloud.cypress.io/projects/hx9gqy/runs/11887/test-results/86c1e342-1e6d-4cbc-89f7-1be8681a5a03 looks like closing the editor does not help. |
f66e4c0 to
5ef205b
Compare
This seems still one flakyness where there is something wrong with the server session handling in case the preview service worker doesn't finish a request and therefore the browser holds outdated csrf token information. I'd need to dive further into that again, but seemed less regular than back then with #4350. A retry seemed to have worked, but the one seems to fail still Test all attachment insertion methods > test if attachment folder is deleted after having deleted a markdown file |
|
The file shouldn't be locked on CI as files_lock is not enabled there |
Formatted nextcloud.log - only contains a theming errorThis error shows up twice. Once for {
"reqId": "cvt0qoFQID5kFwXhcgoS",
"level": 3,
"time": "2023-08-28T05:45:23+00:00",
"remoteAddr": "127.0.0.1",
"user": "ongosb",
"app": "index",
"method": "GET",
"url": "/index.php/apps/theming/img/core/filetypes/folder.svg?v=47d7f13e",
"message": "Could not create folder \"/appdata_ocl4l7eqltkx/theming/global\"",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/12.17.4 Chrome/106.0.5249.51 Electron/21.0.0 Safari/537.36",
"version": "28.0.0.2",
"exception": {
"Exception": "OCP\\Files\\NotPermittedException",
"Message": "Could not create folder \"/appdata_ocl4l7eqltkx/theming/global\"",
"Code": 0,
"Trace": [
{
"file": "/home/runner/work/text/text/lib/private/Files/AppData/AppData.php",
"line": 147,
"function": "newFolder",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/home/runner/work/text/text/apps/theming/lib/ImageManager.php",
"line": 383,
"function": "newFolder",
"class": "OC\\Files\\AppData\\AppData",
"type": "->"
},
{
"file": "/home/runner/work/text/text/apps/theming/lib/ImageManager.php",
"line": 173,
"function": "getRootFolder",
"class": "OCA\\Theming\\ImageManager",
"type": "->"
},
{
"file": "/home/runner/work/text/text/apps/theming/lib/ImageManager.php",
"line": 190,
"function": "getCacheFolder",
"class": "OCA\\Theming\\ImageManager",
"type": "->"
},
{
"file": "/home/runner/work/text/text/apps/theming/lib/Controller/IconController.php",
"line": 97,
"function": "getCachedImage",
"class": "OCA\\Theming\\ImageManager",
"type": "->"
},
{
"file": "/home/runner/work/text/text/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "getThemedIcon",
"class": "OCA\\Theming\\Controller\\IconController",
"type": "->"
},
{
"file": "/home/runner/work/text/text/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/home/runner/work/text/text/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/home/runner/work/text/text/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/home/runner/work/text/text/lib/base.php",
"line": 1070,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/home/runner/work/text/text/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/home/runner/work/text/text/lib/private/Files/Node/Folder.php",
"Line": 162,
"message": "Could not create folder \"/appdata_ocl4l7eqltkx/theming/global\"",
"exception": {},
"CustomMessage": "Could not create folder \"/appdata_ocl4l7eqltkx/theming/global\""
}
} |
Deleting the file later on failed because the file still was locked. Signed-off-by: Max <max@nextcloud.com>
5ef205b to
3fa0f0d
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
Thanks for starting this @max-nextcloud Seems we have a somewhat green CI again 🎉 |

📝 Summary
Deleting the file later on failed because the file still was locked.
🖼️ Screenshots
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)