Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildFailedの理由が握りつぶされることがある #827

Open
shinsuke-mat opened this issue Dec 17, 2020 · 1 comment · May be fixed by #853
Open

BuildFailedの理由が握りつぶされることがある #827

shinsuke-mat opened this issue Dec 17, 2020 · 1 comment · May be fixed by #853
Assignees

Comments

@shinsuke-mat
Copy link
Member

related to #823

#802 で初回のBuildFailedを適切にコンソールに出力するように変更した.
以下の題材に対し,

  public int close_to_zero(int n) {
    if (n == 0) {
      k++; // build failure
    ...

以下の出力.これはOK.

...
version = 1.8.0+
================================================================
2020-12-17 16:28:19 [Time-limited test] [ERROR] KGenProgMain - Failed to build the specified project.
シンボルを見つけられません
  シンボル:   変数 k
  場所: クラス example.CloseToZero

Process finished with exit code 0

コンパイルエラーの種類?によってはエラーの原因が握りつぶされる.
以下の場合,

  public int close_to_zero(int n) {
    a // error
    if (n == 0) {

build failed or reproduced. というメッセージでエラー原因が上書きされる.

version = 1.8.0+
================================================================
2020-12-17 16:29:14 [Time-limited test] [ERROR] KGenProgMain - Failed to build the specified project.
build failed or reproduced.

Process finished with exit code 0

@shinsuke-mat
Copy link
Member Author

shinsuke-mat commented Dec 17, 2020

EmptyTestResults オブジェクトの生成タイミングの問題っぽい.

$ find src -type f | xargs grep 'reprodu'
src/main/java/jp/kusumotolab/kgenprog/ga/variant/VariantStore.java:            .cache() : Single.just(new EmptyTestResults("build failed or reproduced."));

final Single<TestResults> resultsSingle =
sourceCode.shouldBeTested() ? strategies.execAsyncTestExecutor(variantSingle)
.cache() : Single.just(new EmptyTestResults("build failed or reproduced."));

#823 と合わせて修正すべき.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants