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

SPIRVAPITests fail on GitHub macOS ARM runners #125121

Open
tstellar opened this issue Jan 30, 2025 · 1 comment
Open

SPIRVAPITests fail on GitHub macOS ARM runners #125121

tstellar opened this issue Jan 30, 2025 · 1 comment

Comments

@tstellar
Copy link
Collaborator

The SPIRVAPITest tests are failing when run on the macOS ARM runners. Full log can be found here: https://github.com/tstellar/llvm-project/actions/runs/12967738035/job/36169942578

FAIL: LLVM-Unit :: Target/SPIRV/./SPIRVTests/0/4 (55452 of 55525)
******************** TEST 'LLVM-Unit :: Target/SPIRV/./SPIRVTests/0/4' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests-LLVM-Unit-45168-0-4.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=4 GTEST_SHARD_INDEX=0 /Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests
--

Script:
--
/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests --gtest_filter=SPIRVAPITest.checkTranslateUnknownExtensionByOpts
--
/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:168: Failure
Death test: { toSpirv(ExtensionAssembly, Result, Error, {}, Opts); }
    Result: failed to die.
 Error msg:
[  DEATH   ] SPIRVTranslateModule: for the --spirv-ext option: Unknown SPIR-V extension: +SPV_XYZ_my_unknown_extension
[  DEATH   ] 


/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:168
Death test: { toSpirv(ExtensionAssembly, Result, Error, {}, Opts); }
    Result: failed to die.
 Error msg:
[  DEATH   ] SPIRVTranslateModule: for the --spirv-ext option: Unknown SPIR-V extension: +SPV_XYZ_my_unknown_extension
[  DEATH   ] 



********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Target/SPIRV/./SPIRVTests/1/4 (55453 of 55525)
******************** TEST 'LLVM-Unit :: Target/SPIRV/./SPIRVTests/1/4' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests-LLVM-Unit-45168-1-4.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=4 GTEST_SHARD_INDEX=1 /Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests
--

Script:
--
/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests --gtest_filter=SPIRVAPITest.checkTranslateAllExtensions
--
Invalid optimization level!/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:140: Failure
Value of: Status && Error.empty() && !Result.empty()
  Actual: false
Expected: true

/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:141: Failure
Expected equality of these values:
  identify_magic(Result)
    Which is: 0
  file_magic::spirv_object
    Which is: 39


/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:140
Value of: Status && Error.empty() && !Result.empty()
  Actual: false
Expected: true

/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:141
Expected equality of these values:
  identify_magic(Result)
    Which is: 0
  file_magic::spirv_object
    Which is: 39


Script:
--
/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests --gtest_filter=SPIRVAPITest.checkTranslateWrongExtensionByOpts
--
/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:177: Failure
Death test: { toSpirv(ExtensionAssembly, Result, Error, {}, Opts); }
    Result: failed to die.
 Error msg:
[  DEATH   ] Invalid optimization level!


/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:177
Death test: { toSpirv(ExtensionAssembly, Result, Error, {}, Opts); }
    Result: failed to die.
 Error msg:
[  DEATH   ] Invalid optimization level!



********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Target/SPIRV/./SPIRVTests/2/4 (55454 of 55525)
******************** TEST 'LLVM-Unit :: Target/SPIRV/./SPIRVTests/2/4' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests-LLVM-Unit-45168-2-4.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=4 GTEST_SHARD_INDEX=2 /Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests
--

Script:
--
/Users/runner/work/llvm-project/llvm-project/build/unittests/Target/SPIRV/./SPIRVTests --gtest_filter=SPIRVAPITest.checkTranslateWrongExtensionByArg
--
/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:186: Failure
Death test: { toSpirv(ExtensionAssembly, Result, Error, ExtNames, {}); }
    Result: failed to die.
 Error msg:
[  DEATH   ] 


/Users/runner/work/llvm-project/llvm-project/llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp:186
Death test: { toSpirv(ExtensionAssembly, Result, Error, ExtNames, {}); }
    Result: failed to die.
 Error msg:
[  DEATH   ] 


@tstellar
Copy link
Collaborator Author

I was testing with 7842374, but it looks like this is fixed now as of 0d46657.

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

No branches or pull requests

3 participants