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

Add metrics for first deploy success, provision latency #1426

Merged
merged 3 commits into from
Aug 3, 2024

Conversation

tylerwowen
Copy link
Contributor

@tylerwowen tylerwowen commented Jan 23, 2024

Add metrics for first deploy success, provision latency and deploy latency

Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@tylerwowen tylerwowen added the deploy-agent Includes changes to deploy-agent label Feb 2, 2024
@github-actions github-actions bot added deploy-service Includes changes to deploy-service and removed deploy-agent Includes changes to deploy-agent labels Feb 2, 2024
@tylerwowen tylerwowen changed the title Add infra latency etc. Add metrics for first deploy success, provision latency Feb 2, 2024
ntascii
ntascii previously approved these changes Feb 5, 2024
Base automatically changed from spr/master/9e058a5f to master February 6, 2024 21:05
@tylerwowen tylerwowen dismissed ntascii’s stale review February 6, 2024 21:05

The base branch was changed.

@tylerwowen tylerwowen force-pushed the spr/master/8fdb7dc7 branch 2 times, most recently from 2a35306 to 925544c Compare February 6, 2024 22:01
ntascii
ntascii previously approved these changes Feb 22, 2024
commit-id:8fdb7dc7

Fix condition for first deploy
@@ -51,7 +51,7 @@ public class DBHostDAOImpl implements HostDAO {
private static final String GET_GROUP_SIZE = "SELECT COUNT(host_id) FROM hosts WHERE group_name=?";
private static final String GET_ALL_HOSTS_BY_GROUP = "SELECT * FROM hosts WHERE group_name=? AND state!='TERMINATING'";
private static final String GET_HOST_BY_NAME = "SELECT * FROM hosts WHERE host_name=?";
private static final String GET_HOST_BY_HOSTID = "SELECT * FROM hosts WHERE host_id=?";
private static final String GET_HOST_BY_HOSTID = "SELECT * FROM hosts WHERE host_id=? ORDER BY create_date";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to update this?

Copy link
Contributor Author

@tylerwowen tylerwowen Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The current order is indeterministic. The new usage bellow will benefit from the ordering. I also checked code references and no existing code depends on the order of this query.

osoriano
osoriano previously approved these changes Jul 30, 2024
@tylerwowen tylerwowen merged commit 2c4e493 into master Aug 3, 2024
6 checks passed
@tylerwowen tylerwowen deleted the spr/master/8fdb7dc7 branch August 3, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy-service Includes changes to deploy-service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants