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

[Auto Import] Make sure the committed schema is generated #195302

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

ilyannn
Copy link
Contributor

@ilyannn ilyannn commented Oct 7, 2024

Summary

Previously our schema and .gen files were not in sync, in the sense that

git checkout main && yarn kbn bootstrap && node scripts/generate_openapi --rootDir ./x-pack/plugins/integration_assistant && git diff

returned a non-trivial diff, despite the implementation in #193243:

image

In this PR we

  • add missing additionalProperties to the schema;
  • generate and commit exactly the generated files.

There don't seem to be any effects from the change from passthrough to catchall.

Tested: ai_teleport_202410072045-1.0.0.zip

@ilyannn ilyannn added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:Security-Scalability Team label for Security Integrations Scalability Team Feature:AutomaticImport labels Oct 7, 2024
@ilyannn ilyannn marked this pull request as ready for review October 7, 2024 17:53
@ilyannn ilyannn requested a review from a team as a code owner October 7, 2024 17:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-scalability (Team:Security-Scalability)

@ilyannn ilyannn self-assigned this Oct 7, 2024
@ilyannn ilyannn added backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development and removed backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 7, 2024
@ilyannn ilyannn enabled auto-merge (squash) October 7, 2024 18:36
@ilyannn ilyannn merged commit 1599e4f into elastic:main Oct 7, 2024
23 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.x

https://github.com/elastic/kibana/actions/runs/11222863617

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #14 / query tab with unified timeline Leading actions - notes securitySolutionNotesEnabled = true should have the notification dot & correct tooltip

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
integrationAssistant 948.9KB 948.9KB +22.0B

History

cc @ilyannn

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2024
…5302)

## Summary

Previously our schema and `.gen` files were not in sync, in the sense that

```
git checkout main && yarn kbn bootstrap && node scripts/generate_openapi --rootDir ./x-pack/plugins/integration_assistant && git diff
```

returned a non-trivial diff, despite the implementation in elastic#193243.

In this PR we

- add missing additionalProperties to the schema;
- generate and commit exactly the generated files.

There don't seem to be any effects from the change from `passthrough` to
`catchall`.

Tested with Teleport (see GitHub).

(cherry picked from commit 1599e4f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 7, 2024
…5302)

## Summary

Previously our schema and `.gen` files were not in sync, in the sense that

```
git checkout main && yarn kbn bootstrap && node scripts/generate_openapi --rootDir ./x-pack/plugins/integration_assistant && git diff
```

returned a non-trivial diff, despite the implementation in elastic#193243.

In this PR we

- add missing additionalProperties to the schema;
- generate and commit exactly the generated files.

There don't seem to be any effects from the change from `passthrough` to
`catchall`.

Tested with Teleport (see GitHub).

(cherry picked from commit 1599e4f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@ilyannn ilyannn deleted the auto-import/regenerate-schemas branch October 7, 2024 20:22
kibanamachine added a commit that referenced this pull request Oct 7, 2024
…5302) (#195314)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Auto Import] Make sure the committed schema is generated
(#195302)](#195302)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ilya
Nikokoshev","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T19:47:43Z","message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Auto
Import] Make sure the committed schema is
generated","number":195302,"url":"https://github.com/elastic/kibana/pull/195302","mergeCommit":{"message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195302","number":195302,"mergeCommit":{"message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148"}}]}]
BACKPORT-->

Co-authored-by: Ilya Nikokoshev <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 7, 2024
) (#195315)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Auto Import] Make sure the committed schema is generated
(#195302)](#195302)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ilya
Nikokoshev","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T19:47:43Z","message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Auto
Import] Make sure the committed schema is
generated","number":195302,"url":"https://github.com/elastic/kibana/pull/195302","mergeCommit":{"message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195302","number":195302,"mergeCommit":{"message":"[Auto
Import] Make sure the committed schema is generated (#195302)\n\n##
Summary\r\n\r\nPreviously our schema and `.gen` files were not in sync,
in the sense that\r\n\r\n```\r\ngit checkout main && yarn kbn bootstrap
&& node scripts/generate_openapi --rootDir
./x-pack/plugins/integration_assistant && git
diff\r\n```\r\n\r\nreturned a non-trivial diff, despite the
implementation in
https://github.com/elastic/kibana/issues/193243.\r\n\r\nIn this PR
we\r\n\r\n- add missing additionalProperties to the schema;\r\n-
generate and commit exactly the generated files.\r\n\r\nThere don't seem
to be any effects from the change from `passthrough`
to\r\n`catchall`.\r\n\r\nTested with Teleport (see
GitHub).","sha":"1599e4f61b3e5caf60730be5a2def73f6d603148"}}]}]
BACKPORT-->

Co-authored-by: Ilya Nikokoshev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development Feature:AutomaticImport release_note:skip Skip the PR/issue when compiling release notes Team:Security-Scalability Team label for Security Integrations Scalability Team v8.15.3 v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants