Skip to content

docs: update AGENTS.md#3326

Merged
idoshamun merged 3 commits intomainfrom
improved-agents-md
Dec 9, 2025
Merged

docs: update AGENTS.md#3326
idoshamun merged 3 commits intomainfrom
improved-agents-md

Conversation

@idoshamun
Copy link
Copy Markdown
Member

No description provided.

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Dec 7, 2025

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

Resource Changes

    Name                                                   Type                           Operation
~   vpc-native-update-current-streak-cron                  kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-3f21c5bd           kubernetes:batch/v1:Job        create
~   vpc-native-clean-stale-user-transactions-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                               kubernetes:apps/v1:Deployment  update
~   vpc-native-user-profile-updated-sync-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                     kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-3f21c5bd                   kubernetes:batch/v1:Job        create
~   vpc-native-post-analytics-clickhouse-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-tag-view-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                  kubernetes:apps/v1:Deployment  update
~   vpc-native-personalized-digest-deployment              kubernetes:apps/v1:Deployment  update
~   vpc-native-update-tags-str-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-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-clean-zombie-opportunities-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                          kubernetes:apps/v1:Deployment  update
~   vpc-native-temporal-deployment                         kubernetes:apps/v1:Deployment  update
~   vpc-native-ws-deployment                               kubernetes:apps/v1:Deployment  update
-   vpc-native-api-clickhouse-migration-79c660ba           kubernetes:batch/v1:Job        delete
~   vpc-native-daily-digest-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                 kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-79c660ba                   kubernetes:batch/v1:Job        delete
~   vpc-native-clean-gifted-plus-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron         kubernetes:batch/v1:CronJob    update

Copy link
Copy Markdown
Contributor

@capJavert capJavert left a comment

Choose a reason for hiding this comment

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

Nice improvements, few comments

Comment thread src/graphorm/AGENTS.md Outdated
Comment thread src/workers/AGENTS.md
// message.data is typed as MatchedCandidate
const { data } = message;
},
parseMessage: (message) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we need to say that adding parseMessage is required if data is protobuf or from @dailydotdev/schema, linter also warns

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The note above already mentions it. but I'll push a clarification in couple places

Comment thread src/workers/AGENTS.md

const worker: ExperimentWorker = {
subscription: 'api.experiment-allocated',
handler: async (message, con, logger, pubsub, experimentAllocationClient) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

make sure it calls experimentAllocationClient.waitForSend before exiting the worker logic so that allocation client sends the allocation to GB

Comment thread src/workers/AGENTS.md Outdated
Comment on lines +177 to +180
// For legacy Worker instances
export const workers: Worker[] = [
// ... existing workers
];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Basically never use this array, we only support typed workers moving forward

Comment thread src/workers/AGENTS.md Outdated
### Integration Testing

Test workers in isolation:
Tests use a real database connection (reset before each test run). Create tests in `__tests__/workers/`:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

data is cleared after each test run

idoshamun and others added 2 commits December 9, 2025 09:57
Co-authored-by: Ante Barić <ante@kickass.website>
@idoshamun idoshamun merged commit 0488f97 into main Dec 9, 2025
5 of 7 checks passed
@idoshamun idoshamun deleted the improved-agents-md branch December 9, 2025 10:00
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