Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
67487a9
gha: stub workflow to run pants generate-lockfiles
cognifloyd Sep 20, 2025
f5d5a29
gha: refactor input var handling in lockfiles workflow
cognifloyd Sep 20, 2025
a49ac0a
gha: capture lockfile diff from pants generate-lockfiles
cognifloyd Sep 21, 2025
570506e
gha: add output_dir for logs/images under workspace
cognifloyd Sep 23, 2025
b18e046
gha: install/use freeze to generate color lockfile diff pics
cognifloyd Sep 23, 2025
c729640
gha: clean up lockfile diff for use in commit msg + job summary
cognifloyd Sep 23, 2025
163af7e
gha: upload lockfile and lockfile diffs as artifacts
cognifloyd Sep 23, 2025
dde2f5a
gha: add markdown job summary
cognifloyd Sep 23, 2025
8e4ebfa
gha: use tee when writing to GITHUB_OUTPUT
cognifloyd Sep 23, 2025
65a59f8
gha: create lockfile diff artifacts iff CHANGED
cognifloyd Sep 23, 2025
95e1aca
gha: move pr base ref reporting to a NOTE in summary
cognifloyd Sep 23, 2025
11f77c2
gha: stub commit job
cognifloyd Sep 23, 2025
4779f80
gha: fix needs context usage
cognifloyd Sep 23, 2025
5495c8d
gha: prepare commit and PR comment/body messages
cognifloyd Sep 23, 2025
68cdb7b
gha: git steps (checkout, branch, commit, push)
cognifloyd Sep 24, 2025
0e5c925
gha: create new PR if requested
cognifloyd Sep 24, 2025
fa3b0a4
gha: update or add PR comment on existing PR
cognifloyd Sep 24, 2025
6cb57da
gha: Fix job-level env creation that uses env context
cognifloyd Sep 24, 2025
6be3117
gha: move resolves.outputs.LOCKFILES calc out of conditional
cognifloyd Sep 24, 2025
b03808e
gha: fix jq usage
cognifloyd Sep 24, 2025
194f900
gha: fix embedded shell script based on shellcheck feedback
cognifloyd Sep 24, 2025
f4be2f5
gha: add GH_TOKEN to env
cognifloyd Sep 24, 2025
ae8ac23
gha: more shellcheck
cognifloyd Sep 24, 2025
aec1462
gha: extract value from gh api response
cognifloyd Sep 24, 2025
ce51629
gha: typo fix
cognifloyd Sep 24, 2025
91771fc
gha: do not use job outputs from matrix jobs
cognifloyd Sep 24, 2025
5608e3d
gha: fix job summary
cognifloyd Sep 24, 2025
dfa2388
gha: add missing var
cognifloyd Sep 24, 2025
4ec512a
gha: we need artifacts even ehen not CHANGED
cognifloyd Sep 24, 2025
4ee29bf
gha: fix note syntax in job summary
cognifloyd Sep 24, 2025
0085396
gha: put freeze in dist/
cognifloyd Sep 24, 2025
4eb6734
gha: try setting default run shell to fix dist/freeze not found
cognifloyd Sep 24, 2025
25941a1
gha: use gh to download freeze and unpack with tar
cognifloyd Sep 24, 2025
8d73218
gha: fix freeze download and drop apt progress bars
cognifloyd Sep 24, 2025
8a96d6f
gha: drop apt progress bars
cognifloyd Sep 24, 2025
dd8c49e
gha: fix unpacking freeze archive
cognifloyd Sep 24, 2025
e7ab0fb
gha: fix unpacking freeze archive
cognifloyd Sep 24, 2025
7d02315
gha: drop apt progress bars
cognifloyd Sep 24, 2025
713caae
gha: some cleanup
cognifloyd Sep 24, 2025
a55e71b
gha: install JetBrains Mono font for freeze+rsvg-convert to use
cognifloyd Sep 24, 2025
3425b0c
gha: add missing GH_TOKEN var
cognifloyd Sep 24, 2025
3c2f54f
gha: drop font script download
cognifloyd Sep 24, 2025
83a76d1
gha: improve shell quoting in run scripts
cognifloyd Sep 24, 2025
79c20ef
gha: fix CHANGED detection and more shell quoting
cognifloyd Sep 24, 2025
9c49cbc
gha: fix a shell quoting issue and debug dir contents
cognifloyd Sep 24, 2025
3416fcb
gha: fix handling only one resolve
cognifloyd Sep 24, 2025
b00801c
gha: fix link
cognifloyd Sep 24, 2025
aba57d2
gha: use force push on re-runs creating new PRs
cognifloyd Sep 24, 2025
9e559b3
gha: gh needs org/ in team name
cognifloyd Sep 24, 2025
8ddffa2
gha: permissions
cognifloyd Sep 25, 2025
410622a
gha: use data uri to embed png in md
cognifloyd Sep 25, 2025
dbd6de6
gha: try minimizing pants output and pngs
cognifloyd Sep 25, 2025
ed23585
gha: minimize freeze screenshots
cognifloyd Sep 25, 2025
ca7d0e0
gha: use markdown image not light/dark html
cognifloyd Sep 25, 2025
11afb3f
gha: add job summary to PR create/comment
cognifloyd Sep 26, 2025
9cf28e8
gha: use s3 to host diff images
cognifloyd Sep 26, 2025
82028f1
gha: fix var access
cognifloyd Sep 26, 2025
e17c71a
gha: use aws cli instead of s3-upload-action
cognifloyd Sep 26, 2025
40757c6
gha: fix s3 object tagging with aws cli
cognifloyd Sep 26, 2025
e2e2796
gha: rework RESOLVES var
cognifloyd Sep 26, 2025
a22ca67
gha: strip more ansi sequences from text output
cognifloyd Sep 26, 2025
1167363
gha: debug
cognifloyd Sep 26, 2025
bcd3437
gha: fix download-artifact usage
cognifloyd Sep 26, 2025
905e980
gha: drop debug
cognifloyd Sep 26, 2025
e97f335
gha: drop alert box from job summary
cognifloyd Sep 26, 2025
1dc8b77
gha: improve debuggability of workflow
cognifloyd Sep 26, 2025
96049c8
gha: clean up commit message
cognifloyd Sep 26, 2025
30a19c1
gha: use st2stanley to create commits
cognifloyd Sep 27, 2025
286f7ba
refactor scripts/fixate-requirements.py for reuse
cognifloyd Sep 27, 2025
8fb9cdf
draft scripts/lockfiles_to_reqs.py
cognifloyd Sep 27, 2025
f7efdc4
lint w/ flake8
cognifloyd Sep 28, 2025
043d26d
fmt black and fix flake8 issue
cognifloyd Sep 28, 2025
2791c74
catch missing auth backend errors sooner
cognifloyd Sep 29, 2025
c0828e9
tools/config_gen.py: enhance debugging
cognifloyd Sep 30, 2025
536ba24
tools/config_gen.py: WARNING logs should be enough
cognifloyd Sep 30, 2025
7f1d9c2
scripts/lockfiles_to_reqs.py: make it work
cognifloyd Sep 30, 2025
40deedc
scripts/lockfiles_to_reqs.py: add logging
cognifloyd Sep 30, 2025
6f9202f
update lockfiles_to_reqs so it runs fixate-requirments as well
cognifloyd Sep 30, 2025
cf12105
gha: run scripts/lockfiles_to_reqs.py
cognifloyd Sep 30, 2025
4ae37af
gha: handle workflow re-runs
cognifloyd Sep 30, 2025
b59eed6
gha: fix gh calls w/o checkout
cognifloyd Sep 30, 2025
f3546ba
gha: fix maintainerCanModify check
cognifloyd Sep 30, 2025
e504edc
gha: git diff using remote name
cognifloyd Sep 30, 2025
269a625
gha: fetch PR_BASE_REF
cognifloyd Sep 30, 2025
36156d7
setup pants before updating legacy requirements files
cognifloyd Sep 30, 2025
5146365
gha: print pants generate-lockfiles command when running it
cognifloyd Sep 30, 2025
be37e38
gha: handle pushing to existing PR from detached HEAD
cognifloyd Sep 30, 2025
96c0fa6
gha: create local git branch instead of pushing from detached HEAD
cognifloyd Sep 30, 2025
f0e53a4
gha: fix pushing to existing PRs
cognifloyd Sep 30, 2025
9ed0c12
gha: fix NEW_PR_NUMBER lookup
cognifloyd Sep 30, 2025
6bbaaa3
gha: rework git remote handling for checkout, commit, push
cognifloyd Oct 1, 2025
751bc3b
gha: rework git remote handling for checkout, commit, push
cognifloyd Oct 1, 2025
e5ad76f
update changelog entry
cognifloyd Sep 27, 2025
9327862
examples.forloop_parse_github_repos: better handle bs4 output
cognifloyd Sep 30, 2025
6567d3a
pants generate-lockfiles: st2, bandit, black, flake8, pants-plugins, …
st2stanley Oct 1, 2025
75414e2
typo fixes
cognifloyd Oct 1, 2025
74ca6b2
fmt w/ black
cognifloyd Oct 1, 2025
6c52aef
update Makefile in scripts/lockfiles_to_reqs.py
cognifloyd Oct 1, 2025
90b206d
use pip install for st2client checking
guzzijones Sep 18, 2025
c624477
update st2client license
guzzijones Sep 22, 2025
a17fab8
st2client classifiers
guzzijones Sep 23, 2025
8a99ddd
constrain pyOpenSSL dep to fix CircleCI
cognifloyd Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
594 changes: 594 additions & 0 deletions .github/workflows/lockfiles.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Added
#6118 #6141 #6133 #6120 #6181 #6183 #6200 #6237 #6229 #6240 #6241 #6244 #6251 #6253
#6254 #6258 #6259 #6260 #6269 #6275 #6279 #6278 #6282 #6283 #6273 #6287 #6306 #6307
#6311 #6314 #6315 #6317 #6319 #6312 #6320 #6321 #6323 #6324 #6325 #6326 #6327 #6328
#6329 #6330 #6337
#6329 #6330 #6337 #6356
Contributed by @cognifloyd
* Build of ST2 EL9 packages #6153
Contributed by @amanda11
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ flake8: requirements .flake8
$(VIRTUALENV_ST2CLIENT_DIR)/bin/pip install --upgrade "pip==$(PIP_VERSION)"
$(VIRTUALENV_ST2CLIENT_DIR)/bin/pip install --upgrade "setuptools==$(SETUPTOOLS_VERSION)"

$(VIRTUALENV_ST2CLIENT_DIR)/bin/activate; cd st2client ; ../$(VIRTUALENV_ST2CLIENT_DIR)/bin/python setup.py install ; cd ..
$(VIRTUALENV_ST2CLIENT_DIR)/bin/activate; cd st2client ; ../$(VIRTUALENV_ST2CLIENT_DIR)/bin/pip install . ; cd ..
$(VIRTUALENV_ST2CLIENT_DIR)/bin/st2 --version
$(VIRTUALENV_ST2CLIENT_DIR)/bin/python -c "import st2client"

Expand Down
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well this was a surprise. Apparently Beautifulsoup4 improved their typing, so pylint caught a place that could try to iterate over None.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run(self, content):
repo_list = soup.find_all("h3")
output = {}

for each_item in repo_list:
for each_item in repo_list or ():
repo_half_url = each_item.find("a")["href"]
repo_name = repo_half_url.split("/")[-1]
repo_url = "https://github.com" + repo_half_url
Expand Down
15 changes: 8 additions & 7 deletions fixed-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ pyinotify==0.9.6 ; platform_system=="Linux"
pymongo==4.6.3
pyparsing==3.1.4
zstandard==0.23.0
# pyOpenSSL 23.1.0 supports cryptography up to 40.0.x
#pyOpenSSL==23.1.0
# pyOpenSSL is a candidate for removal and is not in lockfiles/st2.lock since it is not used.
# pyOpenSSL 25.1.0 supports cryptography>=41.0.5,<46
pyOpenSSL<25.2
# 202403: switch from python-editor to editor for py3.10 support
editor==1.6.6
# editor dependency, required here for inclusion in st2client setup.py
pygments==2.19.2
python-keyczar==0.716
pytz==2025.2
pywinrm==0.5.0
pyyaml==6.0.2
pyyaml==6.0.3
redis==6.1.1
requests==2.32.4
# urllib3 is a transitive dep
Expand All @@ -59,8 +60,8 @@ semver==3.0.4
six==1.17.0
argparse==1.4.0
argcomplete==3.6.2
prettytable==3.10.2
importlib-metadata==7.1.0
prettytable==3.11.0
importlib-metadata==8.5.0
# 20250909 virtualenv 20.34.0 requires typing-extension>=4.13.2
typing-extensions>=4.13.2; python_version < "3.11"
# NOTE: sseclient has various issues which sometimes hang the connection for a long time, etc.
Expand All @@ -79,11 +80,11 @@ webob==1.8.9
webtest==3.0.1
zake==0.2.2
# test requirements below
bcrypt==4.3.0
bcrypt==5.0.0
jinja2==3.1.6
mock==5.2.0
pytest==7.0.1
psutil==7.0.0
psutil==7.1.0
python-dateutil==2.9.0.post0
python-statsd==2.1.0
orjson==3.10.15
Expand Down
110 changes: 55 additions & 55 deletions lockfiles/bandit.lock

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions lockfiles/pants-plugins.lock
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "a749938e02d6fd0b59b356ca504a24982314bb090c383e3cf201c95ef7e2bfcf",
"url": "https://files.pythonhosted.org/packages/05/e7/df2285f3d08fee213f2d041540fa4fc9ca6c2d44cf36d3a035bf2a8d2bcc/pyparsing-3.2.3-py3-none-any.whl"
"hash": "e38a4f02064cf41fe6593d328d0512495ad1f3d8a91c4f73fc401b3079a59a5e",
"url": "https://files.pythonhosted.org/packages/10/5e/1aa9a93198c6b64513c9d7752de7422c06402de6600a8767da1524f9570b/pyparsing-3.2.5-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "b9c13f1ab8b3b542f72e28f634bad4de758ab3ce4546e4301970ad6fa77c38be",
"url": "https://files.pythonhosted.org/packages/bb/22/f1129e69d94ffff626bdb5c835506b3a5b4f3d070f17ea295e12c2c6f60f/pyparsing-3.2.3.tar.gz"
"hash": "2df8d5b7b2802ef88e8d016a2eb9c7aeaa923529cd251ed0fe4608275d4105b6",
"url": "https://files.pythonhosted.org/packages/f2/a5/181488fc2b9d093e3972d2a472855aae8a03f000592dbfce716a512b3359/pyparsing-3.2.5.tar.gz"
}
],
"project_name": "pyparsing",
Expand All @@ -591,7 +591,7 @@
"railroad-diagrams; extra == \"diagrams\""
],
"requires_python": ">=3.9",
"version": "3.2.3"
"version": "3.2.5"
},
{
"artifacts": [
Expand Down Expand Up @@ -658,49 +658,49 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e",
"url": "https://files.pythonhosted.org/packages/45/73/0f49dacd6e82c9430e46f4a027baa4ca205e8b0a9dce1397f44edc23559d/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl"
"hash": "37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4",
"url": "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317",
"url": "https://files.pythonhosted.org/packages/51/16/6af8d6a6b210c8e54f1406a6b9481febf9c64a3109c541567e35a49aa2e7/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl"
"hash": "d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f",
"url": "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz"
},
{
"algorithm": "sha256",
"hash": "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e",
"url": "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz"
"hash": "10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c",
"url": "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl"
},
{
"algorithm": "sha256",
"hash": "3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85",
"url": "https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"hash": "850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00",
"url": "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl"
},
{
"algorithm": "sha256",
"hash": "1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee",
"url": "https://files.pythonhosted.org/packages/8b/62/b9faa998fd185f65c1371643678e4d58254add437edb764a08c5a98fb986/PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl"
"hash": "652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824",
"url": "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl"
},
{
"algorithm": "sha256",
"hash": "ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4",
"url": "https://files.pythonhosted.org/packages/9b/97/ecc1abf4a823f5ac61941a9c00fe501b02ac3ab0e373c3857f7d4b83e2b6/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl"
"hash": "44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e",
"url": "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c",
"url": "https://files.pythonhosted.org/packages/ad/0c/c804f5f922a9a6563bab712d8dcc70251e8af811fce4524d57c2c0fd49a4/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
"hash": "b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d",
"url": "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774",
"url": "https://files.pythonhosted.org/packages/f8/aa/7af4e81f7acba21a4c6be026da38fd2b872ca46226673c89a758ebdc4fd2/PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl"
"hash": "1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a",
"url": "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl"
}
],
"project_name": "pyyaml",
"requires_dists": [],
"requires_python": ">=3.8",
"version": "6.0.2"
"version": "6.0.3"
},
{
"artifacts": [
Expand Down
Loading
Loading