Skip to content

Conversation

@mgrang
Copy link
Contributor

@mgrang mgrang commented Feb 26, 2021

After upgrading checkedc-clang to release 11, we see that the signature of
ResultCode in lit has changed and it now expects 3 parameters. But our
checkedc-llvm-test-suite has not been updated and continues to pass only 2
parameters in calls to ResultCode. This causes the following error in the Linux
LNT Benchmarking ADO run:

"TypeError: new() takes exactly 4 arguments (3 given)"

Here we are making/fixing calls to ResultCode similar to those in
https://github.com/microsoft/checkedc-clang/blob/master/llvm/utils/lit/lit/Test.py#L45

The long term fix is to upgrade the checkedc-llvm-test-suite. Issue checkedc/checkedc-clang#992 tracks this.

After upgrading checkedc-clang to release 11, we see that the signature of ResultCode in lit has changed and it now expects 3 parameters. But our checkedc-llvm-test-suite has not been updated and continues to pass only 2 parameters in calls to ResultCode. This causes the following error in the Linux LNT Benchmarking ADO run: "TypeError: __new__() takes exactly 4 arguments (3 given)" Here we are making/fixing calls to ResultCode similar to those in https://github.com/microsoft/checkedc-clang/blob/master/llvm/utils/lit/lit/Test.py#L45 The long term fix is to upgrade the checkedc-llvm-test-suite.
Copy link
Contributor

@sulekhark sulekhark left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

Copy link
Contributor

@kkjeer kkjeer left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@mgrang mgrang merged commit 3c9b316 into master Feb 26, 2021
@mgrang mgrang deleted the fix_resultcode_calls branch February 26, 2021 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants