Failure in ee/browser_ui/2_plan/group_wiki/file_upload_group_wiki_page_spec.rb | Plan Testing group wiki file upload by creating a formatted page with an image uploaded
Full description
Plan Testing group wiki file upload by creating a formatted page with an image uploaded
File path
./qa/specs/features/ee/browser_ui/2_plan/group_wiki/file_upload_group_wiki_page_spec.rb
Stack trace
Failure/Error: expect(wiki).to have_image(image_file_name)
expected `QA::EE::Page::Group::Wiki::Show.has_image?("testfile.png")` to be truthy, got false
First happened in https://gitlab.com/gitlab-org/gitlab/-/jobs/4213405618.
Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/375655.
Screenshot
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- GitLab QA Bot added Enterprise Edition QA Quality failurenew found:main priority2 test labels
added Enterprise Edition QA Quality failurenew found:main priority2 test labels
- Author
Failed most recently in preprod pipeline: https://ops.gitlab.net/gitlab-org/quality/preprod/-/jobs/10037852
Edited by GitLab QA Bot - GitLab QA Bot changed due date to June 02, 2023
changed due date to June 02, 2023
- GitLab QA Bot assigned to @dchevalier2
assigned to @dchevalier2
- Désirée Chevalier changed the description
Compare with previous version changed the description
- Contributor
This issue was automatically tagged with the label ~"group::editor" by TanukiStan, a machine learning classification model, with a probability of 0.66.
If this label is incorrect, please tag this issue with the correct group label as well as automation:ml wrong to help TanukiStan learn from its mistakes.
If you are unsure about the correct group, please do not leave the issue without a group label. Please refer to GitLab's shared responsibility functionality guidelines for more information on how to triage this kind of issues.
Authors who do not have permission to update labels can leave the issue to be triaged by group leaders initially assigned by TanukiStan
This message was generated automatically. You're welcome to improve it.
- A deleted user added automation:ml groupeditor [DEPRECATED] labels
added automation:ml groupeditor [DEPRECATED] labels
- Désirée Chevalier mentioned in merge request !119383 (closed)
mentioned in merge request !119383 (closed)
- Désirée Chevalier added automation:ml wrong groupknowledge labels and removed groupeditor [DEPRECATED] label
added automation:ml wrong groupknowledge labels and removed groupeditor [DEPRECATED] label
- 🤖 GitLab Bot 🤖 added devopsplan sectiondev labels
added devopsplan sectiondev labels
- Maintainer
Fix here: !119383 (closed)
Collapse replies - Maintainer
Fix didn't work. This looks like a bug.
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69968 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69968 (closed)
- Désirée Chevalier mentioned in issue gitlab-org/quality/pipeline-triage#196 (closed)
mentioned in issue gitlab-org/quality/pipeline-triage#196 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69972 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69972 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69975 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69975 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69981 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69981 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69984 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69984 (closed)
- Jay McCure mentioned in merge request !117734 (merged)
mentioned in merge request !117734 (merged)
- Developer
Hi @dchevalier2
I saw this in an MR and I think this could be a bug, here are the steps I took to reproduce: !117734 (comment 1375993391)I could also see it on staging when using the Rich Text editor also. WDYT?
Collapse replies - Maintainer
@jay_mccure Thanks! I came to this conclusion as well. Reproduced on GDK with a relative URL.
Looking for the MR that introduced the change.
- Maintainer
This is at least a week old. I can't find the MR that broke it.
- Developer
I thought this only started failing in the last 24 hours? I couldn't find the MR either, the times i have seen it fail was always with the Rich text editor for the wiki page when attaching an image. The attachment data isn't being populated in the following request:
Request URL: https://gitlab-review-new-layout-0kzj2r.gitlab-review.app/gitlab-qa-sandbox-group-4/qa-test-2023-05-03-17-08-07-531effc4ce47051c/add-member-project-902c129309506750/-/wikis Request Method: POST Status Code: 302 authenticity_token: X wiki[last_commit_sha]: wiki[title]: test content_editor_image: wiki[content]: ![]() wiki[message]: Create test
![]()
is missing data.@himkp do you have any ideas as to why we seem to be losing the attachment data when creating a wiki page?
- Maintainer
I believe it's a race condition. Perhaps the test fails when the wiki page is submitted before the attachment is fully uploaded. In that case, an empty image is saved instead.
- Maintainer
I thought this only started failing in the last 24 hours?
@jay_mccure The test was recently moved to Plan so I'm not sure if it was running in the
relative_url
jobs before? It used to be in Create but I can't find these failures before the move. gitlab-org/quality/testcases#3356 (comment 1375588724)When running locally with a relative url on GDK it fails every time. I went back a month (running the Create version of the test) and it's still failing.
- Maintainer
Perhaps the test fails when the wiki page is submitted before the attachment is fully uploaded.
@himkp When reproducing locally, I'm getting the error right after attaching an image and before saving the wiki page.
- Developer
@jay_mccure The test was recently moved to Plan so I'm not sure if it was running in the
relative_url
jobs before? It used to be in Create but I can't find these failures before the move. gitlab-org/quality/testcases#3356 (comment 1375588724)When running locally with a relative url on GDK it fails every time. I went back a month (running the Create version of the test) and it's still failing.
Ahh, good spot @dchevalier2 , I didn't realise we ran different jobs for different stages, good to know !
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69991 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69991 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#69997 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#69997 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70004 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70004 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70021 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70021 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70039 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70039 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70048 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70048 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70058 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70058 (closed)
- Désirée Chevalier added typebug label
added typebug label
- Désirée Chevalier mentioned in issue #409541 (closed)
mentioned in issue #409541 (closed)
- Maintainer
Getting this when trying to add an attachment to a wiki when GDK is set up with a relative URL:
* Request URL: http://192.168.1.225:3000/test/api/v4/projects/750/wikis/attachments * Request Method: POST * Status Code: 500 Internal Server Error * Remote Address: 192.168.1.225:3000 * Referrer Policy: strict-origin-when-cross-origin
Collapse replies - Developer
Interesting, in the job logs there is a 404:
[May 02 2023 18:32:10 UTC (QA Tests)] ERROR -- Interceptor Api Errors [404] POST http://gitlab-ee-3870df41.test/relative/relative/groups/gitlab-qa-sandbox-group-3/group-with-wiki-ddb546983ae6df4e/-/wikis/.md/preview_markdown -- Correlation Id: 01GZEVRKGKZ7N3GX1ZSYKY3CKN
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70065 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70065 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70071 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70071 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70080 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70080 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70090 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70090 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70092 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70092 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70093 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70093 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70102 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70102 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70109 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70109 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70123 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70123 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70127 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70127 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70133 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70133 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70145 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70145 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70159 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70159 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70170 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70170 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70174 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70174 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70180 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70180 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70189 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70189 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70191 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70191 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70197 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70197 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70199 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70199 (closed)
- Ghost User mentioned in issue gitlab-org/quality/testcase-sessions#70206 (closed)
mentioned in issue gitlab-org/quality/testcase-sessions#70206 (closed)