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

Project 2 cannot pass gradescope test due to internal header problems. #58

Closed
RileyWen opened this issue Apr 13, 2020 · 7 comments
Closed

Comments

@RileyWen
Copy link

test/include/logging/common.h:36:16: error: the const qualified variable 'col' is copy-constructed from a const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
    const auto col = schema->GetColumn(i);
               ^
              &

When I was trying to grade Project 2 on gradescope, I found that check-lint cannot succeed due to the error above. There is a historical commit on bustub which fixed this problem. So it seems the code on gradescope is the earliest version. Can you please update the internal code on gradescope? Thanks!

@RileyWen
Copy link
Author

There is another problem on Project 2 grader script: When the grader starts building, it tries to copy a non-source file into the source directory.

cp: cannot stat '/autograder/submission/build_support/libp1_static.a': No such file or directory

@JigaoLuo
Copy link
Contributor

JigaoLuo commented Apr 13, 2020

This issue confirtmed.

  • test/include/logging/common.h should be test intern used, since the file in my project is correct with the link-check. Changed on this commit:
    const auto &col = schema->GetColumn(i);
  • build_support/libp1_static.a' is lacked also in our git repo (and in all previous commits).

@Jack-Clark
Copy link

test/include/logging/common.h:36:16: error: the const qualified variable 'col' is copy-constructed from a const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
    const auto col = schema->GetColumn(i);
               ^
              &

When I was trying to grade Project 2 on gradescope, I found that check-lint cannot succeed due to the error above. There is a historical commit on bustub which fixed this problem. So it seems the code on gradescope is the earliest version. Can you please update the internal code on gradescope? Thanks!

I'm having the same issue. It would be great to have this fixed.

@greenmoon55
Copy link
Contributor

greenmoon55 commented Apr 20, 2020

I haven't submitted Project 2, but maybe you could try rebasing to 5d2a9d5
See #52 (comment)

@RileyWen
Copy link
Author

I haven't submitted Project 2, but maybe you could try rebasing to 5d2a9d5
See #52 (comment)

No. Any commit earlier than f3669c3e Update Projects According to Piazza Discussions (#49) won't even compile. Quite weird. It seems that the 'src' part of the grader code keeps the lastest version but the test/include/logging/common.h stays at the earliest commit?

@RajaSimha
Copy link

test/include/logging/common.h:36:16: error: the const qualified variable 'col' is copy-constructed from a const reference; consider making it a const reference [performance-unnecessary-copy-initialization,-warnings-as-errors]
    const auto col = schema->GetColumn(i);
               ^
              &

Could it be possible to fix this soon or suggest an alternative (something like a patch) to bypass the error and run tests on gradescope please? Thanks in advance!

@garrisonhess
Copy link
Contributor

Closing since this project is deprecated.

@garrisonhess garrisonhess closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2022
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

No branches or pull requests

6 participants