<commit_before>container:
  containerfile: |
    FROM registry.fedoraproject.org/fedora:rawhide
    RUN dnf install -y systemd
    RUN useradd --create-home pcpbuild
    RUN echo 'pcpbuild ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/pcpbuild
    CMD ["/usr/sbin/init"]

tasks:
  update: |
    sudo dnf update -y
  install_build_dependencies: |
    sudo dnf install -y which hostname
    sudo dnf -y -b install $(./pcp/qa/admin/list-packages -m -v -x cpan -x pip3 -x not4ci)
  build: |
    cd ./pcp
    ./Makepkgs --verbose
    rpm -qp --requires $(echo ./pcp-*/build/rpm/pcp-*.src.rpm | sed 's/src/x86_64/') | grep -q libuv.so
  copy_build_artifacts: |
    cp ./pcp/pcp-*/build/rpm/*.rpm ./artifacts/build
  install: |
    sudo rpm -iv ./pcp/pcp-*/build/rpm/*.rpm
    echo 'pcpqa ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/pcpqa
  init_qa: |
    sudo -i -u pcpqa ./check 002
  qa_sanity: |
    set -o pipefail
    if [ "$runner" = "container" ]; then
      sudo -i -u pcpqa ./check -TT -g sanity -x not_in_ci -x not_in_container |& tee ./artifacts/test/test.log<commit_msg>ci: fix rawhide (dbus service wasn't activated)<commit_after>container:
  containerfile: |
    FROM registry.fedoraproject.org/fedora:rawhide
    RUN dnf install -y systemd
    # dbus.socket requires dbus.service; dbus-broker.service is an alias for dbus.service, but it only gets considered if it is enabled
    RUN systemctl enable dbus-broker
    RUN useradd --create-home pcpbuild
    RUN echo 'pcpbuild ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/pcpbuild
    CMD ["/usr/sbin/init"]

tasks:
  update: |
    sudo dnf update -y
  install_build_dependencies: |
    sudo dnf install -y which hostname
    sudo dnf -y -b install $(./pcp/qa/admin/list-packages -m -v -x cpan -x pip3 -x not4ci)
  build: |
    cd ./pcp
    ./Makepkgs --verbose
    rpm -qp --requires $(echo ./pcp-*/build/rpm/pcp-*.src.rpm | sed 's/src/x86_64/') | grep -q libuv.so
  copy_build_artifacts: |
    cp ./pcp/pcp-*/build/rpm/*.rpm ./artifacts/build
  install: |
    sudo rpm -iv ./pcp/pcp-*/build/rpm/*.rpm
    echo 'pcpqa ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/pcpqa
  init_qa: |
    sudo -i -u pcpqa ./check 002
  qa_sanity: |
    set -o pipefail
    if [ "$runner" = "container" ]; then
      sudo -i -u pcpqa ./check -TT -g sanity -x not_in_ci -x not_in_container |& tee ./artifacts/test/test.log
{'fraction_non_alphanumeric': 0.1416490486257928, 'fraction_numerical': 0.007610993657505285, 'mean_word_length': 2.5632530120481927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5698886', 'n_tokens_mistral': 974, 'n_tokens_neox': 905, 'n_words': 247}