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

Team-4-submission #8

Open
wants to merge 5 commits into
base: team-4-HW1(env.setup)
Choose a base branch
from

Conversation

waynewangyuxuan
Copy link

Merged Commits into 2

@kyotov
Copy link

kyotov commented Oct 9, 2024

do you have a CI link i can look at?

@waynewangyuxuan
Copy link
Author

waynewangyuxuan commented Oct 9, 2024 via email

@kyotov
Copy link

kyotov commented Oct 9, 2024

seems like you can do a bit more to integrate this part?
image

@waynewangyuxuan
Copy link
Author

waynewangyuxuan commented Oct 9, 2024 via email

Copy link

@kyotov kyotov left a comment

Choose a reason for hiding this comment

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

please address the comments and let me know when it is ready for another look

jobs:
build-test:
docker:
- image: cimg/base:current
Copy link

Choose a reason for hiding this comment

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

for extra credit you can build your own image, but for this hw, this is ok

Comment on lines 15 to 30
- run:
name: Build
command: |
echo "Building"
mkdir build && cd build
cmake -S ..
make -j $(nproc)
cd ../
echo "Built"
- run:
name: Test
command: |
echo "Start Testing"
cd build
ctest
echo "Testing Done"
Copy link

Choose a reason for hiding this comment

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

where is the clang-tidy running?

CMakeLists.txt Outdated
Comment on lines 317 to 340
set(NINJA_TEST_SOURCES
src/build_log_test.cc
src/build_test.cc
src/clean_test.cc
src/clparser_test.cc
src/depfile_parser_test.cc
src/deps_log_test.cc
src/disk_interface_test.cc
src/dyndep_parser_test.cc
src/edit_distance_test.cc
src/elide_middle_test.cc
src/explanations_test.cc
src/graph_test.cc
src/json_test.cc
src/lexer_test.cc
src/manifest_parser_test.cc
src/missing_deps_test.cc
src/ninja_test.cc
src/state_test.cc
src/string_piece_util_test.cc
src/subprocess_test.cc
src/test.cc
src/util_test.cc
)
Copy link

Choose a reason for hiding this comment

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

this looks like something that should be in the original ninja?
what is the purpose?

Copy link
Author

Choose a reason for hiding this comment

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

Oh, we will delete this in here, we did not write any code at the time, so we were checking the src code see whether clang-tidy was working

CMakeLists.txt Outdated
Comment on lines 344 to 351
if(CLANG_TIDY_EXE)
add_test(
NAME clang-tidy-check
COMMAND ${CLANG_TIDY_EXE} ${NINJA_TEST_SOURCES} --checks=-*,modernize-* --warnings-as-errors=*
)
else()
message(WARNING "clang-tidy not found, skipping clang-tidy test")
endif()
Copy link

Choose a reason for hiding this comment

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

i see that you run it now, but this is not the normal way to run clang-tidy in cmake (i think)...
can you check?

Copy link
Author

Choose a reason for hiding this comment

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

I think you are right about this, we will update this

@waynewangyuxuan
Copy link
Author

please address the comments and let me know when it is ready for another look

Hi, professor, the use of clang-tidy is fixed


name: Run Tests
command: |
./cicd-build/ninja_test
Copy link

Choose a reason for hiding this comment

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

use ctest
add perf tests

Copy link

Choose a reason for hiding this comment

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

this should be in gitignore

digit-google and others added 4 commits November 9, 2024 20:44
Add a new class to wrap the logic needed to implement the
`inputs` tool correctly (see Issue ninja-build#2482 for details), and
provide a unit-test for it.
This uses the InputsCollector class introduced in the
previous patch to implement the tool properly. Results
are still shell-escaped and sorted alphabetically.

Fixed ninja-build#2482
Add new options to the `inputs` tool in order to change
the format of its output:

- `--no-shell-escape` to avoid shell-escaping the results.

- `--dependency-order` to return results in dependency order,
  instead of sorting them alphabetically.

- `--print0` to use \0 as the list separator in the list,
  useful to process the target paths with `xargs -0` and
  similar tools.
CircleCI Commit

Update CI

update README.md

add sudo

Updated CMakeLists.txt to include clang-tidy configuration

change clang test name

update clangtest file

update clang-tidy/circleCI use. Learned from team5's implementation

update yml file

typos

init

CircleCI Commit

Update CI

update README.md

add sudo

test folder wrong
@waynewangyuxuan waynewangyuxuan force-pushed the master branch 2 times, most recently from 516d7b4 to eaa07e0 Compare November 10, 2024 20:22
Added ctest and performance test.

Try to show test on CI/CD dashboard, followed the instruction, however
we could not get it working somehow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants