Skip to content

feat: consistent logging format and json support#1187

Merged
mohammad-alisafaee merged 2 commits intomainfrom
build/consistent-logging-format
Feb 25, 2026
Merged

feat: consistent logging format and json support#1187
mohammad-alisafaee merged 2 commits intomainfrom
build/consistent-logging-format

Conversation

@mohammad-alisafaee
Copy link
Copy Markdown
Contributor

@mohammad-alisafaee mohammad-alisafaee commented Jan 22, 2026

  • Replace usage of Python's logging module with our own for consistency
  • Include trace_id in errors to be displayed to users in UI

/deploy #notest renku-gateway=build/consistent-logging-format extra-values=enableInternalGitlab=false,dataService.sentry.enabled=true,dataService.sentry.environment=renku-ci-ds-1187,dataService.sentry.dsn=https://5ec3c75875797b564a9f4654d5fc46d5@o4509039310995456.ingest.de.sentry.io/4509044015169616,dataService.sentry.sampleRate=0.0001,gateway.sentry.enabled=true,gateway.sentry.environment=renku-ci-ds-1187,gateway.sentry.dsn=https://b4747210a4b6a37a4ccc33beee2dbea7@o4509039310995456.ingest.de.sentry.io/4509513007693904,gateway.sentry.sampleRate=0.0001

@mohammad-alisafaee mohammad-alisafaee force-pushed the build/doi-in-data-connector-project-links branch 3 times, most recently from 4768a4f to 9425d5c Compare January 23, 2026 21:36
Base automatically changed from build/doi-in-data-connector-project-links to build/pagination-for-get-data-connector-project-links January 29, 2026 13:04
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/pagination-for-get-data-connector-project-links branch 4 times, most recently from 06ef2be to e0bbc93 Compare January 29, 2026 16:07
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch from 115edb3 to 4e4c88a Compare February 2, 2026 08:21
@mohammad-alisafaee mohammad-alisafaee added the do not merge A PR that has been approved but should not be merged label Feb 2, 2026
@RenkuBot
Copy link
Copy Markdown
Contributor

RenkuBot commented Feb 2, 2026

You can access the deployment of this PR at https://renku-ci-ds-1187.dev.renku.ch

@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch 6 times, most recently from 01ebca6 to 7f6b60c Compare February 3, 2026 20:35
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch 4 times, most recently from 47c1dfd to 915bea2 Compare February 16, 2026 08:53
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch from f348aac to 840d358 Compare February 17, 2026 21:29
@mohammad-alisafaee mohammad-alisafaee changed the base branch from build/pagination-for-get-data-connector-project-links to main February 17, 2026 21:31
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch 3 times, most recently from 5c4ead6 to 00c7ecc Compare February 20, 2026 10:00
Comment thread pyproject.toml
[[tool.mypy.overrides]]
module = ["test.*"]
disable_error_code = ["no-untyped-def", "var-annotated", "import-untyped"]

Copy link
Copy Markdown
Contributor Author

@mohammad-alisafaee mohammad-alisafaee Feb 20, 2026

Choose a reason for hiding this comment

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

PyCharm passes files individually to mypy, making it ignore its general settings (e.g. not to scan the test directory). However, it considers these overrides. mypy checks on tests are sometimes useful but they can be noisy if we don't disable some of them. That's why I added this override block and have the checks running for tests while disabling noisy ones.

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 20, 2026

Pull Request Test Coverage Report for Build 22274316429

Details

  • 57 of 63 (90.48%) changed or added relevant lines in 21 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 88.262%

Changes Missing Coverage Covered Lines Changed/Added Lines %
components/renku_data_services/app_config/logging.py 28 34 82.35%
Files with Coverage Reduction New Missed Lines %
components/renku_data_services/crc/core.py 1 77.93%
components/renku_data_services/session/models.py 1 94.62%
Totals Coverage Status
Change from base Build 22220432440: 0.04%
Covered Lines: 23791
Relevant Lines: 26955

💛 - Coveralls

@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch from 00c7ecc to 0609703 Compare February 20, 2026 13:59
@mohammad-alisafaee mohammad-alisafaee marked this pull request as ready for review February 20, 2026 15:34
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch 2 times, most recently from 1f67ca8 to 023a9f2 Compare February 22, 2026 07:36
@mohammad-alisafaee mohammad-alisafaee force-pushed the build/consistent-logging-format branch 2 times, most recently from ba121d3 to 99c04d0 Compare February 23, 2026 13:32
@olevski
Copy link
Copy Markdown
Member

olevski commented Feb 25, 2026

Why the do not merge label?

@mohammad-alisafaee mohammad-alisafaee removed the do not merge A PR that has been approved but should not be merged label Feb 25, 2026
@mohammad-alisafaee mohammad-alisafaee enabled auto-merge (squash) February 25, 2026 14:57
@mohammad-alisafaee mohammad-alisafaee merged commit 363203a into main Feb 25, 2026
17 of 18 checks passed
@mohammad-alisafaee mohammad-alisafaee deleted the build/consistent-logging-format branch February 25, 2026 15:22
@RenkuBot
Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deployment for this PR.

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.

4 participants