File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ jobs:
146
146
tag : ${{ inputs.tag }}
147
147
updateOnlyUnreleased : true
148
148
149
- release-oss-ci-aws-ce-tracking :
150
- name : Upload Release for oss-ci-aws-ce-tracking lambda
149
+ release-oss-ci-cur :
150
+ name : Upload Release for oss-ci-cur lambda
151
151
runs-on : ubuntu-latest
152
152
permissions :
153
153
contents : write
@@ -164,15 +164,15 @@ jobs:
164
164
python-version : ' 3.10'
165
165
166
166
- name : Build deployment.zip
167
- working-directory : aws/lambda/oss_ci_aws_ce_tracking
167
+ working-directory : aws/lambda/oss_ci_cur
168
168
run : make deployment.zip
169
169
170
170
- name : Copy deployment.zip to root
171
- run : cp aws/lambda/oss_ci_aws_ce_tracking /deployment.zip oss-ci-aws-ce-tracking .zip
171
+ run : cp aws/lambda/oss_ci_cur /deployment.zip oss-ci-cur .zip
172
172
173
173
- uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0
174
174
with :
175
- artifacts : " oss-ci-aws-ce-tracking .zip"
175
+ artifacts : " oss-ci-cur .zip"
176
176
allowUpdates : true
177
177
draft : true
178
178
name : ${{ inputs.tag }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 26
26
}
27
27
28
28
DB_NAME = "misc"
29
- DB_TABLE_NAME = "oss_ci_aws_ce_tracking "
29
+ DB_TABLE_NAME = "oss_ci_cur "
30
30
31
31
# todo(elainewy): make it a shared library for lambda
32
32
def get_latest_time_from_table (
@@ -272,7 +272,7 @@ def get_time_range(
272
272
# skip the job if the latest time is already covered
273
273
if db_end >= end_time :
274
274
return None # skip the job if the latest time is already covered
275
- start = max ( db_end , start_time ) .strftime ("%Y-%m-%d" )
275
+ start = db_end .strftime ("%Y-%m-%d" )
276
276
return [start , end ]
277
277
278
278
def start (self , args : Optional [argparse .Namespace ] = None ):
File renamed without changes.
Original file line number Diff line number Diff line change 7
7
)
8
8
import logging
9
9
10
- from oss_ci_aws_ce_tracking .lambda_function import (
10
+ from oss_ci_cur .lambda_function import (
11
11
CostExplorerProcessor ,
12
12
)
13
13
@@ -69,20 +69,20 @@ class TestCostExplorerProcessor(unittest.TestCase):
69
69
def setUp (self ):
70
70
# Mock environment variables
71
71
envs_patcher = patch (
72
- "oss_ci_aws_ce_tracking .lambda_function.ENVS" ,
72
+ "oss_ci_cur .lambda_function.ENVS" ,
73
73
new = get_default_environment_variables (),
74
74
)
75
75
self .mock_envs = envs_patcher .start ()
76
76
self .addCleanup (envs_patcher .stop )
77
77
78
78
# Mock boto3 client
79
- boto3_patcher = patch ("oss_ci_aws_ce_tracking .lambda_function.boto3.client" )
79
+ boto3_patcher = patch ("oss_ci_cur .lambda_function.boto3.client" )
80
80
self .mock_boto3_client = boto3_patcher .start ()
81
81
self .addCleanup (boto3_patcher .stop )
82
82
83
83
# Mock get_clickhouse_client method
84
84
get_clickhouse_client_patcher = patch (
85
- "oss_ci_aws_ce_tracking .lambda_function.get_clickhouse_client"
85
+ "oss_ci_cur .lambda_function.get_clickhouse_client"
86
86
)
87
87
self .mock_get_cc = get_clickhouse_client_patcher .start ()
88
88
self .addCleanup (get_clickhouse_client_patcher .stop )
You can’t perform that action at this time.
0 commit comments