Skip to content

Web socket upgrade #282

Web socket upgrade

Web socket upgrade #282

Triggered via pull request February 27, 2024 23:20
Status Failure
Total duration 22m 34s
Artifacts

ci.yml

on: pull_request
find-latest-release  /  get-latest-release
13s
find-latest-release / get-latest-release
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 3 warnings
check-compile
Error: Command failed: lfc "./examples/C/src/rhythm/Rhythm.lf" lfc: info: Generating code for: file:/home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/rhythm/Rhythm.lf lfc: info: Generation mode: STANDALONE lfc: info: Generating sources into: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src-gen/rhythm/Rhythm lfc: info: Target Configuration: - keepalive: true - cmake-include: [/lib/c/reactor-c/util/sensor_simulator.cmake] - files: [/lib/c/reactor-c/util/sensor_simulator.c, /lib/c/reactor-c/util/sensor_simulator.h] lfc: info: Copied '/lib/c/reactor-c/util/sensor_simulator.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/sensor_simulator.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_linux.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_mac.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.h' from the class path. lfc: info: Copied 'sounds' from the file system. CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:20: error: ‘LF_TARGET_FILES_DIRECTORY’ undeclared here (not in a function) 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:46: error: expected ‘}’ before string constant 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:49:30: note: to match this ‘{’ 49 | char* waveform_files[] = { | ^ gmake[2]: *** [CMakeFiles/Rhythm.dir/build.make:118: CMakeFiles/Rhythm.dir/_playwaveform.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... /home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/rhythm/Rhythm.lf: In function ‘_rhythmsourcereaction_function_0’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/rhythm/Rhythm.lf:149:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘instant_t’ {aka ‘long int’} [-Wformat=] 149 | sprintf(log_file_name, "log/Rhythm_%lld.log", lf_time_logical()); | ^~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/rhythm/Rhythm.lf:151:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘instant_t’ {aka ‘long int’} [-Wformat=] 151 | sprintf(log_file_name, "log/Rhythm_%d_%lld.log", fed_id, lf_time_logical());
check-compile
Error: Command failed: lfc "./examples/C/src/rhythm/RhythmDistributed.lf" lfc: info: ##### Generating code for federate federate__player1 in directory /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributed/src lfc: info: ##### Generating code for federate federate__player2 in directory /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributed/src lfc: info: ******** Using 1 threads to compile the program. lfc: info: Generating code for: file:/home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributed/src/federate__player1.lf lfc: info: Generation mode: STANDALONE lfc: info: Generating sources into: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributed/src-gen/federate__player1 lfc: info: Target Configuration: - keepalive: true - single-threaded: false - cmake-include: [include/federate__player1_extension.cmake] - compile-definitions: {EXECUTABLE_PREAMBLE=, FEDERATED=, FEDERATED_CENTRALIZED=, NUMBER_OF_FEDERATES=2} - docker: DockerOptions[enabled=false, from=, rti=lflang/rti:rti] - _fed_setup: include/_federate__player1_preamble.h lfc: info: Copied 'include/federate__player1_extension.cmake' from the file system. lfc: info: Copied '/lib/c/reactor-c/util/sensor_simulator.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/sensor_simulator.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_linux.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_mac.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.h' from the class path. lfc: info: Copied 'sounds' from the file system. CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/Rhythm.lf: In function ‘_rhythmsourcereaction_function_0’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/Rhythm.lf:149:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘instant_t’ {aka ‘long int’} [-Wformat=] 149 | sprintf(log_file_name, "log/Rhythm_%lld.log", lf_time_logical()); | ^~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/Rhythm.lf:151:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘instant_t’ {aka ‘long int’} [-Wformat=] 151 | sprintf(log_file_name, "log/Rhythm_%d_%lld.log", fed_id, lf_time_logical()); | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/Rhythm.lf: In function ‘_rhythmsourcereaction_function_3’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/Rhythm.lf:251:14: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘interval_t’ {aka ‘long int’} [-Wformat=] 251 | lf_print("REMOTE: Changing the tempo period by %lld ns.", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check-compile
Error: Command failed: lfc "./examples/C/src/rhythm/RhythmDistributedNoUI.lf" lfc: info: ##### Generating code for federate federate__player1 in directory /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src lfc: info: ##### Generating code for federate federate__player2 in directory /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src lfc: info: ******** Using 1 threads to compile the program. lfc: info: Generating code for: file:/home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src/federate__player1.lf lfc: info: Generation mode: STANDALONE lfc: info: Generating sources into: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1 lfc: info: Target Configuration: - keepalive: true - single-threaded: false - cmake-include: [include/federate__player1_extension.cmake] - compile-definitions: {FEDERATED_DECENTRALIZED=, EXECUTABLE_PREAMBLE=, FEDERATED=, NUMBER_OF_FEDERATES=2} - timeout: 10 sec - docker: DockerOptions[enabled=false, from=, rti=lflang/rti:rti] - _fed_setup: include/_federate__player1_preamble.h - coordination: decentralized lfc: info: Copied 'include/federate__player1_extension.cmake' from the file system. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_linux.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_mac.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.h' from the class path. lfc: info: Copied 'sounds' from the file system. CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1/wave_file_reader.c: In function ‘read_wave_file’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1/wave_file_reader.c:95:44: warning: multi-character character constant [-Wmultichar] 95 | uint32_t expected_chunk_id = (uint32_t)'FFIR'; // Little-endian version of RIFF. | ^~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1/wave_file_reader.c:96:42: warning: multi-character character constant [-Wmultichar] 96 | uint32_t expected_format = (uint32_t)'EVAW'; // Little-endian version of WAVE. | ^~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1/wave_file_reader.c:97:47: warning: multi-character character constant [-Wmultichar] 97 | uint32_t expected_subchunk_id = (uint32_t)' tmf'; // Little-endian version of 'fmt '. | ^~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/fed-gen/RhythmDistributedNoUI/src-gen/federate__player1/wave_file_reader.c:124:43: warning: multi-character character constant [-Wmultichar] 124 | uint32_t e
check-compile
Error: Command failed: lfc "./examples/C/src/rhythm/Sound.lf" lfc: info: Generating code for: file:/home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/rhythm/Sound.lf lfc: info: Generation mode: STANDALONE lfc: info: Generating sources into: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src-gen/rhythm/Sound lfc: info: Target Configuration: - keepalive: true lfc: info: Copied '/lib/c/reactor-c/util/audio_loop.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_linux.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_mac.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.h' from the class path. lfc: info: Copied 'sounds' from the file system. CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:20: error: ‘LF_TARGET_FILES_DIRECTORY’ undeclared here (not in a function) 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:46: error: expected ‘}’ before string constant 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:49:30: note: to match this ‘{’ 49 | char* waveform_files[] = { | ^ gmake[2]: *** [CMakeFiles/Sound.dir/build.make:118: CMakeFiles/Sound.dir/_playwaveform.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/Sound.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2 lfc: error: CMake failed with error code 2 lfc: fatal error: Aborting due to 1 previous error.
check-compile
Error: Command failed: lfc "./examples/C/src/sdv/ParkingAssist.lf" lfc: info: Generating code for: file:/home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/sdv/ParkingAssist.lf lfc: info: Generation mode: STANDALONE lfc: info: Generating sources into: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src-gen/sdv/ParkingAssist lfc: info: Target Configuration: - keepalive: true lfc: info: Copied 'WebSocketCmake.txt' from the file system. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop.h' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_linux.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/audio_loop_mac.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.c' from the class path. lfc: info: Copied '/lib/c/reactor-c/util/wave_file_reader.h' from the class path. lfc: info: Copied 'sounds' from the file system. CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. /home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/sdv/ParkingAssist.lf: In function ‘_dashboardreaction_function_0’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/./examples/C/src/sdv/ParkingAssist.lf:138:7: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration] 138 | asprintf(&message, "{\"front_distance\": %d, \"speed\": %d}", front_distance->value, speed->value); | ^~~~~~~~ | vsprintf /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:20: error: ‘LF_TARGET_FILES_DIRECTORY’ undeclared here (not in a function) 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:48:46: error: expected ‘}’ before string constant 48 | #define SOUNDS LF_TARGET_FILES_DIRECTORY "/sounds/" | ^~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:50:7: note: in expansion of macro ‘SOUNDS’ 50 | SOUNDS "Bass-Drum-1.wav", | ^ ~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/rhythm/PlayWaveform.lf:49:30: note: to match this ‘{’ 49 | char* waveform_files[] = { | ^ gmake[2]: *** [CMakeFiles/ParkingAssist.dir/build.make:160: CMakeFiles/ParkingAssist.dir/_playwaveform.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/lib/ServerUI.lf: In function ‘listener_thread’: /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/lib/ServerUI.lf:111:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 111 | write(browser_ui->client_socket, html_header, strlen(html_header)); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/runner/work/playground-lingua-franca/playground-lingua-franca/examples/C/src/l
check-compile
5 file(s) failed compile check
find-latest-release / get-latest-release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
check-format
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, lf-lang/action-check-lf-files@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
check-compile
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, lf-lang/action-check-lf-files@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.