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

[CI][Find Root Cause] Fix cant find ftr configs yaml fle #158375

Closed

Conversation

wayneseymour
Copy link
Member

@wayneseymour wayneseymour commented May 24, 2023

Summary

This pr is meant to be a starting point for finding the root cause of the problem.

Born from: #158072

Resolves: #156861

TLDR

For some reason, ci is trying to load .buildkite/ftr_configs.yml from .../elastic/kibana-pull-request/kibana-build-xpack

Not sure of the root cause, but this is a band-aid.
All the code does is try to load it normally, and if it fails, try to load it from one directory back.

How I check my progress

Currently I've added a double try-catch block as an exception based flow control.
It will try to load path A and if it fails, it loads path B; complete with verbose
logging of what happenned.

To view this, you've to discover which ci group the the config in question ran within.
To do that, I download / view the ftr_run_order.json file, from the Pick Test Group Run Order panel.
Within the json file, I search for x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner and the last time I did that, I saw the following stanza:

  "ftr_configs_54": {
    "title": "FTR Configs #55",
    "expectedDurationMin": 35.8,
    "names": [
      "x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts",
      "x-pack/test/api_integration/apis/kibana/config.ts"
    ]
  },

this means I now go look into the FTR Configs 55 panel's terminal output for:

node scripts/functional_tests --bail --config x-pack/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts

within the output, I also look for `### `(my personal preference for log prefixing 😉).  

The last time I look I did not see it, meaning the "normal path" was used.

Very Interesting: I did not see it this pr's terminal output, but I did see it in Patricks
Does that mean there is something in his PR???

Example of when the "Abnormal" execution path ran

The following thread shows this:
https://elastic.slack.com/archives/C5UDAFZQU/p1684926185982099?thread_ts=1683235279.695229&cid=C5UDAFZQU

Note: This research first began by piggybacking onto Patrick Mueller's PR

Patrick's PR: #156732

My Piggy Back PR: #158072

@wayneseymour wayneseymour added bug Fixes for quality problems that affect the customer experience buildkite-ci labels May 24, 2023
@wayneseymour wayneseymour self-assigned this May 24, 2023
@wayneseymour wayneseymour changed the title [CI] Fix cant find ftr configs yaml fle [CI][Find Root Cause] Fix cant find ftr configs yaml fle May 24, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test 6 7 +1
enterpriseSearch 19 21 +2
securitySolution 398 402 +4
total +7

Total ESLint disabled count

id before after diff
@kbn/test 6 7 +1
enterpriseSearch 20 22 +2
securitySolution 478 482 +4
total +7

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @wayneseymour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience buildkite-ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FTR][CI] CI cannot stat .../.kibana-pull-request/kibana-build-xpack/.buildkite/ftr_configs.yml
2 participants