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

Use the old deploy status metric #1245

Merged
merged 2 commits into from
Aug 31, 2023
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
2 changes: 1 addition & 1 deletion deploy-agent/deployd/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _send_deploy_status_stats(self, deploy_report):
if deploy_report.status_code:
tags['status_code'] = deploy_report.status_code

create_sc_increment('deployd.stats.deploy.status', tags=tags)
create_sc_increment('deployd.stats.deploy.status.sum', tags=tags)

def serve_build(self):
"""This is the main function of the ``DeployAgent``.
Expand Down
2 changes: 1 addition & 1 deletion deploy-agent/tests/unit/deploy/server/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def test_send_deploy_status(self, mock_create_sc):
agent = DeployAgent(client=client, estatus=estatus, conf=self.config,
executor=self.executor, helper=self.helper)
agent.serve_build()
mock_create_sc.assert_called_once_with('deployd.stats.deploy.status', tags={
mock_create_sc.assert_called_once_with('deployd.stats.deploy.status.sum', tags={
'first_run': False, 'deploy_stage': 'PRE_DOWNLOAD', 'env_name': 'abc', 'stage_name': 'beta', 'status_code': 'SUCCEEDED'})
self.assertEqual(agent._curr_report.report.deployStage, DeployStage.PRE_DOWNLOAD)
self.assertEqual(agent._curr_report.report.status, AgentStatus.SUCCEEDED)
Expand Down
5 changes: 2 additions & 3 deletions deploy-agent/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py36,py37,py38,py39
envlist=py36,py38
recreate=True

[flake8]
Expand All @@ -13,6 +13,5 @@ commands=py.test --cov=deployd {posargs}
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39

Loading