Skip to content

fix(bitbucket-cloud): tolerate denied repos, cut request budget - #2050

Merged
aleksdotbar merged 1 commit into
release-2026.07.1from
backport/2011-bitbucket-denied-repos
Jul 30, 2026
Merged

fix(bitbucket-cloud): tolerate denied repos, cut request budget#2050
aleksdotbar merged 1 commit into
release-2026.07.1from
backport/2011-bitbucket-denied-repos

Conversation

@aleksdotbar

Copy link
Copy Markdown
Contributor

Backport of #2011 into release-2026.07.1.

Cherry-picked the merge commit with -m 1; the resulting diff is identical to the diff on main and applied without conflicts.

What it fixes

  • 403/404 on a repository is skipped instead of failing the whole sync; every other error still fails loudly.
  • Vanished commit diffstat is tolerated; the completeness gate keeps prior line counts.
  • Branch generations are per repository rather than per bucket, so one denied repository no longer freezes branch updates for its neighbours.
  • 401 aborts immediately with the actionable cause instead of per-repository quarantine noise.
  • Commit-range form chunked at 100 includes with the full exclude set per chunk.
  • Request budget: idle repositories are skipped via updated_on, and PR / pipeline / issue listings are fetched once per repository and shared across dependent streams.

Refs #2011

Refs #2011

(cherry picked from commit 81baac8)
Signed-off-by: Aleksandr Barkhatov <pm@aleks.bar>
@aleksdotbar
aleksdotbar requested a review from a team as a code owner July 30, 2026 08:03
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e3f3b551-7209-43f8-800a-096809344d6c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Regenerate the connectors-ddl snapshot

This PR changes src/ingestion/**. If your change affects any
bronze / silver / gold schema, regenerate the committed DDL snapshot
and include it in this PR.

Prerequisites (details: src/ingestion/scripts/bootstrap-db/README.md):

  • docker + a fresh throwaway ClickHouse 25.7.5 (README "Local ClickHouse for testing")
  • .env from .env.bootstrap.example pointing at it; use the host LAN IP,
    reachable from both the host and connector containers
    (host.docker.internal does not resolve on the macOS host itself)
  • python3.12 or python3.11 on PATH (pinned dbt venv)
  • HubSpot + Salesforce credentials in .env — their discover calls the
    live APIs; without them, apply ../connectors-ddl/{hubspot,salesforce}.sql
    (relative to bootstrap-db/) to seed their bronze, then run the dbt step
cd src/ingestion/scripts/bootstrap-db
set -a; source pins.env; source .env; set +a
./bootstrap-db.sh connectors-config.yaml   # fresh ClickHouse 25.7.5
./dump-ddl.sh                              # writes scripts/connectors-ddl/*.sql

Commit the resulting scripts/connectors-ddl/*.sql diff. If nothing
changed, no snapshot update is needed. (Regeneration is manual for now.)

@aleksdotbar
aleksdotbar merged commit ae478e7 into release-2026.07.1 Jul 30, 2026
3 checks passed
@aleksdotbar
aleksdotbar deleted the backport/2011-bitbucket-denied-repos branch July 30, 2026 08:14
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.

2 participants