awrun 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {awrun-0.2.2 → awrun-0.2.3}/PKG-INFO +1 -1
  2. {awrun-0.2.2 → awrun-0.2.3}/awrun/__init__.py +1 -1
  3. {awrun-0.2.2 → awrun-0.2.3}/awrun/runner_groups.py +23 -0
  4. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/PKG-INFO +1 -1
  5. {awrun-0.2.2 → awrun-0.2.3}/pyproject.toml +1 -1
  6. {awrun-0.2.2 → awrun-0.2.3}/LICENSE +0 -0
  7. {awrun-0.2.2 → awrun-0.2.3}/README.md +0 -0
  8. {awrun-0.2.2 → awrun-0.2.3}/awrun/__main__.py +0 -0
  9. {awrun-0.2.2 → awrun-0.2.3}/awrun/_doctor.py +0 -0
  10. {awrun-0.2.2 → awrun-0.2.3}/awrun/_flow_runner.py +0 -0
  11. {awrun-0.2.2 → awrun-0.2.3}/awrun/authz.py +0 -0
  12. {awrun-0.2.2 → awrun-0.2.3}/awrun/capacity.py +0 -0
  13. {awrun-0.2.2 → awrun-0.2.3}/awrun/cli.py +0 -0
  14. {awrun-0.2.2 → awrun-0.2.3}/awrun/confine.py +0 -0
  15. {awrun-0.2.2 → awrun-0.2.3}/awrun/dispatcher.py +0 -0
  16. {awrun-0.2.2 → awrun-0.2.3}/awrun/egress.py +0 -0
  17. {awrun-0.2.2 → awrun-0.2.3}/awrun/gpu_lease.py +0 -0
  18. {awrun-0.2.2 → awrun-0.2.3}/awrun/handoff.py +0 -0
  19. {awrun-0.2.2 → awrun-0.2.3}/awrun/plugins.py +0 -0
  20. {awrun-0.2.2 → awrun-0.2.3}/awrun/store.py +0 -0
  21. {awrun-0.2.2 → awrun-0.2.3}/awrun/surface.py +0 -0
  22. {awrun-0.2.2 → awrun-0.2.3}/awrun/trail.py +0 -0
  23. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/SOURCES.txt +0 -0
  24. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/dependency_links.txt +0 -0
  25. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/entry_points.txt +0 -0
  26. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/requires.txt +0 -0
  27. {awrun-0.2.2 → awrun-0.2.3}/awrun.egg-info/top_level.txt +0 -0
  28. {awrun-0.2.2 → awrun-0.2.3}/setup.cfg +0 -0
  29. {awrun-0.2.2 → awrun-0.2.3}/tests/test_dispatcher_gpu_lease.py +0 -0
  30. {awrun-0.2.2 → awrun-0.2.3}/tests/test_gpu_lease.py +0 -0
  31. {awrun-0.2.2 → awrun-0.2.3}/tests/test_handoff.py +0 -0
  32. {awrun-0.2.2 → awrun-0.2.3}/tests/test_store.py +0 -0
  33. {awrun-0.2.2 → awrun-0.2.3}/tests/test_suspend_apply_confine.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awrun
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A priority-aware queue and dispatcher for agentic runs and ad-hoc CI builds — real dynamic priority for the class of work we control, instead of GitHub Actions' opaque FIFO.
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/Aitherium/awrun
@@ -24,4 +24,4 @@ __all__ = [
24
24
  "runs_dir",
25
25
  ]
26
26
 
27
- __version__ = "0.2.2"
27
+ __version__ = "0.2.3"
@@ -49,11 +49,34 @@ class RunnerGroupError(RuntimeError):
49
49
  """Something we could not do, stated plainly enough to act on."""
50
50
 
51
51
 
52
+ def _vault_token() -> str:
53
+ """Inside the AitherOS fleet the token lives in the vault, not the environment
54
+ (the worker's env copy of GITHUB_TOKEN answers 401; the vault's answers 200 --
55
+ measured 2026-09-10 and again 2026-09-21, when the 5-minute autoscaler turned
56
+ out to have never run once). A stranger's machine has no such client; then
57
+ this is simply not a path and the env rule below stands."""
58
+ try:
59
+ from lib.clients.aither_secrets import get_secret # in-fleet only
60
+ except Exception: # noqa: BLE001 - no fleet client here
61
+ return ""
62
+ for name in ("GH_ORG_ADMIN_TOKEN", "GITHUB_TOKEN"):
63
+ try:
64
+ v = (get_secret(name) or "").strip()
65
+ except Exception: # noqa: BLE001 - try the next name
66
+ continue
67
+ if v:
68
+ return v
69
+ return ""
70
+
71
+
52
72
  def _token() -> str:
53
73
  for var in ("GH_TOKEN", "GITHUB_TOKEN", "AWRUN_GH_TOKEN"):
54
74
  v = os.environ.get(var, "").strip()
55
75
  if v:
56
76
  return v
77
+ v = _vault_token()
78
+ if v:
79
+ return v
57
80
  raise RunnerGroupError(
58
81
  "no GitHub token: set GH_TOKEN (or GITHUB_TOKEN). It is read from the "
59
82
  "environment and never accepted as an argument, because an argv token "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awrun
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A priority-aware queue and dispatcher for agentic runs and ad-hoc CI builds — real dynamic priority for the class of work we control, instead of GitHub Actions' opaque FIFO.
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/Aitherium/awrun
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "awrun"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "A priority-aware queue and dispatcher for agentic runs and ad-hoc CI builds — real dynamic priority for the class of work we control, instead of GitHub Actions' opaque FIFO."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes