Skip to content

Commit

Permalink
Fixing test syncer metrics (#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorguidi authored Oct 23, 2024
1 parent f3da760 commit 24f9760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def test_flush(self):
'os_version': 'v5'
}
monitoring_metrics.BOT_COUNT.set(1, labels)
monitoring_metrics.CHROME_TEST_SYNCER_SUCCESS.increment()
monitor.utils.get_application_id = lambda: 'google.com:clusterfuzz'
os.environ['BOT_NAME'] = 'bot-1'
monitor._initialize_monitored_resource()
Expand Down
2 changes: 1 addition & 1 deletion src/python/other-bots/chromium-tests-syncer/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def main():
['gsutil', 'cp', tests_archive_local, tests_archive_remote])

logs.info('Completed cycle, sleeping for %s seconds.' % sync_interval)
monitoring_metrics.CHROME_TEST_SYNCER_SUCCESS.increment(1)
monitoring_metrics.CHROME_TEST_SYNCER_SUCCESS.increment()
time.sleep(sync_interval)


Expand Down

0 comments on commit 24f9760

Please sign in to comment.