1616
1717
1818def generate_artifacts_table_grafana_redis (
19- args ,
19+ push_results_redistimeseries ,
2020 grafana_profile_dashboard ,
2121 profile_artifacts ,
22- rts ,
22+ redis_conn ,
2323 setup_name ,
2424 start_time_ms ,
2525 start_time_str ,
@@ -103,30 +103,30 @@ def generate_artifacts_table_grafana_redis(
103103 test_name ,
104104 profile_id ,
105105 )
106- if args . push_results_redistimeseries :
106+ if push_results_redistimeseries :
107107 current_time = time .time () * 1000
108108 timeframe_by_branch = current_time - EXPIRE_TIME_MSECS_PROFILE_KEYS
109- rts .zadd (
109+ redis_conn .zadd (
110110 zset_profiles_setups_testcases_branches ,
111111 {tf_github_branch : start_time_ms },
112112 )
113- rts .zadd (
113+ redis_conn .zadd (
114114 zset_profiles_setups_testcases_branches_latest_link ,
115115 {https_link : start_time_ms },
116116 )
117- rts .zadd (
117+ redis_conn .zadd (
118118 zset_profiles_setup ,
119119 {setup_name : start_time_ms },
120120 )
121- rts .zadd (
121+ redis_conn .zadd (
122122 zset_profiles_setups_testcases ,
123123 {test_name : start_time_ms },
124124 )
125- rts .zadd (
125+ redis_conn .zadd (
126126 zset_profiles_setups_testcases_profileid ,
127127 {profile_id : start_time_ms },
128128 )
129- rts .zadd (
129+ redis_conn .zadd (
130130 zset_profiles ,
131131 {profile_id : start_time_ms },
132132 )
@@ -138,11 +138,11 @@ def generate_artifacts_table_grafana_redis(
138138 zset_profiles_setups_testcases_branches_latest_link ,
139139 ]
140140 for keyname in sorted_set_keys :
141- rts .zremrangebyscore (keyname , 0 , int (timeframe_by_branch ))
141+ redis_conn .zremrangebyscore (keyname , 0 , int (timeframe_by_branch ))
142142
143- rts .sadd (profile_set_redis_key , test_name )
144- rts .expire (profile_set_redis_key , EXPIRE_TIME_SECS_PROFILE_KEYS )
145- rts .setex (
143+ redis_conn .sadd (profile_set_redis_key , test_name )
144+ redis_conn .expire (profile_set_redis_key , EXPIRE_TIME_SECS_PROFILE_KEYS )
145+ redis_conn .setex (
146146 profile_string_testcase_markdown_key ,
147147 EXPIRE_TIME_SECS_PROFILE_KEYS ,
148148 profile_markdown_str ,
0 commit comments