Skip to content

[build] Use build sha instead of build number for CDN assets#176186

Merged
jbudz merged 9 commits intoelastic:mainfrom
jbudz:build/cdn-sha
Feb 9, 2024
Merged

[build] Use build sha instead of build number for CDN assets#176186
jbudz merged 9 commits intoelastic:mainfrom
jbudz:build/cdn-sha

Conversation

@jbudz
Copy link
Contributor

@jbudz jbudz commented Feb 2, 2024

#175898 updates routes to cache bust using the build checksum instead of build number. This updates the directory structure of the CDN assets archive accordingly.

kibana-8.13.0-SNAPSHOT-cdn-assets
└── e96cc061dd76
    ├── bundles
    │   ├── core
    │   ├── kbn-monaco
    │   ├── kbn-ui-shared-deps-npm
    │   ├── kbn-ui-shared-deps-src
    │   └── plugin
    └── ui
        ├── favicons
        ├── fonts
        ├── legacy_dark_theme.css
        ├── legacy_dark_theme.min.css
        ├── legacy_light_theme.css
        └── legacy_light_theme.min.css

11 directories, 4 files

@jbudz jbudz added Team:Operations Kibana-Operations Team release_note:skip Skip the PR/issue when compiling release notes ci:build-cdn-assets labels Feb 2, 2024
@jbudz
Copy link
Contributor Author

jbudz commented Feb 2, 2024

buildkite test this

@jbudz jbudz marked this pull request as ready for review February 7, 2024 14:37
@jbudz jbudz requested a review from a team as a code owner February 7, 2024 14:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@jbudz
Copy link
Contributor Author

jbudz commented Feb 7, 2024

buildkite test this

Comment on lines +26 to +27
// TODO: update to buildShaShort after https://github.com/elastic/kibana/pull/175898
const buildSha = config.getBuildSha().substring(0, 12);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update this since the PR is merged?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I pushed eb86b18

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@jbudz jbudz merged commit 6f4fe55 into elastic:main Feb 9, 2024
@kibanamachine kibanamachine added v8.13.0 backport:skip This PR does not require backporting labels Feb 9, 2024
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
…#176186)

elastic#175898 updates routes to cache
bust using the build checksum instead of build number. This updates the
directory structure of the CDN assets archive accordingly.

```
kibana-8.13.0-SNAPSHOT-cdn-assets
└── e96cc06
    ├── bundles
    │   ├── core
    │   ├── kbn-monaco
    │   ├── kbn-ui-shared-deps-npm
    │   ├── kbn-ui-shared-deps-src
    │   └── plugin
    └── ui
        ├── favicons
        ├── fonts
        ├── legacy_dark_theme.css
        ├── legacy_dark_theme.min.css
        ├── legacy_light_theme.css
        └── legacy_light_theme.min.css

11 directories, 4 files
```
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
…#176186)

elastic#175898 updates routes to cache
bust using the build checksum instead of build number. This updates the
directory structure of the CDN assets archive accordingly.

```
kibana-8.13.0-SNAPSHOT-cdn-assets
└── e96cc06
    ├── bundles
    │   ├── core
    │   ├── kbn-monaco
    │   ├── kbn-ui-shared-deps-npm
    │   ├── kbn-ui-shared-deps-src
    │   └── plugin
    └── ui
        ├── favicons
        ├── fonts
        ├── legacy_dark_theme.css
        ├── legacy_dark_theme.min.css
        ├── legacy_light_theme.css
        └── legacy_light_theme.min.css

11 directories, 4 files
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:build-cdn-assets release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v8.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants