Skip to content

Commit c02bcc5

Browse files
Merge pull request #284 from pioneers/workflow_update
- Updated CI workflow to run manually - [EXECUTOR] Updated Python version to 3.12 in executor.c and Makefile - [TESTS] Updates test tc_71_2 error message check to account for python 3.12's new error message format
2 parents 1c66e4b + a710b55 commit c02bcc5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/pull_request_ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
types: [opened, synchronize]
1414
push:
1515
branches: [master]
16+
workflow_dispatch:
1617

1718
# Here is the list of jobs that this workflow will run. There is only one job.
1819
jobs:

executor/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LIBS=-pthread -lrt -Wall -export-dynamic -fPIC
55
SRCS = executor.c gamestate_filter.c ../logger/logger.c ../runtime_util/runtime_util.c ../shm_wrapper/shm_wrapper.c
66

77
# Python compilation definitions
8-
PY_VER = python3.10
8+
PY_VER = python3.12
99
PY_LIB = -l$(PY_VER)
1010
CFLAGS = $(shell $(PY_VER)-config --cflags)
1111

executor/executor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define PY_SSIZE_T_CLEAN
22
#include <arpa/inet.h> //for networking
33
#include <pthread.h> //for POSIX threads
4-
#include <python3.10/Python.h> // For Python's C API
4+
#include <python3.12/Python.h> // For Python's C API
55
#include <signal.h> // Used to handle SIGTERM, SIGINT, SIGKILL
66
#include <stdint.h> //for standard int types
77
#include <stdio.h> //for i/o

tests/integration/tc_71_2.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
*/
99

1010
char check_output_6[] =
11-
"line 25, in teleop_main\n"
11+
" File \"/home/runner/work/runtime/runtime/tests/student_code/executor_sanity.py\", line 25, in teleop_main\n"
1212
" oops = 1 / 0\n"
13+
" ~~^~~\n"
1314
"ZeroDivisionError: division by zero\n";
1415

1516
int main() {

0 commit comments

Comments
 (0)