Skip to content

fix(tests): mock fetchAndUploadToolIcon in stack tests to prevent timeouts#3634

Merged
capJavert merged 3 commits intomainfrom
fix/mock-icon-fetch-in-stack-tests
Feb 25, 2026
Merged

fix(tests): mock fetchAndUploadToolIcon in stack tests to prevent timeouts#3634
capJavert merged 3 commits intomainfrom
fix/mock-icon-fetch-in-stack-tests

Conversation

@capJavert
Copy link
Contributor

Stack tests were making live HTTP requests to external icon CDNs (simpleicons, devicon, iconify) and Cloudinary during test runs, causing frequent timeouts in CI.

…eouts

Stack tests were making live HTTP requests to external icon CDNs
(simpleicons, devicon, iconify) and Cloudinary during test runs,
causing frequent timeouts in CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pulumi
Copy link

pulumi bot commented Feb 25, 2026

🍹 The Update (preview) for dailydotdev/api/prod (at e253ba2) was successful.

✨ Neo Explanation

This is a standard production release deploying a new application version across all 7 API services, 32 cron jobs, and triggering fresh database and ClickHouse migration jobs. The deployment follows a routine rolling-update pattern with no stateful resource replacements.

Root Cause Analysis

A new version of the application has been built and is being deployed to production. Every Kubernetes resource is being updated from the previous image version to a new one, indicating this is a standard code release rolling out a new build across the entire API stack.

Dependency Chain

The new container image version cascades uniformly across all workloads:

  • 7 Deployments (main API, background workers, WebSocket, private, Temporal, personalized digest, worker jobs) are being updated in-place with the new image — Kubernetes will perform a rolling update for each.
  • 32 CronJobs are updated so their next scheduled runs will use the new image.
  • Migration Jobs (DB and ClickHouse) from the previous release are being deleted and replaced with new ones tagged to the new release. These run the TypeORM database migrations and ClickHouse migrations against the new schema before (or alongside) the deployment.

Risk Analysis

The one-time migration Jobs (database and ClickHouse) carry inherent risk — if the new migrations fail or are destructive, they could impact the running database. However, this appears to be a routine release pattern where the old migration jobs are cleaned up and new ones are created. No stateful infrastructure (databases, storage buckets, persistent volumes) is being replaced or deleted.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-96f11211               kubernetes:batch/v1:Job        create
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
+   vpc-native-api-db-migration-96f11211                       kubernetes:batch/v1:Job        create
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
-   vpc-native-api-clickhouse-migration-40836973               kubernetes:batch/v1:Job        delete
~   vpc-native-update-tag-recommendations-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-tag-view-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-40836973                       kubernetes:batch/v1:Job        delete
... and 4 other changes

@capJavert capJavert merged commit 57e4fa6 into main Feb 25, 2026
9 checks passed
@capJavert capJavert deleted the fix/mock-icon-fetch-in-stack-tests branch February 25, 2026 20:26
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