Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Remove packages as master is not production anymore #116

Merged
merged 2 commits into from
Jul 3, 2020

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Jul 2, 2020

As part of #86 the master branch will not be used anymore. By now, all packages have been moved over to the production branch and it is ready to be deployed under epr.elastic.co. All future contributions of packages should go to the production branch or as soon as staging and snapshot deployment are fully available + promotion script, follow the new process.

This PR removes all packages and big junk of the code. Further cleanup will be needed. The goal of this PR is to make sure this registry is not used anymore moving forward.

@ruflin ruflin self-assigned this Jul 2, 2020
@ruflin
Copy link
Contributor Author

ruflin commented Jul 2, 2020

Only opening as draft at the moment as I'm pretty sure there will be also other side effects in the integrations and package-registry repo that first need to be sorted out. @mtojek FYI

ruflin added a commit to ruflin/package-registry that referenced this pull request Jul 2, 2020
As the master branch will not contain any packages anymore in the future, the packages used to run the registry locally must be adjusted. See elastic/package-storage#116 for more details.
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 2, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #116 updated]

  • Start Time: 2020-07-03T08:06:59.627+0000

  • Duration: 4 min 42 sec

Steps errors

Expand to view the steps failures

  • Name: Checks formatting / linting
    • Description: mage -debug check

    • Duration: 0 min 2 sec

    • Start Time: 2020-07-03T08:10:37.565+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/bypasssafe.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/common.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/config.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/doc.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/dump.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/format.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/davecgh/go-spew/spew/spew.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/.editorconfig: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/.gitignore: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/.travis.yml: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/CHANGELOG.md: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/LICENSE: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/README.md: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/doc.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/error.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/errpred.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/fieldset.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/getset.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/initializer.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/merge.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/opts.go: needs update
[2020-07-03T08:10:39.632Z] vendor/github.com/elastic/go-ucfg/parse/parse.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/path.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/reify.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/types.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/ucfg.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/unpack.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/util.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/validator.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/variables.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/go-ucfg/yaml/yaml.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/LICENSE.txt: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/NOTICE.txt: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/dataset.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/helper.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/mapstr.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/package.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/package_watcher.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/elastic/package-registry/util/packages.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/.gitignore: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/.travis.yml: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/LICENSE: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/Makefile: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/README.md: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/appveyor.yml: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/errors.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/go113.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pkg/errors/stack.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pmezard/go-difflib/LICENSE: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/pmezard/go-difflib/difflib/difflib.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/.travis.yml: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/LICENSE: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/README.md: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/ishidden.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/ishidden_windows.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/samefile.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/samefile_windows.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/radovskyb/watcher/watcher.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/LICENSE: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertion_format.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertion_forward.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertion_order.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/assertions.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/doc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/errors.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/forward_assertions.go: needs update
[2020-07-03T08:10:39.633Z] vendor/github.com/stretchr/testify/assert/http_assertions.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/.travis.yml: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/LICENSE: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/LICENSE.libyaml: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/NOTICE: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/README.md: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/apic.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/decode.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/emitterc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/encode.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/go.mod: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/parserc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/readerc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/resolve.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/scannerc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/sorter.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/writerc.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/yaml.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/yamlh.go: needs update
[2020-07-03T08:10:39.633Z] vendor/gopkg.in/yaml.v2/yamlprivateh.go: needs update
[2020-07-03T08:10:39.633Z] vendor/modules.txt: needs update
[2020-07-03T08:10:39.633Z] Error: running "git update-index --refresh" failed with exit code 1
[2020-07-03T08:10:39.795Z] Stage "Build" skipped due to earlier failure(s)
[2020-07-03T08:10:39.857Z] Stage "TestIntegration" skipped due to earlier failure(s)
[2020-07-03T08:10:40.789Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_package-storage_PR-116
[2020-07-03T08:10:41.099Z] [INFO] getVaultSecret: Getting secrets
[2020-07-03T08:10:41.361Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-03T08:10:42.067Z] + chmod 755 generate-build-data.sh
[2020-07-03T08:10:42.067Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/package-storage/PR-116/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/package-storage/PR-116/runs/2 FAILURE 222170
[2020-07-03T08:10:42.067Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/package-storage/PR-116/runs/2/steps/?limit=10000 -o steps-info.json
[2020-07-03T08:10:42.424Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/package-storage/PR-116/runs/2/tests/?status=FAILED -o tests-errors.json
[2020-07-03T08:10:43.046Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/package-storage/PR-116/runs/2/log/ -o pipeline-log.txt

ruflin added a commit to elastic/package-registry that referenced this pull request Jul 2, 2020
As the master branch will not contain any packages anymore in the future, the packages used to run the registry locally must be adjusted. See elastic/package-storage#116 for more details.
As part of elastic#86 the master branch will not be used anymore. By now, all packages have been moved over to the production branch and it is ready to be deployed under `epr.elastic.co`. All future contributions of packages should go to the production branch or as soon as staging and snapshot deployment are fully available + promotion script, follow the new process.

This PR removes all packages and big junk of the code. Further cleanup will be needed. The goal of this PR is to make sure this registry is not used anymore moving forward.
@ruflin ruflin force-pushed the remove-packages-from-master branch from 80dbf6e to c399eef Compare July 3, 2020 08:06
@ruflin ruflin marked this pull request as ready for review July 3, 2020 08:07
@ruflin
Copy link
Contributor Author

ruflin commented Jul 3, 2020

Opened for review as I think all the dependencies in package-registry should be removed now.

@mtojek
Copy link
Contributor

mtojek commented Jul 3, 2020

I was wondering if this is the moment, when the entire master branch can be deleted?

@ruflin
Copy link
Contributor Author

ruflin commented Jul 3, 2020

@mtojek My thinking was that the master/main branch will become more a landing page of this repository. Explaining the branches and who things are promoted etc. Lets get first this PR in to make sure the branch is not used for packages anymore and then follow up.

@mtojek
Copy link
Contributor

mtojek commented Jul 3, 2020

We can also consider a different approach here - add explanation to README files and set "production" as default branch.

@mtojek mtojek self-requested a review July 3, 2020 08:36
@ruflin ruflin merged commit d036619 into elastic:master Jul 3, 2020
@ruflin ruflin deleted the remove-packages-from-master branch July 3, 2020 08:43
@ruflin
Copy link
Contributor Author

ruflin commented Jul 3, 2020

I filed as a follow up so we don't forget: #120

thomasneirynck pushed a commit to thomasneirynck/package-storage that referenced this pull request Sep 28, 2021
Before all endpoints had the same cache time. But search and categories should have a shorter cache time then the catchAll endpoint which serves the static files.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants