Skip to content

Commit 9f42823

Browse files
authored
Merge pull request #4 from mirelap-amazon/main
Fix unit test test_profiler_runner that was failing sometimes; updated README.
2 parents 3afb9dc + 64213b5 commit 9f42823

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ For more details, check the documentation: https://docs.aws.amazon.com/codeguru/
44

55
## How to use it
66

7-
This package is released to PyPI, so use it as any Python package from PyPI: https://pypi.org/project/codeguru-profiler-agent
7+
This package is being released to PyPI as [codeguru-profiler-agent](https://pypi.org/project/codeguru-profiler-agent), so use it as any Python package from PyPI.
88

99
For a demo application that uses this agent, check our [demo application](https://github.com/aws-samples/aws-codeguru-profiler-python-demo-application).
1010

11-
## Release to PyPI
11+
## How to contribute
12+
13+
Check the GitHub repository at [aws/amazon-codeguru-profiler-python-agent](https://github.com/aws/amazon-codeguru-profiler-python-agent).
14+
15+
See [CONTRIBUTING](CONTRIBUTING.md) for details.
16+
17+
## How to release to PyPI
1218

1319
Use the `setup.py` script to create the archive.
1420

@@ -18,5 +24,5 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform
1824

1925
## License
2026

21-
This project is licensed under the Apache-2.0 License.
27+
This project is licensed under the Apache-2.0 License. See [LICENSE](LICENSE) for details.
2228

test/unit/test_profiler_runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from test.pytestutils import before
44
from test.help_utils import wait_for
55
from mock import MagicMock
6+
from time import sleep
67

78
from codeguru_profiler_agent.profiler_runner import ProfilerRunner
89
from codeguru_profiler_agent.profiler_disabler import ProfilerDisabler
@@ -87,6 +88,7 @@ def test_when_orchestrator_says_no_to_profiler(self):
8788
self.profiler_runner.start()
8889
# still it is safer to wait until the new config has been applied
8990
wait_for(lambda: AgentConfiguration.get().reporting_interval.total_seconds() == 151)
91+
wait_for(lambda: self.profiler_runner.scheduler._get_next_delay_seconds() == 151)
9092

9193
assert self.profiler_runner.scheduler._get_next_delay_seconds() == 151
9294
self.mock_collector.add.assert_not_called()

0 commit comments

Comments
 (0)