-
Notifications
You must be signed in to change notification settings - Fork 0
Improve testing #25
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
Improve testing #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Этот код не стоит смотреть, он максимально на коленке сделан из моего импорта на еджадж и понятное дело что при появлении нормального клиента с условиями задач он должен быть переделан
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| fillInStorageConfig(config.Storage) | ||
| } | ||
| if config.Invoker != nil { | ||
| FillInInvokerConfig(config.Invoker) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно не экспортировать видимо
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не, оно в тестах инвокера нужно
| i.givenJobs[job.ID] = job | ||
| i.firstNotGivenTest++ | ||
|
|
||
| for givenJobID, testingJob := range i.givenJobs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выдача теста за линию теперь...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Всм, given jobs это те джобы, которые сейчас работают, а не все вообще которые были
|
|
||
| if result.Verdict != verdict.OK { | ||
| for runningJobID, runningJob := range r.testingJobs { | ||
| if slices.Contains(runningJob.RequiredJobIDs, result.Job.ID) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мб сделать RequiredJobIDs сетом?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хз, мне кажется там зависимость будет обычно от настолько малого числа джобов, что это ни на что не повлияет. Плюс в json тогда превращать сложнее будет
Add job cancel, polygon import and auto ip detection for invoker