~bouncepaw/betula

3 2

CI failure

Details
Message ID
<D5R4476QVALZ.30E7EMUFRXU6K@bl4ckb0ne.ca>
DKIM signature
pass
Download raw message
Hello there,

I'm upgrading the Alpinelinux package [1] and there seems to be some issues with the CI.

The domain https://bouncepaw.com is unreachable, leading to the following test failing.

```
2024/11/20 14:46:00 Can't get response from https://bouncepaw.com
Test [Save link: given url empty title] failed miserably. It is a shame. Please do better.
Below is the output of cURL.
HTTP/1.1 500 Internal Server Error
Date: Wed, 20 Nov 2024 14:46:00 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
<!doctype html>
<html lang="en">
<head>
	<title>Save link</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta charset="utf-8">
	<link rel="stylesheet" href="/static/style.css">
	<script defer src="/static/autocompletion.js"></script>
</head>
<body class="authorized">
<header class="horizontal-scroll-on-phone">
	<nav>
		<h1>Betula</h1>
		<ul>
			<li><a href="/">Bookmarks</a></li>
			<li><a href="/tag">Tags</a></li>
			<li><a href="/timeline">Timeline</a></li>
			<li><a href="/random">Random</a></li>
			<li><a href="/@bo">Your profile</a></li>
			<li><a href="/help">Help</a></li>
		</ul>
	</nav>
</header>
<nav class="misc horizontal-scroll-on-phone">
	<form class="search-form" action="/search" method="get">
		<input type="text" aria-label="Search query" placeholder="Search query" name="q" value="">
	</form>
	<ul>
        <li><a href="/save-link">Save link</a></li>
        <li><a href="/repost">Repost</a></li>
		
	</ul>
</nav>
    <main>
        <article>
            
                <h2>Title not found</h2>
                <p>Please, provide a title yourself.</p>
            
            <form method="post" action="/save-link">
                
	<div>
		<label for="link-url">URL</label>
		<input type="text" id="link-url" name="url" value="https://bouncepaw.com" autocomplete="off" placeholder="https://example.org">
	</div>
	<div>
		<label for="link-title">Title</label>
		<input type="text" id="link-title" name="title" value="" autocomplete="off" placeholder="A cool website">
	</div>
	<div>
		<label for="link-description">Description, quotes</label>
		<textarea id="link-description" name="description" placeholder="Styling with Mycomarkup is supported. **Bold**, //italic//, [[link]]."></textarea>
	</div>
	<div class="visibility-field">
		<label class="visibility-field-title">Who can see this bookmark?</label>
		<input id="link-public" type="radio" name="visibility" value="public" checked>
		<label for="link-public">Everyone</label>
		<input id="link-private" type="radio" name="visibility" value="private">
		<label for="link-private">Only you</label>
	</div>
	<div class="tags-field">
		<label for="link-tags">Tags comma-separated</label>
		<input type="text" id="link-tags" name="tags"
		       value="" placeholder="video, programming" autocomplete="off">
	</div>
                <input type="submit" class="btn" value="Save">
                <div class="submit-another">
                    <input type="checkbox" name="another" id="another-confirmed"  value="true">
                    <label for="another-confirmed">Submit another?</label>
                </div>
            </form>
        </article>
    </main>
</body>
</html>
make: *** [Makefile:24: test] Error 2
```

Would there be a way to use another domain for testing? Or to bring the domain use back up?

Thanks!

Simon

[1]: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/75522
Details
Message ID
<C845F809-5572-436D-BC45-D7F7BF4D0BE6@ya.ru>
In-Reply-To
<D5R4476QVALZ.30E7EMUFRXU6K@bl4ckb0ne.ca> (view parent)
DKIM signature
pass
Download raw message
Hello Simon!

First, thank you for working on the package! It means a lot.

Second, bouncepaw.com is indeed down. The server that hosted it got hacked a few days ago. It was wiped because of that, and I have to set up everything again.

I have all the data backed up. I plan to restore the website as soon as possible, but I lack time and energy to do so these days. Thanks to you notifying me of the issue, I'll prioritise it higher now. Expect it this weekend, I hope.

In retrospect, it's an obvious misjudgement on my side to write tests like this. Did I really expect bouncepaw.com to have little downtime? Naïve!

In the meantime, maybe turn off the testing?
Details
Message ID
<5B0AB337-100A-47B0-A081-7606F4AFF1E7@ya.ru>
In-Reply-To
<C845F809-5572-436D-BC45-D7F7BF4D0BE6@ya.ru> (view parent)
DKIM signature
pass
Download raw message
A follow-up.

I have finally found some time to properly set the server up anew.
Did so. It works as expected. A test fails for some reason, though. 
I currently don't know why. Luckily, it's a different test, so we
have some progress here!

My advice is to not run tests that depend on the network.
In check(), you can replace

    make test

with

    go test ./...

or something like that.
Details
Message ID
<D6D875E96WH9.3D72ONYKEU266@bl4ckb0ne.ca>
In-Reply-To
<5B0AB337-100A-47B0-A081-7606F4AFF1E7@ya.ru> (view parent)
DKIM signature
pass
Download raw message
Hi,

Thanks for the follow up, I pushed the modifications to the Alpine package [1] and now it's all
green. I also took it out of `testing`.

Cheers,

Simon

[1]: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/75522

On Mon Dec 9, 2024 at 2:51 PM EST, Timur Ismagilov wrote:
> A follow-up.
>
> I have finally found some time to properly set the server up anew.
> Did so. It works as expected. A test fails for some reason, though. 
> I currently don't know why. Luckily, it's a different test, so we
> have some progress here!
>
> My advice is to not run tests that depend on the network.
> In check(), you can replace
>
>     make test
>
> with
>
>     go test ./...
>
> or something like that.
Reply to thread Export thread (mbox)