Skip to content

E2E test: Add code_suggestions_spec api back to smoke

Jay McCure requested to merge jmc-cs-smoke into master

What does this MR do and why?

Adds SaaS tests in qa/qa/specs/features/ee/api/3_create/code_suggestions_spec.rb back into the smoke suite. Also now logs the user who is making the code_suggestion request for debugging purposes.

This will help with triaging incidents as we can better identify where code suggestion failures are occurring.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Tested the gitlab-qa image against staging three times, all passed first try:

  1. https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/15031604#L144
  2. https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/15031648#L110
  3. https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/15031692#L79

Tests passing in MRs: https://gitlab.com/gitlab-org/gitlab/-/jobs/7596343158

Example new log line:

[Aug 16 2024 01:41:21 UTC (QA Tests)] INFO  -- Retrieved cached token for username: root, last six chars of token:sixwPA
[Aug 16 2024 01:41:21 UTC (QA Tests)] INFO  -- ==> Retrieved a QA::Resource::PersonalAccessToken with name 'api-pat-root-cfy3erou' via cache in 0.0 seconds
[Aug 16 2024 01:41:21 UTC (QA Tests)] DEBUG -- Requesting code suggestions as: root

New log line can be seen at https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/15031604/artifacts/file/gitlab-qa-run-2024-08-16-00-39-02-95280c5b/gitlab-ee-qa-00054f6d/qa-tests.log

Edited by Jay McCure

Merge request reports

Loading