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

CASMTRIAGE-7019: BOS reporter RPM: Add bos.common dependency, remove __pycache__ #319

Merged
merged 1 commit into from
May 30, 2024
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.18.1] - 2024-05-30
### Changed
- Remove `__pycache__` directories from BOS reporter RPM

### Fixed
- Include `bos.common` dependency in BOS reporter RPM

## [2.18.0] - 2024-05-22
### Changed
- Increase memory requests and limits for BOS pods, to prevent OOM kill issues seen at scale.
Expand Down
6 changes: 5 additions & 1 deletion bos-reporter.spec.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2021-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -67,6 +67,8 @@ mkdir -p ${RPM_BUILD_ROOT}%{_systemdsvcdir}
cp bos/reporter/etc/bos-reporter.service %{buildroot}/%{_systemdsvcdir}/bos-reporter.service
chmod +x %{buildroot}/%{python3_sitelib}/bos/reporter/status_reporter/__main__.py
popd
# Remove __pycache__ directories that we don't want in the RPM
find %{buildroot}/%{python3_sitelib}/bos -type d -name __pycache__ -exec rm -rvf {} \; -prune

%clean
rm -rf %{buildroot}
Expand All @@ -75,6 +77,8 @@ rm -rf %{buildroot}
%defattr(-,root,root)

%dir %{python3_sitelib}/bos
%{python3_sitelib}/bos/__init__.py
%{python3_sitelib}/bos/common
%{python3_sitelib}/bos/reporter
%{_systemdsvcdir}/bos-reporter.service

Expand Down
Loading