-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Close more old stage1 issues #13960
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
Close more old stage1 issues #13960
Conversation
a85823b
to
ba1ce49
Compare
test/cases/compile_errors/runtime_operation_in_comptime_block.zig
Outdated
Show resolved
Hide resolved
13855e0
to
e08cd36
Compare
The two failures only in linux-debug look kind of sporadic. Edit: and just after I sent this comment the linux-debug CIs are magically re-running? Same failure though so I'm going to rebase. |
e08cd36
to
ff38dac
Compare
These two CI failures are a mystery to me. If I just |
ff38dac
to
0a07232
Compare
The failure depends on whether your compiler was built with safety checks and is caused by |
5bf200a
to
45cd756
Compare
test/behavior/bugs/11995.zig
Outdated
if (builtin.zig_backend == .stage2_x86) return error.SkipZigTest; // TODO | ||
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | ||
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | ||
_ = wuffs_base__make_io_buffer(undefined, undefined); |
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.
need to actually test that the code runs correctly; it's not enough to just check that the compiler doesn't crash.
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.
Alright, I tried to come up with some things I could do there. You can find it in my latest force-push.
Note that test/behavior/bugs/*.zig is also kind of a chore list for me. Ideally these would be properly categorized like this: #13997 It's a slight improvement to get from github issues to test/behavior/bugs/*.zig, so I still appreciate the work you're doing here, but it would be even more helpful if the behavior was categorized. |
I fully agree on that and was going to bring up this kind of dependence on GitHub because I don't think we should really reference GitHub issues in our codebase. The issues only exist on Microsoft's GitHub and I think it's best to stay flexible in terms of the code hosting platform. Maybe someday Zig uses a different forge like sourcehut or something. |
45cd756
to
cbed9e7
Compare
I was considering removing the newly added issue files but as you said it's still a slight improvement over what we have currently so. |
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.
Behavior tests need to verify that the logic ran correctly, not only verify that the compiler did not crash.
Closes ziglang#12450 Closes ziglang#13113 Closes ziglang#12051 Closes ziglang#12092 Closes ziglang#12119 Closes ziglang#12142 Closes ziglang#12450 Closes ziglang#13113 Closes ziglang#11995 Closes ziglang#12000
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
cbed9e7
to
a429f72
Compare
Right, that makes sense. Something like this? |
Wonderful, thank you! |
Close more old stage1 issues
How can I help closing old stage1 issues?
The current policy is that before an old stage1 issue can be closed, test coverage for it has to be added.
Go to https://github.com/ziglang/zig/issues?q=is%3Aopen+is%3Aissue+label%3Astage1
Close your eyes and click on an issue
Determine whether the code in the issue is supposed to compile-error or simply pass.
test/behavior/bugs/github_issue_number.zig
and then reference that file intest/behavior.zig
at the right spot (there's an order). Usezig test x.zig
to check locally if it does actually pass.Example and its reference in test/behavior.zig
test/cases/compile_errors/
. You can check the code locally withzig test x.zig
to check what errors you get and copy-paste them into the file at the end as comments like in the other compile error case files.Example
Closes #1
each on a separate line, like in the commits of this PR.