: nply/foundationpkgs

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 
digraph foundationpkgs_ci {
  graph [
    rankdir=LR,
    bgcolor="white",
    label="foundationpkgs minci CI on cdg-1",
    labelloc=t,
    fontsize=20
  ];
  node [shape=box, style="rounded,filled", fillcolor="#f8fafc", color="#334155", fontname="Helvetica"];
  edge [color="#475569", fontname="Helvetica", fontsize=10];

  subgraph cluster_repo {
    label="foundationpkgs repository";
    color="#cbd5e1";
    jobfile [label=".config/Jobfile\nproject + triggers + jobs", fillcolor="#ccfbf1"];
    apkbuild [label="APKBUILD recipes\n(source of truth)", fillcolor="#dbeafe"];
    scripts [label="POSIX scripts/\nbuild.sh\nfunctions.sh\napkbuild-to-pacscript.sh\npacstall-install.sh", fillcolor="#e0f2fe"];
    fpkgsci [label="fpkgs-ci.sh\nplan/build/publish helper", fillcolor="#dcfce7"];
  }

  push [label="git push to main", fillcolor="#fef3c7"];
  gitolite [label="gitolite post-receive\nfilters refs/heads/main", fillcolor="#fde68a"];
  runner [label="minci.sh\nclone/freshen + run Jobfile", fillcolor="#ccfbf1"];

  planner [label="plan REV\nrecipe buckets\nLinux → Unix → noarch → any", fillcolor="#dcfce7"];
  key [label="build key\nAPKBUILD + local sources/patches\nscripts + target + git rev\nenvironment + tool versions", fillcolor="#bbf7d0"];
  cache [shape=diamond, label="artifact manifest\nalready exists?", fillcolor="#fef2f2"];

  builder [label="scripts/build.sh\nfetch → unpack → prepare\ndeps → build → package", fillcolor="#ede9fe"];
  pacstall [label="pacstall path\nAPKBUILD → generated .pacscript\n(runtime intermediate)", fillcolor="#f5d0fe"];

  publish [label="atomic publish\n$FPKGS_DL_ROOT/<target>/<pkg>/<ver-rrel>/<buildkey>/", fillcolor="#d1fae5"];
  dl [label="nply.org/dl now\ndl.nply.org later\nlighttpd static artifacts", fillcolor="#a7f3d0"];
  cgi [label="minci.cgi\nrun → job → artifact records", fillcolor="#fee2e2"];
  web [label="CI dashboard\nci.nply.org", fillcolor="#fecaca"];

  skipped [label="skip build\nalready published", fillcolor="#e2e8f0"];
  fail [label="failed build\nbuild.log retained", fillcolor="#fecdd3"];

  push -> gitolite -> runner;
  runner -> jobfile;
  jobfile -> fpkgsci;
  fpkgsci -> planner -> key -> cache;
  cache -> skipped [label="yes"];
  cache -> builder [label="no"];
  builder -> pacstall [label="only when host install needs pacstall", style=dashed];
  builder -> publish [label="success"];
  builder -> fail [label="failure"];
  publish -> dl;
  runner -> cgi [label="job result + log"];
  cgi -> web;

  apkbuild -> planner;
  apkbuild -> builder;
  scripts -> builder;
  scripts -> key;
}