Skip to content

Team-4-submission - #8

Open
waynewangyuxuan wants to merge 5 commits into
nyuoss:team-4-HW1(env.setup)from
YuWei-CH:master
Open

Team-4-submission#8
waynewangyuxuan wants to merge 5 commits into
nyuoss:team-4-HW1(env.setup)from
YuWei-CH:master

Conversation

@waynewangyuxuan

Copy link
Copy Markdown

Merged Commits into 2

@kyotov

kyotov commented Oct 9, 2024

Copy link
Copy Markdown

do you have a CI link i can look at?

@waynewangyuxuan

waynewangyuxuan commented Oct 9, 2024 via email

Copy link
Copy Markdown
Author

@kyotov

kyotov commented Oct 9, 2024

Copy link
Copy Markdown

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

@waynewangyuxuan

waynewangyuxuan commented Oct 9, 2024 via email

Copy link
Copy Markdown
Author

@kyotov kyotov left a comment

Copy link
Copy Markdown

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

Comment thread .circleci/config.yml
jobs:
build-test:
docker:
- image: cimg/base:current

Copy link
Copy Markdown

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 thread .circleci/config.yml
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
Copy Markdown

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?

Comment thread 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
Copy Markdown

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
Copy Markdown
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

Comment thread 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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

Comment thread .circleci/config.yml Outdated

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

Copy link
Copy Markdown

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
Copy Markdown

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