mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-05 04:38:22 +00:00
Cleanups and Github Actions (#24)
Cleanup some debugging output ensure crashdump directory exists on startup (issue #18) Create a Github Action to test PR requests.
This commit is contained in:
parent
d33279b525
commit
adb57e8dc8
3 changed files with 23 additions and 6 deletions
16
.github/workflows/prbuildtest.yml
vendored
Normal file
16
.github/workflows/prbuildtest.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: ozwdaemon Docker Image Build Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, edited, reopened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 1 # shallow clone
|
||||||
|
- name: Build Docker Image
|
||||||
|
run: docker build . --file Docker/Dockerfile
|
|
@ -94,7 +94,7 @@ void* context, bool succeeded) {
|
||||||
|
|
||||||
std::string response, error;
|
std::string response, error;
|
||||||
bool success = google_breakpad::HTTPUpload::SendRequest(url, parameters, files, proxy_host, proxy_userpasswd, "", &response, NULL, &error);
|
bool success = google_breakpad::HTTPUpload::SendRequest(url, parameters, files, proxy_host, proxy_userpasswd, "", &response, NULL, &error);
|
||||||
if (success)
|
if (success)
|
||||||
qWarning() << "Uploaded Crash minidump With ID: " << response.c_str();
|
qWarning() << "Uploaded Crash minidump With ID: " << response.c_str();
|
||||||
else
|
else
|
||||||
qWarning() << "Failed to Upload Crash MiniDump in " << descriptor.path();
|
qWarning() << "Failed to Upload Crash MiniDump in " << descriptor.path();
|
||||||
|
@ -288,10 +288,14 @@ int main(int argc, char *argv[])
|
||||||
if (bppath.isEmpty())
|
if (bppath.isEmpty())
|
||||||
bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0);
|
bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0);
|
||||||
qInfo() << "Using BreakPad - Crash Directory: " << bppath;
|
qInfo() << "Using BreakPad - Crash Directory: " << bppath;
|
||||||
|
/* ensure path exists */
|
||||||
|
if (!QDir::exists(bppath)) {
|
||||||
|
QDir::mkpath(bppath);
|
||||||
|
}
|
||||||
google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString());
|
google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString());
|
||||||
google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast<void *>(&daemon), true, -1);
|
google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast<void *>(&daemon), true, -1);
|
||||||
#else
|
#else
|
||||||
signal(SIGSEGV, backtrace);
|
signal(SIGSEGV, backtrace);
|
||||||
signal(SIGABRT, backtrace);
|
signal(SIGABRT, backtrace);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,6 @@ bool MqttCommand_SetValue::processMessage(rapidjson::Document &msg) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QTOZW_ValueIds::ValueIdTypes::List: {
|
case QTOZW_ValueIds::ValueIdTypes::List: {
|
||||||
qDebug() << "Processing List";
|
|
||||||
if (!msg["Value"].IsUint()) {
|
if (!msg["Value"].IsUint()) {
|
||||||
this->sendSimpleStatus(false, QString("Incorrect Field Type for Value: Not Integer: ").append(msg["Value"].GetType()));
|
this->sendSimpleStatus(false, QString("Incorrect Field Type for Value: Not Integer: ").append(msg["Value"].GetType()));
|
||||||
qCWarning(ozwmcsv) << "Incorrect Field Type (Integer) for " << GetCommand() << ": Value: " << msg["Value"].GetType();
|
qCWarning(ozwmcsv) << "Incorrect Field Type (Integer) for " << GetCommand() << ": Value: " << msg["Value"].GetType();
|
||||||
|
@ -132,9 +131,7 @@ bool MqttCommand_SetValue::processMessage(rapidjson::Document &msg) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
list.selectedItem = list.labels[index];
|
list.selectedItem = list.labels[index];
|
||||||
qDebug() << list.selectedItem;
|
|
||||||
data.setValue<QTOZW_ValueIDList>(list);
|
data.setValue<QTOZW_ValueIDList>(list);
|
||||||
qDebug() << data;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QTOZW_ValueIds::ValueIdTypes::Raw: {
|
case QTOZW_ValueIds::ValueIdTypes::Raw: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue