<commit_before>image: registry.gitlab.gnome.org/gnome/glib-networking/master:v20

fedora-x86_64:
  stage: build
  variables:
    # Remove for PKCS11 logs, otherwise generates a lot of noise hitting gitlab's limit
    PKCS11SPY_PATH: disabled
  script:
    - cp .gitlab-ci/lcovrc ~/.lcovrc
    - meson --prefix=$HOME/glib-networking-installed
            -Db_coverage=true
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - meson compile -C _build/
    - meson test -v -C _build/ --repeat=1000
    - meson install -C _build/
    - ninja -C _build coverage-html
  artifacts:
    paths:
      - _build/test-results
      - _build/meson-logs/coveragereport
    when: always
  coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'

fedora-x86_64-asan:
  tags: [ asan ]
  stage: build
  variables:
    PKCS11SPY_PATH: disabled
    ASAN_OPTIONS: fast_unwind_on_malloc=0
  script:
    - meson -Db_sanitize=address
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - meson compile -C _build/
    - meson test --verbose --timeout-multiplier=10 -C _build/
  artifacts:
    paths:
      - _build/test-results
    when: on_failure

fedora-x86_64-scan-build:
  stage: build
  script:
    - meson -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - scan-build meson compile -C _build/
    - bash -c 'if [[ -n "$(ls -A _build/meson-logs/scanbuild/)" ]]; then echo "Scan build log found, assuming defects exist"; exit 1; fi'
  artifacts:
    paths:
      - _build/meson-logs/scanbuild
    when: on_failure

vs2017-x64:
  stage: build
  except:
    - tags
  tags:
    - win32-ps
  script:
    - .gitlab-ci/test-msvc.bat
  artifacts:
    paths:
      - build/test-results
    when: on_failure
<commit_msg>ci: run the tests fewer times<commit_after>image: registry.gitlab.gnome.org/gnome/glib-networking/master:v20

fedora-x86_64:
  stage: build
  variables:
    # Remove for PKCS11 logs, otherwise generates a lot of noise hitting gitlab's limit
    PKCS11SPY_PATH: disabled
  script:
    - cp .gitlab-ci/lcovrc ~/.lcovrc
    - meson --prefix=$HOME/glib-networking-installed
            -Db_coverage=true
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - meson compile -C _build/
    - meson test -v -C _build/ --repeat=10
    - meson install -C _build/
    - ninja -C _build coverage-html
  artifacts:
    paths:
      - _build/test-results
      - _build/meson-logs/coveragereport
    when: always
  coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'

fedora-x86_64-asan:
  tags: [ asan ]
  stage: build
  variables:
    PKCS11SPY_PATH: disabled
    ASAN_OPTIONS: fast_unwind_on_malloc=0
  script:
    - meson -Db_sanitize=address
            -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - meson compile -C _build/
    - meson test --verbose --timeout-multiplier=10 -C _build/
  artifacts:
    paths:
      - _build/test-results
    when: on_failure

fedora-x86_64-scan-build:
  stage: build
  script:
    - meson -Dgnutls=enabled
            -Dopenssl=enabled
            -Dlibproxy=enabled
            -Dgnome_proxy=enabled
            -Ddebug_logs=true
            -Dwerror=true
            _build/
    - scan-build meson compile -C _build/
    - bash -c 'if [[ -n "$(ls -A _build/meson-logs/scanbuild/)" ]]; then echo "Scan build log found, assuming defects exist"; exit 1; fi'
  artifacts:
    paths:
      - _build/meson-logs/scanbuild
    when: on_failure

vs2017-x64:
  stage: build
  except:
    - tags
  tags:
    - win32-ps
  script:
    - .gitlab-ci/test-msvc.bat
  artifacts:
    paths:
      - build/test-results
    when: on_failure

{'fraction_non_alphanumeric': 0.1056701030927835, 'fraction_numerical': 0.01640112464854733, 'mean_word_length': 1.9080381471389645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1721698', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1448, 'n_words': 307}