public inbox for guix-forge@systemreboot.net
 help / color / mirror / Atom feed
* [PATCH 0/1] webhook: Update to version 2.8.2
@ 2025-08-19 17:16 Frederick Muriuki Muriithi
  2025-08-19 17:16 ` [PATCH] " Frederick Muriuki Muriithi
  2025-08-20 10:09 ` [PATCH 0/1] " Arun Isaac
  0 siblings, 2 replies; 4+ messages in thread
From: Frederick Muriuki Muriithi @ 2025-08-19 17:16 UTC (permalink / raw)
  To: guix-forge; +Cc: fredmanglis


I encountered the following build error when attempting to build `webhook` with
`guix` (commit 34453b97):

```sh
=== RUN   TestStaticParams
webhook_test.go:63: Unexpected error: fork/exec /tmp/with space: no such file or directory
--- FAIL: TestStaticParams (0.00s)
⋮
FAIL
FAIL    github.com/adnanh/webhook       15.619s
FAIL    github.com/adnanh/webhook/internal/hook [build failed]
?       github.com/adnanh/webhook/internal/middleware   [no test files]
⋮
?       github.com/adnanh/webhook/test  [no test files]
FAIL
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "go" arguments: ("test" "github.com/adnanh/webhook/...") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 40.1 seconds
command "go" "test" "github.com/adnanh/webhook/..." failed with status 1
```

I have skipped over passing tests for brevity.

Looks like some missing test files.

I tried the lazy fix: change version from `2.8.0` to `2.8.2` but the failure
still showed up, and I had to dig in further.

Run the build with `--keep-failed` option and get a somewhat similar build
environment

```sh
$ cd /tmp/guix-build-webhook-2.8.2.drv-0
$ guix shell -L /home/frederick/repositories/projects/guix-forge/guix --container --network --development webhook
$ source "/tmp/guix-build-webhook-2.8.2.drv-0/environment-variables"

[env]$ go test ./src/github.com/adnanh/webhook/
```

All tests pass in this environment.

In `src/github.com/adnanh/webhook/webhook_test.go`, a file named "with space" is
created, and then run with `fork/exec`. I have verified that the file is
actually created, but the `fork/exec` portion cannot find the file for some
reason (It is not the space, I tried changing the name to remove the space).

Attempted skipping just specific tests ("-skip TestStaticParams -skip TestHooksLoadFromFile -skip TestHooksTemplateLoadFromFile") to no avail.

Removed the entire test files for now.

The patch is attached to this email thread.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-20 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-19 17:16 [PATCH 0/1] webhook: Update to version 2.8.2 Frederick Muriuki Muriithi
2025-08-19 17:16 ` [PATCH] " Frederick Muriuki Muriithi
2025-08-20 10:09 ` [PATCH 0/1] " Arun Isaac
2025-08-20 13:48   ` Frederick M. Muriithi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox