Skip to content

Commit 35b70de

Browse files
authored
fix(cts): use a ever lasting abtest (#3086)
1 parent 5c473cc commit 35b70de

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

config/generation.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ export const patterns = [
9090
'clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/**',
9191
'clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/**',
9292

93-
'tests/output/kotlin/src/commonTest/kotlin/com/algolia/client/**',
94-
'tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/**',
95-
9693
// PHP
9794
'!clients/algoliasearch-client-php/**',
9895
'clients/algoliasearch-client-php/lib/Api/*',
@@ -116,6 +113,7 @@ export const patterns = [
116113
'clients/algoliasearch-client-python/.gitignore',
117114

118115
'tests/output/python/requirements.txt',
116+
'!tests/output/python/**/__init__.py',
119117

120118
// Ruby
121119
'!snippets/ruby/Gemfile',

scripts/husky/pre-commit.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ async function run(command) {
2020
export function getPatterns() {
2121
const entries = patterns;
2222
for (const [language, { tests }] of Object.entries(clientConfig)) {
23-
entries.push(`tests/output/${language}/${tests.outputFolder}/client/**`);
24-
entries.push(`tests/output/${language}/${tests.outputFolder}/requests/**`);
23+
entries.unshift(`tests/output/${language}/${tests.outputFolder}/client/**`);
24+
entries.unshift(`tests/output/${language}/${tests.outputFolder}/requests/**`);
2525
}
2626
return entries;
2727
}

tests/CTS/requests/abtesting/listABTests.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
"body": {
3131
"abtests": [
3232
{
33-
"abTestID": 84617,
34-
"createdAt": "2024-02-06T10:04:30.209477Z",
35-
"endAt": "2024-05-06T09:04:26.469Z",
33+
"abTestID": 85635,
34+
"createdAt": "2024-05-13T10:12:27.739233Z",
35+
"endAt": "2124-05-13T00:00:00Z",
3636
"name": "cts_e2e_abtest",
3737
"status": "active",
3838
"variants": [
3939
{
4040
"addToCartCount": 0,
4141
"clickCount": 0,
4242
"conversionCount": 0,
43-
"description": "",
43+
"description": "this abtest is used for api client automation tests and will expire in 2124",
4444
"index": "cts_e2e_search_facet",
4545
"purchaseCount": 0,
4646
"trafficPercentage": 25

tests/output/python/tests/client/__init__.py

Whitespace-only changes.

tests/output/python/tests/requests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)