-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
octo-logger-cpp: update checksum for 1.12.0 #24429
Conversation
Conan v1 pipeline ✔️All green in build 1 (
Conan v2 pipeline ✔️
All green in build 1 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @toge!
Leaving this pending internal verification - hopefully we are able to compare the changes against a backed up copy of the original file contents.
Please note that we will not accept checksum changes without verifying what changed - if we did, we may as well not use checksums at all!
Things to look out for:
- it could be a malicious change if the account of the maintainers is compromised
- it could be a benign change that causes breakages, for example:
- it's source incompatible with the previously published version
- downstream consumers are binary incompatible - a big problem when consuming the shared library (we would have two of the same version, but they wouldn;'t be compatible and the package_id mechanisms can't reflect this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed code
diff -bur old new
diff --color=auto -bur old/src/aws/cloudwatch-sink.cpp new/src/aws/cloudwatch-sink.cpp
--- old/src/aws/cloudwatch-sink.cpp 2024-06-13 08:08:09
+++ new/src/aws/cloudwatch-sink.cpp 2024-06-16 08:04:14
@@ -83,6 +83,22 @@
if (std::find(existing_log_streams_.begin(), existing_log_streams_.end(), log_stream_name) ==
existing_log_streams_.end())
{
+ Aws::CloudWatchLogs::Model::DescribeLogStreamsRequest describe_log_streams;
+ describe_log_streams.SetLogGroupName(log_group_name_.c_str());
+ describe_log_streams.SetLogStreamNamePrefix(log_stream_name.c_str());
+ auto const describe_outcome = aws_cloudwatch_client_->DescribeLogStreams(describe_log_streams);
+ if (describe_outcome.IsSuccess())
+ {
+ const auto& log_streams = describe_outcome.GetResult().GetLogStreams();
+ for (const auto& log_stream : log_streams)
+ {
+ if (log_stream.GetLogStreamName() == log_stream_name)
+ {
+ existing_log_streams_.insert(log_stream_name);
+ return;
+ }
+ }
+ }
Aws::CloudWatchLogs::Model::CreateLogStreamRequest create_log_stream;
create_log_stream.WithLogGroupName(log_group_name_.c_str()).WithLogStreamName(log_stream_name.c_str());
auto const outcome = aws_cloudwatch_client_->CreateLogStream(create_log_stream);
Please note that it 1.12.0 does not appear to be a release yet: https://github.com/ofiriluz/octo-logger-cpp/releases so maybe the maintainers are updating the tag until it is. furthermore, this is the second time we have a checksum issue: #24308 I can see that this will continue being a problem until 1.12.0 is actually released. Under what conditions was 1.12.0 considered a release? The presence of the tag? |
@jcar87 @RubenRBS I have updated this recipe as the 1.12.0 tag has been added. |
Thanks @toge ! We can probably invalidate all packages in the Any ideas @RubenRBS ?? |
I suggest removing support for this version as v2.0.0 #24743 has been released and it is getting merged soon. |
Oh, I forget my old work. |
Summary
Changes to recipe: octo-logger-cpp/1.12.0
Motivation
tar ball of 1.12.0 is updated.
Details