c4-project / c4t

Runs concurrent C compiler tests
MIT License
1 stars 0 forks source link

Merge compiles and runs in plan #61

Closed MattWindsor91 closed 3 years ago

MattWindsor91 commented 3 years ago

The plan tracks compiles and runs in separate tables, with separate statuses. This is wasteful because:

It also doesn't make much sense from a division-of-labour perspective: both compile and run are governed by the invoker, and there is always a 1 to 1 relationship between the two.

As such, I'm suggesting that the two tables merge into one invocations (or maybe compilations) table, which would look like this:

{
  // ...
  "invocations": {
    "gcc.4": {
      "status": "Ok",
      "compile": {
        // compilation stuff goes here
      },
      "run": {
        // run stuff goes here
      }
    }
  }
  // ...
}

As for the overlap between Ok meaning 'compile ok' and 'run ok', I'd either make a new NeedsCompile status, omit status when it's indeterminate, or have the presence or absence of run disambiguate. Hmm.