Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Y Yodoo Apps Database
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • crnd-opensource
  • Yodoo Apps Database
  • Merge requests
  • !72

Open
Created Oct 27, 2026 by Volodymyr Karabanov@vovikDeveloper
  • Report abuse
Report abuse

[FIX] yodoo_apps_website: skip GitHub sources when GitHub is unreachable

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 4

Related to https://gitlab.crnd.pro/crnd/odoo-infrastructure/-/merge_requests/533 (clear GitHub 401 error in yodoo_apps_git_source). On the kitworks.systems prod instance the GitHub token has been rejected with 401 since May 2026, and the scheduler kept creating sync tasks that failed (48 per day).

What changed:

  • scheduler_sync_git_sources checks the GitHub connection once. On UserError or requests RequestException it writes a single warning and syncs only the non-GitHub sources.
  • action_sync returns a display_notification "Synchronization is already running" when the reused running task belongs to another user and is not readable by the current one. Before, this raised AccessError.
  • Added tests/test_sync_auth_and_access.py, bumped the module version 18.0.1.5.7 -> 18.0.1.5.8.

How it was checked: locally 0 failed, 0 error(s) of 12 tests; the new tests were confirmed red before the fix; flake8 0 findings, pylint 10.00/10. The CI of this branch is currently red for reasons unrelated to this MR: the CI image has no odoo-helper, while the branch's .gitlab-ci.yml still calls it.

Deliberately not changed: the scheduler keeps a copy of the upstream cron body with a source_type filter. It is marked kw: in the code as known debt. The target is 18.0-yodoo_apps_website because the ct455 assembly takes this branch. The empty branch 18.0-fix-github-auth-sync was not touched.

🤖 Generated with Claude Code

Edited Oct 27, 2026 by Volodymyr Karabanov
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 18.0-yodoo_apps_website-fix-github-auth