1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-02 22:05:37 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot) 2024-11-07 12:56:31 +03:00
parent 1f0bf233de
commit c55708fa39
11 changed files with 5377 additions and 5481 deletions
.github/workflows
ci
service/dictionaries
src
en
OInt/core/Modules
OPI/src/CommonModules/OPI_YandexMarket
ru
OInt/core/Modules
OPI/src/CommonModules/OPI_YandexMarket

@ -1210,7 +1210,7 @@ jobs:
path: ./docs/en/results/CDEK path: ./docs/en/results/CDEK
Testing-YandexMarket: Testing-YandexMetrika:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Decode, Build] needs: [Decode, Build]
steps: steps:
@ -1240,24 +1240,20 @@ jobs:
- name: Campaigns and business - name: Tags managment
if: ${{ cancelled() }} == false if: ${{ cancelled() }} == false
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os "CLI_YaMarket_CampaignsAndBusiness" run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os "CLI_YaMetrika_TagsManagment"
- name: Products managment
if: ${{ cancelled() }} == false
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os "CLI_YaMarket_ProductsManagment"
- name: Записать логи - name: Записать логи
if: ${{ cancelled() }} == false if: ${{ cancelled() }} == false
uses: actions/cache/save@v3 uses: actions/cache/save@v3
with: with:
key: logs-YandexMarket key: logs-YandexMetrika
path: ./docs/en/results/YandexMarket path: ./docs/en/results/YandexMetrika
Encode: Encode:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMarket] needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika]
if: ${{ always() }} if: ${{ always() }}
permissions: permissions:
contents: write contents: write
@ -1573,21 +1569,21 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-CDEK" "https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-CDEK"
- name: Получить логи YandexMarket - name: Получить логи YandexMetrika
uses: actions/cache/restore@v3 uses: actions/cache/restore@v3
with: with:
key: logs-YandexMarket key: logs-YandexMetrika
path: ./docs/en/results/YandexMarket path: ./docs/en/results/YandexMetrika
- name: Очистка логов YandexMarket - name: Очистка логов YandexMetrika
run: | run: |
curl -L \ curl -L \
-X DELETE \ -X DELETE \
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-YandexMarket" "https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-YandexMetrika"
- name: Записать данные - name: Записать данные
@ -1601,7 +1597,7 @@ jobs:
Clear-Cache: Clear-Cache:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMarket, Encode] needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Encode]
if: ${{ always() }} if: ${{ always() }}
steps: steps:
- name: Очистка основного кэша - name: Очистка основного кэша

@ -1210,52 +1210,6 @@ jobs:
path: ./docs/ru/results/CDEK path: ./docs/ru/results/CDEK
Testing-YandexMarket:
runs-on: ubuntu-latest
needs: [Decode, Build]
steps:
- uses: actions/checkout@v2
- uses: otymko/setup-onescript@v1.4
with:
version: 1.9.1
- name: Получить тестовые данные из кэша
uses: actions/cache/restore@v3
with:
key: test-data
path: ./data.json
- name: Установить asserts и 1testrunner
run: |
opm install asserts
opm install 1testrunner
- name: Установить OInt
run: |
TEMP_DEB="$(mktemp)" &&
wget -O "$TEMP_DEB" 'https://api.athenaeum.digital/tc/job/Release/lastSuccessfulBuild/artifact/1.15.1/oint_1.15.1_all_ru.deb' &&
sudo dpkg -i "$TEMP_DEB"
rm -f "$TEMP_DEB"
- name: Кабинеты и магазины
if: ${{ cancelled() }} == false
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/ru/OInt/tests/Modules/internal/OPI_ТестыCLI.os "CLI_ЯМаркет_КабинетыИМагазины"
- name: Работа с товарами
if: ${{ cancelled() }} == false
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/ru/OInt/tests/Modules/internal/OPI_ТестыCLI.os "CLI_ЯМаркет_РаботаСТоварами"
- name: Записать логи
if: ${{ cancelled() }} == false
uses: actions/cache/save@v3
with:
key: logs-YandexMarket
path: ./docs/ru/results/YandexMarket
Testing-YandexMetrika: Testing-YandexMetrika:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Decode, Build] needs: [Decode, Build]
@ -1299,7 +1253,7 @@ jobs:
Encode: Encode:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMarket,Testing-YandexMetrika] needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika]
if: ${{ always() }} if: ${{ always() }}
permissions: permissions:
contents: write contents: write
@ -1615,22 +1569,6 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-CDEK" "https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-CDEK"
- name: Получить логи YandexMarket
uses: actions/cache/restore@v3
with:
key: logs-YandexMarket
path: ./docs/ru/results/YandexMarket
- name: Очистка логов YandexMarket
run: |
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-YandexMarket"
- name: Получить логи YandexMetrika - name: Получить логи YandexMetrika
uses: actions/cache/restore@v3 uses: actions/cache/restore@v3
with: with:
@ -1659,7 +1597,7 @@ jobs:
Clear-Cache: Clear-Cache:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMarket, Testing-YandexMetrika, Encode] needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Encode]
if: ${{ always() }} if: ${{ always() }}
steps: steps:
- name: Очистка основного кэша - name: Очистка основного кэша

@ -622,16 +622,12 @@ pipeline {
} }
} }
stage('Testing-YandexMarket') { stage('Testing-YandexMetrika') {
steps { steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_YaMarket_CampaignsAndBusiness"' powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_YaMetrika_TagsManagment"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_YaMarket_ProductsManagment"'
} }
} }

@ -622,21 +622,6 @@ pipeline {
} }
} }
stage('Testing-YandexMarket') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_ТестыCLI.os" "CLI_ЯМаркет_КабинетыИМагазины"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_ТестыCLI.os" "CLI_ЯМаркет_РаботаСТоварами"'
}
}
}
stage('Testing-YandexMetrika') { stage('Testing-YandexMetrika') {
steps { steps {

@ -622,16 +622,12 @@ pipeline {
} }
} }
stage('Testing-YandexMarket') { stage('Testing-YandexMetrika') {
steps { steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "YaMarket_CampaignsAndBusiness"' powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "YaMetrika_TagsManagment"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "YaMarket_ProductsManagment"'
} }
} }

@ -622,21 +622,6 @@ pipeline {
} }
} }
stage('Testing-YandexMarket') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "ЯМаркет_КабинетыИМагазины"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "ЯМаркет_РаботаСТоварами"'
}
}
}
stage('Testing-YandexMetrika') { stage('Testing-YandexMetrika') {
steps { steps {

File diff suppressed because it is too large Load Diff

@ -218,7 +218,7 @@ Function GetCampaignProducts(Val Token, Val CampaignID, Val Filters = "", Val Pa
OPI_TypeConversion.GetCollection(Filters); OPI_TypeConversion.GetCollection(Filters);
Response = OPI_Tools.Post(URL, Filters, Headers); Response = OPI_Tools.Post(URL, Filters, Headers);
Else Else
Response = OPI_Tools.Post(URL, , Headers); Response = OPI_Tools.Post(URL, , Headers);
EndIf; EndIf;
Return Response; Return Response;
@ -242,7 +242,7 @@ Function GetBusinessProducts(Val Token, Val AccountID, Val Filters = "", Val Pag
OPI_TypeConversion.GetCollection(Filters); OPI_TypeConversion.GetCollection(Filters);
Response = OPI_Tools.Post(URL, Filters, Headers); Response = OPI_Tools.Post(URL, Filters, Headers);
Else Else
Response = OPI_Tools.Post(URL, , Headers); Response = OPI_Tools.Post(URL, , Headers);
EndIf; EndIf;
Return Response; Return Response;

@ -218,7 +218,7 @@ Function GetCampaignProducts(Val Token, Val CampaignID, Val Filters = "", Val Pa
OPI_TypeConversion.GetCollection(Filters); OPI_TypeConversion.GetCollection(Filters);
Response = OPI_Tools.Post(URL, Filters, Headers); Response = OPI_Tools.Post(URL, Filters, Headers);
Else Else
Response = OPI_Tools.Post(URL, , Headers); Response = OPI_Tools.Post(URL, , Headers);
EndIf; EndIf;
Return Response; Return Response;
@ -242,7 +242,7 @@ Function GetBusinessProducts(Val Token, Val AccountID, Val Filters = "", Val Pag
OPI_TypeConversion.GetCollection(Filters); OPI_TypeConversion.GetCollection(Filters);
Response = OPI_Tools.Post(URL, Filters, Headers); Response = OPI_Tools.Post(URL, Filters, Headers);
Else Else
Response = OPI_Tools.Post(URL, , Headers); Response = OPI_Tools.Post(URL, , Headers);
EndIf; EndIf;
Return Response; Return Response;

@ -216,9 +216,9 @@
Если ЗначениеЗаполнено(Фильтры) Тогда Если ЗначениеЗаполнено(Фильтры) Тогда
OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры); OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры);
Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки); Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки);
Иначе Иначе
Ответ = OPI_Инструменты.Post(URL, , Заголовки); Ответ = OPI_Инструменты.Post(URL, , Заголовки);
КонецЕсли; КонецЕсли;
Возврат Ответ; Возврат Ответ;
@ -240,9 +240,9 @@
Если ЗначениеЗаполнено(Фильтры) Тогда Если ЗначениеЗаполнено(Фильтры) Тогда
OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры); OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры);
Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки); Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки);
Иначе Иначе
Ответ = OPI_Инструменты.Post(URL, , Заголовки); Ответ = OPI_Инструменты.Post(URL, , Заголовки);
КонецЕсли; КонецЕсли;
Возврат Ответ; Возврат Ответ;

@ -216,9 +216,9 @@
Если ЗначениеЗаполнено(Фильтры) Тогда Если ЗначениеЗаполнено(Фильтры) Тогда
OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры); OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры);
Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки); Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки);
Иначе Иначе
Ответ = OPI_Инструменты.Post(URL, , Заголовки); Ответ = OPI_Инструменты.Post(URL, , Заголовки);
КонецЕсли; КонецЕсли;
Возврат Ответ; Возврат Ответ;
@ -240,9 +240,9 @@
Если ЗначениеЗаполнено(Фильтры) Тогда Если ЗначениеЗаполнено(Фильтры) Тогда
OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры); OPI_ПреобразованиеТипов.ПолучитьКоллекцию(Фильтры);
Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки); Ответ = OPI_Инструменты.Post(URL, Фильтры, Заголовки);
Иначе Иначе
Ответ = OPI_Инструменты.Post(URL, , Заголовки); Ответ = OPI_Инструменты.Post(URL, , Заголовки);
КонецЕсли; КонецЕсли;
Возврат Ответ; Возврат Ответ;