Skip to content
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

feat: add replay #753

Merged
merged 54 commits into from
Mar 27, 2023
Merged

feat: add replay #753

merged 54 commits into from
Mar 27, 2023

Conversation

arinda-arif
Copy link
Contributor

No description provided.

@arinda-arif arinda-arif marked this pull request as draft March 3, 2023 08:16
@coveralls
Copy link

coveralls commented Mar 3, 2023

Pull Request Test Coverage Report for Build 4531047581

  • 383 of 417 (91.85%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 92.408%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core/scheduler/service/job_run_service.go 6 8 75.0%
core/scheduler/service/replay_service.go 16 18 88.89%
core/scheduler/handler/v1beta1/replay.go 39 43 90.7%
core/scheduler/service/replay_manager.go 41 52 78.85%
core/scheduler/service/replay_worker.go 148 163 90.8%
Totals Coverage Status
Change from base Build 4443793366: -0.03%
Covered Lines: 8885
Relevant Lines: 9615

💛 - Coveralls

config/config_server.go Outdated Show resolved Hide resolved
config/config_server.go Outdated Show resolved Hide resolved
client/cmd/replay/create.go Outdated Show resolved Hide resolved
core/scheduler/service/replay_manager.go Outdated Show resolved Hide resolved
core/scheduler/service/replay_manager.go Outdated Show resolved Hide resolved
core/scheduler/service/replay_service.go Show resolved Hide resolved
@arinda-arif arinda-arif marked this pull request as ready for review March 27, 2023 04:00
deryrahman and others added 3 commits March 27, 2023 15:35
* feat: support replay job config proton

* feat: add flag for replay job config

* feat: add job config on the replay

* feat: adding job replay repo placeholder

* feat: implement job replay repo

* fix: get replay config by tenant and job name

* refactor: rename get replay job config

* refactor: avoid magic number

* fix: linter

* fix: query for get replay job config
@arinda-arif arinda-arif merged commit d2225ee into main Mar 27, 2023
@arinda-arif arinda-arif deleted the feature/replay branch March 27, 2023 10:09
arinda-arif added a commit to goto/optimus that referenced this pull request Mar 27, 2023
* feat: add replay entity and repository

* feat: add replay service

* feat: add replay handler

* feat: add replay manager and worker

* test: fix job run service and replay service test cases

* test: fix scheduler status test case

* refactor: add JobReplayRunService in ReplayWorker

* refactor: fix lint issues

* refactor: remove logical time from JobRunStatus

* feat: implement UpdateReplay in repository

* refactor: fetch a single replay request to be processed

* refactor: change implementation of GetReplayToExecute

* refactor: update replay state to in progress once it is picked

* refactor: pass job cron value to replay validate

* feat: implement replay validator

* refactor: change replay entity structure

* refactor: validator to accept replay request

* feat: implement GetReplayRequestsByStatus

* fix: GetReplayRequestByStatus invalid query

* feat: add replay timeout in server config

* refactor: update replay and update replay status in repository

* feat: add replay time out check

* refactor: remove replay id from ReplayWithRun

* feat: add replay create cli

* refactor: unexport replay entity fields

* fix: resolve migration files conflict

* test: add replay entity unit tests

* feat: add replay loop timeout in server config

* fix: replay repository to return scheduled time in utc

* fix: unable to process sequential replay properly issue

* fix: error log in replay service

* feat: register replay to optimus server

* chore: add todos in replay worker

* refactor: remove replay's worker and loop timeout configuration

* chore: reduce replay create client timeout from 1 hour to 1 minute

* fix: log level, log message and replay message

* refactor: reword error message when unable to parse cron interval

* fix: add missing description flag in replay create

* refactor: rename var and simplify processing new replay in replay worker

* refactor: remove start and end time index in replay request table

* chore: add note and todo in scheduler status and replay repository

* fix: update conflicted migration files number

* chore: fix lint issues

* chore: remove unnecessary error not found catch in replay repository

* fix: issue when replay worker unable to get job details and add more tests

* test: add more replay test cases

* chore: fix lint issue

* test: add replay manager unit tests

* test: add scheduler BC status unit tests

* feat: replay config overriding (raystack#765)

* feat: support replay job config proton

* feat: add flag for replay job config

* feat: add job config on the replay

* feat: adding job replay repo placeholder

* feat: implement job replay repo

* fix: get replay config by tenant and job name

* refactor: rename get replay job config

* refactor: avoid magic number

* fix: linter

* fix: query for get replay job config

* chore: update proton commit

* fix: issue on replay creation when job config is not set

---------

Co-authored-by: Dery Rahman Ahaddienata <dery.ra@gmail.com>
@ravisuhag ravisuhag mentioned this pull request Jul 20, 2023
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.

None yet

4 participants