clean_mixer icon indicating copy to clipboard operation
clean_mixer copied to clipboard

Errors when running `make ci`

Open kianmeng opened this issue 3 years ago • 0 comments

Running on:

  • Elixir: 1.12.1
  • Erlang: 24.0.2

Results as follows:

make ci
mix clean && mix compile --warnings-as-errors
Compiling 2 files (.erl)
Compiling 53 files (.ex)
Generated clean_mixer app
mix format --check-formatted --dry-run
mix test
...

  1) test it generates plantuml components diagram (Mix.Tasks.CleanMixer.PlantumlTest)
     test/mix/tasks/plantuml_test.exs:18
     Assertion with =~ failed
     code:  assert plant_uml =~ "[arch_map] -[#black]-> [code_map]"
     left:  "@startuml\nskinparam backgroundColor<<dep>> Grey\nskinparam legend {\n FontSize 20\n }\nlegend bottom left\n I = Instability = out / (in + out)\nS = Stability = 1 - I\nA = Abstractness = behaviours / total_modules\nD = Distance = |A+I-1|\nTf = Total files\nPf = Public files\nAin = Abstract in\nAout = Abstract out\nU = Usage = UsedFiles / Pf \n endlegend\nrectangle arch_map  [ =arch_map \n\n In=6 Out=0 S=1.0 (I=0.0) \nA=0.0 D=1.0 (2.0σ) \nTf=5 Pf=2 Ain=0 Aout=0 ]\nrectangle code_map  [ =code_map \n\n In=10 Out=0 S=1.0 (I=0.0) \nA=0.0 D=1.0 (2.0σ) \nTf=6 Pf=5 Ain=0 Aout=0 ]\nrectangle compiler_manifests  [ =compiler_manifests \n\n In=0 Out=7 S=0.0 (I=1.0) \nA=0.0 D=0.0 (0.0σ) \nTf=5 Pf=0 Ain=0 Aout=0 ]\nrectangle metrics  [ =metrics \n\n In=0 Out=9 S=0.0 (I=1.0) \nA=0.0 D=0.0 (0.0σ) \nTf=13 Pf=0 Ain=0 Aout=0 ]\n[compiler_manifests] -[#black]-> [code_map] : U=0.8\n[metrics] -[#black]-> [code_map] : U=0.4\n[metrics] -[#black]-> [arch_map] : U=1.0\n@enduml"
     right: "[arch_map] -[#black]-> [code_map]"
     stacktrace:
       test/mix/tasks/plantuml_test.exs:24: (test)

...

  2) test filters components by source and target deps (Mix.Tasks.CleanMixer.PlantumlTest)
     test/mix/tasks/plantuml_test.exs:39
     Assertion with =~ failed
     code:  assert plantuml =~ ~r"\[arch_map\] .+-> \[code_map\]"
     left:  "@startuml\nskinparam backgroundColor<<dep>> Grey\nskinparam legend {\n FontSize 20\n }\nlegend bottom left\n I = Instability = out / (in + out)\nS = Stability = 1 - I\nA = Abstractness = behaviours / total_modules\nD = Distance = |A+I-1|\nTf = Total files\nPf = Public files\nAin = Abstract in\nAout = Abstract out \n endlegend\n@enduml"
     right: ~r/\[arch_map\] .+-> \[code_map\]/
     stacktrace:
       test/mix/tasks/plantuml_test.exs:46: (test)

......

  3) test filters components by file_source and file_target of deps (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:26
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:32: (test)



  4) test filters components by source and target deps (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:16
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:22: (test)



  5) test lists project components and their dependencies (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:6
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "===> compiler_manifests -> code_map\n * lib/clean_mixer/compiler_manifests/manifest.ex\n |---> lib/clean_mixer/code_map/code_module.ex (runtime)\n |---> lib/clean_mixer/code_map/module_reference.ex (runtime,export)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime,export)\n * lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n |---> lib/clean_mixer/code_map.ex (runtime)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime)\n * lib/clean_mixer/compiler_manifests/xref_source.ex\n |---> lib/clean_mixer/code_map/module_reference.ex (runtime)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime)\n\n===> metrics -> code_map\n * lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n |---> lib/clean_mixer/code_map/file_dependency.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n |---> lib/clean_mixer/code_map/file_dependency.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstractness.ex\n |---> lib/clean_mixer/code_map/code_module.ex (runtime)\n===> metrics -> arch_map\n * lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstractness.ex\n |---> lib/clean_mixer/arch_map/component.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/fan_in.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/fan_out.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/public_files.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:12: (test)



  6) test lists project components and their usages (Mix.Tasks.CleanMixer.ListUsagesTest)
     test/mix/tasks/list_usages_test.exs:6
     Assertion with =~ failed
     code:  assert output =~ "code_map <- [arch_map, compiler_manifests, metrics]"
     left:  "===> arch_map <- [metrics]\n * lib/clean_mixer/arch_map.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/fan_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/fan_out.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/public_files.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n * lib/clean_mixer/arch_map/component.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstractness.ex\n\n===> code_map <- [compiler_manifests, metrics]\n * lib/clean_mixer/code_map.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n * lib/clean_mixer/code_map/code_module.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstractness.ex\n * lib/clean_mixer/code_map/file_dependency.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n * lib/clean_mixer/code_map/module_reference.ex\n   | <--- lib/clean_mixer/compiler_manifests/xref_source.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n * lib/clean_mixer/code_map/source_file.ex\n   | <--- lib/clean_mixer/compiler_manifests/xref_source.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n"
     right: "code_map <- [arch_map, compiler_manifests, metrics]"
     stacktrace:
       test/mix/tasks/list_usages_test.exs:12: (test)

..........................................

Finished in 24.7 seconds (0.00s async, 24.7s sync)
60 tests, 6 failures

Randomized with seed 831783

kianmeng avatar Jul 03 '21 15:07 kianmeng