ren worker folder adding orig, mv new one into root
This commit is contained in:
@@ -53,10 +53,10 @@ cmd = "DATABASE_URL=postgresql://postgres:secret_password@localhost:5432/r_test
|
||||
|
||||
[[ZenBill-006.checks]]
|
||||
name = "jest"
|
||||
# The heaviest check we have (134 jsdom suites, ~3.8 GB however it is run) and the
|
||||
# one with the least margin at 4 GiB. --runInBand is deliberate: --maxWorkers is the
|
||||
# right lever elsewhere, but here it makes jest hang once the last suite passes.
|
||||
cmd = "TZ=UTC npx jest --runInBand"
|
||||
# Heaviest check we have (134 jsdom suites). The heap cap is load-bearing: Node is not
|
||||
# cgroup-aware, so uncapped V8 grows to 4.8 GB RSS and the kernel kills the run mid-suite.
|
||||
# --runInBand is deliberate too: --maxWorkers makes jest hang here once the last suite passes.
|
||||
cmd = "TZ=UTC NODE_OPTIONS=--max-old-space-size=1536 npx jest --runInBand"
|
||||
|
||||
# confidence: validated
|
||||
[zeta-platform]
|
||||
@@ -82,11 +82,15 @@ setup = "until pg_isready -h localhost -p 5432 -U postgres >/dev/null 2>&1; do s
|
||||
|
||||
[[human-essentials.checks]]
|
||||
name = "rspec"
|
||||
cmd = "RAILS_ENV=test PG_HOST=localhost PG_USERNAME=postgres bundle exec rspec --exclude-pattern 'spec/system/**/*'"
|
||||
cmd = "RAILS_ENV=test PG_HOST=localhost PG_USERNAME=postgres bundle exec rspec --exclude-pattern 'spec/system/**/*,spec/requests/partners/family_requests_requests_spec.rb'"
|
||||
|
||||
# confidence: validated
|
||||
[endsideout]
|
||||
notes = "Rails 8.1 / Ruby 4.0.0, Minitest + SQLite (no DB service — file-backed)"
|
||||
# A response that bumps the gemset leaves the lockfile needing an install, which errored the
|
||||
# whole check and cost one run a -0.05 the agent had not earned. bundle check keeps this a
|
||||
# no-op when the lockfile is untouched.
|
||||
setup = "bundle check >/dev/null 2>&1 || BUNDLE_FROZEN=false bundle install --jobs 4 --retry 3"
|
||||
|
||||
[[endsideout.checks]]
|
||||
name = "minitest"
|
||||
@@ -107,10 +111,12 @@ setup = "until pg_isready -h localhost -p 5432 -U postgres >/dev/null 2>&1; do s
|
||||
|
||||
[[stocks-in-the-future.checks]]
|
||||
name = "minitest"
|
||||
cmd = "bin/rails test"
|
||||
# Serial is load-bearing, not a speed choice: parallel workers each restart the global
|
||||
# FactoryBot sequence(:level), which collides with the hardcoded levels below.
|
||||
cmd = "PARALLEL_WORKERS=1 bin/rails test"
|
||||
baseline_known_failures = [
|
||||
"Admin::TeachersControllerTest#test_new_shows_classrooms_when_available (test/controllers/admin/teachers_controller_test.rb:143) — pre-existing, time-dependent failure: test hardcodes Year '2025 - 2026' but Admin::TeachersController#new scopes classrooms to the current school year by today's date, so the expected classroom isn't shown. Latent app-side time-bomb, not an env defect; documented in overview.md.",
|
||||
"ClassroomsControllerTest — any test in this class can fail or error with ActiveRecord::RecordInvalid 'Validation failed: Level has already been taken'. Pre-existing app-side flake that surfaces ONLY under parallel workers: a FactoryBot global sequence(:level) collides with a hardcoded create(:grade, level: 7). Which method it lands on varies with the run seed and worker interleaving (test_create observed 2026-07-14, test_update observed 2026-09-01), so match on the class + message, not the method name. Passes serially (PARALLEL_WORKERS=1). Not an env defect.",
|
||||
"Any test that errors with ActiveRecord::RecordInvalid 'Validation failed: Level has already been taken'. Pre-existing app-side flake, not an env defect: the global FactoryBot sequence(:level) (test/factories/grades.rb:5, consumed by every classroom via test/factories/classrooms.rb) collides with hardcoded levels 5/6/7/9/10 at classrooms_controller_test.rb:30,96, admin/classrooms_controller_test.rb:27,28,51, models/grade_test.rb:62,70 and system/user_manages_classrooms_test.rb:11,32. With workers pinned to 1 there is one seed-dependent window per run instead of one per worker, so it is rare but not impossible. Match on the message, not on a class or method name.",
|
||||
]
|
||||
|
||||
# confidence: validated
|
||||
@@ -141,11 +147,20 @@ baseline_known_failures = [
|
||||
# confidence: validated
|
||||
[flaredown]
|
||||
notes = "Rails 7.1 API (Ruby 3.2.3), Mongoid 8.1 on MongoDB 7.0 + Postgres + Redis + Sidekiq. The app lives in backend/ (not the repo root), so the check cd's into it. The harbor Dockerfile's start-services.sh starts all three datastores, creates flaredown_development/flaredown_test, and loads the Postgres schema for both envs; backend/.env is materialized from env-example with PG host rewritten to localhost. Mongoid creates collections lazily (no schema to load). Browser/acceptance specs are excluded — Ember `ember test` needs a browser on PATH (phantomjs up to pin 5f859e8d, headless Chrome via CHROME_BIN from b0605ff3, which the Explore image now provides though the verifier image does not) and is bad grader signal anyway; the rspec verifier touches neither the client nor a running server. [Runtime-validated 2026-08-04 in the harbor image built from Dockerfile.flaredown @ pin b0605ff3]: 315 examples, 0 failures (~7s, 96.08% coverage) — clean, so no baseline is declared. Unchanged from the earlier validation at pin 5f859e8d (2026-07-20, same 315/0/96%); the only backend change across that pin advance is backend/lib/tasks/app.rake."
|
||||
setup = "until pg_isready -h localhost -p 5432 -U postgres >/dev/null 2>&1; do sleep 0.5; done; cd backend && RAILS_ENV=test bundle exec rails db:schema:load"
|
||||
# start-services.sh creates flaredown_test after its own pg_isready wait, so the verifier can
|
||||
# win the race and find no database; db:schema:load cannot create one, db:test:prepare can.
|
||||
setup = "until pg_isready -h localhost -p 5432 -U postgres >/dev/null 2>&1; do sleep 0.5; done; cd backend && RAILS_ENV=test bundle exec rails db:test:prepare"
|
||||
|
||||
[[flaredown.checks]]
|
||||
name = "rspec"
|
||||
cmd = "cd backend && RAILS_ENV=test bundle exec rspec --exclude-pattern 'spec/system/**/*'"
|
||||
# Two pre-existing flakes are skipped rather than declared, so a red is always the response's:
|
||||
# spec/models/food_spec.rb — same_food_1/same_food_2 are both "TestFood #{FFaker::Lorem.word}",
|
||||
# so a stopword draw gives identical tsvectors and Food.fts has no tiebreaker (4 of 47 runs).
|
||||
# spec/services/collection_retriever_spec.rb — object_ids.sample(5) x5 over 20 ids can draw
|
||||
# uniform counts while the assertion is a strict min < max.
|
||||
# Cost, measured at pin b0605ff3: 9 sound examples of 315, and CollectionRetriever (behind
|
||||
# api/v1/tags#index and api/v1/foods#index) loses its only spec coverage.
|
||||
cmd = "cd backend && RAILS_ENV=test bundle exec rspec --exclude-pattern 'spec/system/**/*,spec/models/food_spec.rb,spec/services/collection_retriever_spec.rb'"
|
||||
|
||||
# confidence: none
|
||||
[alongwithyou]
|
||||
|
||||
Reference in New Issue
Block a user