Skip to content

Commit 3aa679f

Browse files
authored
Merge pull request #1806 from peternewman/master-resync
Master resync
2 parents 235315e + 79e71a4 commit 3aa679f

59 files changed

Lines changed: 332 additions & 116 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#about-the-dependabotyml-file
2+
version: 2
3+
4+
updates:
5+
# Configure check for outdated GitHub Actions actions in workflows.
6+
# See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
7+
- package-ecosystem: github-actions
8+
directory: / # Check the repository's workflows under /.github/workflows/
9+
schedule:
10+
interval: daily

.github/workflows/isort.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: isort
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
isort:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: isort/isort-action@v1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ libs/acn/e131_loadtest
183183
libs/acn/e131_loadtest.exe
184184
libs/acn/e131_transmit_test
185185
libs/acn/e131_transmit_test.exe
186+
ola-*/
186187
ola.spec
187188
olad/olad
188189
olad/olad.exe
@@ -233,6 +234,7 @@ tools/ola_trigger/ola_trigger
233234
tools/ola_trigger/ola_trigger.exe
234235
tools/ola_trigger/FileValidateTest.sh
235236
tools/rdm/DataLocation.py
237+
tools/rdm/ExpectedResultsTest.sh
236238
tools/rdm/ResponderTestTest.sh
237239
tools/rdm/TestHelpersTest.sh
238240
tools/rdm/TestStateTest.sh

.travis-ci.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if [[ $TASK = 'lint' ]]; then
5656
# the following is a bit of a hack to build the files normally built during
5757
# the build, so they are present for linting to run against
5858
travis_fold start "make_builtfiles"
59-
make builtfiles;
59+
make builtfiles VERBOSE=1;
6060
travis_fold end "make_builtfiles"
6161
# first check we've not got any generic NOLINTs
6262
# count the number of generic NOLINTs
@@ -70,7 +70,7 @@ if [[ $TASK = 'lint' ]]; then
7070
echo "Found $nolints generic NOLINTs"
7171
fi;
7272
# run the cpplint tool, fetching it if necessary
73-
make cpplint
73+
make cpplint VERBOSE=1
7474
elif [[ $TASK = 'check-licences' ]]; then
7575
# check licences only if it is the requested task
7676
travis_fold start "autoreconf"
@@ -82,7 +82,7 @@ elif [[ $TASK = 'check-licences' ]]; then
8282
# the following is a bit of a hack to build the files normally built during
8383
# the build, so they are present for licence checking to run against
8484
travis_fold start "make_builtfiles"
85-
make builtfiles;
85+
make builtfiles VERBOSE=1;
8686
travis_fold end "make_builtfiles"
8787
./scripts/enforce_licence.py
8888
if [[ $? -ne 0 ]]; then
@@ -99,7 +99,7 @@ elif [[ $TASK = 'spellintian' ]]; then
9999
# the following is a bit of a hack to build the files normally built during
100100
# the build, so they are present for spellintian to run against
101101
travis_fold start "make_builtfiles"
102-
make builtfiles;
102+
make builtfiles VERBOSE=1;
103103
travis_fold end "make_builtfiles"
104104
spellingfiles=$(eval "find ./ -type f -and ! \( \
105105
$SPELLINGBLACKLIST \
@@ -125,7 +125,7 @@ elif [[ $TASK = 'spellintian-duplicates' ]]; then
125125
# the following is a bit of a hack to build the files normally built during
126126
# the build, so they are present for spellintian to run against
127127
travis_fold start "make_builtfiles"
128-
make builtfiles;
128+
make builtfiles VERBOSE=1;
129129
travis_fold end "make_builtfiles"
130130
spellingfiles=$(eval "find ./ -type f -and ! \( \
131131
$SPELLINGBLACKLIST \
@@ -151,7 +151,7 @@ elif [[ $TASK = 'codespell' ]]; then
151151
# the following is a bit of a hack to build the files normally built during
152152
# the build, so they are present for codespell to run against
153153
travis_fold start "make_builtfiles"
154-
make builtfiles;
154+
make builtfiles VERBOSE=1;
155155
travis_fold end "make_builtfiles"
156156
spellingfiles=$(eval "find ./ -type f -and ! \( \
157157
$SPELLINGBLACKLIST \
@@ -178,13 +178,13 @@ elif [[ $TASK = 'doxygen' ]]; then
178178
# the following is a bit of a hack to build the files normally built during
179179
# the build, so they are present for Doxygen to run against
180180
travis_fold start "make_builtfiles"
181-
make builtfiles;
181+
make builtfiles VERBOSE=1;
182182
travis_fold end "make_builtfiles"
183183
# count the number of warnings
184184
warnings=$(make doxygen-doc 2>&1 >/dev/null | wc -l)
185185
if [[ $warnings -ne 0 ]]; then
186186
# print the output for info
187-
make doxygen-doc
187+
make doxygen-doc VERBOSE=1
188188
echo "Found $warnings doxygen warnings"
189189
exit 1;
190190
else
@@ -230,7 +230,7 @@ elif [[ $TASK = 'flake8' ]]; then
230230
# the following is a bit of a hack to build the files normally built during
231231
# the build, so they are present for flake8 to run against
232232
travis_fold start "make_builtfiles"
233-
make builtfiles;
233+
make builtfiles VERBOSE=1;
234234
travis_fold end "make_builtfiles"
235235
make flake8
236236
elif [[ $TASK = 'pychecker' ]]; then
@@ -258,7 +258,7 @@ elif [[ $TASK = 'pychecker' ]]; then
258258
travis_fold end "pychecker_b"
259259
# Even more restricted checking for files that import files that break pychecker and have unused parameters
260260
travis_fold start "pychecker_c"
261-
pychecker --quiet --limit 500 --blacklist $PYCHECKER_BLACKLIST --only --no-argsused $(find ./ -name "*.py" -and ! \( -name "*_pb2.py" -or -name "OlaClient.py" -or -name "ola_candidate_ports.py" -or -name "ola_universe_info.py" -or -name "rdm_snapshot.py" -or -name "ClientWrapper.py" -or -name "PidStore.py" -or -name "enforce_licence.py" -or -name "ola_mon.py" -or -name "TestLogger.py" -or -name "TestRunner.py" -or -name "rdm_model_collector.py" -or -name "rdm_responder_test.py" -or -name "rdm_test_server.py" -or -wholename "./include/ola/gen_callbacks.py" -or -wholename "./tools/rdm/ResponderTest.py" -or -wholename "./tools/rdm/TestHelpers.py" \) | xargs)
261+
pychecker --quiet --limit 500 --blacklist $PYCHECKER_BLACKLIST --only --no-argsused $(find ./ -name "*.py" -and ! \( -name "*_pb2.py" -or -name "OlaClient.py" -or -name "ola_candidate_ports.py" -or -name "ola_universe_info.py" -or -name "rdm_snapshot.py" -or -name "ClientWrapper.py" -or -name "PidStore.py" -or -name "enforce_licence.py" -or -name "ola_mon.py" -or -name "TestLogger.py" -or -name "TestRunner.py" -or -name "rdm_model_collector.py" -or -name "rdm_responder_test.py" -or -name "rdm_test_server.py" -or -wholename "./include/ola/gen_callbacks.py" -or -wholename "./tools/rdm/ResponderTest.py" -or -wholename "./tools/rdm/TestDefinitions.py" -or -wholename "./tools/rdm/TestHelpers.py" -or -wholename "./tools/rdm/TestMixins.py" \) | xargs)
262262
travis_fold end "pychecker_c"
263263
# Special case checking for some python 3 compatibility workarounds
264264
travis_fold start "pychecker_d"
@@ -304,7 +304,7 @@ else
304304
./configure $DISTCHECK_CONFIGURE_FLAGS;
305305
travis_fold end "configure"
306306
travis_fold start "make_distcheck"
307-
make distcheck;
307+
make distcheck VERBOSE=1;
308308
travis_fold end "make_distcheck"
309309
travis_fold start "make_dist"
310310
make dist;

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Contributors:
2424
Nicolas, for the win32 port of libartnet
2525
Nicolas Bertrand, added ShowJockey DMX-U1 support
2626
Nils Van Zuijlen, typos and python lib small update
27+
Perry Naseck, EPoll delay fix
2728
Peter Newman, MilInst Plugin, Scanlime Fadecandy support and numerous fixes
2829
Ravindra Nath Kakarla, RDM Test Server (Google Summer of Code 2012)
2930
Rowan Maclachlan (hippy) for various changes

NEWS

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
x/y/2020 ola-0.10.9
1+
x/y/2022 ola-0.10.9
22
Features:
3-
*
3+
*
44

55
API:
6-
*
6+
* Python: Add a fetch current DMX example.
77

88
RDM Tests:
99
*
1010

1111
Bugs:
12+
* Fix some tests not working on Big Endian machines because our RPC is encoded
13+
with native format and those tests used sample data from a Little Endian
14+
machine
1215
* Renamed EndpointNoticationEvent(sic) to EndpointNotificationEvent in the
1316
E1.33 EndpointManager code
1417

common/io/EPoller.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ bool EPoller::Poll(TimeoutManager *timeout_manager,
311311
}
312312

313313
int ms_to_sleep = sleep_interval.InMilliSeconds();
314+
// If we haven't been asked to wait as part of the poll interval, then don't
315+
// wait in the epoll to allow for fast streaming
314316
int ready = epoll_wait(m_epoll_fd, reinterpret_cast<epoll_event*>(&events),
315-
MAX_EVENTS, ms_to_sleep ? ms_to_sleep : 1);
317+
MAX_EVENTS, ms_to_sleep ? ms_to_sleep : 0);
316318

317319
if (ready == 0) {
318320
m_clock->CurrentMonotonicTime(&m_wake_up_time);

data/rdm/PidDataTest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import os
2222
import unittest
23+
2324
from ola import PidStore
2425

2526
__author__ = 'nomis52@gmail.com (Simon Newton)'

include/ola/gen_callbacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
from __future__ import print_function
21+
2122
import textwrap
2223

2324

python/examples/ola_artnet_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
"""Fetch some Art-Net parameters."""
2020

2121
from __future__ import print_function
22+
23+
import sys
24+
2225
from ola.ClientWrapper import ClientWrapper
26+
2327
from ola import ArtNetConfigMessages_pb2
24-
import sys
2528

2629
__author__ = 'nomis52@gmail.com (Simon Newton)'
2730

0 commit comments

Comments
 (0)