Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .d-compiler
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dmd-2.100.2
dmd-2.104.0
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
dc: [ dmd-2.100.2, ldc-1.30.0 ]
dc: [ dmd-2.104.0, ldc-1.32.2 ]

runs-on: ${{ matrix.os }}
steps:
Expand Down
15 changes: 8 additions & 7 deletions dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
"ae": "0.0.3228",
"botan": "1.12.19",
"botan-math": "1.0.3",
"diet-ng": "1.7.5",
"eventcore": "0.9.14",
"diet-ng": "1.8.1",
"eventcore": "0.9.25",
"libasync": "0.8.6",
"memutils": "1.0.4",
"memutils": "1.0.9",
"mir-linux-kernel": "1.0.1",
"openssl": "1.1.6+1.0.1g",
"openssl": "3.3.0",
"openssl-static": "1.0.2+3.0.8",
"stdx-allocator": "2.77.5",
"taggedalgebraic": "0.11.22",
"unit-threaded": "1.0.15",
"vibe-core": "1.18.0",
"vibe-d": "0.9.3"
"unit-threaded": "1.1.0",
"vibe-core": "2.2.0",
"vibe-d": "0.9.6"
}
}
5 changes: 3 additions & 2 deletions source/dlangbot/buildkite.d
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ Info queryState(string pipelineSearch=null)
{
import std.algorithm : map, remove, each;
import std.array : array;
import std.exception : assertNotThrown;
import vibe.core.core : runTask;

typeof(return) ret;
[
{ ret.organization = organization(pipelineSearch); },
{ ret.hcServers = hc.servers.remove!(s => !s.name.startsWith("ci-agent-")); },
{ ret.organization = organization(pipelineSearch).assertNotThrown; },
{ ret.hcServers = hc.servers.remove!(s => !s.name.startsWith("ci-agent-")).assertNotThrown; },
].map!runTask.array.each!(task => task.join);
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion source/dlangbot/twitter.d
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct OAuth
import std.range : chain;
import std.string : representation;

auto query = parameters.map!(a => a.byKeyValue.array)
auto query = parameters.map!(a => a.byKeyValue.array.dup)
.joiner
.array
.sort
Expand Down
13 changes: 12 additions & 1 deletion source/dlangbot/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import core.time : seconds;

import dlangbot.app : runAsync;

import vibe.core.log : logError;
import vibe.http.client : HTTPClientRequest, HTTPClientResponse, HTTPClientSettings;
import vibe.http.common : HTTPStatus;

Expand Down Expand Up @@ -99,7 +100,17 @@ auto runTaskHelper(Fun, Args...)(Fun fun, auto ref Args args)
import vibe.core.core : runTask;

if (runAsync)
runTask(fun.toDelegate, args);
runTask({
try
fun(args);
catch (Exception e)
{
try
logError(e.toString());
catch (Exception) {}
assert(false, "Fatal error");
}
});
else
return fun(args);
}
Expand Down