Skip to content

Commit

Permalink
Emergency domain migration, nix.ci -> ofborg.org
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Apr 8, 2023
1 parent e0ccca9 commit 0f34038
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion log-api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function abrt($msg) {

$reqd = substr($_SERVER['REQUEST_URI'], strlen("/logs/"));
$req = realpath("$root/$reqd");
$serve_root = "https://logs.nix.ci/logfile/$reqd";
$serve_root = "https://logs.ofborg.org/logfile/$reqd";

if ($req === false) {
abrt("absent");
Expand Down
20 changes: 10 additions & 10 deletions ofborg/src/tasks/githubcommentposter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn job_to_check(job: &BuildJob, architecture: &str, timestamp: DateTime<Utc>) ->
started_at: Some(timestamp.to_rfc3339_opts(chrono::SecondsFormat::Secs, true)),
conclusion: None,
details_url: Some(format!(
"https://logs.nix.ci/?key={}/{}.{}",
"https://logs.ofborg.org/?key={}/{}.{}",
&job.repo.owner.to_lowercase(),
&job.repo.name.to_lowercase(),
job.pr.number,
Expand Down Expand Up @@ -181,7 +181,7 @@ fn result_to_check(result: &LegacyBuildResult, timestamp: DateTime<Utc>) -> Chec
started_at: None,
conclusion: Some(conclusion),
details_url: Some(format!(
"https://logs.nix.ci/?key={}/{}.{}&attempt_id={}",
"https://logs.ofborg.org/?key={}/{}.{}&attempt_id={}",
&result.repo.owner.to_lowercase(),
&result.repo.name.to_lowercase(),
result.pr.number,
Expand Down Expand Up @@ -250,7 +250,7 @@ mod tests {
completed_at: None,
status: Some(CheckRunState::Queued),
conclusion: None,
details_url: Some("https://logs.nix.ci/?key=nixos/nixpkgs.2345".to_string()),
details_url: Some("https://logs.ofborg.org/?key=nixos/nixpkgs.2345".to_string()),
external_id: None,
head_sha: "abc123".to_string(),
output: None,
Expand Down Expand Up @@ -304,7 +304,7 @@ mod tests {
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Success),
details_url: Some(
"https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
"https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
.to_string()
),
external_id: Some("neatattemptid".to_string()),
Expand Down Expand Up @@ -386,7 +386,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Neutral),
details_url: Some(
"https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
"https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
.to_string()
),
external_id: Some("neatattemptid".to_string()),
Expand Down Expand Up @@ -465,7 +465,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Neutral),
details_url: Some(
"https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
"https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
.to_string()
),
external_id: Some("neatattemptid".to_string()),
Expand Down Expand Up @@ -545,7 +545,7 @@ error: build of '/nix/store/l1limh50lx2cx45yb2gqpv7k8xl1mik2-gdb-8.1.drv' failed
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Success),
details_url: Some(
"https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
"https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
.to_string()
),
external_id: Some("neatattemptid".to_string()),
Expand Down Expand Up @@ -623,7 +623,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Neutral),
details_url: Some(
"https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
"https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid"
.to_string()
),
external_id: Some("neatattemptid".to_string()),
Expand Down Expand Up @@ -689,7 +689,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
completed_at: Some("2023-04-20T13:37:42Z".to_string()),
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Skipped),
details_url: Some("https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid".to_string()),
details_url: Some("https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid".to_string()),
external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(),
output: Some(Output {
Expand Down Expand Up @@ -742,7 +742,7 @@ foo
completed_at: Some("2023-04-20T13:37:42Z".to_string()),
status: Some(CheckRunState::Completed),
conclusion: Some(Conclusion::Skipped),
details_url: Some("https://logs.nix.ci/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid".to_string()),
details_url: Some("https://logs.ofborg.org/?key=nixos/nixpkgs.2345&attempt_id=neatattemptid".to_string()),
external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(),
output: Some(Output {
Expand Down

0 comments on commit 0f34038

Please sign in to comment.