Skip to content
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

Bump version to 2.21.1 #265

Merged
merged 1 commit into from
Nov 1, 2021
Merged

Bump version to 2.21.1 #265

merged 1 commit into from
Nov 1, 2021

Conversation

matthewfala
Copy link
Contributor

@matthewfala matthewfala commented Oct 29, 2021

Signed-off-by: Matthew Fala [email protected]

This build relies on a branch on my fork which contains 1.8.9 + the same commits we cherry-picked into the last release for the TLS and mbedtls fixes: https://github.com/matthewfala/fluent-bit/tree/1_8_9_patch

# Apply Fluent Bit TLS and mbedtls Patch
git fetch https://github.com/krispraws/fluent-bit.git tls_net_read_fix \
  && git cherry-pick 8d1cfeb5ba830b360fe6e1228190ed900842a3ea; \
git fetch https://github.com/zhonghui12/fluent-bit.git custom-1.8.7 \
  && git cherry-pick 30fc6305695623cbc95d51df07ae185dfec8bff2

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@matthewfala matthewfala requested a review from a team as a code owner October 29, 2021 01:52
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
RUN git fetch origin && git checkout 1_8_8_patch && git status
RUN git fetch origin && git checkout 1_8_9_patch && git status
RUN cmake -DFLB_RELEASE=On \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could technically apply the patch in Docker after the git clone instead of doing a branch checkout via:

git fetch https://github.com/krispraws/fluent-bit.git tls_net_read_fix \
  && git cherry-pick 8d1cfeb5ba830b360fe6e1228190ed900842a3ea; \
git fetch https://github.com/zhonghui12/fluent-bit.git custom-1.8.7 \
  && git cherry-pick 30fc6305695623cbc95d51df07ae185dfec8bff2

I am afraid of doing this because there wouldn't be a good way to verify that the commits were successfully applied.

Copy link
Contributor

Choose a reason for hiding this comment

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

yea doing it via a pre-prepped branch that the code reviewer can check is better

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer current approach. We can do all the testing beforehand. Reviewer can go to that specific branch and check all the changes. One branch for one release sounds logical.

CHANGELOG.md Outdated
Comment on lines 11 to 17
Compared to `2.21.0` this release adds:
* Bug - Fix return value from `tls_net_read` [fluentbit:4098](https://github.com/fluent/fluent-bit/issues/4098)
* Bug - Downgrade `mbedtls` to 2.24.0 to fix the performance regression issue in `mbedtls` 2.26.0 [fluentbit:4110](https://github.com/fluent/fluent-bit/issues/4110)
Copy link
Contributor

Choose a reason for hiding this comment

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

the "Compared to 2.21.0" is wrong/misleading since we added these commits in the last release as well. I think we need a special statement on this like, "Same as 2.21.0, this release includes the following fixes for AWS customers that we are working on getting accepted upstream"

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if we want to mention this: avoid double free for multiline buffer fix- fluent/fluent-bit#4243

Copy link
Contributor

Choose a reason for hiding this comment

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

there's an AWS for Fluent Bit issue for that one, so let's mention it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you Rayhan and Wesley. I'll keep the "Compared to" version, and add the bug fix @hossain-rayhan mentioned.

CHANGELOG.md Outdated
@@ -1,5 +1,17 @@
# Changelog

### 2.22.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be a patch release? 2.21.1? I don't see any changes which are relevant to AWS customers which are non-bug fixes.

Also, I think the release notes should reference this issue: fluent/fluent-bit#3886

Which TONS of our customers have been waiting for to be fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

But this is a new Fluent Bit version, right? So, I think we upgraded minor version for this earlier? Maybe 2.22.0 is OK.

Copy link
Contributor

Choose a reason for hiding this comment

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

But this is a new Fluent Bit version, right?

Yes but its a new patch version.

Though strictly speaking that doesn't mean anything much since upstream doesn't follow SemVer.

However, in our distro, we try to follow SemVer, at least changes that pertain to AWS customers. Hence this means:

  • Patch bump: from the POV of our customers, there are only bug fixes
  • Minor bump: from the POV of our customers, there are net new features

This allows our customers to immediately know roughly how different this version is from the last one using the number alone.

In this case, AFAICT, this should be a patch bump, since there are only bug fixes for our customers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. 2.21.1 it is.

@matthewfala matthewfala changed the title Bump version to 2.22.0 Bump version to 2.21.1 Oct 29, 2021
Copy link
Contributor Author

@matthewfala matthewfala left a comment

Choose a reason for hiding this comment

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

Revision diff

$ git diff
diff --git a/AWS_FOR_FLUENT_BIT_VERSION b/AWS_FOR_FLUENT_BIT_VERSION
index f1270b4..bd9c559 100644
--- a/AWS_FOR_FLUENT_BIT_VERSION
+++ b/AWS_FOR_FLUENT_BIT_VERSION
@@ -1 +1 @@
-2.22.0
\ No newline at end of file
+2.21.1
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4d7dc1f..ed93fe2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
 # Changelog
 
-### 2.22.0
+### 2.21.1
 This release includes:
 * An Amazon Linux 2 Base
 * Fluent Bit [1.8.9](https://fluentbit.io/announcements/v1.8.9/)
@@ -9,6 +9,7 @@ This release includes:
 * Amazon Kinesis Firehose for Fluent Bit 1.6.1
 
 Compared to `2.21.0` this release adds:
+* Bug - Avoid double free for multiline buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
 * Bug - Fix return value from `tls_net_read` [fluentbit:4098](https://github.com/fluent/fluent-bit/issues/4098)
 * Bug - Downgrade `mbedtls` to 2.24.0 to fix the performance regression issue in `mbedtls` 2.26.0 [fluentbit:4110](https://github.com/fluent/fluent-bit/issues/4110)

2.21.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to 2.21.1

@@ -1,5 +1,18 @@
# Changelog

### 2.21.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to 2.21.1

CHANGELOG.md Outdated
* Amazon Kinesis Firehose for Fluent Bit 1.6.1

Compared to `2.21.0` this release adds:
* Bug - Avoid double free for multiline buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added bug fix report

* Amazon Kinesis Streams for Fluent Bit 1.8.0
* Amazon Kinesis Firehose for Fluent Bit 1.6.1

Compared to `2.21.0` this release adds:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kept "Compared to..." since we have an actual bug fix from @hossain-rayhan

Copy link
Contributor

Choose a reason for hiding this comment

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

yea but the compared too isn't true for the other ones. So Its still a lie. I think we should change the language for the 2 fixes we keep adding in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh okay. I see. Will fix.

Copy link
Contributor Author

@matthewfala matthewfala left a comment

Choose a reason for hiding this comment

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

Second diff

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed93fe2..e71ab37 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,7 +9,10 @@ This release includes:
 * Amazon Kinesis Firehose for Fluent Bit 1.6.1
 
 Compared to `2.21.0` this release adds:
-* Bug - Avoid double free for multiline buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
+* Bug - Avoid double free for multiline msgpack buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
+* Bug - On Multiline handling, use file inode as stream_id [fluentbit:3886](https://github.com/fluent/fluent-bit/issues/3886)
+
+Same as `2.21.0`, this release includes the following fixes for AWS customers that we are working on getting accepted upstream:
 * Bug - Fix return value from `tls_net_read` [fluentbit:4098](https://github.com/fluent/fluent-bit/issues/4098)
 * Bug - Downgrade `mbedtls` to 2.24.0 to fix the performance regression issue in `mbedtls` 2.26.0 [fluentbit:4110](https://github.com/fluent/fluent-bit/issues/4110)

* Bug - Avoid double free for multiline msgpack buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
* Bug - On Multiline handling, use file inode as stream_id [fluentbit:3886](https://github.com/fluent/fluent-bit/issues/3886)

Same as `2.21.0`, this release includes the following fixes for AWS customers that we are working on getting accepted upstream:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alter format of AWS image specific patch callout


Compared to `2.21.0` this release adds:
* Bug - Avoid double free for multiline msgpack buffer [fluentbit:4243](https://github.com/fluent/fluent-bit/pull/4243)
* Bug - On Multiline handling, use file inode as stream_id [fluentbit:3886](https://github.com/fluent/fluent-bit/issues/3886)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add Multiline handling bug fix callout

@zhonghui12
Copy link
Contributor

The commit message needs to be updated to Bump version to 2.21.1 as well

Signed-off-by: Matthew Fala <[email protected]>
@matthewfala matthewfala merged commit af403de into aws:mainline Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants