Skip to content

Deprecate the release tag#256

Merged
jsoriano merged 11 commits intoelastic:mainfrom
jsoriano:deprecate-release-tag
Feb 3, 2022
Merged

Deprecate the release tag#256
jsoriano merged 11 commits intoelastic:mainfrom
jsoriano:deprecate-release-tag

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Jan 11, 2022

What does this PR do?

Deprecate the release attribute from package manifests.

Make it optional, and considered GA when not set.

Semver pre-release tags should be used after this change to publish non-ga versions. See #225

Why is it important?

To simplify the declaration of packages in different stages, see #225.

Checklist

Related issues

It is optional now, and considered GA when not set.

Semver pre-release tags should be used now to publish non-ga versions.
See elastic#225
@jsoriano jsoriano added the Team:Ecosystem Label for the Packages Ecosystem team label Jan 11, 2022
@jsoriano jsoriano self-assigned this Jan 11, 2022
@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Jan 11, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Reason: null

  • Start Time: 2022-02-03T09:47:13.534+0000

  • Duration: 4 min 43 sec

  • Commit: bfd5ee8

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@jsoriano jsoriano marked this pull request as ready for review January 11, 2022 17:18
@jsoriano jsoriano requested a review from a team as a code owner January 11, 2022 17:18
@jsoriano
Copy link
Copy Markdown
Member Author

Mergify issue to be solved in #257.

mtojek
mtojek previously approved these changes Jan 12, 2022
@@ -1,6 +1,5 @@
title: Nginx access logs
type: logs
release: experimental
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is the release tag is removed everywhere now, is there a way to test the "deprecation" part?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The release tag is still present in other packages being tested, I only removed it from the "good" one.

@@ -1,6 +1,5 @@
title: Data stream using Kubernetes service deployer for tests
type: logs
release: experimental
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I might be lost in the other email thread, but I assume we agreed on keeping the data stream release tag, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I removed the deprecation (in 366c8d6), but it is still optional. I wanted to be sure that we have test cases with good packages without the tag.

@v1v
Copy link
Copy Markdown
Member

v1v commented Jan 24, 2022

/test

@jsoriano
Copy link
Copy Markdown
Member Author

jsoriano commented Feb 2, 2022

@mtojek I have implemented the recent decision of limiting the allowed prerelease tags as a semantic validator, please take a look.

I considered modifying the regular expression instead, but I would prefer to leave this regular expression as is to validate semver according to the spec, and our conventions are easier to maintain as a semantic validator. We can also provide better feedback to users this way.

mtojek
mtojek previously approved these changes Feb 3, 2022
Copy link
Copy Markdown
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM!

type: enhancement
link: https://github.com/elastic/package-spec/pull/256
- description: Restrict the allowed prerelease labels in sematic versions.
type: breaking-change
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Ecosystem Label for the Packages Ecosystem team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants