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

MF Test Platform Init #1

Merged
merged 17 commits into from
Aug 2, 2022
Merged

MF Test Platform Init #1

merged 17 commits into from
Aug 2, 2022

Conversation

littlemight
Copy link
Contributor

@littlemight littlemight commented Jul 20, 2022

related document: https://moneyforward.kibe.la/notes/224857
In this PR:

@littlemight littlemight changed the title F/fang challenge Fang Challenge Changes Jul 28, 2022
@littlemight littlemight changed the title Fang Challenge Changes MF Test Platform Init Jul 28, 2022
@littlemight littlemight requested a review from yuyuvn July 28, 2022 06:55
lib/rspecq.rb Outdated
@@ -5,12 +5,13 @@ module RSpecQ
# If a worker haven't executed an example for more than WORKER_LIVENESS_SEC
# seconds, it is considered dead and its reserved work will be put back
# to the queue to be picked up by another worker.
WORKER_LIVENESS_SEC = 60.0
WORKER_LIVENESS_SEC = 300.0 # 5 mins, leeway for an example that runs for several minutes
Copy link
Member

Choose a reason for hiding this comment

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

it would be better if we can config it somewhere instead of hard code

@@ -180,7 +199,28 @@ def try_publish_queue!(queue)

if slow_files.any?
jobs.concat(files_to_run - slow_files)
jobs.concat(files_to_example_ids(slow_files))
total_worker = Integer(ENV["CIRCLE_NODE_TOTAL"] || 420) # TODO: parse from flag
Copy link
Member

Choose a reason for hiding this comment

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

we should use another env var so we can run not only in circleci but other CI

@yuyuvn yuyuvn self-requested a review August 2, 2022 01:36
Copy link
Member

@yuyuvn yuyuvn left a comment

Choose a reason for hiding this comment

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

LGTM

@littlemight littlemight merged commit 517f40a into master Aug 2, 2022
@littlemight littlemight deleted the f/fang-challenge branch August 2, 2022 08:54
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