Skip to content

Commit

Permalink
[8.x] [ci] Work around docosaurus errors (#206097) (#206150)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ci] Work around docosaurus errors
(#206097)](#206097)

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

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-09T22:33:30Z","message":"[ci]
Work around docosaurus errors (#206097)\n\n## Summary\nThis workaround
removes the folder that needs to be built differently\nafter cloning the
repos.\n\nSee:
https://github.com/elastic/kibana/issues/206077","sha":"b3b81331b5cc7a52d31ecdaed847b0a03fe48729","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-major","ci:build-next-docs"],"title":"[ci]
Work around docosaurus
errors","number":206097,"url":"https://github.com/elastic/kibana/pull/206097","mergeCommit":{"message":"[ci]
Work around docosaurus errors (#206097)\n\n## Summary\nThis workaround
removes the folder that needs to be built differently\nafter cloning the
repos.\n\nSee:
https://github.com/elastic/kibana/issues/206077","sha":"b3b81331b5cc7a52d31ecdaed847b0a03fe48729"}},"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/206097","number":206097,"mergeCommit":{"message":"[ci]
Work around docosaurus errors (#206097)\n\n## Summary\nThis workaround
removes the folder that needs to be built differently\nafter cloning the
repos.\n\nSee:
https://github.com/elastic/kibana/issues/206077","sha":"b3b81331b5cc7a52d31ecdaed847b0a03fe48729"}}]}]
BACKPORT-->

Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
kibanamachine and delanni authored Jan 10, 2025
1 parent 362498b commit 4c2729f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/kbn-validate-next-docs-cli/validate_next_docs_cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ run(
sources.map(async (source): Promise<Source> => {
const repo = await repos.init(source.location);

// TODO: Remove this, once https://github.com/elastic/kibana/issues/206077 is resolved
if (source.location === 'elastic/kibana-team') {
log.info(
'Removing internal.kibana.dev from elastic/kibana-team - see https://github.com/elastic/kibana/issues/206077 for more details.'
);
await repo.run('rm', ['-rf', 'internal.kibana.dev'], { desc: 'rm internal.kibana.dev' });
}

return {
type: 'file',
location: repo.resolve(),
Expand Down

0 comments on commit 4c2729f

Please sign in to comment.