Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fluent-package/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ gem "opensearch-ruby", "3.4.0"
gem "fluent-plugin-opensearch", "1.1.5"
gem "fluent-plugin-fluent-package-update-notifier", "0.1.0"
gem "fluent-plugin-obsolete-plugins", "0.1.1"
gem "fluent-plugin-opentelemetry", "0.2.0"

windows_platforms = [:mingw, :x64_mingw] # :mswin
# ffi-win32-extensions doesn't support ffi 1.17.1 or later
Expand Down
20 changes: 18 additions & 2 deletions fluent-package/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ GEM
faraday_middleware-aws-sigv4 (~> 1.0.1)
fluentd (>= 0.14.22)
opensearch-ruby (>= 3.0.1)
fluent-plugin-opentelemetry (0.2.0)
async-http (~> 0.88)
excon (~> 1.2)
fluentd (~> 1.18)
google-protobuf (~> 4.30)
fluent-plugin-parser-winevt_xml (0.2.8)
base64 (~> 0.2)
csv (~> 3.2)
Expand Down Expand Up @@ -205,6 +210,17 @@ GEM
fluent-plugin-windows-exporter (1.0.0)
bindata (~> 2.4)
fluentd (>= 0.14.10, < 2)
google-protobuf (4.31.1)
bigdecimal
rake (>= 13)
google-protobuf (4.31.1-x64-mingw-ucrt)
bigdecimal
rake (>= 13)
google-protobuf (4.31.1-x86_64-linux-gnu)
bigdecimal
rake (>= 13)
googleapis-common-protos-types (1.20.0)
google-protobuf (>= 3.18, < 5.a)
hirb (0.7.3)
http_parser.rb (0.8.0)
httpclient (2.9.0)
Expand Down Expand Up @@ -307,9 +323,8 @@ GEM
zstd-ruby (1.5.6.6)

PLATFORMS
aarch64-linux
x64-mingw-ucrt
x64-mingw32
x86_64-darwin-18
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -338,6 +353,7 @@ DEPENDENCIES
fluent-plugin-metrics-cmetrics (= 0.1.2)
fluent-plugin-obsolete-plugins (= 0.1.1)
fluent-plugin-opensearch (= 1.1.5)
fluent-plugin-opentelemetry (= 0.2.0)
fluent-plugin-parser-winevt_xml (= 0.2.8)
fluent-plugin-prometheus (= 2.2.1)
fluent-plugin-prometheus_pushgateway (= 0.2.1)
Expand Down
13 changes: 13 additions & 0 deletions fluent-package/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,19 @@ class BuildTask
remove_files("ports", true) if gem_dir.start_with?("#{gem_staging_dir}/gems/cmetrics-")
end
end

# Remove unnecessary precompiled libraries from fat gems
ruby_version = /(\d+\.\d+)/.match(BUNDLED_RUBY_VERSION).to_s
Dir.glob("#{gem_staging_dir}/gems/google-protobuf*").each do |gem_dir|
cd(gem_dir) do
Dir.glob("lib/google/*/protobuf_c.so").each do |so_path|
unless so_path.include?(ruby_version)
rm_f(so_path)
end
end
end
end

Dir.glob("#{fluent_package_staging_dir}/lib/lib*.a").each do |static_library|
unless static_library.end_with?(".dll.a")
rm_f(static_library)
Expand Down
2 changes: 1 addition & 1 deletion fluent-package/msi/pkgsize-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ catch {

$msi = (Get-Item "fluent-package\\msi\\repositories\\fluent-package-*.msi") | Sort-Object -Descending { $_.LastWriteTime } | Select-Object -First 1
"Checking package size: {0}" -F $msi.FullName | Write-Host
$package_size_threshold = $response.RawContentLength * 1.2
$package_size_threshold = $response.RawContentLength * 1.3
$previous_msi = (Get-Item $previous_msi_name)
"{0:0.0} MiB ({1}) {2}" -F ($previous_msi.Length / 1024 / 1024), $previous_msi.Length, $previous_msi.Name | Write-Host
"{0:0.0} MiB ({1}) {2}" -F ($msi.Length / 1024 / 1024), $msi.Length, $msi.Name | Write-Host
Expand Down