Skip to content

Commit 94f3299

Browse files
committed
Test integration tests
1 parent 9a39ea0 commit 94f3299

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- qa/**
77
- stable/**
8+
- dev/integration-test-test
89
jobs:
910
integration-tests:
1011
runs-on: ubuntu-24.04
@@ -114,7 +115,7 @@ jobs:
114115
echo 'Print qubit_prod.log'
115116
sudo tail ${{ github.workspace }}/log/qubit_prod.log
116117
echo 'Print nginx/error.log'
117-
sudo tail /var/log/nginx/error.log
118+
sudo tail -n 30 /var/log/nginx/error.log
118119
echo 'Print php8.3-fpm.log'
119120
sudo tail /var/log/php8.3-fpm.log
120121
- name: Upload Cypress Screenshots

config/ProjectConfiguration.class.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<?php
2+
function prodlog($message = "", $value = "")
3+
{
4+
$logFile = "./log/qubit_prod.log";
5+
6+
if ($value != null) {
7+
$logMessage = $message.": ";
8+
if (is_string($value)) {
9+
$logMessage .= $value;
10+
} elseif (is_bool($value)) {
11+
$logMessage .= $value ? 'true' : 'false';
12+
} else {
13+
$logMessage .= json_encode($value);
14+
}
15+
} else {
16+
$logMessage =json_encode($message);
17+
}
18+
19+
error_log("DEV LOG: " . $logMessage . "\n", 3, $logFile);
20+
}
221

322
/*
423
* This file is part of the Access to Memory (AtoM) software.

lib/model/QubitJob.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ public static function runJob($jobName, $jobParams = [])
340340

341341
// Submit a non-blocking task to Gearman
342342
$gmClient = new Net_Gearman_Client(arGearman::getServers());
343+
prodlog('gearman servers', arGearman::getServers());
343344
$gmClient->{$jobName}($jobParams);
344345

345346
return $job;

vendor/net_gearman/Net/Gearman/Manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ public function status()
232232
'capable_workers' => $capable
233233
);
234234
}
235+
prodlog('status', $status);
235236

236237
return $status;
237238
}

0 commit comments

Comments
 (0)