Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package crmsh for openSUSE:Factory checked in at 2023-08-09 17:26:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/crmsh (Old) and /work/SRC/openSUSE:Factory/.crmsh.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "crmsh" Wed Aug 9 17:26:05 2023 rev:304 rq:1103044 version:4.5.0+20230809.ddb17a0b Changes: -------- --- /work/SRC/openSUSE:Factory/crmsh/crmsh.changes 2023-07-26 13:24:56.136358746 +0200 +++ /work/SRC/openSUSE:Factory/.crmsh.new.11712/crmsh.changes 2023-08-09 17:26:09.657719339 +0200 @@ -1,0 +2,15 @@ +Tue Aug 08 22:45:16 UTC 2023 - xli...@suse.com + +- Update to version 4.5.0+20230809.ddb17a0b: + * Dev: github-workflows: do not build when push to a forked repo + * Fix: codecov: add token in plaintext + * Revert "Fix: codecov: specify token explicitly" + * Fix: userdir: Get the effictive user name instead of using getpass.getuser (bsc#1213821) + +------------------------------------------------------------------- +Wed Jul 26 07:30:31 UTC 2023 - xli...@suse.com + +- Update to version 4.5.0+20230726.6efcdd30: + * Dev: requirements: remove parallax + +------------------------------------------------------------------- Old: ---- crmsh-4.5.0+20230725.5d35bb6c.tar.bz2 New: ---- crmsh-4.5.0+20230809.ddb17a0b.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ crmsh.spec ++++++ --- /var/tmp/diff_new_pack.4sbOzD/_old 2023-08-09 17:26:10.277723200 +0200 +++ /var/tmp/diff_new_pack.4sbOzD/_new 2023-08-09 17:26:10.281723225 +0200 @@ -36,7 +36,7 @@ Summary: High Availability cluster command-line interface License: GPL-2.0-or-later Group: %{pkg_group} -Version: 4.5.0+20230725.5d35bb6c +Version: 4.5.0+20230809.ddb17a0b Release: 0 URL: http://crmsh.github.io Source0: %{name}-%{version}.tar.bz2 ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.4sbOzD/_old 2023-08-09 17:26:10.333723548 +0200 +++ /var/tmp/diff_new_pack.4sbOzD/_new 2023-08-09 17:26:10.337723573 +0200 @@ -9,7 +9,7 @@ </service> <service name="tar_scm"> <param name="url">https://github.com/ClusterLabs/crmsh.git</param> - <param name="changesrevision">5d35bb6c7915b3a158d022d3a89c698a06db9016</param> + <param name="changesrevision">1b6bae9b438c538c644f68386b5a5ebcf92e4b91</param> </service> </servicedata> (No newline at EOF) ++++++ crmsh-4.5.0+20230725.5d35bb6c.tar.bz2 -> crmsh-4.5.0+20230809.ddb17a0b.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crmsh-4.5.0+20230725.5d35bb6c/.github/workflows/crmsh-cd.yml new/crmsh-4.5.0+20230809.ddb17a0b/.github/workflows/crmsh-cd.yml --- old/crmsh-4.5.0+20230725.5d35bb6c/.github/workflows/crmsh-cd.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/crmsh-4.5.0+20230809.ddb17a0b/.github/workflows/crmsh-cd.yml 2023-08-08 23:52:16.000000000 +0200 @@ -0,0 +1,57 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# For more information about secrets see: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets + +name: crmsh CD + +on: push + +env: + FOLDER: /package + PACKAGE_NAME: crmsh + OBS_USER: ${{ secrets.OBS_USER }} + OBS_PASS: ${{ secrets.OBS_PASS }} + OBS_PROJECT: ${{ secrets.OBS_PROJECT_CRMSH45 }} + TARGET_PROJECT: ${{ secrets.TARGET_PROJECT }} + +jobs: + integration: + uses: ./.github/workflows/crmsh-ci.yml + + delivery: + needs: integration + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + - name: delivery process + if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'crmsh-4.5' && github.event_name == 'push' + run: | + docker pull shap/continuous_deliver:latest + docker run -t -v "$(pwd):/package" \ + -e OBS_USER=$OBS_USER \ + -e OBS_PASS=$OBS_PASS \ + -e FOLDER=$FOLDER \ + -e OBS_PROJECT=$OBS_PROJECT \ + -e PACKAGE_NAME=$PACKAGE_NAME \ + shap/continuous_deliver \ + /bin/bash -c "cd /package;/scripts/upload.sh" + + submit: + needs: delivery + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + - name: submit process + if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'crmsh-4.5' && github.event_name == 'push' + run: | + docker pull shap/continuous_deliver:latest + docker run -t -v "$(pwd):/package" \ + -e OBS_USER=$OBS_USER \ + -e OBS_PASS=$OBS_PASS \ + -e OBS_PROJECT=$OBS_PROJECT \ + -e PACKAGE_NAME=$PACKAGE_NAME \ + -e TARGET_PROJECT=$TARGET_PROJECT \ + shap/continuous_deliver \ + /bin/bash -c "cd /package;/scripts/submit.sh" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crmsh-4.5.0+20230725.5d35bb6c/.github/workflows/crmsh-ci.yml new/crmsh-4.5.0+20230809.ddb17a0b/.github/workflows/crmsh-ci.yml --- old/crmsh-4.5.0+20230725.5d35bb6c/.github/workflows/crmsh-ci.yml 2023-07-25 10:38:49.000000000 +0200 +++ new/crmsh-4.5.0+20230809.ddb17a0b/.github/workflows/crmsh-ci.yml 2023-08-08 23:52:16.000000000 +0200 @@ -4,17 +4,13 @@ name: crmsh CI -on: [push, pull_request] +on: + - pull_request + - workflow_call env: DOCKER_SCRIPT: ./test/run-functional-tests GET_INDEX_OF: ./test/run-functional-tests _get_index_of - FOLDER: /package - PACKAGE_NAME: crmsh - OBS_USER: ${{ secrets.OBS_USER }} - OBS_PASS: ${{ secrets.OBS_PASS }} - OBS_PROJECT: ${{ secrets.OBS_PROJECT_CRMSH45 }} - TARGET_PROJECT: ${{ secrets.TARGET_PROJECT }} jobs: general_check: @@ -65,8 +61,6 @@ index=`$GET_INDEX_OF crm_report_bugs` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_bugs: runs-on: ubuntu-20.04 @@ -80,8 +74,6 @@ index=`$GET_INDEX_OF bootstrap_bugs` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_bugs_non_root: runs-on: ubuntu-20.04 @@ -95,8 +87,6 @@ index=`$GET_INDEX_OF bootstrap_bugs` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_common: runs-on: ubuntu-20.04 @@ -110,8 +100,6 @@ index=`$GET_INDEX_OF bootstrap_init_join_remove` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_common_non_root: runs-on: ubuntu-20.04 @@ -125,8 +113,6 @@ index=`$GET_INDEX_OF bootstrap_init_join_remove` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_options: runs-on: ubuntu-20.04 @@ -140,8 +126,6 @@ index=`$GET_INDEX_OF bootstrap_options` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_bootstrap_options_non_root: runs-on: ubuntu-20.04 @@ -155,8 +139,6 @@ index=`$GET_INDEX_OF bootstrap_options` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_setup_remove: runs-on: ubuntu-20.04 @@ -170,8 +152,6 @@ index=`$GET_INDEX_OF qdevice_setup_remove` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_setup_remove_non_root: runs-on: ubuntu-20.04 @@ -185,8 +165,6 @@ index=`$GET_INDEX_OF qdevice_setup_remove` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_options: runs-on: ubuntu-20.04 @@ -200,8 +178,6 @@ index=`$GET_INDEX_OF qdevice_options` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_validate: runs-on: ubuntu-20.04 @@ -215,8 +191,6 @@ index=`$GET_INDEX_OF qdevice_validate` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_validate_non_root: runs-on: ubuntu-20.04 @@ -230,8 +204,6 @@ index=`$GET_INDEX_OF qdevice_validate` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_qdevice_user_case: runs-on: ubuntu-20.04 @@ -245,8 +217,6 @@ index=`$GET_INDEX_OF qdevice_usercase` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_resource_failcount: runs-on: ubuntu-20.04 @@ -260,8 +230,6 @@ index=`$GET_INDEX_OF resource_failcount` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_resource_set: runs-on: ubuntu-20.04 @@ -275,8 +243,6 @@ index=`$GET_INDEX_OF resource_set` $DOCKER_SCRIPT $index - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_resource_set_non_root: runs-on: ubuntu-20.04 @@ -290,8 +256,6 @@ index=`$GET_INDEX_OF resource_set` $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_configure_sublevel: runs-on: ubuntu-20.04 @@ -305,8 +269,6 @@ index=`$GET_INDEX_OF configure_bugs` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_constraints_bugs: runs-on: ubuntu-20.04 @@ -320,8 +282,6 @@ index=`$GET_INDEX_OF constraints_bugs` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_geo_cluster: runs-on: ubuntu-20.04 @@ -335,8 +295,6 @@ index=`$GET_INDEX_OF geo_setup` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_healthcheck: runs-on: ubuntu-20.04 @@ -350,8 +308,6 @@ index=`$GET_INDEX_OF healthcheck` $DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_cluster_api: runs-on: ubuntu-20.04 @@ -364,8 +320,6 @@ sudo systemctl restart docker.service $DOCKER_SCRIPT `$GET_INDEX_OF cluster_api` - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} functional_test_user_access: runs-on: ubuntu-20.04 @@ -378,8 +332,6 @@ sudo systemctl restart docker.service $DOCKER_SCRIPT `$GET_INDEX_OF user_access` - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} original_regression_test: runs-on: ubuntu-20.04 @@ -389,65 +341,3 @@ - name: original regression test run: | $DOCKER_SCRIPT `$GET_INDEX_OF "regression test"` - - delivery: - needs: [general_check, - unit_test, - functional_test_crm_report_bugs, - functional_test_bootstrap_bugs, - functional_test_bootstrap_bugs_non_root, - functional_test_bootstrap_common, - functional_test_bootstrap_common_non_root, - functional_test_bootstrap_options, - functional_test_bootstrap_options_non_root, - functional_test_qdevice_setup_remove, - functional_test_qdevice_setup_remove_non_root, - functional_test_qdevice_options, - functional_test_qdevice_validate, - functional_test_qdevice_validate_non_root, - functional_test_qdevice_user_case, - functional_test_resource_failcount, - functional_test_resource_set, - functional_test_resource_set_non_root, - functional_test_configure_sublevel, - functional_test_constraints_bugs, - functional_test_geo_cluster, - functional_test_healthcheck, - functional_test_cluster_api, - functional_test_user_access, - original_regression_test] - runs-on: ubuntu-20.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v3 - - name: delivery process - if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'crmsh-4.5' && github.event_name == 'push' - run: | - docker pull shap/continuous_deliver:latest - docker run -t -v "$(pwd):/package" \ - -e OBS_USER=$OBS_USER \ - -e OBS_PASS=$OBS_PASS \ - -e FOLDER=$FOLDER \ - -e OBS_PROJECT=$OBS_PROJECT \ - -e PACKAGE_NAME=$PACKAGE_NAME \ - shap/continuous_deliver \ - /bin/bash -c "cd /package;/scripts/upload.sh" - - submit: - needs: delivery - runs-on: ubuntu-20.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v3 - - name: submit process - if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'crmsh-4.5' && github.event_name == 'push' - run: | - docker pull shap/continuous_deliver:latest - docker run -t -v "$(pwd):/package" \ - -e OBS_USER=$OBS_USER \ - -e OBS_PASS=$OBS_PASS \ - -e OBS_PROJECT=$OBS_PROJECT \ - -e PACKAGE_NAME=$PACKAGE_NAME \ - -e TARGET_PROJECT=$TARGET_PROJECT \ - shap/continuous_deliver \ - /bin/bash -c "cd /package;/scripts/submit.sh" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crmsh-4.5.0+20230725.5d35bb6c/codecov.yml new/crmsh-4.5.0+20230809.ddb17a0b/codecov.yml --- old/crmsh-4.5.0+20230725.5d35bb6c/codecov.yml 2023-07-25 10:38:49.000000000 +0200 +++ new/crmsh-4.5.0+20230809.ddb17a0b/codecov.yml 2023-08-08 23:52:16.000000000 +0200 @@ -1,2 +1,4 @@ +codecov: + token: 16b01c29-3b23-4923-b33a-4d26a49d80c4 comment: after_n_builds: 22 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crmsh-4.5.0+20230725.5d35bb6c/crmsh/userdir.py new/crmsh-4.5.0+20230809.ddb17a0b/crmsh/userdir.py --- old/crmsh-4.5.0+20230725.5d35bb6c/crmsh/userdir.py 2023-07-25 10:38:49.000000000 +0200 +++ new/crmsh-4.5.0+20230809.ddb17a0b/crmsh/userdir.py 2023-08-08 23:52:16.000000000 +0200 @@ -3,6 +3,7 @@ import os import typing +import pwd from . import log @@ -11,9 +12,10 @@ def getuser(): - "Returns the name of the current user" - import getpass - return getpass.getuser() + "Returns the name of the current effective user" + effective_uid = os.geteuid() + user_info = pwd.getpwuid(effective_uid) + return user_info.pw_name def get_sudoer() -> typing.Optional[str]: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/crmsh-4.5.0+20230725.5d35bb6c/requirements.txt new/crmsh-4.5.0+20230809.ddb17a0b/requirements.txt --- old/crmsh-4.5.0+20230725.5d35bb6c/requirements.txt 2023-07-25 10:38:49.000000000 +0200 +++ new/crmsh-4.5.0+20230809.ddb17a0b/requirements.txt 2023-08-08 23:52:16.000000000 +0200 @@ -1,4 +1,3 @@ lxml PyYAML python-dateutil -parallax