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

[8.x] [Ownership] Add code owner to ftr failure report (#203076) #204995

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

wayneseymour
Copy link
Member

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

Resolves: elastic#202687

### For Reviewers
#### To test locally, make a test fail, something like
```
diff --git a/test/functional/apps/console/_autocomplete.ts b/test/functional/apps/console/_autocomplete.ts
index 0e29b29e96e..78976e6d54b 100644
--- a/test/functional/apps/console/_autocomplete.ts
+++ b/test/functional/apps/console/_autocomplete.ts
@@ -50,14 +50,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
       await PageObjects.console.setAutocompleteTrace(false);
     });

-    it('should provide basic auto-complete functionality', async () => {
+    it.only('should provide basic auto-complete functionality', async () => {
       await PageObjects.console.enterText(`GET _search\n`);
       await PageObjects.console.pressEnter();
       await PageObjects.console.enterText(`{\n\t"query": {`);
       await PageObjects.console.pressEnter();
       await PageObjects.console.sleepForDebouncePeriod();
       await PageObjects.console.promptAutocomplete();
-      expect(PageObjects.console.isAutocompleteVisible()).to.be.eql(true);
+      expect(false).to.be.eql(true);
     });

     it('should not show duplicate suggestions', async () => {
```

#### Then run the tests:
`TEST_BROWSER_HEADLESS=1 CI=1 node scripts/functional_tests
--config=test/functional/apps/console/config.ts --bail`

#### Then run the reporter to see the html file
`JOB_NAME=elastic+kibana+7.x node scripts/report_failed_tests
--build-url="${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}"
'target/junit/**/*.xml' --no-github-update --no-index-errors`

#### Lastly, inspect the HTML File
`grep elastic target/test_failures/*.html -B 2`
```
            <div>
                <strong>Owners</strong>:
                <pre>elastic/kibana-management</pre>
--
            </div>
            <div>
                     <a href="https://github.com/elastic/kibana/issues/156926">https://github.com/elastic/kibana/issues/156926</a>
--
              <h5>Stdout</h5>
              <pre>Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: elastic#156926

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: elastic#156926

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: elastic#156926
```

Notice the `<pre>elastic/kibana-management</pre>` in the output of grep

Also, you can continue verification of the ownership value, via: `node
scripts/get_owners_for_file.js --file
test/functional/apps/console/_autocomplete.ts`
```
 succ Found matching entry in .github/CODEOWNERS:
      test/functional/apps/console/*.ts elastic/kibana-management
```

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 82f0e2c)
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@wayneseymour wayneseymour merged commit fc6c64b into elastic:8.x Dec 20, 2024
11 checks passed
@wayneseymour wayneseymour deleted the backport/8.x/pr-203076 branch December 20, 2024 09:50
@wayneseymour
Copy link
Member Author

thanks @dmlemeshko !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants