Skip to content

bugfix: восстановлены утерянные импорты #5

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

Merged
merged 1 commit into from
Jul 5, 2025

Conversation

sfaqer
Copy link
Owner

@sfaqer sfaqer commented Jul 4, 2025

Summary by CodeRabbit

  • Новые возможности

    • Обновлён номер версии приложения до 0.2.3.
    • Добавлен новый workflow для тестирования с поддержкой нескольких версий и движков.
  • Прочее

    • Обновлены версии зависимостей в пакете.
    • Обновлены параметры версии в процессе релиза.
    • Улучшена структура тестов за счёт динамического формирования путей к файлам.

Copy link

coderabbitai bot commented Jul 4, 2025

Warning

Rate limit exceeded

@sfaqer has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 8 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between c0a272f and da0d355.

📒 Files selected for processing (12)
  • .github/workflows/release.yml (1 hunks)
  • .github/workflows/testing.yml (1 hunks)
  • packagedef (1 hunks)
  • src/cli/internal/isolated/Классы/ОписаниеКонсольногоПриложения.os (1 hunks)
  • src/cli/main.os (1 hunks)
  • src/cli/Классы/КомандаОбнаружить.os (1 hunks)
  • src/core/internal/Классы/ОбнаружительТестов.os (1 hunks)
  • src/core/internal/Классы/РезультатВыполненияТеста.os (1 hunks)
  • src/core/internal/Классы/РепортерJUnit.os (1 hunks)
  • src/core/internal/Классы/РепортерOpenTestReport.os (1 hunks)
  • tests/oscript.cfg (1 hunks)
  • tests/Обнаружитель.os (65 hunks)
## Walkthrough

Внесены изменения в версионные строки и добавлены новые директивы импорта общего модуля в различные файлы проекта. Версия приложения и зависимостей обновлена, а также расширен доступ к функционалу из общего модуля без изменения логики или сигнатур функций. Добавлен новый рабочий процесс GitHub Actions для тестирования с матричной стратегией.

## Changes

| Файл(ы)                                                                                          | Краткое описание изменений                                      |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| .github/workflows/release.yml                                                                    | Обновлена версия параметра oscript_version с "2.0.0.rc6" на "2.0.0-rc.7" |
| .github/workflows/testing.yml                                                                    | Добавлен новый workflow "Тестирование" с матричной стратегией запуска тестов |
| src/cli/internal/isolated/Классы/ОписаниеКонсольногоПриложения.os                                | Изменена возвращаемая строка версии с "0.2.2" на "0.2.3"        |
| src/cli/main.os                                                                                  | Добавлен импорт: #Использовать "../shared"                      |
| src/cli/Классы/КомандаОбнаружить.os                                                              | Добавлен импорт: #Использовать "../../shared"                   |
| src/core/internal/Классы/ОбнаружительТестов.os<br>src/core/internal/Классы/РезультатВыполненияТеста.os<br>src/core/internal/Классы/РепортерJUnit.os<br>src/core/internal/Классы/РепортерOpenTestReport.os | Добавлен импорт: #Использовать "../../../shared"                |
| packagedef                                                                                      | Обновлены версии зависимостей: annotations, autumn, autumn-cli, collectionos, semver |
| tests/Обнаружитель.os                                                                            | Заменены жёстко закодированные пути на динамическое формирование путей с помощью функции ОбъединитьПути |

## Poem

>     В обновленье версия сменилась,  
>     Импорты в коде вдруг появились.  
>     Модули общие теперь на виду —  
>     Кролик доволен, прыгает в саду!  
>     Пусть проект растёт и ширится,  
>     Всё лучше будет — это не снится! 🐇✨

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/cli/internal/isolated/Классы/ОписаниеКонсольногоПриложения.os (1)

15-15: Версия увеличена до 0.2.3 — OK.

Синхронизируйте это значение с changelog и README, если они ведутся вручную.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cfdc0ac and d58ccbc.

📒 Files selected for processing (8)
  • .github/workflows/release.yml (1 hunks)
  • src/cli/internal/isolated/Классы/ОписаниеКонсольногоПриложения.os (1 hunks)
  • src/cli/main.os (1 hunks)
  • src/cli/Классы/КомандаОбнаружить.os (1 hunks)
  • src/core/internal/Классы/ОбнаружительТестов.os (1 hunks)
  • src/core/internal/Классы/РезультатВыполненияТеста.os (1 hunks)
  • src/core/internal/Классы/РепортерJUnit.os (1 hunks)
  • src/core/internal/Классы/РепортерOpenTestReport.os (1 hunks)
🔇 Additional comments (7)
src/core/internal/Классы/ОбнаружительТестов.os (1)

3-3: Импорт восстановлен корректно

Путь ../../../shared соответствует расположению файла и обеспечивает доступ к общим модулям. Нарушений не вижу.

src/core/internal/Классы/РезультатВыполненияТеста.os (1)

1-1: Добавление импорта выглядит безупречно

Директива #Использовать "../../../shared" корректна и не конфликтует с существующими зависимостями.

src/cli/main.os (1)

7-7: Верный относительный путь к shared-модулю

#Использовать "../shared" верно поднимается на один уровень из src/cli. Всё ок.

src/cli/Классы/КомандаОбнаружить.os (1)

5-5: Импорт добавлен корректно

../../shared точно указывает на src/shared из подкаталога src/cli/Классы.

src/core/internal/Классы/РепортерOpenTestReport.os (1)

2-2: Импорт согласован с остальными модулями

Директива ../../../shared унифицирует доступ к общей функциональности; замечаний нет.

src/core/internal/Классы/РепортерJUnit.os (1)

2-2: Проверено: импорт ../../../shared в src/core/internal/Классы/РепортерJUnit.os корректен

  • Директория src/shared найдена.
  • Внутри неё присутствуют необходимые файлы .os.
  • Других папок shared в проекте не обнаружено.
.github/workflows/release.yml (1)

14-14: Обновление версии OScript: убедитесь, что формат "2.0.0-rc.7" воспринимается action-ом.

Некоторые скрипты CI/CD парсят версию строго по x.y.z.rcN. Изменение точки на дефис может нарушить скачивание артефактов. Проверьте логи выполнения workflow после мержа.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (5)
.github/workflows/testing.yml (5)

19-20: Закрепите action на SHA-коммите.

actions/[email protected] привязан к тэгу. Для защиты от атак “supply-chain” и неожиданных изменений рекомендовано фиксировать action на SHA:

-        uses: actions/[email protected]
+        uses: actions/[email protected] # 31a4… конкретный SHA

26-33: Проверьте корректность парсинга версии.

Команда grep ".ВерсияСреды(" ищет строку с русскими символами. Если в packagedef поменяется формат (другие пробелы/кавычки), парсинг сломается, и workflow упадёт. Возможные улучшения:

  • использовать grep -oP с чётким регэкспом,
  • добавить проверку, что version не пустая,
  • логировать найденное значение.

36-38: Зафиксируйте версию setup-onescript на конкретном SHA.

Аналогично checkout, лучше заменить otymko/[email protected] на ссылку вида otymko/setup-onescript@<commit-sha>.


40-43: Избыточная установка самого opm.

opm уже присутствует в образах Ubuntu/Mac и ставится вместе с OneScript-дистрибутивом. Повторная установка усложняет логи и не ускоряет процесс. Предлагаю удалить строку:

-          opm install opm

47-47: Нет перевода строки в конце файла.

YAML-lint уже сообщает об ошибке no new line character at the end of file. Добавьте пустую строку после 47-й, чтобы соблюдать POSIX-конвенцию.

-          oscript src/cli/main.os e
+          oscript src/cli/main.os e
+
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 265f65a and c0a272f.

📒 Files selected for processing (2)
  • .github/workflows/testing.yml (1 hunks)
  • tests/Обнаружитель.os (65 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/Обнаружитель.os
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/testing.yml

[error] 47-47: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: build (macos-latest, dev)
  • GitHub Check: build (macos-latest, default)
  • GitHub Check: build (ubuntu-latest, dev)
🔇 Additional comments (1)
.github/workflows/testing.yml (1)

4-6: Уточните целевую ветку триггера.

Сейчас workflow запускается только при push в master. Если основной рабочий поток уже перенесён на main, либо используется git-flow с несколькими ветками, стоит явно перечислить их или использовать шаблоны ([ master, main ]), чтобы не потерять автоматический запуск.

Добавлен workflow тестирования
Актуализированы зависимости
Исправлена ошибка теста на английской локали
Исправлена ошибка тестирования на MacOS
@sfaqer sfaqer force-pushed the bugfix/lostImports branch from 8a16fe4 to da0d355 Compare July 5, 2025 00:35
@sfaqer sfaqer merged commit 287e67b into master Jul 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant