mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-06-15 21:02:39 +02:00
Why: Mandate the local container testing validation per AGENTS.md before push. To make it completely robust, we prevent empty or invalid marker commits from bypassing the check, expand the file types that trigger re-run (including Python, Dockerfile, YAML metadata, and tests), and handle git history changes gracefully without crashes. Impact: Developer/AI agents are blocked from pushing if they touch C, Python, Docker, YAML, or test files without running container validation first. Before/After: Before, container validation wasn't wired, or empty/invalid markers could be bypassed or cause shell crashes. Now, the hook is fully integrated, robust against invalid commit hashes, and covers all relevant file extensions. Technical Overview: 1. Wire pre_push_container_gate.sh into hooks.json under PreToolUse for Bash. 2. Use git rev-parse to verify the validation marker commit hash actually exists in the local repository before running diffs. 3. Expand file matching regex to include .py, Dockerfile, MODULE_METADATA.yaml, and any files under tests/. 4. Gitignore .codex/container_validated.marker to keep mutable local developer state out of commits. With the help of AI-Agents: Antigravity
139 lines
1.9 KiB
Plaintext
139 lines
1.9 KiB
Plaintext
patch*
|
|
*~
|
|
*.gc*
|
|
*.iml
|
|
.idea
|
|
.tar.gz
|
|
.deps
|
|
.libs
|
|
*.o
|
|
*.lo
|
|
*.la
|
|
Makefile
|
|
Makefile.in
|
|
autom4te.cache
|
|
config.guess
|
|
config.h
|
|
config.h.in
|
|
config.log
|
|
config.status
|
|
config.sub
|
|
configure
|
|
libtool
|
|
ltmain.sh
|
|
aclocal.m4
|
|
miniamqpsrvr
|
|
journal_print
|
|
depcomp
|
|
stamp-h1
|
|
INSTALL
|
|
install-sh
|
|
missing
|
|
compile
|
|
rsyslogd
|
|
rsyslog.service
|
|
ylwrap
|
|
*.orig
|
|
rg.conf*
|
|
*.sw?
|
|
*.sv?
|
|
*.cache
|
|
# some common names I use during development
|
|
utils
|
|
tmp*
|
|
log
|
|
logfile
|
|
debug
|
|
core.*
|
|
shave
|
|
shave-libtool
|
|
core*
|
|
vgcore*
|
|
*.tar.gz
|
|
*.new
|
|
*.orig
|
|
*.old
|
|
*.diff
|
|
*.patch
|
|
checklog
|
|
*.bad
|
|
*.rej
|
|
*.log
|
|
logfile*
|
|
*.conf
|
|
!tests/testsuites/*.conf
|
|
!packaging/docker/rsyslog/minimal/02-noise-drop.conf
|
|
# packaging/ubuntu: exclude from *.conf and rsyslog.service
|
|
!packaging/ubuntu/**/*.conf
|
|
!packaging/ubuntu/**/rsyslog.service
|
|
log
|
|
/target
|
|
tests/*.trs
|
|
test-driver
|
|
grammar/grammar.c
|
|
grammar/grammar.h
|
|
cscope.out
|
|
.dirstamp
|
|
tests/HOSTNAME
|
|
tests/chkseq
|
|
tests/diagtalker
|
|
tests/have_relpEngineSetTLSLibByName
|
|
tests/have_relpSrvSetOversizeMode
|
|
tests/have_relpSrvSetTlsConfigCmd
|
|
tests/inputfilegen
|
|
tests/minitcpsrv
|
|
tests/msleep
|
|
tests/nettester
|
|
tests/ourtail
|
|
tests/randomgen
|
|
tests/set-envvars
|
|
tests/syslog_caller
|
|
tests/omrelp_dflt_port
|
|
tests/syslog_inject
|
|
tests/test_id
|
|
tests/tcpflood
|
|
tests/uxsockrcvr
|
|
tests/xlate.lkp_tbl
|
|
tests/xlate_1.lkp_tbl
|
|
tests/xlate_array.lkp_tbl
|
|
tests/rstb_*
|
|
.vscode/
|
|
utils/*
|
|
*.sw*
|
|
clang_output_*
|
|
tools/logctl
|
|
tools/rscryutil
|
|
tools/rscryutil.1
|
|
/bin/
|
|
# RPM CI build output
|
|
/build-result/
|
|
|
|
# Ubuntu package build output
|
|
rsyslog-*-local-*/
|
|
rsyslog_*.orig.tar.gz
|
|
*.deb
|
|
rsyslog_*-0adiscon1*.debian.tar.xz
|
|
rsyslog_*-0adiscon1*.dsc
|
|
rsyslog_*-0adiscon1*.changes
|
|
rsyslog_*-0adiscon1*.buildinfo
|
|
rsyslog_*-0adiscon1*.build
|
|
|
|
# Coverage artifacts
|
|
*.gcda
|
|
*.gcno
|
|
coverage*
|
|
_codeql_detected_source_root
|
|
doc/.venv-docs/
|
|
plugins/impstats/remote.pb-c.c
|
|
plugins/impstats/remote.pb-c.h
|
|
|
|
# Python cache artifacts
|
|
__pycache__/
|
|
*.py[cod]
|
|
|
|
# Local machine-specific Codex notes
|
|
AGENTS.local.md
|
|
|
|
# Codex container validation marker
|
|
.codex/container_validated.marker
|