{"id":15591129,"url":"https://github.com/coderberry/appmap-test-app-fiber-graphql","last_synced_at":"2025-02-22T04:14:39.601Z","repository":{"id":226338335,"uuid":"767765692","full_name":"coderberry/appmap-test-app-fiber-graphql","owner":"coderberry","description":"Test app for https://github.com/getappmap/appmap-ruby/issues/349","archived":false,"fork":false,"pushed_at":"2024-03-11T16:03:40.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T20:59:11.039Z","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/coderberry.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}},"created_at":"2024-03-05T21:29:11.000Z","updated_at":"2024-03-05T21:30:08.000Z","dependencies_parsed_at":"2024-03-11T17:42:02.162Z","dependency_job_id":null,"html_url":"https://github.com/coderberry/appmap-test-app-fiber-graphql","commit_stats":null,"previous_names":["coderberry/appmap-test-app-fiber-graphql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderberry%2Fappmap-test-app-fiber-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderberry%2Fappmap-test-app-fiber-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderberry%2Fappmap-test-app-fiber-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderberry%2Fappmap-test-app-fiber-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderberry","download_url":"https://codeload.github.com/coderberry/appmap-test-app-fiber-graphql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122610,"owners_count":19751145,"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-02T23:40:24.515Z","updated_at":"2025-02-22T04:14:39.146Z","avatar_url":"https://github.com/coderberry.png","language":"Ruby","readme":"# AppMap + GraphQL + Fiber Bug\n\nThis app replicates the bug reported at https://github.com/getappmap/appmap-ruby/issues/349.\n\n## Conditions\n\n- Using the appmap gem\n- Using the latest graphql gem\n- `config.active_support.isolation_level = :fiber` in application.rb\n\n## Steps to reproduce\n\n### 1. Prepare app\n\n```bash\ngit clone git@github.com:coderberry/appmap-test-app-fiber-graphql.git\ncd appmap-test-app-fiber-graphql\nbin/setup\nbin/rails db:migrate\nbin/rails db:seed\n```\n\n### 2. Run the app\n\n```bash\nbin/rails s\n```\n\n### 3. Execute a query via GraphiQL\n\nOpen [http://locahost:3000/graphiql](http://localhost:3000/graphiql)) and execute the following query 5 times:\n\n```graphql\nquery {\n  localCounts\n}\n```\n\n### 4. Observe the hung fibers\n\nEnsure you are viewing the Rails server logs and sumbmit the request a 6th time. The request will hang and you will see that the connection pool was not cleaned up.\n\nExample:\n\n![CleanShot 2024-03-05 at 16 17 57](https://github.com/coderberry/appmap-test-app-fiber-graphql/assets/12481/c3287d73-fb38-47cd-ab44-c202e0a6507a)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderberry%2Fappmap-test-app-fiber-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderberry%2Fappmap-test-app-fiber-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderberry%2Fappmap-test-app-fiber-graphql/lists"}