-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add guidance for updating bundled packages in Kibana #733
Comments
cc @kpollich |
Hi Josh, thanks for raising the issue. Before we analyze this use case, let's first remind few assumptions about Package Storage v2:
Back to the issue:
Which step do you refer to? |
Understood, I updated the issue to remove the mention of stages. We currently pull from the snapshot registry. Is my understanding correct that once v2 storage is active, a published package will be in all registry stages or only the production one?
I don't see this really impacting this issue / workflow at this point. I do think we need some guidance on how to use prerelease packages for Stack BCs and then promote them to final versions for the final Stack BC(s). As of now, the only package that I am aware of that really requires this now is the APM package since they desire that their package version is always aligned with the Stack version. I'll work with them directly on this.
Too many s-named stages, got staging and snapshot mixed up. |
The final result would be a composition of packages from all stages, but there will be an option to skip/include prerelease ones. This is still a plan, but it will be consistent to expose the same Package Registry instance (unified stage) behind all endpoints - snapshot, staging, production).
I think this is a good topic for the Tech Leads weekly sync. I'm afraid that with the bundling feature, we tangled dependencies between all components. Maybe we shouldn't publish bundled packages to the registry at all? (probably a separate topic)
As the "publish" operation is mostly dedicated to the machine execution, I guess that we could open another PR to the Kibana repository, similarly as we open one for "snapshot". But I'm afraid that the devil is hidden in details, we can cover only these packages: elastic_agent, fleet_server, synthetics. Publishing of packages apm, endpoint is managed manually by their teams. I don't think they use the |
Since we created elastic/kibana#127974, I believe we can close this issue. Is there anything additional that we want to achieve with this GH issue? |
As of 8.2, Kibana ships some packages bundled in the Kibana release (see elastic/kibana#112095). As part of the release process, the
fleet_packages.json
file in the Kibana repo needs to be updated prior to the final BC for a release version. Currently, this is a manual process, but some assistance in the elastic-package CLI would go a long way to help. We could do something simple for now or go one step further to automate this process.Give guidance on how to manually update
It would be helpful to add guidance to the
elastic-package publish
command to help package owners be sure to update this file in the Kibana repo, when appropriate. This should show afterelastic-package publish
succeeds for a package in the following list:- apm, elastic_agent, fleet_server, synthetics, endpoint
We could show something like this in the stdout:
Automate opening a PR
Even better would be to open a PR against the Kibana repo for these changes, including against the correct release branch. One issue is that I think this would require asking the package owner for the intended Stack release version on the CLI or maybe we could use the
constraint.kibana.version
to infer this.The text was updated successfully, but these errors were encountered: