Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
9f0d3ce
Test 1: User Agent
vode-code Oct 16, 2025
51cae25
Test 2: Ubuntu
vode-code Oct 17, 2025
121d56d
Test 3: Python Test 1
vode-code Oct 17, 2025
c78a028
Test 3 2: Python Test 2
vode-code Oct 17, 2025
d4a774a
Test 3 2.1: Python Test 3
vode-code Oct 17, 2025
810b21b
Test 3 2.2: Python Test 4
vode-code Oct 17, 2025
03a289f
Python Test 5
vode-code Oct 17, 2025
4caa4ee
Test 3 2.4: Python Test 6
vode-code Oct 17, 2025
79d66ea
Python Test -1
vode-code Oct 17, 2025
bbe2b29
order test
vode-code Oct 17, 2025
e426b23
version change
vode-code Oct 17, 2025
0f16ce8
format test
vode-code Oct 17, 2025
458de81
feedback database fix
vode-code Oct 17, 2025
df78eb9
Merge branch 'CI' into CI2
vode-code Oct 17, 2025
26e00f3
undo encode test
vode-code Oct 17, 2025
c565fc2
revert test rust change
vode-code Oct 17, 2025
dba77fd
version test again
vode-code Oct 17, 2025
55df31c
version returns to 3
vode-code Oct 17, 2025
4636e71
python test 1/2
vode-code Oct 17, 2025
3cfb696
python test 2/3...
vode-code Oct 17, 2025
ff33bb6
potentially useful uncommenting
vode-code Oct 18, 2025
37e561c
debug 2
vode-code Oct 18, 2025
7f1f5dd
debug better
vode-code Oct 18, 2025
6366f42
this might log properly
vode-code Oct 18, 2025
f932ffc
go go go further testing
vode-code Oct 18, 2025
9890dc8
trim ci_config.txt
vode-code Oct 23, 2025
e8bd252
even more debug
vode-code Oct 23, 2025
ce4846d
config file returned to the cold ways
vode-code Oct 23, 2025
56e6da2
colder still
vode-code Oct 23, 2025
9d565fc
mysql test
vode-code Oct 24, 2025
ae2241c
test again
vode-code Oct 24, 2025
314711d
integration tests test
vode-code Oct 24, 2025
1230711
remove some useless stuff
vode-code Oct 24, 2025
509427a
sql test
vode-code Oct 25, 2025
76a3170
newfile test
vode-code Oct 25, 2025
14f216b
newfile test
vode-code Oct 25, 2025
3f4b053
Merge branch 'CI2' of https://github.com/vode-code/CEV-Eris into CI2
vode-code Oct 25, 2025
d584283
newfile2 test
vode-code Oct 25, 2025
c5893a5
speedup test
vode-code Oct 25, 2025
19f0d94
bad comment prune
vode-code Oct 25, 2025
2729cca
Merge branch 'CI2' of https://github.com/vode-code/CEV-Eris into CI2
vode-code Oct 25, 2025
100cc71
mini reset
vode-code Oct 25, 2025
472ce9a
woot woot
vode-code Oct 25, 2025
9c894ef
testfix
vode-code Oct 25, 2025
6e32e68
update test 2
vode-code Oct 25, 2025
11627ce
good'nuff
vode-code Oct 25, 2025
e8cb636
namefix and test test
vode-code Oct 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ jobs:
run_linters:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
name: Run Linters
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
concurrency:
group: run_linters-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Update apt and install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev libjpeg62 libjpeg62-dev libpng-dev
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'tools/requirements.txt'
- uses: actions/checkout@v3
- name: Restore SpacemanDMM cache
uses: actions/cache@v3
with:
Expand All @@ -32,10 +42,9 @@ jobs:
${{ runner.os }}-
- name: Install Tools
run: |
pip3 install setuptools
pip install -r tools/requirements.txt
bash tools/ci/install_node.sh
bash tools/ci/install_spaceman_dmm.sh dreamchecker
tools/bootstrap/python -c ''
- name: Run Linters
run: |
bash tools/ci/check_filedirs.sh cev_eris.dme
Expand All @@ -56,7 +65,7 @@ jobs:
compile_all_maps:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
name: Compile Maps
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
concurrency:
group: compile_all_maps-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -76,7 +85,7 @@ jobs:
run_all_tests:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
name: Integration Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
services:
mysql:
image: mysql:latest
Expand All @@ -102,9 +111,6 @@ jobs:
mysql -u root -proot tg_ci < schema.sql
- name: Install rust-g
run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install -o APT::Immediate-Configure=false libssl1.1:i386
bash tools/ci/install_rust_g.sh
- name: Compile Tests
run: |
Expand All @@ -127,7 +133,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]') && always()"
needs: [run_all_tests]
name: Compare Screenshot Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
# If we ever add more artifacts, this is going to break, but it'll be obvious.
Expand Down
4 changes: 3 additions & 1 deletion cev_eris.dme
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "code\__DEFINES\craft.dm"
#include "code\__DEFINES\cyborg_traits.dm"
#include "code\__DEFINES\damage_organs.dm"
#include "code\__DEFINES\database.dm"
#include "code\__DEFINES\economy.dm"
#include "code\__DEFINES\error_handler.dm"
#include "code\__DEFINES\flags.dm"
Expand Down Expand Up @@ -226,6 +227,7 @@
#include "code\controllers\subsystems\chemistry.dm"
#include "code\controllers\subsystems\chunks.dm"
#include "code\controllers\subsystems\craft.dm"
#include "code\controllers\subsystems\database.dm"
#include "code\controllers\subsystems\dcs.dm"
#include "code\controllers\subsystems\economy.dm"
#include "code\controllers\subsystems\evac.dm"
Expand Down Expand Up @@ -527,7 +529,6 @@
#include "code\defines\obj.dm"
#include "code\defines\procs\announce.dm"
#include "code\defines\procs\AStar.dm"
#include "code\defines\procs\dbcore.dm"
#include "code\defines\procs\hud.dm"
#include "code\defines\procs\radio.dm"
#include "code\defines\procs\sd_Alert.dm"
Expand Down Expand Up @@ -1425,6 +1426,7 @@
#include "code\modules\admin\verbs\possess.dm"
#include "code\modules\admin\verbs\pray.dm"
#include "code\modules\admin\verbs\randomverbs.dm"
#include "code\modules\admin\verbs\reestablish_db_connection.dm"
#include "code\modules\admin\verbs\ticklag.dm"
#include "code\modules\admin\verbs\tripAI.dm"
#include "code\modules\admin\verbs\SDQL_2\SDQL_2.dm"
Expand Down
6 changes: 6 additions & 0 deletions code/__DEFINES/database.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// When a query has been queued up for execution/is being executed
#define DB_QUERY_STARTED 0
/// When a query is finished executing
#define DB_QUERY_FINISHED 1
/// When there was a problem with the execution of a query.
#define DB_QUERY_BROKEN 2
3 changes: 2 additions & 1 deletion code/__DEFINES/subsystems-priority.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var/list/bitflags = list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096
#define SS_PRIORITY_TICKER 200 // Gameticker processing.
#define FIRE_PRIORITY_TGUI 110
#define FIRE_PRIORITY_EXPLOSIONS 105 // Explosions!
#define FIRE_PRIORITY_THROWING 106 // Throwing! after explosions since they influence throw direction
#define FIRE_PRIORITY_DATABASE 104
#define FIRE_PRIORITY_THROWING 103 // Throwing! after explosions since they influence throw direction
#define SS_PRIORITY_HUMAN 101 // Human Life().
#define SS_PRIORITY_MOB 100 // Non-human Mob Life().
#define SS_PRIORITY_CHAT 100 // Chat subsystem.
Expand Down
10 changes: 10 additions & 0 deletions code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

//! ## DB defines
/**
* DB schema version
*
* Update this whenever the db schema changes
*/
#define DB_SCHEMA_VERSION 1


//! ## Timing subsystem
/**
* Don't run if there is an identical unique timer active
Expand Down Expand Up @@ -88,6 +97,7 @@
// The numbers just define the ordering, they are meaningless otherwise.

#define INIT_ORDER_GARBAGE 99
#define INIT_ORDER_DBCORE 98
#define INIT_ORDER_EXPLOSIONS 97
#define INIT_ORDER_STATPANELS 96
#define INIT_ORDER_MAPPING 15
Expand Down
6 changes: 2 additions & 4 deletions code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
* SQL sanitization
*/

// Run all strings to be used in an SQL query through this proc first to properly escape out injection attempts.
/proc/sanitizeSQL(var/t as text)
var/sqltext = dbcon.Quote(t);
return copytext(sqltext, 2, length(sqltext));//Quote() adds quotes around input, we already do that
/proc/format_table_name(table as text)
return sql_tableprefix + table

/*
* Text sanitization
Expand Down
16 changes: 15 additions & 1 deletion code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ GLOBAL_LIST_EMPTY(storyteller_cache)
/datum/configuration/proc/load(filename, type = "config") //the type can also be game_options, in which case it uses a different switch. not making it separate to not copypaste code - Urist
var/list/Lines = file2list(filename)

world.log << "loading [filename]"
for(var/t in Lines)
if(!t) continue

Expand Down Expand Up @@ -779,6 +780,7 @@ GLOBAL_LIST_EMPTY(storyteller_cache)

/datum/configuration/proc/loadsql(filename) // -- TLE
var/list/Lines = file2list(filename)
world.log << "loading [filename]"
for(var/t in Lines)
if(!t) continue

Expand All @@ -805,13 +807,25 @@ GLOBAL_LIST_EMPTY(storyteller_cache)
if ("address")
sqladdress = value
if ("port")
sqlport = value
sqlport = text2num(value)
if ("database")
sqldb = value
if ("login")
sqllogin = value
if ("password")
sqlpass = value
if ("sql_tableprefix")
sql_tableprefix = value
if ("async_query_timeout")
sql_async_query_timeout = text2num(value)
if ("blocking_query_timeout")
sql_blocking_query_timeout = text2num(value)
if ("pooling_min_sql_connections")
sql_pooling_min_sql_connections = text2num(value)
if ("pooling_max_sql_connections")
sql_pooling_max_sql_connections = text2num(value)
if ("max_concurrent_queries")
sql_max_concurrent_queries = text2num(value)
else
log_misc("Unknown setting in configuration: '[name]'")

Expand Down
Loading
Loading