Codeberg/Community
62
385
Fork
You've already forked Community
12

Unable to open a pull request #2524

Closed
opened 2026年04月17日 10:48:41 +02:00 by Cloudef · 7 comments

Comment

For some reason I'm unable to open pull requests for any branch from my zig fork. Everytime I try it leads to Internal Server Error 500.

For example try this link https://codeberg.org/ziglang/zig/compare/master...Cloudef/zig:std.os.linux-constCast

### Comment For some reason I'm unable to open pull requests for any branch from my zig fork. Everytime I try it leads to Internal Server Error 500. For example try this link <https://codeberg.org/ziglang/zig/compare/master...Cloudef/zig:std.os.linux-constCast>

That is weird. I confirm that all comparisons from your fork to ziglang fail with 500 Error.

I tried with a fork of your fork at /mahlzahn-codeberg/zig-test-from-Cloudef and it is not failing neither comparing to your fork nor to the original ziglang:
https://codeberg.org/Cloudef/zig/compare/master...mahlzahn-codeberg/zig-test-from-Cloudef:std.os.linux-constCast
https://codeberg.org/ziglang/zig/compare/master...mahlzahn-codeberg/zig-test-from-Cloudef:std.os.linux-constCast

@Gusted Do you want to have look at this?

That is weird. I confirm that all comparisons from your fork to ziglang fail with 500 Error. I tried with a fork of your fork at [[/mahlzahn-codeberg/zig-test-from-Cloudef]] and it is not failing neither comparing to your fork nor to the original ziglang: https://codeberg.org/Cloudef/zig/compare/master...mahlzahn-codeberg/zig-test-from-Cloudef:std.os.linux-constCast https://codeberg.org/ziglang/zig/compare/master...mahlzahn-codeberg/zig-test-from-Cloudef:std.os.linux-constCast @Gusted Do you want to have look at this?

Ah, left over lock file. Haven't seen that for a while. Fixed!

Ah, left over lock file. Haven't seen that for a while. Fixed!
Author
Copy link

Is it normal that https://codeberg.org/ziglang/zig/compare/master...Cloudef/zig:std.os.linux-constCast shows this many commits, should only have 1

commit 05cfa5c608ddb8080722a2b46e84ee05b645d839 (HEAD -> std.os.linux-constCast, origin/std.os.linux-constCast)
Author: Jari Vetoniemi <jari.vetoniemi@cloudef.pw>
Date: Fri Mar 20 04:53:35 2026 +0900
 std.os.linux: const timespec for ppoll
 removes the need of `@constCast` in poll
commit ff612334fa8af05c42b71f784dff521899026f97 (upstream/master, upstream/HEAD, master)
Author: Josh Megnauth <jo.sh@tutanota.com>
Date: Thu Apr 9 14:53:40 2026 -0400
 libzigc: dup2 and dup3
 This commit adds `dup2` and `dup3` based on musl. Zig already has
 wrappers for the syscalls, but musl's implementation checks for a rare,
 temporary race condition with dup2/3 and `open`. Like musl, this
 implementation adds a fallback for dup3 if the syscall isn't available.
 Contributes to: #30978
~/d/p/zig std.os.linux-constCast ❱ git diff upstream/master
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig
index ffe9ef15f3..09bb8d3681 100644
--- a/lib/std/os/linux.zig
+++ b/lib/std/os/linux.zig
@@ -1263,17 +1263,17 @@ pub fn poll(fds: [*]pollfd, n: nfds_t, timeout: i32) usize {
 fds,
 n,
 if (timeout >= 0)
- @constCast(&timespec{
+ &.{
 .sec = @divTrunc(timeout, 1000),
 .nsec = @rem(timeout, 1000) * 1000000,
- })
+ }
 else
 null,
 null,
 );
 }
-pub fn ppoll(fds: [*]pollfd, n: nfds_t, timeout: ?*timespec, sigmask: ?*const sigset_t) usize {
+pub fn ppoll(fds: [*]pollfd, n: nfds_t, timeout: ?*const timespec, sigmask: ?*const sigset_t) usize {
 return syscall5(
 if (@hasField(SYS, "ppoll") and native_arch != .hexagon) .ppoll else .ppoll_time64,
 @intFromPtr(fds),
Is it normal that <https://codeberg.org/ziglang/zig/compare/master...Cloudef/zig:std.os.linux-constCast> shows this many commits, should only have 1 ``` commit 05cfa5c608ddb8080722a2b46e84ee05b645d839 (HEAD -> std.os.linux-constCast, origin/std.os.linux-constCast) Author: Jari Vetoniemi <jari.vetoniemi@cloudef.pw> Date: Fri Mar 20 04:53:35 2026 +0900 std.os.linux: const timespec for ppoll removes the need of `@constCast` in poll commit ff612334fa8af05c42b71f784dff521899026f97 (upstream/master, upstream/HEAD, master) Author: Josh Megnauth <jo.sh@tutanota.com> Date: Thu Apr 9 14:53:40 2026 -0400 libzigc: dup2 and dup3 This commit adds `dup2` and `dup3` based on musl. Zig already has wrappers for the syscalls, but musl's implementation checks for a rare, temporary race condition with dup2/3 and `open`. Like musl, this implementation adds a fallback for dup3 if the syscall isn't available. Contributes to: #30978 ``` ```diff ~/d/p/zig std.os.linux-constCast ❱ git diff upstream/master diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index ffe9ef15f3..09bb8d3681 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1263,17 +1263,17 @@ pub fn poll(fds: [*]pollfd, n: nfds_t, timeout: i32) usize { fds, n, if (timeout >= 0) - @constCast(&timespec{ + &.{ .sec = @divTrunc(timeout, 1000), .nsec = @rem(timeout, 1000) * 1000000, - }) + } else null, null, ); } -pub fn ppoll(fds: [*]pollfd, n: nfds_t, timeout: ?*timespec, sigmask: ?*const sigset_t) usize { +pub fn ppoll(fds: [*]pollfd, n: nfds_t, timeout: ?*const timespec, sigmask: ?*const sigset_t) usize { return syscall5( if (@hasField(SYS, "ppoll") and native_arch != .hexagon) .ppoll else .ppoll_time64, @intFromPtr(fds), ```
Author
Copy link

@Gusted sorry for ping ^

@Gusted sorry for ping ^
Author
Copy link

Seems to be fixed now. Thank you!

Seems to be fixed now. Thank you!

I've got the same problem on private repos here. Creating MRs results in a 500 :( Should we reopen?

I've got the same problem on private repos here. Creating MRs results in a 500 :( Should we reopen?
Gusted locked as Resolved and limited conversation to collaborators 2026年05月06日 11:44:42 +02:00

@iago-lito Have a look at #2592 (resolved now)

@iago-lito Have a look at https://codeberg.org/Codeberg/Community/issues/2592 (resolved now)
This discussion has been locked. Commenting is limited to contributors.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility
Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug
Something is not working the way it should. Does not concern outages.
bug
infrastructure
Errors evidently caused by infrastructure malfunctions or outages
Codeberg
This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome
Please join the discussion and consider contributing a PR!
docs
No bug, but an improvement to the docs or UI description will help
duplicate
This issue or pull request already exists
enhancement
New feature
infrastructure
Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal
An issue directly involving legal compliance
licence / ToS
involving questions about the ToS, especially licencing compliance
please chill
we are volunteers
Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations
Things related to Codeberg's external communication
question
More information is needed
question
user support
This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo
Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration
Migration related issues in Forgejo
s/Pages
Issues related to the Codeberg Pages feature
s/Weblate
Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker
Woodpecker CI related issue
security
involves improvements to the sites security
service
Add a new service to the Codeberg ecosystem (instead of implementing into Forgejo)
upstream
An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Forgejo, Weblate, etc.)
wontfix
Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2524
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?