-
Notifications
You must be signed in to change notification settings - Fork 93
Версия 3.7.0 с плагинами v2.0.0, тестирование на GA #340
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
Версия 3.7.0 с плагинами v2.0.0, тестирование на GA #340
Conversation
68117f8 to
cf4fc7a
Compare
|
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates gitsync to version 3.7.0 with plugins v2.0.0, introducing comprehensive GitHub Actions-based testing infrastructure while removing legacy CI/CD configurations (Travis CI and Jenkins). The changes modernize the testing approach, fix various spelling errors, and update all dependencies to newer versions.
Key Changes:
- Implemented full GitHub Actions testing workflow with coverage collection and multi-platform support (Windows/Linux, multiple 1C platform versions)
- Updated all package dependencies to newer versions (e.g., logos 1.7.1, v8runner 1.12.0, gitrunner 1.8.0)
- Fixed numerous spelling errors throughout feature files and step definitions (e.g., "тестовой" → "тестовый", "ищю" → "ищу")
- Refactored test execution to use centralized build/reports directory structure with improved coverage handling
Reviewed changes
Copilot reviewed 46 out of 47 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| travis-ci.sh | Removed legacy Travis CI build script |
| Jenkinsfile | Removed legacy Jenkins pipeline configuration |
| packagedef | Updated version to 3.7.0 and upgraded all dependency versions |
| build_packagedef | Updated version to 3.7.0 and environment version to 1.9.2 |
| tasks/test.os | Major refactoring: added coverage parameter support, centralized report outputs to build/reports, improved feature execution logic |
| tasks/coverage.os | Added platform-specific encoding handling and reorganized coverage file structure |
| tasks/make.os | Commented out EXE build functionality and removed commented debug code |
| tasks/build.os | Removed commented-out code and debug statements |
| tasks/get-plugins.os | Changed repository from khorevaa to oscript-library, renamed parameters from branch to commit pointer |
| tasks/oscript.cfg | Changed lib.system to lib.additional for module path configuration |
| tests/fixtures/ext.yaml | Fixed typo: "extention" → "extension" |
| .vscode/tasks.json | Modernized to VS Code 2.0.0 task format with proper type, label, and presentation properties |
| .vscode/launch.json | Removed debugPort and protocol fields from launch configuration |
| .gitignore | Reorganized ignore patterns, added build/ directory |
| .gitattributes | Added line ending rules for cross-platform compatibility |
| .bsl-language-server.json | New BSL Language Server configuration file |
| .github/workflows/qa.yml | Changed test command from "opm run coverage" to direct oscript execution |
| .github/CONTRIBUTING.md | Improved formatting, updated instructions, and refreshed last update date |
| features/opm/opm-build.feature | Fixed typo: "установку" → "установки" |
| features/core/sync.core.feature | Fixed typo: "тестовой" → "тестовый", changed VERSION value from 0 to 7 |
| features/core/sync.batch.feature | Fixed typo: "тестовой" → "тестовый", removed commented-out test code |
| features/core/step_definitions/sync.batch.os | Updated procedure names to match corrected spelling |
| features/core/step_definitions/shared.os | Fixed spelling in comments and procedure names, added new step for git author setup, removed commented code |
| features/core/step_definitions/check.core.os | Updated step names in list to match corrected capitalization |
| features/core/check.core.feature | Fixed capitalization in step names |
| features/cmd/v8path.feature | Fixed typo: "ищю" → "ищу", changed VERSION value from 0 to 7 |
| features/cmd/sync.feature | Fixed typo: "тестовой" → "тестовый", changed VERSION value from 0 to 7 |
| features/cmd/step_definitions/v8path.os | Updated procedure name to match corrected spelling |
| features/cmd/step_definitions/sync.core.os | Removed extra blank lines |
| features/cmd/step_definitions/shared.os | Fixed spelling in comments and procedure names, added new step for git author setup |
| features/cmd/step_definitions/init.os | Removed extra blank lines |
| features/cmd/step_definitions/extension.os | Added BSL diagnostic suppressions, improved comment formatting |
| features/cmd/step_definitions/all.os | Fixed spelling in comment and procedure name, removed unused step |
| features/cmd/setversion.feature | Fixed typo and whitespace, added git author setup step |
| features/cmd/ibconnection.feature | Fixed typo, changed VERSION value from 0 to 7, added git author setup step |
| features/cmd/extention.feature | Fixed typo, changed VERSION value from 0 to 4 |
| features/cmd/clone.feature | Added git author setup step, fixed trailing whitespace |
| features/cmd/all.feature | Fixed spelling, improved table alignment and formatting |
Comments suppressed due to low confidence (1)
travis-ci.sh:1
- В CI-скрипте ранее использовалась команда наподобие
curl http://oscript.io/downloads/$OSCRIPT_VERSION/debдля загрузки и установки пакета черезdpkg -i, что позволяло атакующему с доступом к сети (MITM) подменить содержимое пакета и выполнить произвольный код в среде сборки. Для подобных установок необходимо использовать как минимум HTTPS-URL и, по возможности, проверку подписи или хэша загружаемого артефакта. Текущий PR удаляет этот скрипт и тем самым устраняет уязвимость; при восстановлении аналогичной логики важно использовать защищённый канал и проверку целостности.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tasks/test.os
Outdated
| ТекКаталог = ТекущийКаталог(); | ||
| КаталогФайловПокрытия = ""; | ||
|
|
||
| Если АргументыКоманднойСтроки.Количество() = 0 Тогда | ||
| ТолькоЮнитТесты = Ложь; | ||
| Иначе | ||
| ТолькоЮнитТесты = Булево(АргументыКоманднойСтроки[0]); | ||
| КонецЕсли; | ||
| Для Каждого Элемент Из АргументыКоманднойСтроки Цикл | ||
| Если Элемент = "coverage" Тогда | ||
|
|
||
| КаталогФайловПокрытия = ОбъединитьПути(ТекущийКаталог(), ".", ИмяКаталогаФайловПокрытия); | ||
| ФС.ОбеспечитьПустойКаталог(КаталогФайловПокрытия); | ||
|
|
||
| // Попытка | ||
| // ТестыПрошли = ПрогнатьТесты(); | ||
| Прервать; | ||
| КонецЕсли; | ||
| КонецЦикла; | ||
|
|
||
| // Исключение | ||
| // ТестыПрошли = Ложь; | ||
| // Сообщить(СтрШаблон("Тесты через 1testrunner выполнены неудачно | ||
| // |%1", ПодробноеПредставлениеОшибки(ИнформацияОбОшибке()))); | ||
| // КонецПопытки; | ||
| УстановитьТекущийКаталог(ТекКаталог); |
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable "ТекКаталог" is saved at line 244 but never used afterwards. The code sets the current directory back using "УстановитьТекущийКаталог(ТекКаталог)" at line 257, but there's no code between lines 244-257 that changes the current directory, making this operation unnecessary.
|
|
||
| //ТестовыйПлагин реализует ИнтерфейсаПлагинов | ||
| Процедура ТестовыйплагинРеализуетИнтерфейсаплагинов() Экспорт | ||
| Процедура ТестовыйплагинРеализуетИнтерфейсплагинов() Экспорт |
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The procedure name "ТестовыйплагинРеализуетИнтерфейсплагинов" doesn't match the capitalization in the feature file which expects "ТестовыйПлагинРеализуетИнтерфейсПлагинов" (with capital letters in "Плагин" and "Плагинов"). This mismatch will cause BDD step matching to fail at runtime. The procedure name should use proper camel case: "ТестовыйПлагинРеализуетИнтерфейсПлагинов".
|
LGTM! |
9498f21 to
96ee667
Compare
This reverts commit 36cca7e.
96ee667 to
14def65
Compare
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
В этом PR:
@oscript-library/Collaborators - пожалуйста, проверьте изменения и прокомментируйте их