Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix openstack wait for fun utils v3005.1 #2

Open
wants to merge 699 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
699 commits
Select commit Hold shift + click to select a range
6e846e7
Remove ``external_auth`` from the static config file
s0undt3ch Sep 21, 2021
e330742
Fix wildcard eauth.
s0undt3ch Oct 25, 2021
e0a2fc1
Fix ``tests/pytests/integration/netapi/rest_tornado/test_minions_api_…
s0undt3ch Jul 21, 2021
74a8b7a
Set the account password, even if reusing existing temporary accounts.
s0undt3ch Aug 3, 2021
282d1da
Delete the home directory AFTER deleting the account on macOS
s0undt3ch Aug 3, 2021
571e62a
Add Ubuntu 22.04 (#62100)
krionbsd Jun 14, 2022
6aae718
Add tiamat package information for 3005 release notes
Apr 8, 2022
3d18aea
Update with review feedback
May 23, 2022
803b6e4
Add details for installing system python pip packages
May 26, 2022
337e702
Fix redhat 9 only tiamat packages support
Jun 9, 2022
f0b826e
Remove debian 9 since EOL by release day
Jun 10, 2022
0d97647
Add version report automated test (#62133)
MKLeb Jun 14, 2022
9bccfcf
Bump to pyjwt==2.4.0 due to CVE-2022-29217
s0undt3ch Jun 14, 2022
44ffb72
Factor out sum and sorting of permissions into separate functions.
s0undt3ch Jul 14, 2021
ea0e89c
Be sure do delete groups matching the username when deleting the acco…
s0undt3ch Jun 14, 2022
8253b6c
chore(pty.py): Fix link to broken cpython mirror
tony Apr 9, 2022
6dd26a1
add note for etcd_cache not supporting etcd API v3
Jun 13, 2022
78bd717
account for the fact that CentOS Stream 9 stores sftp-server in a dif…
May 20, 2022
ec06002
Test on actual CentOS Stream 9 AMI
May 24, 2022
83c5c8d
Fix failing tests for CentOS Stream 9
Jun 6, 2022
1a28cc7
change to newer AMI
Jun 6, 2022
e4a846c
change to new AMI
Jun 13, 2022
49ec12e
remove centos stream 9 testing files
Jun 14, 2022
9b3cfcb
Change signedby default directory to /etc/apt/keyrings
Jun 13, 2022
950fdf8
Fix tests on ubuntu 22.04
Jun 16, 2022
c047b19
Fix debian 9 pkg tests
Jun 16, 2022
058ea2a
Update test_debian.py
garethgreenaway Jun 17, 2022
0964bde
Update test_debian.py
garethgreenaway Jun 17, 2022
cf5a19b
Only add index to dict if it exists
Jun 17, 2022
ab26044
Bump to pytest-salt-factories 1.0.0rc17
s0undt3ch Jun 17, 2022
6779e12
Namespace the functional tests loaders
s0undt3ch Jun 17, 2022
1d1601e
Reset msgpack unpacker on stream disconnect
dwoz Jun 10, 2022
3849470
clean up tests
dwoz Jun 10, 2022
065ef08
Fix race condition when caching vault token
dwoz Jun 21, 2022
ca409f0
Handle the situation when apt repo lines have or do not have trailing…
garethgreenaway Jun 22, 2022
5321359
fixes saltstack/salt#62183 deprecate all azure cloud modules
nicholasmhughes Jun 17, 2022
6110197
request_instance is called by create, so dont decorate and break mock
nicholasmhughes Jun 17, 2022
69f71a9
fixes saltstack/salt#62164 sysctl hard-coded relative command name
nicholasmhughes Jun 14, 2022
36ec185
skip sysctl tests on windows since the utility isnt present
nicholasmhughes Jun 14, 2022
d81e22f
fix memory leak in modules/lxd.py
sakateka Apr 29, 2022
9de7a6f
add changelog/62006.fixed
sakateka Apr 29, 2022
fd441a4
add tests for aptpkg.SourceEntry with HAS_APT=False
sakateka Mar 30, 2022
833933f
fix salt/modules/aptpkg.py in case HAS_APT=False
sakateka Mar 30, 2022
f77ef2d
add changelog/61632.fixed
sakateka Mar 30, 2022
3a76efd
fix salt/modules/aptpkg.py tests
sakateka Mar 30, 2022
772777a
fix tests
sakateka Jun 16, 2022
caaee7a
fix tests
sakateka Jun 17, 2022
9c635c5
fix memory leak in utils/jinja.py
sakateka Apr 29, 2022
1c95e87
add changelog/62007.fixed
sakateka Apr 29, 2022
e17f531
Fix the regex preventing salt-cloud from deploying VMs on Proxmox VE 7
pjcreath Jun 10, 2022
07da014
fix yamlloader.DuplicateKeyWarning leaking
sakateka May 4, 2022
6f4a76a
add changelog/62021.fixed
sakateka May 4, 2022
f1ac246
fix(modules/aptpkg): fix regression introduced re: `signedby`
myii Jun 15, 2022
3eaa78f
fix(modules/aptpkg): fix missing default `index` keys in `_get_opts`
myii Jun 15, 2022
dd59eae
Add test coverage for debian pkgrepo for index Keyerror and using key…
Jun 23, 2022
058379e
fix pre-commit
Jun 24, 2022
76d5d0c
Remove install topics and update top nav
barbaricyawps Jun 24, 2022
2e5f3aa
Add config to index to prevent build error
barbaricyawps Jun 24, 2022
44fad98
Fix broken topic link
barbaricyawps Jun 27, 2022
fcce6bd
Remove links to old Salt install topics
barbaricyawps Jun 27, 2022
3270ee1
Fix broken link
barbaricyawps Jun 27, 2022
d5e0021
Fix broken link
barbaricyawps Jun 27, 2022
3eb5072
move iptables module and state tests to pytest
Jun 27, 2022
b3af9b3
move keyboard module and state tests to pytest
Jun 27, 2022
8785c55
make comment in iptables module test file align with pytest
Jun 27, 2022
273a87a
move aliases module tests to pytest
Jun 27, 2022
a0d4340
Allow passing ``loaded_base_name`` to each of the loaders salt supports.
s0undt3ch Jun 17, 2022
97afb78
Stop loading imported functions.
s0undt3ch Jun 17, 2022
29d66ec
As much as I hate this, we can't, currently, only include namespaced …
s0undt3ch Jun 18, 2022
d9343cc
Merge forward 3004.2 (#62200)
dwoz Jun 29, 2022
2a5d98d
Remove signedby argument. Specify in the name
Jun 24, 2022
92f43c5
set signed-by if using python3-apt
Jun 27, 2022
615f356
Do not invalidate when signed-by is used
Jun 29, 2022
23d9904
Fix aptpkg.py tests
Jun 29, 2022
53722c5
Include deleted changelog files in PR
Jun 30, 2022
46cf7a4
Add CentOSStream 9
krionbsd Jun 18, 2022
a61362a
account for newer entropy poolsize in EntropyGenerator
Jun 22, 2022
11b12fb
Fix deprecated imports and attributes
s0undt3ch Jun 30, 2022
0a22fd8
Update docstrings
s0undt3ch Jun 30, 2022
a023820
* fixes #62238
Jun 29, 2022
0942ad3
add change file
Jun 29, 2022
7259f8b
Add changelog and docs for 3005 release
Ch3LL Jun 30, 2022
264d02a
Fix indentation error for doc generation
Jun 30, 2022
a932689
Moving deprecation_message from salt/utils/azurearm.py into salt/clou…
garethgreenaway Jul 2, 2022
4d9177b
rename deprecation decorator to hidden function so it is not picked u…
garethgreenaway Jul 2, 2022
39bd1d2
Adding deprecation_message decorator function locally to the azurearm…
garethgreenaway Jul 2, 2022
8371600
Let the container breathe a little before confirming it's running.
s0undt3ch Jul 4, 2022
81d3112
Migrate mysql execution and state tests to functional tests.
s0undt3ch Jul 4, 2022
29c17e8
Defer the ``pkg.refresh()`` until after all skips have been evaluated.
s0undt3ch Jul 1, 2022
6bedb30
Switch back to autouse fixture, but only run it once
s0undt3ch Jul 1, 2022
7c5728b
fixes saltstack/salt#62258 service.enabled error for unavailable serv…
nicholasmhughes Jun 30, 2022
77f8b7f
Add test coverage around ``namespaced_function``
s0undt3ch Jul 2, 2022
76f1010
Switch default of ``preserve_context`` to ``True`` on ``namespaced_fu…
s0undt3ch Jul 2, 2022
9b3e379
Deprecate both ``defaults`` and ``preserve_namespace``. Never used.
s0undt3ch Jul 2, 2022
f6f1333
Remove all of the imports required by the old behavior of ``namespace…
s0undt3ch Jul 2, 2022
1de32fc
Avoid repeating the pr comment message if the content is the same
s0undt3ch Jun 27, 2022
8b0de2e
Add changelog entry.
s0undt3ch Jul 4, 2022
30c046c
privileges_list: match object_type == "table" with tables and views
NotSqrt Jun 17, 2020
63516a1
Add changelog
NotSqrt Jun 17, 2020
6e698fc
fixes saltstack/salt#57690 postgres privileges on views
nicholasmhughes Jun 29, 2022
d00d3fb
fixes saltstack/salt#62264 variable reuse causing requisite_in problems
nicholasmhughes Jul 1, 2022
d3e69e3
add test for issue 62264
nicholasmhughes Jul 1, 2022
c02af41
It's actually a deprecation
s0undt3ch Jul 5, 2022
ef6fa75
Update release candidate documentation
barbaricyawps Jun 30, 2022
865d5c3
Fix release file name syntax
barbaricyawps Jul 1, 2022
d8c65ed
Fix inconsistency
barbaricyawps Jul 1, 2022
d014418
Add clarification to version variables
barbaricyawps Jul 5, 2022
1d83dcf
Improve syntax and examples
barbaricyawps Jul 5, 2022
be22d46
Update code example
barbaricyawps Jul 6, 2022
af24c29
Update changelog
Jul 6, 2022
0cef001
remove changelog files
Jul 6, 2022
d8d6630
Add 3004.2 to changelog
Jul 6, 2022
eb0b6a7
Remove unnecessary error log
Jul 7, 2022
5272cfb
Don't expect ``lsof`` to be available
s0undt3ch Jul 7, 2022
38cb734
Add changelog entry
s0undt3ch Jul 7, 2022
f04ede8
remove __virtual__ in utils and typos in docstrings of module.
Jul 7, 2022
e68cd5e
Bump to ``lxml==4.9.1`` to address ``CVE-2022-2309``
s0undt3ch Jul 8, 2022
edd8f78
Skip tests if yamllint is not available
s0undt3ch Jul 8, 2022
e3929c5
Bump to ``pyzmq==23.2.0`` for Python >=3.9
s0undt3ch Jul 7, 2022
fdae7e9
fixes saltstack/salt#62225 add sample and shuffle functions from random
nicholasmhughes Jun 27, 2022
59131c2
change test name due to copy paste err
nicholasmhughes Jun 27, 2022
27e2363
fix random_ doc header underline
nicholasmhughes Jun 27, 2022
8ee31f6
Try to address the mysql tests flakyness
s0undt3ch Jul 8, 2022
483682e
Follow up to https://github.com/saltstack/salt/pull/62303
s0undt3ch Jul 12, 2022
d674063
Improvements on "ansiblegate" module (#60056)
meaksh Jul 12, 2022
4449286
When current_zone_only is True, ensure we append the -G options to th…
garethgreenaway Jul 12, 2022
3f4dbb1
Fix test cases with PermissionError on /var/cache
bdrung Apr 16, 2022
50e6892
Update changelog/versionadded for 3005 and add note for raspberry pi …
Jul 14, 2022
c262491
Update versionadded from 3006 to 3005
Jul 14, 2022
8d94042
Add known issue about SSC 8.9.0 dependency
barbaricyawps Jul 14, 2022
2a36446
Add explanation for the issue
barbaricyawps Jul 14, 2022
f564196
Update release candidate documentation
barbaricyawps Jul 20, 2022
4329dd1
Add clarification per Shane's review
barbaricyawps Jul 20, 2022
9dc806f
Add RHEL GPG key info
barbaricyawps Jul 21, 2022
dfc7ad0
Revise topic per Murphy's review
barbaricyawps Jul 21, 2022
62147b6
Switch to the SaltStack ORG on quay.io
s0undt3ch Jul 23, 2022
e7624d1
Update the salt pip executable to salt-pip
Jul 25, 2022
9d3abde
Fix pre-install and post-install scripts
twangboy Jul 22, 2022
6a668a1
Add pyinstaller hook which pulls in all of salt and the standard library
s0undt3ch Jul 26, 2022
df4966c
Add changelog for #62383 which fixes #62362
s0undt3ch Jul 26, 2022
90c6471
Windows search path is different
s0undt3ch Jul 27, 2022
04fbfd3
Salt should not do any logic to include/exclude requirements. That's …
s0undt3ch Jul 28, 2022
091912f
fixes saltstack/salt#62372 unable to use random shuffle and sample fu…
nicholasmhughes Jul 25, 2022
a2ed87f
move random_shuffle and random_sample logic to utils
nicholasmhughes Jul 29, 2022
b3c091b
static seed in tests seems to have shifted
nicholasmhughes Jul 29, 2022
ca73e24
static seed in tests require hash module
nicholasmhughes Jul 31, 2022
c278be2
Change Tiamat to onedir in release notes
barbaricyawps Jul 28, 2022
93c99b1
Reinstate known issues
barbaricyawps Aug 1, 2022
e334d2b
Update release notes with onedir package support policy
barbaricyawps Aug 3, 2022
69be10a
need to check the version of Netmiko python library and then import t…
garethgreenaway Aug 2, 2022
68959bb
Adding changelog.
garethgreenaway Aug 3, 2022
3700e3f
swap out if...else for double try...except.
garethgreenaway Aug 3, 2022
e0a6edd
Remove extra fix we don't need anymore
twangboy Aug 3, 2022
142c534
[Docs] include onedir system python note
Aug 2, 2022
b63534c
Update all platforms to use pycparser 2.21 or greater for Py 3.9 or h…
Aug 3, 2022
27e3745
Remove the PyObjC dependency
s0undt3ch Aug 5, 2022
74e1670
Add "<tiamat> python" subcommand to allow execution or arbitrary scri…
lukasraska Jul 27, 2022
6d580d2
Document usage of bundled Python runtime for Client API
lukasraska Jul 27, 2022
9f9cb2f
Use explicit locals for custom script execution, handle exception in …
lukasraska Jul 28, 2022
10500f7
Remove old __file__ replacement
lukasraska Jul 28, 2022
84bb9b0
Apply suggestions from code review
lukasraska Aug 2, 2022
c912496
Update release notes and changelog for 3005 release
Aug 8, 2022
4904aae
Update urlparse command
Mar 7, 2022
0dbbc9e
Fix urlparse typo
Aug 8, 2022
deaa71f
Add missing traceback import
lukasraska Aug 11, 2022
d878df7
62455 into freeze
Aug 11, 2022
d5cf0ad
forgot outer braces from expected dict.
Aug 11, 2022
2b87da3
fix 62459
Aug 11, 2022
58c4728
Update the bootstrap script to v2022.08.12
s0undt3ch Aug 12, 2022
53845d9
fix broken pkg difference between bottle and formula
Aug 15, 2022
f14f779
missread the json. revision isn't under urls.
Aug 15, 2022
cd807a6
Update sign and notarize scripts
twangboy Aug 16, 2022
65f3798
Make sure sudo is launche with -E
twangboy Aug 17, 2022
a99ffb5
fix typo in function name
dwoz Aug 16, 2022
a8158df
Add changelog
dwoz Aug 16, 2022
b2c32be
add a regression test
dwoz Aug 16, 2022
d09d2d3
Fix linter
dwoz Aug 16, 2022
07f9111
remove cruft
dwoz Aug 16, 2022
b6db92c
Removing unneccessary loggint that could display sensitive data. Mas…
garethgreenaway Aug 17, 2022
c32c271
Adding changelog.
garethgreenaway Aug 17, 2022
1e2571a
Deprecate cassandra module/returner
waynew Jul 12, 2022
1b311e6
add changelog
waynew Jul 12, 2022
f877abc
Update cassandra docs with deprecation warning
waynew Jul 12, 2022
3838ddb
Move message to __virtual__
waynew Aug 17, 2022
1338804
Get namespaced function
twangboy Aug 17, 2022
427e85f
Add changelog
twangboy Aug 17, 2022
6ff7116
Fix payload and defaults (#62458)
twangboy Aug 18, 2022
39322eb
Update changelog and release notes for 3005
Aug 18, 2022
26487b7
Update doc/topics/releases/3005.rst
Aug 18, 2022
1fe27b7
typo correction
Aug 18, 2022
2e7cc90
introduce a test that should also clean up snapshots in vmware tests
Aug 18, 2022
13054dc
we don't need the remove_all_snapshots as a test, so just include it …
Aug 18, 2022
63c1f8c
Use the zookeeper image from GHCR
Aug 18, 2022
6c247dd
Close publish channel after each connection attempt
Aug 19, 2022
a8e9483
Update docs with new change for 3005 release
Aug 22, 2022
4bbdd65
Temporarily skip pub server channel tests on FreeBSD
s0undt3ch Aug 22, 2022
ab4d7dd
Update the documentation for nxos_api.show to include an updated exam…
garethgreenaway Aug 31, 2022
a4026dd
Remove under development notice
barbaricyawps Aug 31, 2022
51b4a1a
Fixed parsing CDROM apt sources
s0undt3ch Aug 16, 2022
7f5422d
Move 3005 to released on release notes index
barbaricyawps Sep 1, 2022
31e17b1
fix 62553 by checking for master_type before deciding to connect to m…
Aug 30, 2022
980fff9
add tests
Aug 31, 2022
2397b41
Remove the connection_timeout from netmiko_connection_args before net…
garethgreenaway Aug 30, 2022
d0f9c7b
Use str() method instead of repo_line for SourceEntry
Aug 29, 2022
a36bdf1
Don't copy cached gpg key file permissions to repo key.
gvengel Aug 27, 2022
692b262
Make sure _decrypt_key output file is not also the input.
gvengel Aug 28, 2022
edbf909
Add changelog entries.
gvengel Aug 29, 2022
05e27f6
Fix destructive tests to load both binary and armored keys.
gvengel Sep 1, 2022
5458374
Force use of strings for older versions of Python.
gvengel Sep 1, 2022
9c212e1
Fix the the Pyinstaller hooks to preserve the environment if None is …
garethgreenaway Sep 6, 2022
cc26fd0
fixing failing tests.
garethgreenaway Sep 7, 2022
12f6d54
Using correct values to ensure tests are passing.
garethgreenaway Sep 7, 2022
0f0b7e1
Update test_subprocess.py with similar changes.
garethgreenaway Sep 7, 2022
18d2541
Adding changelog files.
garethgreenaway Sep 8, 2022
ea35cb5
Ensure default opts have valid type defined for ipc buffers
Sep 7, 2022
a09b4f4
Do not hang on salt-ssh with sudo and sanitize log output
Sep 8, 2022
20fb0be
package jmespath
garethgreenaway Sep 12, 2022
eaf2e26
Adding changelog.
garethgreenaway Sep 12, 2022
9f9830a
give renderers access to the correct functions
Sep 8, 2022
3888fe1
remove some stale code and switch to using the provided wrapper for t…
Sep 8, 2022
4f4be75
changelogs
Sep 8, 2022
d9c0e01
switch to the correct functions, stored in locals_
Sep 8, 2022
6f680b2
Make sure we call the correct modules by supplying wfuncs to the wrapper
Sep 9, 2022
22d42c0
make sure wrapper isn't None first :)
Sep 10, 2022
d2dfdc0
revert to old way of supplying functions to renderers
Sep 12, 2022
f42caab
Fix runas when using the onedir bundled packages
Sep 2, 2022
8b385b9
fix failing test
Sep 6, 2022
b271eab
Remove unnecessary file.seek call
Sep 13, 2022
3dbb6bb
Ensure the status of the service is captured when the beacon function…
garethgreenaway Sep 14, 2022
cf0fc23
fixes saltstack/salt#62611 including Jinja template from absolute pat…
nicholasmhughes Sep 6, 2022
1c53123
fix windows test
nicholasmhughes Sep 13, 2022
824d8a4
missed the import
nicholasmhughes Sep 13, 2022
092d108
Fixes #62662 [BUG] apt pkgrepo.managed signed-by and test=true is mes…
babs Sep 12, 2022
7ec4c95
Add changelog for 62662 and code format
babs Sep 12, 2022
78972c1
Add test for test=true for #62662 (signedby issue)
babs Sep 12, 2022
aada0ee
Fix for python3-apt < 2.3.0
babs Sep 14, 2022
f77bd4d
Fix sources.list multi-arch (second time)
babs Jun 30, 2022
a548be9
Add #62247 changelog
babs Sep 12, 2022
d4be0e3
Add test for multi arch join repo option
babs Sep 12, 2022
ca1108e
The sub proxies controlled by Deltaproxy need to have their own req_c…
garethgreenaway Sep 18, 2022
fdb3ab1
swap for a host that is reachable in EC2.
garethgreenaway Sep 20, 2022
f30857c
Try another host.
garethgreenaway Sep 20, 2022
9746013
Use the host that ec2.amazon.com is mapped to.
garethgreenaway Sep 20, 2022
9c7de9e
Allow the branch to be customized for release workflow (#62753)
Sep 26, 2022
bd1cbe9
Add warning to syndic about eauth/publisher_acl
waynew Sep 23, 2022
a0d3c44
Update sulphur to sulfur
Sep 26, 2022
f321452
Add changelog and docs for 3005.1 release
garethgreenaway Sep 26, 2022
1ff3472
Add header information for 3005.1 release notes
Sep 26, 2022
6226b9c
Update version in man pages to 3005.1
Sep 26, 2022
fb6f87c
hotfix Caught exception in wait_for_fun utils
vdloo Apr 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
codecov:
ci:
- jenkinsci.saltstack.com
- jenkins.saltproject.io
- github.com

max_report_age: 24 # The age you want coverage reports to expire at, or if you
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
shell: bash
run: |
set -o pipefail
pre-commit run -v --hook-stage manual check-known-missing-docstrings --show-diff-on-failure --color=never --files ${{ join(fromJSON(steps.changed-files.outputs.salt_files), ' ') }} | tee output.txt
pre-commit run --hook-stage manual check-known-missing-docstrings \
--show-diff-on-failure --color=never \
--files ${{ join(fromJSON(steps.changed-files.outputs.salt_files), ' ') }} | tee output.txt

- name: Comment on PR
# Comment on PRs if pre-commit triggered a failure
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Generate Tag and Github Release

on:
workflow_dispatch:
inputs:
saltVersion:
description: 'Salt Version'
required: true
saltRepo:
description: 'Salt Repo'
default: saltstack/salt
saltBranch:
description: 'Salt Branch'
default: freeze
reTag:
description: 'Re Tag (Deletes tag and release)'
default: false

jobs:
GenerateTagRelease:
name: Generate Tag and Github Release
runs-on: ubuntu-latest
steps:
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
if: github.event.inputs.reTag == 'true'
with:
delete_release: true # default: false
tag_name: v${{ github.event.inputs.saltVersion }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v2
with:
repository: ${{ github.event.inputs.saltRepo }}
ref: ${{ github.event.inputs.saltBranch }}
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.6
with:
create_annotated_tag: True
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.event.inputs.saltVersion }}

- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- uses: actions/checkout@v2
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
git fetch --tags origin
git checkout v${{ github.event.inputs.saltVersion }}
chmod 700 conf/cloud.*.d
chmod 600 conf/cloud
chmod 600 conf/cloud.profiles
chmod 600 conf/cloud.providers
python3 setup.py --ssh-packaging sdist
python -m build --sdist --outdir dist/ .
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: |
WARNING: The tarball generated by GitHub will not have the correct version information when using a version not ending in .0 . Please use the tarball generated by SaltStack instead. See issue #41847 for more information.
Official Salt packages can be found at https://repo.saltproject.io/
artifacts: dist/salt*.tar.gz
196 changes: 196 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
name: Generate Release Docs

on:
workflow_dispatch:
inputs:
saltVersion:
description: 'Salt Version'
required: true
manPages:
description: "Build Man Pages"
default: true
required: false
branch:
description: "Branch to build/push PR"
default: "master"
required: false

jobs:
SaltChangelog:
name: Build Salt Changelog
runs-on: ubuntu-latest

container:
image: python:3.8.6-slim-buster

steps:

- name: Install System Deps
run: |
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -y enchant git gcc imagemagick make zlib1g-dev libc-dev libffi-dev g++ libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev xz-utils
apt-get install -y git/buster-backports

- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

- name: Install Nox
env:
PIP_EXTRA_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
run: |
python -m pip install --upgrade pip
pip install nox

- id: changed-files
name: Get Changed Files
uses: dorny/paths-filter@v2
with:
token: ${{ github.token }}
list-files: json
filters: |
docs:
- doc/**

- name: Install Python Requirements
env:
PIP_EXTRA_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
run: |
nox --install-only --forcecolor -e 'changelog(force=True, draft=False)' -- ${{ github.event.inputs.saltVersion }}
nox --install-only --forcecolor -e 'changelog(force=False, draft=True)' -- ${{ github.event.inputs.saltVersion }}

- name: Build Changelog
env:
SKIP_REQUIREMENTS_INSTALL: YES
run: |
nox --forcecolor -e 'changelog(force=False, draft=True)' -- ${{ github.event.inputs.saltVersion }} > rn_changelog
nox --forcecolor -e 'changelog(force=True, draft=False)' -- ${{ github.event.inputs.saltVersion }}
git restore --staged changelog/
git diff --no-color > rm_changelog_patch.txt

- name: Store Generated Changelog
uses: actions/upload-artifact@v2
with:
name: salt-changelog
path: |
CHANGELOG.md
rm_changelog_patch.txt
rn_changelog

Manpages:
name: Build Salt man Pages
runs-on: ubuntu-latest

container:
image: python:3.8.6-slim-buster

steps:

- name: Install System Deps
if: github.event.inputs.manPages == 'true'
run: |
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -y enchant git gcc imagemagick make zlib1g-dev libc-dev libffi-dev g++ libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev
apt-get install -y git/buster-backports

- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}


- id: changed-files
if: github.event.inputs.manPages == 'true'
name: Get Changed Files
uses: dorny/paths-filter@v2
with:
token: ${{ github.token }}
list-files: json
filters: |
docs:
- doc/**

- name: Install Nox
if: github.event.inputs.manPages == 'true'
env:
PIP_EXTRA_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
run: |
python -m pip install --upgrade pip
pip install nox

- name: Install Python Requirements
if: github.event.inputs.manPages == 'true'
env:
PIP_EXTRA_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
run:
nox --install-only --forcecolor -e 'docs-man(compress=False, update=True, clean=True)'

- name: Build Manpages
if: github.event.inputs.manPages == 'true'
env:
SKIP_REQUIREMENTS_INSTALL: YES
run: |
nox --forcecolor -e 'docs-man(compress=False, update=True, clean=True)'

- name: Store Generated Documentation
if: github.event.inputs.manPages == 'true'
uses: actions/upload-artifact@v2
with:
name: salt-man-pages
path: doc/_build/man

PullRequest:
needs: [SaltChangelog, Manpages]
name: Create Pull Request
runs-on: ubuntu-latest

container:
image: python:3.8.6-slim-buster

steps:
- name: Install System Deps
run: |
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -y enchant git gcc imagemagick make zlib1g-dev libc-dev libffi-dev g++ libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev xz-utils
apt-get install -y git/buster-backports

- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

- name: Download salt-man-pages
if: github.event.inputs.manPages == 'true'
uses: actions/download-artifact@v2
with:
name: salt-man-pages
path: doc/man/

- name: Download salt changelog
uses: actions/download-artifact@v2
with:
name: salt-changelog

- name: Generate Release Notes and changelog
run: |
git apply rm_changelog_patch.txt
rm rm_changelog_patch.txt
sed -i '0,/^======/d' rn_changelog
cat rn_changelog
cat rn_changelog >> doc/topics/releases/${{ github.event.inputs.saltVersion }}.rst
rm rn_changelog

- name: Create Pull Request for Release
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Add changelog and docs for ${{ github.event.inputs.saltVersion }} release
title: 'Generate Salt Man Page and Changelog'
body: >
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
branch: docs_${{ github.event.inputs.saltVersion }}
base: ${{ github.event.inputs.branch }}
20 changes: 12 additions & 8 deletions .github/workflows/scripts/pr-docstring-comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,15 @@
"""


def delete_previous_comments(pr, created_comment_id):
def get_previous_comments(pr):
for comment in pr.get_issue_comments():
if comment.user.login != "github-actions[bot]":
# Not a comment made by this bot
continue
if comment.id == created_comment_id:
# This is the comment we have just created
continue
if not comment.body.startswith(COMMENT_HEADER):
# This comment does not start with our header
continue
# We have a match, delete it
print(f"Deleting previous comment {comment}")
comment.delete()
yield comment


def comment_on_pr(options, issues_output):
Expand All @@ -87,8 +82,17 @@ def comment_on_pr(options, issues_output):
comment_header=COMMENT_HEADER, issues_output=issues_output
)
)
new_comment_content = COMMENT_TEMPLATE.format(
comment_header=COMMENT_HEADER, issues_output=issues_output
)
for comment in get_previous_comments(pr):
if comment.body.strip() != new_comment_content.strip():
# The content has changed.
print(f"Deleting previous comment {comment}")
comment.delete()

comment = pr.create_issue_comment(new_comment_content)
print(f"Created Comment: {comment}")
delete_previous_comments(pr, comment.id)


def main():
Expand Down
Loading