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

Setup CI for 'sssd-2-9-4' branch #7696

Closed
wants to merge 25 commits into from

Conversation

alexey-tikhonov
Copy link
Member

No description provided.

dependabot bot and others added 2 commits November 13, 2024 14:47
Bumps [DamianReeves/write-file-action](https://github.com/damianreeves/write-file-action) from 1.2 to 1.3.
- [Release notes](https://github.com/damianreeves/write-file-action/releases)
- [Commits](DamianReeves/write-file-action@0a7fcbe...6929a9a)

Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit 2e1c2f3)
(cherry picked from commit 87a46c3)
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 1358f41)
(cherry picked from commit 39ea88c)
@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Nov 13, 2024
jakub-vavra-cz and others added 18 commits November 13, 2024 20:23
The path src/tests is more generic and would make more sense for other
components that share the same idmci automation.

Reviewed-by: Dan Lavu <dlavu@redhat.com>
(cherry picked from commit 7c6bc58)
(cherry picked from commit b87fe4f)
Reviewed-by: Madhuri Upadhye <mupadhye@redhat.com>
(cherry picked from commit f30902f)
(cherry picked from commit c8f7839)
pytest-mh and sssd-test-framework started to require python 3.11 which
is not available on ubuntu runners by default.

(cherry picked from commit bf43637)
(cherry picked from commit 50a4072)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit 1a3554b)
(cherry picked from commit 97796f6)
pytest-mh logs will be collected automatically per test on failure
so there is no reason to collect everything in single file. Having
logs per test will be easier to debug.

The test log is stored in:
artifacts/tests/$testname/test.log

Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit 9f363f8)
(cherry picked from commit 5310a54)
In case of failure, show-capture=yes (default) also prints all caputured
pytest-mh logs. Showing these logs in pytest output just makes it more
difficult to locate the failed assertion. The logs are stored in file
for each failed test so we do not need to see them in pytest output
to debug the issue.

Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit b7a47ff)
(cherry picked from commit 638320a)
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit ec7a80f)
(cherry picked from commit 3accd5b)
* test_ifp.py test are now convered in system/test_infopipe.py
* test_kcm.py test are now covered in system/test_kdm.py and
  authselect/system/test_sssd.py , the functional credential delegation
** a functional test has been added to the test plan
* test_ldapapi.py tests are low priority with a larger effort to move.
** test configures ldap, using the 389 slapd file for it's URI, this
test can only be performed on a server and does not offer much value.
this test has been added to the test plan and will be re-implemented if
approved.

Reviewed-by: Jakub Vávra <jvavra@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Scott Poore <spoore@redhat.com>
(cherry picked from commit 6bb9e7c)
…c10s from build of sssd-2-9

Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit d75b666)
Latest version added an option to replace SSH connections with podman
or docker, therefore a generic interface was created. Most notably,
`host.ssh` was replaced with `host.conn`.

Reviewed-by: Dan Lavu <dlavu@redhat.com>
Reviewed-by: Tomáš Halman <thalman@redhat.com>
(cherry picked from commit d213e59)

Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit f78ec84)
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 4b2553d)

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 4242356)
Reviewed-by: Andre Boscatto <aboscatt@redhat.com>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
(cherry picked from commit 65ca672)
(cherry picked from commit 06e1070)
It's not used since 10069b1

Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit ac6536d)
(cherry picked from commit 9992ac6)
This does not work on Fedora 41, it looks like it is not supported
by dnf5.

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit fad092b)

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 2a50bc1)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 1bf5192)
(cherry picked from commit 343ff2d)
The 'openssl req' ignores the '-extensions' option without '-x509'.
OpenSSL versions prior 3.2 simply ignored it. Starting with version 3.2
an error is generated:

| /usr/bin/openssl req -batch -config
| ../../../../../src/tests/test_CA/intermediate_CA/SSSD_test_intermediate_CA.config
| -new -nodes -key
| …/build/../src/tests/test_CA/intermediate_CA/SSSD_test_intermediate_CA_key.pem
-sha256 -extensions v3_ca -out SSSD_test_intermediate_CA_req.pem
| Error adding request extensions from section v3_ca
| 003163BAB27F0000:error:11000079:X509 V3 routines:v2i_AUTHORITY_KEYID:no issuer certificate:../crypto/x509/v3_akid.c:156:
| 003163BAB27F0000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:../crypto/x509/v3_conf.c:48:section=v3_ca, name=authorityKeyIdentifier, value=keyid:always,issuer:always
|

Remove the '-extensions' option.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 32b72c7)
(cherry picked from commit a453f96)
```
/shared/workspace/sssd/src/providers/krb5/krb5_child.c: In function _create_empty_cred_:
/shared/workspace/sssd/src/providers/krb5/krb5_child.c:1317:26: error: _calloc_ sizes specified with _sizeof_ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
 1317 |     cred = calloc(sizeof(krb5_creds), 1);
      |                          ^~~~~~~~~~
/shared/workspace/sssd/src/providers/krb5/krb5_child.c:1317:26: note: earlier argument should specify number of elements, later size of each element
```

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
(cherry picked from commit 7076c5b)
(cherry picked from commit 1815037)
pbrezina and others added 5 commits November 14, 2024 14:53
PRCI uses containers that already have multiple topologies provisioned
out of the box. pytest-mh and sssd-test-framework recently got the
ability to provision topology directly from pytest so in order to skip
this step in PRCI we need to set it explicitly.

Note that the client container is currently not enrolled in AD, so we
use topology setup there. Therefore if you run the tests locally with
AD running, you don't have to do a thing - client will automatically
join and leave the AD domain when AD/IPA-TRUST-AD topology is run.

Reviewed-by: Dan Lavu <dlavu@redhat.com>
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
(cherry picked from commit b026d62)
To avoid issue during "downgrade":
```
sssd[91632]: Lower version of database is expected!
```
Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

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

Ack, thanks for your effort here.

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #7696

  • sssd-2-9-4
    • 69cac81 - Bump version to satisfy ipa req of sssd-2.9.5+
    • 22468a4 - Exclude F39 because it is going out of support
    • 6ae9133 - CI: SYSTEM: clear SSSD cache during package installation
    • d7404bf - Setup CI for 'sssd-2-9-4' branch
    • 47765aa - ci: explicitly set which topologies are already provisioned
    • 6deb8fe - krb5_child: fix order of calloc arguments
    • ae27227 - tests: Drop -extensions from openssl command if there is no -x509
    • 8b76d94 - Fix the build with Samba 4.20
    • e2e48b2 - ci deps: do not use -- to denote positional arguments anymore
    • 7581e19 - CI: remove http-parser dependency
    • 6d84e4e - CI: remove unused stuff (lcov, ...)
    • 895db00 - tests: updating makefile.am to include tests
    • 268cf94 - tests: update the tests to work with latest pytest-mh
    • 5fec8ed - Fix formating issues reported by 'black'
    • dc7aac0 - ci: Exclude fedora-38, fedora-41, fedora-42, fedora-rawhide, c8s and c10s from build of sssd-2-9
    • 88db49d - tests: remove multihost basic tests
    • 08bd406 - CI: capture full 'config.log' from ./configure
    • c296e5e - ci: disable show-capture in system tests
    • 1a3ff4e - ci: do not collect pytest-mh logs in separate file
    • 9735721 - build(deps): bump actions/setup-python from 4 to 5
    • 7065340 - ci: use python 3.11 for system tests
    • 51487d2 - Tests: Update reference to polarion.yaml
    • 04ffa64 - Tests: Move polarion.yaml to src/tests/
    • 77da20a - CI: Add sssd testlib to pythonpath for prci multihost
    • 228f38e - build(deps): bump DamianReeves/write-file-action from 1.2 to 1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport This should go to target branch only. Pushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants