Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
code/.github/workflows/fleet-python-tests.yml at main · developing-today/code · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
developing-today
code
Repository navigation
Code
Issues
643
(643)
Pull requests
46
(46)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
code
/
.github
/
workflows
/
fleet-python-tests.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
81 lines (78 loc) · 3.03 KB
main
Breadcrumbs
code
/
.github
/
workflows
/
fleet-python-tests.yml
Copy path
Top
File metadata and controls
Code
Blame
81 lines (78 loc) · 3.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name
:
fleet python tests
#
Test verification for the Python suites under pkgs/fleet (#17753).
#
#
The fleet book's testing chapter catalogues pkgs/fleet/tests/ (five
#
suites: the broker heartbeat/lease SQL, the laptop-agent cutover gate
#
for #16089, the fetch-failure parity suite for #16088, the Python CLI
#
v1 selector contract, and the tailnet proxy env contract) plus the
#
two pkgs/fleet/archer-slack suites as the package's Python test
#
surface — but no workflow, flake check, or other runner ever executed
#
them. This workflow runs all seven on every PR and push to main that
#
touches pkgs/fleet/**.
#
#
All seven suites are stdlib unittest with no network and no
#
credentials; each file is run individually (the fleet-queue-backup
#
pattern) so one suite's import-time failure cannot mask the others,
#
and the run fails loudly if the enumeration ever comes up empty.
on
:
push
:
branches
:
[main]
paths
:
[
pkgs/fleet/tests/**,
pkgs/fleet/archer-slack/**,
pkgs/fleet/crates/fleet-queue/src/turso_queue/**,
pkgs/fleet/crates/fleet-queue/tests/bundle_cap_sql.py,
pkgs/fleet/laptop-agent.py,
.github/workflows/fleet-python-tests.yml,
]
permissions
:
contents
:
read
jobs
:
test
:
runs-on
:
ubuntu-latest
timeout-minutes
:
10
steps
:
-
uses
:
actions/checkout@v7
-
uses
:
actions/setup-python@v7
with
:
python-version
:
"
3.13
"
-
name
:
pkgs/fleet Python suites (#17753)
run
:
|
fail=0
count=0
for t in pkgs/fleet/tests/test_*.py pkgs/fleet/archer-slack/collector/test_*.py pkgs/fleet/archer-slack/puller/test_*.py; do
count=$((count + 1))
echo "== $t"
if python3 -I "$t"; then
echo "PASS: $t"
else
echo "::error::FAIL: $t"
fail=1
fi
done
echo "Ran $count Python test file(s)."
if [ "$count" -eq 0 ]; then
echo "::error::No test files matched — the suites were not run."
exit 1
fi
if [ "$fail" -ne 0 ]; then
echo "::error::fleet Python tests: at least one file failed (see above)."
exit 1
fi
echo "fleet Python tests: all $count files passed."
#
The bundle-cap counting oracle for the fleet-queue broker's
#
BUNDLE_CLAIM_COUNT_SQL (#11333) is a behavioural unittest suite
#
that extracts the production SQL and runs it against fabricated
#
events. Its Rust sibling test asserts the SQL string statically
#
and cites this file as the behavioural run, but no harness ever
#
executed it (#18063). It is stdlib-only (sqlite3) and hermetic.
-
name
:
fleet-queue bundle-cap SQL oracle (#18063)
run
:
|
t=pkgs/fleet/crates/fleet-queue/tests/bundle_cap_sql.py
if [ ! -f "$t" ]; then
echo "::error::Missing suite file $t — the bundle-cap SQL oracle was not run."
exit 1
fi
echo "== $t"
python3 -I "$t"
You can’t perform that action at this time.