File size: 2,442 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  "id": "single-software-execution--cli--openfoam--task-17--ubuntu",
  "snapshot": "OpenFOAM11",
  "instruction": "Work from a broken OpenFOAM case `/home/user/Desktop/broken_block/`. OpenFOAM is normally used from a shell after sourcing your installation environment (e.g. its `etc/bashrc`); `foamRun -help` verifies solver binaries are available. Before running the case, load OpenFOAM with `source /opt/openfoam11/etc/bashrc`; the solver binaries are under `/opt/openfoam11/bin` and its platform bin directory.\n\nComplete diagnose-fix-rerun using only the command line: 1. Try running `blockMesh`; it should fail. 2. Read error logs and locate all topology errors. 3. Fix the case into `/home/user/Desktop/fixed/` (do not use GUI). 4. Re-run mesh generation and solver, and ensure time-step field files are generated successfully. 5. Write a diagnosis report `/home/user/Desktop/diagnosis.txt` that explains each error cause and fix in detail, with total length >= 100 words. 6. Do not use GUI tools.",
  "source": "https://github.com/openfoam/openfoam-dev",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-17/init_file/broken_block.tar",
            "path": "/home/user/Desktop/broken_block.tar"
          }
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": "bash -c \"mkdir -p '/home/user/Desktop/' && tar -xf '/home/user/Desktop/broken_block.tar' -C '/home/user/Desktop/' && rm -f '/home/user/Desktop/broken_block.tar'\"",
        "shell": true
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "openfoam"
  ],
  "artifact_paths": [
    "/home/user/Desktop/diagnosis.txt",
    "/home/user/Desktop/fixed",
    "/home/user/Desktop/broken_block"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-17/eval.py",
              "path": "/home/user/Desktop/eval.py"
            }
          ]
        }
      }
    ],
    "func": "exact_match",
    "result": {
      "type": "vm_command_line",
      "command": "python3 /home/user/Desktop/eval.py",
      "shell": "true"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "expected": "True\n"
      }
    }
  },
  "proxy": false,
  "fixed_ip": false,
  "possibility_of_env_change": "low"
}