- Notifications
You must be signed in to change notification settings - Fork929
feat: implement scheduling mechanism for prebuilds#18126
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
evgeniy-scherbina merged 46 commits intomainfromyevhenii/prebuilds-autoscaling-mechanismJun 19, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
46 commits Select commitHold shift + click to select a range
47cb6fc
feat: implement autoscaling mechanism for prebuilds
evgeniy-scherbina0f4d521
fix: precision issue with is-within-range function
evgeniy-scherbinab957eb6
test: fix is-within-range test
evgeniy-scherbinade920b8
test: minor fixes in is-within-range test
evgeniy-scherbina5d31b43
test: fix tests failed due to is-within-range function
evgeniy-scherbinab3130a8
fix: migration numbers
evgeniy-scherbina0565fb7
feat: define functions for validation of schedules
evgeniy-scherbina99d76e5
Merge remote-tracking branch 'origin/main' into yevhenii/prebuilds-au…
evgeniy-scherbinabdfcd9e
regenerate protofiles
evgeniy-scherbinaea7766f
test: improve test coverage for schedules-overlap function
evgeniy-scherbina1e78317
test: improve test coverage for validate-schedules function
evgeniy-scherbina5d99ef1
refactor: add logger to preset-snapshot
evgeniy-scherbina158b92e
refactor: fallback to default on error in calc-desired-instances
evgeniy-scherbina396d080
refactor: change signature of calc-desired-instances
evgeniy-scherbina12dba6c
fix: improve schedule validation
evgeniy-scherbina3fa98b2
fix: bug related to DOM and DOW interpretation
evgeniy-scherbina8a063ff
fix: add schedules validation
evgeniy-scherbina12d3d88
fix: use TimeRange function instead of Weekly
evgeniy-scherbina3facaf2
fix: linter
evgeniy-scherbina6ce7ff2
fix: migration numbers
evgeniy-scherbina178676f
Merge remote-tracking branch 'origin/main' into yevhenii/prebuilds-au…
evgeniy-scherbina368fb36
deps: update version of tf-provider-coder
evgeniy-scherbina44b67ae
refactor: use ValidateSchedules from tf-provider-coder
evgeniy-scherbinadf202c2
fix: CR's fixes
evgeniy-scherbinaaffee62
Update coderd/database/dbgen/dbgen.go
evgeniy-scherbina909d950
refactor: rename instances to desired_instances for consistency
evgeniy-scherbinae08f8d2
fix: make gen
evgeniy-scherbina4da1e64
fix: migrations test
evgeniy-scherbina4d2557c
fix: optimize get-preset-prebuild-schedules query
evgeniy-scherbinafaf9ec7
refactor: rename DB method
evgeniy-scherbina821eda7
refactor: rename autoscaling to scheduling
evgeniy-scherbina7617042
refactor: rename autoscaling to scheduling (migration files)
evgeniy-scherbina6c2350f
refactor: minor refactor after renaming
evgeniy-scherbinacacdb1f
deps: update version of tf-provider-coder
evgeniy-scherbina8d2c08e
gen: make gen
evgeniy-scherbina5600054
docs: document api changes in proto/version.go
evgeniy-scherbina2215a9e
test: extend convert-resources test with prebuilds.scheduling
evgeniy-scherbina69ab8e1
fix: make gen
evgeniy-scherbina4a29496
refactor: make fmt
evgeniy-scherbina8edb051
deps: update version of tf-provider-coder
evgeniy-scherbina954bf66
Merge remote-tracking branch 'origin/main' into yevhenii/prebuilds-au…
evgeniy-scherbina2d945cf
fix: migration numbers
evgeniy-scherbina533a2b5
refactor: fix formatting
evgeniy-scherbina2b7119a
fix: set scheduling_timezone to empty string by default
evgeniy-scherbina96caa18
refactor: improve logging
evgeniy-scherbina83872d6
refactor: improve logging
evgeniy-scherbinaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
fix: precision issue with is-within-range function
Co-authored-by: Danny Kopping <danny@coder.com>
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit0f4d521a231b55d7cff6b6c936301e446d5e635c
There are no files selected for viewing
15 changes: 10 additions & 5 deletionscoderd/schedule/cron/cron.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.