Skip to content

Commit d1574fe

Browse files
committed
apply some PR comments + rebase
Signed-off-by: Martin Litre <[email protected]>
1 parent a106b7c commit d1574fe

File tree

7 files changed

+15
-24
lines changed

7 files changed

+15
-24
lines changed

.ci/build-kit/docker/Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ FROM ghcr.io/everest/everest-ci/build-kit-base:${BASE_IMAGE_TAG}
1111
# && git checkout ${EVEREST_CMAKE_VERSION} \
1212
# && rm -r .git
1313

14-
# FIXME(kai): Install libsystemd-dev as a dependency of sdbus-c++
15-
RUN apt-get update && apt-get -y install libsystemd-dev
16-
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
1714
ENV EVEREST_CMAKE_PATH=/usr/lib/cmake/everest-cmake
1815
ENV EVEREST_CMAKE_VERSION=tmp/eebus
1916
RUN rm -rf ${EVEREST_CMAKE_PATH} \
@@ -22,6 +19,10 @@ RUN rm -rf ${EVEREST_CMAKE_PATH} \
2219
&& git checkout ${EVEREST_CMAKE_VERSION} \
2320
&& rm -r .git
2421

22+
# FIXME(kai): Install libsystemd-dev as a dependency of sdbus-c++
23+
RUN apt-get update && apt-get -y install libsystemd-dev
24+
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
25+
2526
ARG GO_VERSION=1.24.2
2627
ADD https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz /tmp/go.tar.gz
2728
RUN if [ -d /usr/local/go ]; then \
@@ -86,13 +87,3 @@ RUN python3.13 -m pip install --break-system-packages \
8687
sphinxcontrib-svg2pdfconverter \
8788
git+https://github.com/EVerest/[email protected]#subdirectory=dependency_manager
8889

89-
90-
# Can be used to use an other version of everest-cmake
91-
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
92-
ENV EVEREST_CMAKE_PATH=/usr/lib/cmake/everest-cmake
93-
ENV EVEREST_CMAKE_VERSION=tmp/eebus
94-
RUN rm -rf ${EVEREST_CMAKE_PATH} \
95-
&& git clone https://github.com/EVerest/everest-cmake.git ${EVEREST_CMAKE_PATH} \
96-
&& cd ${EVEREST_CMAKE_PATH} \
97-
&& git checkout ${EVEREST_CMAKE_VERSION} \
98-
&& rm -r .git

.ci/build-kit/scripts/create_ocpp_tests_image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ $retVal -ne 0 ]; then
88
exit $retVal
99
fi
1010

11-
python3 -m pip install --break-system-packages \
11+
pip install --break-system-packages \
1212
"$EXT_MOUNT"/wheels/everestpy-*.whl \
1313
"$EXT_MOUNT"/wheels/everest_testing-*.whl \
1414
"$EXT_MOUNT"/wheels/iso15118-*.whl \
@@ -20,6 +20,6 @@ if [ $retVal -ne 0 ]; then
2020
exit $retVal
2121
fi
2222

23-
python3 -m pip install --break-system-packages -r tests/ocpp_tests/requirements.txt
23+
pip install --break-system-packages -r tests/ocpp_tests/requirements.txt
2424

2525
$(cd ./tests/ocpp_tests/test_sets/everest-aux/ && ./install_certs.sh "$EXT_MOUNT/dist" && ./install_configs.sh "$EXT_MOUNT/dist")

.ci/e2e/scripts/run_integration_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
cd tests
4-
python3 -m pytest \
4+
pytest \
55
-rA \
66
--junitxml="$EXT_MOUNT/result.xml" \
77
--html="$EXT_MOUNT/report.html" \

.ci/e2e/scripts/run_ocpp_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PARALLEL_TESTS=$(nproc)
66

77
echo "Running $PARALLEL_TESTS ocpp tests in parallel"
88

9-
python3 -m pytest \
9+
pytest \
1010
-rA \
1111
-n "$PARALLEL_TESTS" \
1212
--dist=loadgroup \

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (NOT everest-cmake_FOUND)
2121
FetchContent_Declare(
2222
everest-cmake
2323
GIT_REPOSITORY https://github.com/EVerest/everest-cmake.git
24-
GIT_TAG v0.6.0
24+
GIT_TAG main
2525
)
2626
FetchContent_MakeAvailable(everest-cmake)
2727
set(everest-cmake_DIR "${everest-cmake_SOURCE_DIR}")

modules/EnergyManagement/EEBUS/ConfigValidator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ std::string ConfigValidator::get_serial_number() const {
7272
}
7373

7474
int ConfigValidator::get_failsafe_control_limit() const {
75-
return this->config.failsafe_control_limit;
75+
return this->config.failsafe_control_limit_W;
7676
}
7777

7878
int ConfigValidator::get_max_nominal_power() const {
79-
return this->config.max_nominal_power;
79+
return this->config.max_nominal_power_W;
8080
}
8181

8282
bool ConfigValidator::validate_eebus_service_port() const {
@@ -180,15 +180,15 @@ bool ConfigValidator::validate_serial_number() const {
180180
}
181181

182182
bool ConfigValidator::validate_failsafe_control_limit() const {
183-
if (this->config.failsafe_control_limit < 0) {
183+
if (this->config.failsafe_control_limit_W < 0) {
184184
EVLOG_error << "failsafe_control_limit is negative";
185185
return false;
186186
}
187187
return true;
188188
}
189189

190190
bool ConfigValidator::validate_max_nominal_power() const {
191-
if (this->config.max_nominal_power < 0) {
191+
if (this->config.max_nominal_power_W < 0) {
192192
EVLOG_error << "max_nominal_power is negative";
193193
return false;
194194
}

modules/EnergyManagement/EEBUS/EEBUS.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct Conf {
3838
std::string device_brand;
3939
std::string device_model;
4040
std::string serial_number;
41-
int failsafe_control_limit;
42-
int max_nominal_power;
41+
int failsafe_control_limit_W;
42+
int max_nominal_power_W;
4343
};
4444

4545
class EEBUS : public Everest::ModuleBase {

0 commit comments

Comments
 (0)