{"id":16877156,"url":"https://github.com/rmacklin/rails_parallel_testing_experiments","last_synced_at":"2025-07-02T19:32:47.508Z","repository":{"id":146967210,"uuid":"185632913","full_name":"rmacklin/rails_parallel_testing_experiments","owner":"rmacklin","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-14T17:02:28.000Z","size":682,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-17T12:44:30.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmacklin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-08T15:26:35.000Z","updated_at":"2019-05-15T20:09:39.000Z","dependencies_parsed_at":"2023-05-05T22:30:43.529Z","dependency_job_id":null,"html_url":"https://github.com/rmacklin/rails_parallel_testing_experiments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rmacklin/rails_parallel_testing_experiments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmacklin%2Frails_parallel_testing_experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmacklin%2Frails_parallel_testing_experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmacklin%2Frails_parallel_testing_experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmacklin%2Frails_parallel_testing_experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmacklin","download_url":"https://codeload.github.com/rmacklin/rails_parallel_testing_experiments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmacklin%2Frails_parallel_testing_experiments/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260514875,"owners_count":23020608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T15:41:54.697Z","updated_at":"2025-07-02T19:32:47.497Z","avatar_url":"https://github.com/rmacklin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rails_parallel_testing_experiments\n\nThis repository contains some of my experimentation with Rails 6 parallel\ntesting.\n\n---\n\nI found an issue that others might run into ([rails/rails#36288]). I've been\nable to work around it, but I still opened that issue on the rails repository to\nsee if we want to do something within rails to address it.\n\n[rails/rails#36288]: https://github.com/rails/rails/issues/36288\n\n### Steps to reproduce\n\nI [created a new rails 6.0.0.rc1 app] and [added a dummy system test]. I\nconfigured it to run tests in parallel, and set it up to run on CircleCI.\n\n[added a dummy system test]: https://github.com/rmacklin/rails_parallel_testing_experiments/commit/bdc34511d9b34c1b456bfcf14702434307d06cde\n[created a new rails 6.0.0.rc1 app]: https://github.com/rmacklin/rails_parallel_testing_experiments/commit/736688f2f11b27b7226bc6ba9dbcc94f5ab6deaa\n\n### Expected behavior\n\nThe tests pass on CI\n\n### Actual behavior\n\nThe tests can fail on CI with the following error:\n```\nChildProcess::LaunchError: Text file busy - /home/circleci/.webdrivers/chromedriver\n    test/system/sample_system_test.rb:19:in `block in \u003cclass:SampleSystemTest\u003e'\n```\n\nExample CI build:\nhttps://circleci.com/gh/rmacklin/rails_parallel_testing_experiments/16\n\nI think the error stems from multiple forked processes trying to update\nchromedriver in parallel. I've configured the sample app to use 2 parallel\nworkers, but it follows that this error will be more common as more parallel\nworkers are used.\n\nMy workaround was to explicitly trigger a chromedriver update before parallel\nprocesses are forked: [`4b3b06b`]\n\n[`4b3b06b`]: https://github.com/rmacklin/rails_parallel_testing_experiments/commit/4b3b06bbeb34ec57277c8b37ad3804cd659539db\n\n---\n\nI also experimented with backporting Rails 6 parallel testing support to a\nRails 5 application. You can see a working example in the [`rails-5` branch]\nand a description in this gist:\nhttps://gist.github.com/rmacklin/686a3d284147c009e305527f32abfccd\n\n[`rails-5` branch]: https://github.com/rmacklin/rails_parallel_testing_experiments/tree/rails-5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmacklin%2Frails_parallel_testing_experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmacklin%2Frails_parallel_testing_experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmacklin%2Frails_parallel_testing_experiments/lists"}