Skip to content

CI: Fixes #12440: Disable logging from onenote-converter library by checking if it a test run #12566

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

Conversation

pedr
Copy link
Collaborator

@pedr pedr commented Jun 20, 2025

Fixes #12440

Summary

I'm adding a new configuration for the onenote-converter check if it was build to run tests in CI. This should disable the logs when running tests there but it won't disable when running it locally, unless it used with the RUN_TESTS=1 environment variable. This also shouldn't affect the production build, since RUN_TESTS is set to 0 when running the release CI.

Why the logs?

There are some logs from onenote-conveter that I think are useful to understand why something might go wrong. For example, some places where the binary backup does not have a valid value we use a default value in its place so the import process doesn't fail to include that note.

On each of these cases I'm adding a log so if something goes wrong in the import content of the user we might be able to relate the two things.

Testing

I'm going to take a look at the output of the CI to confirm that the messages being logged were removed.

@pedr pedr added bug It's a bug ci Related to Joplin's automated update/build (continuous integration) labels Jun 20, 2025
@pedr pedr changed the title CI: FIxes #12440: Disable logging from onenote-converter library by checking if it a test run CI: Fixes #12440: Disable logging from onenote-converter library by checking if it a test run Jun 20, 2025
@pedr
Copy link
Collaborator Author

pedr commented Jun 23, 2025

  • Try to use withWarningSilenced to silence the warnings

@laurent22 laurent22 merged commit 1f9f63d into laurent22:dev Jun 28, 2025
11 checks passed
@pedr pedr deleted the disable-onenote-logging-on-test-environment branch June 30, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug ci Related to Joplin's automated update/build (continuous integration)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants