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

Remove CI Composite Storybook #171258

Merged
merged 8 commits into from
Nov 21, 2023

Conversation

Ikuni17
Copy link
Contributor

@Ikuni17 Ikuni17 commented Nov 14, 2023

Summary

Closes #160803

This PR removes the CI Composite story because it has been broken since at least ac23dce (and possibly since b862a6c). The functionality is covered by the generated index.html in

const listHtml = storybooks
.map((storybook) => `<li><a href="${STORYBOOK_BASE_URL}/${storybook}">${storybook}</a></li>`)
.join('\n');
const html = `
<html>
<body>
<h1>Storybooks</h1>
<p><a href="${STORYBOOK_BASE_URL}/composite">Composite Storybook</a></p>
<h2>All</h2>
<ul>
${listHtml}
</ul>
</body>
</html>
`;

To fix the composite story requires generating stories.json for every storybook, which requires migrating the repo off the deprecated storiesOf API. That task is quite extensive and would be better handled alongside an upgrade to Storybook 7.x

@Ikuni17 Ikuni17 added release_note:skip Skip the PR/issue when compiling release notes backport:all-open Backport to all branches that could still receive a release labels Nov 14, 2023
@Ikuni17 Ikuni17 self-assigned this Nov 14, 2023
@Ikuni17 Ikuni17 changed the title Fix paths for CI Composite Storybook Remove CI Composite Storybook Nov 20, 2023
@Ikuni17 Ikuni17 marked this pull request as ready for review November 20, 2023 22:43
@Ikuni17 Ikuni17 requested a review from a team as a code owner November 20, 2023 22:43
@Ikuni17 Ikuni17 enabled auto-merge (squash) November 21, 2023 18:33
@Ikuni17 Ikuni17 merged commit 1919c87 into elastic:main Nov 21, 2023
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

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

cc @Ikuni17

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 21, 2023
## Summary
Closes elastic#160803

This PR removes the `CI Composite` story because it has been broken
since at least ac23dce (and possibly
since b862a6c). The functionality is
covered by the generated `index.html` in
https://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120

To fix the composite story requires generating `stories.json` for every
storybook, which requires migrating the repo off the deprecated
`storiesOf` API. That task is quite extensive and would be better
handled alongside an upgrade to Storybook 7.x

(cherry picked from commit 1919c87)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
7.17 Backport failed because of merge conflicts
8.11

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 171258

Questions ?

Please refer to the Backport tool documentation

@Ikuni17 Ikuni17 deleted the fix/160803/ci-composite-sb-path branch November 21, 2023 23:03
@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Nov 22, 2023

💚 All backports created successfully

Status Branch Result
7.17

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

Questions ?

Please refer to the Backport tool documentation

Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Nov 22, 2023
## Summary
Closes elastic#160803

This PR removes the `CI Composite` story because it has been broken
since at least ac23dce (and possibly
since b862a6c). The functionality is
covered by the generated `index.html` in
https://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120

To fix the composite story requires generating `stories.json` for every
storybook, which requires migrating the repo off the deprecated
`storiesOf` API. That task is quite extensive and would be better
handled alongside an upgrade to Storybook 7.x

(cherry picked from commit 1919c87)

# Conflicts:
#	.buildkite/scripts/steps/storybooks/build_and_upload.js
#	.ci/.storybook/main.js
#	src/dev/storybook/aliases.ts
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Nov 23, 2023
# Backport

This will backport the following commits from `main` to `8.11`:
- [Remove CI Composite Storybook
(elastic#171258)](elastic#171258)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-21T21:59:39Z","message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","ci:build-storybooks","v8.12.0"],"number":171258,"url":"https://github.com/elastic/kibana/pull/171258","mergeCommit":{"message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171258","number":171258,"mergeCommit":{"message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}}]}] BACKPORT-->

Co-authored-by: Brad White <[email protected]>
jsanz pushed a commit to jsanz/kibana that referenced this pull request Nov 28, 2023
# Backport

Manual backport due to merge conflicts.

This will backport the following commits from `main` to `7.17`:
- [Remove CI Composite Storybook
(elastic#171258)](elastic#171258)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-21T21:59:39Z","message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","ci:build-storybooks","v8.12.0"],"number":171258,"url":"https://github.com/elastic/kibana/pull/171258","mergeCommit":{"message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171258","number":171258,"mergeCommit":{"message":"Remove
CI Composite Storybook (elastic#171258)\n\n## Summary\r\nCloses
elastic#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce
(and possibly\r\nsince b862a6c). The
functionality is\r\ncovered by the generated `index.html`
in\r\nhttps://github.com/elastic/kibana/blob/dda4498fee84708143ce4671af880db785f9e652/.buildkite/scripts/steps/storybooks/build_and_upload.ts#L105-L120\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}},{"url":"https://github.com/elastic/kibana/pull/171695","number":171695,"branch":"8.11","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <[email protected]>
Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Dec 12, 2024
Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:all-open Backport to all branches that could still receive a release ci:build-storybooks release_note:skip Skip the PR/issue when compiling release notes v7.17.16 v8.11.2 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Composite Storybook fails to load stories
4 participants