-
Notifications
You must be signed in to change notification settings - Fork 641
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
[MINOR] Fix ci check error #4543
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4543 +/- ##
============================================
+ Coverage 16.28% 16.30% +0.02%
- Complexity 1591 1592 +1
============================================
Files 747 747
Lines 28954 28965 +11
Branches 2525 2541 +16
============================================
+ Hits 4715 4723 +8
- Misses 23790 23793 +3
Partials 449 449 see 13 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
.github/workflows/ci.yml
Outdated
- if: matrix.language == 'cpp' || matrix.language == 'csharp' | ||
name: Build C | ||
run: | | ||
make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error 'CodeQL detected code written in Java/Kotlin, Go and c, but not any written in C/C++' is still reported in CI. I saw that the CI result shows that this step has been skipped. Is it because this judgment condition requires the addition of matrix. language=='c'
?
CI仍然报这个错"CodeQL detected code written in Java/Kotlin, Go and c, but not any written in C/C++"。我看CI结果显示这一步跳过了,是不是因为这个判断条件需要加上matrix.language =='c'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error 'CodeQL detected code written in Java/Kotlin, Go and c, but not any written in C/C++' is still reported in CI. I saw that the CI result shows that this step has been skipped. Is it because this judgment condition requires the addition of
matrix. language=='c'
?CI仍然报这个错"CodeQL detected code written in Java/Kotlin, Go and c, but not any written in C/C++"。我看CI结果显示这一步跳过了,是不是因为这个判断条件需要加上
matrix.language =='c'
?
cpp is c/c++, and there are language settings to display it in CodeQL
cpp就是c/c++,CodeQL里面有显示它的语言设置
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the pr modification of my own repository. It shows that the ci check passed, but the submission to the apache repository failed.
这是我自己仓库的pr修改,显示ci check是通过了的,但是提交到主仓库就失败了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the submission to the apache repository failed.
It should be a side effect of these unsynchronized commits: xwm1992/EventMesh@master...apache:eventmesh:master
应该是这些没同步的commit带来的副作用:xwm1992/EventMesh@master...apache:eventmesh:master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xwm1992#11
This is the pr modification of my own repository. It shows that the ci check passed, but the submission to the apache repository failed.
After comparing the CI information of the two repositories, there are still differences. The former's CodeQL seems to only analyze Java, while the latter is not. But I am not sure about the specific reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xwm1992#11
This is the pr modification of my own repository. It shows that the ci check passed, but the submission to the apache repository failed.
会不会跟make的路径有关,在根目录下面不能进行make 编译处理C而需要到sdk Makefile文件目录才能
Could it be related to the path of make? Compilation processing of C cannot be performed under the root directory by make, but requires access to the directory of the sdk Makefile file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github/codeql#14703
I raised this issue to the codeql community. We can follow it and reply under this issue.
我向codeql 社区提了这个问题的issue,大家可以关注并在这个issue下面回复一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The matrix does not define a language
property, so matrix.language
evaluates to null
.
.github/workflows/ci.yml
Outdated
@@ -33,6 +33,7 @@ jobs: | |||
matrix: | |||
os: [ ubuntu-latest, macOS-latest ] | |||
java: [ 8, 11 ] | |||
language: ['java', 'go', 'c'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the C/C++ language name here need to be consistent with the cpp
in the following if: matrix. language=='cpp' || matrix.language == 'csharp'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Now Build C can be executed. And the error is reported: To solve this error, I tried the command
Based on this comment, I am not sure if adding some commands will work, such as changing the script to the following:
|
#4542 |
From the error information reported, it seems that the third-party libraries as git submodules have not been introduced yet, as I found the file 'configure.ac' in one of the third-party libraries 'curl'.
|
Have you tried
|
It's helpful. |
Fixes #.
Motivation
Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.
Modifications
Describe the modifications you've done.
Documentation