-
Notifications
You must be signed in to change notification settings - Fork 1
Update documentation for Cloud Run v1.1.0 and add LOGSTORY_TIMESTAMP_DELTA support #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit introduces a standardized approach for handling the `timestamp_delta` parameter and updates Cloud Scheduler job configurations. Key changes include: * **Centralized `timestamp_delta`**: The `timestamp_delta` for `logstory replay` operations is now primarily controlled via the `LOGSTORY_TIMESTAMP_DELTA` environment variable, with a default of `1d`. This simplifies command arguments for scheduled jobs. * **Cloud Run deployment updates**: Cloud Run job and service deployments now include the `LOGSTORY_TIMESTAMP_DELTA=1d` environment variable. * **Cloud Scheduler adjustments**: All Cloud Scheduler jobs are updated to use UTC timezone and adjusted schedules (e.g., 3 AM UTC, 12:01 AM UTC) for better global consistency. The `message-body` arguments for these jobs are also simplified, leveraging the new environment variable. * **`logstory` command refactor**: The `logstory.py` script is updated to use `logstory` as the main command entry point and to parse `timestamp_delta` from the environment or use the default. * **`.gitignore`**: Removed `dist/*` from `.gitignore`.
|
@claude please review |
|
Claude finished @dandye's task —— View job Code Review for PR #36I've completed my review of the Cloud Run v1.1.0 documentation updates and LOGSTORY_TIMESTAMP_DELTA environment variable support. Overall, this is a well-structured PR that successfully migrates from hardcoded scheduler arguments to environment variables. Here's my detailed feedback: ✅ Strengths1. Environment Variable Implementation (
2. Makefile Scheduler Improvements
3. Documentation Updates
4. Build Configuration
|
- Update scheduler times to match actual Makefile implementation: - Events: 3:00 AM UTC (was 8 AM/3 AM mixed) - Entities: 12:01 AM UTC (was 9 AM/4 AM mixed) - Update all container args examples to include 'logstory' prefix - Remove --timestamp-delta from args (now handled by environment variable) - Update environment variables documentation to include LOGSTORY_TIMESTAMP_DELTA - Fix all examples and troubleshooting sections for consistency
|
@claude review comments addressed. Please re-review. |
|
Claude finished @dandye's task —— View job Re-reviewing PR #36 ✅I've completed a comprehensive re-review of all changes to verify if my previous review comments were addressed. Todo List:
🎯 Review Comments Status: FULLY ADDRESSED ✅✅ Primary Issue RESOLVEDDocumentation Inconsistency Fixed (
This was the main blocker from my previous review and it's now perfectly aligned! ✅ All Other Areas Maintained
🏆 Final Recommendation: APPROVED ✅This PR successfully addresses all issues from my previous review. The implementation is clean, well-documented, and follows best practices: Key Improvements Delivered:
Quality Assessment:
Impact:
This PR is ready for merge. All previous concerns have been addressed and the changes represent a solid improvement to the logstory Cloud Run deployment system. |
Summary
Updates documentation and deployment configuration for v1.1.0 Cloud Run migration and adds LOGSTORY_TIMESTAMP_DELTA environment variable support.
Changes Made
Documentation Updates
Cloud Run Deployment Improvements
get_timestamp_delta_default()function reads from environmentTimestampDeltaOptionto use environment variable with "1d" defaultLOGSTORY_TIMESTAMP_DELTA=1don Cloud Run job deployment--timestamp-deltaarguments from scheduler commandsBuild Fixes
.gitignore: Removeddist/*to allow wheel files in Cloud Build contextBenefits
Test Plan
🤖 Generated with Claude Code