Skip to content

fix(infra): resolve CI, test, and release workflow failures#4

Open
gsmlg wants to merge 2 commits intomainfrom
fix-ci-failures
Open

fix(infra): resolve CI, test, and release workflow failures#4
gsmlg wants to merge 2 commits intomainfrom
fix-ci-failures

Conversation

@gsmlg
Copy link
Copy Markdown
Contributor

@gsmlg gsmlg commented Mar 30, 2026

Summary

  • Fix Dialyzer infinite PLT loop in CI by configuring PLT path in umbrella root and running dialyxir directly instead of via cmd alias
  • Fix 13 test failures: update stale AgentChannel tests for direct topic join, fix OpenSSL compatibility in certificate tests (-startdate/-enddate instead of -not_before/-not_after)
  • Fix Docker build failure by providing placeholder DATABASE_URL and SECRET_KEY_BASE during asset compilation

Test plan

  • CI workflow passes (compile, format, credo, dialyzer)
  • Test workflow passes (all tests green)
  • Release workflow builds Docker images successfully

- CI Dialyzer: Add PLT path config to root mix.exs and change alias
  from `cmd mix dialyzer` (which loops in umbrella children) to run
  dialyxir directly from the umbrella root. Create priv/plts dir in CI.

- Test AgentChannel: Update stale tests that expected direct topic join
  to be rejected; the channel now allows direct join with auto-auth.
  Restructure integration tests to use direct topic join for pre-auth
  state. Add try/rescue to authenticate handler to prevent silent
  channel crashes when bootstrap_agent fails.

- Test VerifyClientCertificate: Replace openssl x509 -not_before/
  -not_after flags (requires OpenSSL >= 3.2) with openssl ca
  -startdate/-enddate which works across all OpenSSL versions.

- Release Docker: Set placeholder DATABASE_URL and SECRET_KEY_BASE
  during asset build stage to prevent runtime.exs from raising when
  mix assets.deploy triggers config evaluation in prod.
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