Skip to content

Commit 0a56269

Browse files
LarsEckartisidoreJayBazuzi
committed
. e Update commit/process rules and scripts
Updated documentation for Arlo Commit Notation, co-authors, and running scripts. Modified build_and_test.sh for environment consistency. Co-authored-by: Llewellyn <isidore@users.noreply.github.com> Co-authored-by: Jay <JayBazuzi@users.noreply.github.com>
1 parent 0e401d9 commit 0a56269

4 files changed

Lines changed: 32 additions & 6 deletions

File tree

.windsurf/ArloCommitNotation.process.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
### Arlo Commit Notation
1+
# Arlo Commit Notation
2+
STARTER_CHARACTER = 🔒
3+
24
ALWAYS add the 2 character prefix to commit messages.
35

46
## Overview
57

8+
Before committing, run git_status.sh to understand what's changed.
9+
610
Arlo's Commit Notation (ACN) is a system that prefixes commit messages with concise codes to convey:
711

812
1. **Risk Level**: The degree of confidence in the change's safety.
@@ -46,6 +50,11 @@ Following the risk symbol, a letter denotes the intention of the commit:
4650

4751
---
4852

53+
## Commit cli
54+
55+
Commit code using: `.windsurf/scripts/commit.sh "<message>"`
56+
This will stage everything and commit.
57+
4958
## Commit Message Format
5059

5160
The general format for commit messages is:

.windsurf/coauthors.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
lada
1+
Llewellyn
2+
Jay

.windsurf/rules/running_scripts.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
trigger: always_on
33
---
44

5-
Always add 🧩 followed by space at the start of your reply
5+
**ALWAYS** add the STARTER_CHARACTER followed by space at the start of your reply.
6+
The STARTER_CHARACTER will change for each process file that is in progress.
7+
8+
Default STARTER_CHARACTER = 🧩
9+
610

711
## ApprovalTests
812

@@ -20,5 +24,4 @@ use: `./.windsurf/scripts/git_status.sh`
2024

2125

2226
## Commiting Code
23-
Use [Arlo Commit Notation](../ArloCommitNotation.process.md)
24-
Commit code using: `.windsurf/scripts/commit.sh <message>`
27+
Read [Arlo Commit Notation](../ArloCommitNotation.process.md) and follow the instructions.

build_and_test.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
mvn -B verify --file pom.xml
4+
TMP_OUTPUT=$(mktemp)
5+
if mvn -B verify --file pom.xml > "$TMP_OUTPUT" 2>&1; then
6+
# Extract the number of tests run from Maven output
7+
TESTS_LINE=$(awk '/Results:/ {found=1; next} found' "$TMP_OUTPUT" | grep -Eo 'Tests run: [0-9]+' | head -n 1)
8+
TESTS_PASSED=$(echo "$TESTS_LINE" | grep -Eo '[0-9]+')
9+
echo "✅ Built: $TESTS_PASSED tests passed."
10+
EXIT_CODE=0
11+
else
12+
cat "$TMP_OUTPUT"
13+
echo "❌ Build failed."
14+
EXIT_CODE=1
15+
fi
16+
rm "$TMP_OUTPUT"
17+
exit $EXIT_CODE

0 commit comments

Comments
 (0)