Skip to content

Commit

Permalink
CASMTRIAGE-7019: BOS reporter RPM: Add bos.common dependency, remove …
Browse files Browse the repository at this point in the history
…__pycache__
  • Loading branch information
mharding-hpe committed May 30, 2024
1 parent 6e6c9c1 commit 222a8a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit 222a8a0

Please sign in to comment.