Skip to content

Run 'emscripten' CI job on presubmit. - #12081

Merged
ScottTodd merged 4 commits into
iree-org:mainfrom
ScottTodd:emscripten-ci-presubmit
Feb 9, 2023
Merged

ScottTodd merged 4 commits into
iree-org:mainfrom
ScottTodd:emscripten-ci-presubmit

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Feb 6, 2023 •

Copy link
Copy Markdown
Member

Fixes #12044

This job is fast and stable enough to run on presubmit now.

Sample run: https://github.com/iree-org/iree/actions/runs/4107338632/jobs/7086808679

The xla_ops/check_llvm-cpu-wasm test suite can also be removed now, as we get similar coverage from the llvm-cpu suite and this code:

if(EMSCRIPTEN AND NOT IN_FLAGS MATCHES "iree-llvm-target-triple")
set(_EMSCRIPTEN_TEST_DEFAULT_FLAGS
"--iree-llvm-target-triple=wasm32-unknown-emscripten"
)
list(APPEND _FLAGS ${_EMSCRIPTEN_TEST_DEFAULT_FLAGS})
endif()
(when compiling for Emscripten)

This is already covered by the default llvm-cpu suite, when building with Emscripten. Developers won't be able to test the compilation without running under Emscripten though... just the same as they can't test other LLVM target triples.
@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing platform/web 🌐 Web-specific build, execution, benchmarking, and deployment labels Feb 6, 2023
@ScottTodd ScottTodd changed the title Emscripten ci presubmit Run 'emscripten' CI job on presubmit. Feb 6, 2023
@ScottTodd
ScottTodd marked this pull request as ready for review February 6, 2023 20:56
Comment thread .github/workflows/ci.yml

# emscripten is not in the test matrix because it is set as
# postsubmission-only.
cross_compile_and_test:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name is pretty long. How do we feel about shortening it to cross_compile or something like platform_matrix? @pzread / @hcindyl

(context: #10746)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pzread commented on #10746 (comment) to put the suffix _test in the name. I am okay either way. Will defer to you can Jerry to decide the name.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The names end up pretty long in these views, so it's hard to which platform in the matrix is which:

PR checks:
image

runs/id/
image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a low-priority item to rework the naming of everything. We had a Discord discussion starting here: https://discord.com/channels/689900678990135345/689957613152239638/1054588881045037056. I agree that the length is a problem here. That view being readable is pretty important :-) Maybe we can override name using the matrix? I'm not sure if that's possible. So far we've just used the job id as the name (I think it's simpler that way), but we do have the ability to configure it. Then it could be android_armv8.2-a_arm64-v8a and such (no docker container name either)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will be nice. We can also steer towards using job matrices for more configurations (that will improve grouping in the UI and reduce duplication in the .yml).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't block turning on emscripten though. Let's address that later

ScottTodd added a commit that referenced this pull request Feb 9, 2023
Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See #12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand #3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
@ScottTodd
ScottTodd enabled auto-merge (squash) February 9, 2023 20:30
@ScottTodd
ScottTodd merged commit a511be1 into iree-org:main Feb 9, 2023
@ScottTodd
ScottTodd deleted the emscripten-ci-presubmit branch February 9, 2023 20:48
qedawkins pushed a commit to qedawkins/iree that referenced this pull request Apr 2, 2023
…org#12127)

Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See iree-org#12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand iree-org#3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

iree-org#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
qedawkins pushed a commit to qedawkins/iree that referenced this pull request Apr 2, 2023
jpienaar pushed a commit that referenced this pull request May 1, 2023
Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See #12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand #3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
jpienaar pushed a commit that referenced this pull request May 1, 2023
rengolin pushed a commit to plaidml/iree that referenced this pull request May 2, 2023
…org#12127)

Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See iree-org#12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand iree-org#3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

iree-org#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
rengolin pushed a commit to plaidml/iree that referenced this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing platform/web 🌐 Web-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Emscripten CI job to presubmit

3 participants