content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name: save_logs_and_results\ninputs:\n folder:\n required: false\n default: "log"\nruns:\n using: composite\n steps:\n - uses: actions/upload-artifact@v4.6.0\n name: Upload logs\n with:\n name: ${{ inputs.folder }}\n if-no-files-found: ignore\n path: |\n src/test/**/proxy.output\n src/test/**/results/\n src/test/**/tmp_check/master/log\n src/test/**/tmp_check/worker.57638/log\n src/test/**/tmp_check/worker.57637/log\n src/test/**/*.diffs\n src/test/**/out/ddls.sql\n src/test/**/out/queries.sql\n src/test/**/logfile_*\n /tmp/pg_upgrade_newData_logs\n - name: Publish regression.diffs\n run: |-\n diffs="$(find src/test/regress -name "*.diffs" -exec cat {} \;)"\n if ! [ -z "$diffs" ]; then\n echo '```diff' >> $GITHUB_STEP_SUMMARY\n echo -E "$diffs" >> $GITHUB_STEP_SUMMARY\n echo '```' >> $GITHUB_STEP_SUMMARY\n echo -E $diffs\n fi\n shell: bash\n - name: Print stack traces\n run: "./ci/print_stack_trace.sh"\n if: failure()\n shell: bash\n | dataset_sample\yaml\citusdata_citus\.github\actions\save_logs_and_results\action.yml | action.yml | YAML | 1,070 | 0.95 | 0.078947 | 0 | node-utils | 149 | 2025-04-17T04:09:58.514810 | GPL-3.0 | false | 1a17f03602aff7845c23836419c268d5 |
name: setup_extension\ninputs:\n pg_major:\n required: false\n skip_installation:\n required: false\n default: false\n type: boolean\nruns:\n using: composite\n steps:\n - name: Expose $PG_MAJOR to Github Env\n run: |-\n if [ -z "${{ inputs.pg_major }}" ]; then\n echo "PG_MAJOR=${PG_MAJOR}" >> $GITHUB_ENV\n else\n echo "PG_MAJOR=${{ inputs.pg_major }}" >> $GITHUB_ENV\n fi\n shell: bash\n - uses: actions/download-artifact@v4.1.8\n with:\n name: build-${{ env.PG_MAJOR }}\n - name: Install Extension\n if: ${{ inputs.skip_installation == 'false' }}\n run: tar xfv "install-$PG_MAJOR.tar" --directory /\n shell: bash\n - name: Configure\n run: |-\n chown -R circleci .\n git config --global --add safe.directory ${GITHUB_WORKSPACE}\n gosu circleci ./configure --without-pg-version-check\n shell: bash\n - name: Enable core dumps\n run: ulimit -c unlimited\n shell: bash\n | dataset_sample\yaml\citusdata_citus\.github\actions\setup_extension\action.yml | action.yml | YAML | 947 | 0.85 | 0.057143 | 0 | node-utils | 694 | 2024-02-24T13:11:48.512180 | MIT | false | 0a5df7af878d785de6a7b0c88970bd90 |
name: coverage\ninputs:\n flags:\n required: false\n codecov_token:\n required: true\nruns:\n using: composite\n steps:\n - uses: codecov/codecov-action@v3\n with:\n flags: ${{ inputs.flags }}\n token: ${{ inputs.codecov_token }}\n verbose: true\n gcov: true\n - name: Create codeclimate coverage\n run: |-\n lcov --directory . --capture --output-file lcov.info\n lcov --remove lcov.info -o lcov.info '/usr/*'\n sed "s=^SF:$PWD/=SF:=g" -i lcov.info # relative pats are required by codeclimate\n mkdir -p /tmp/codeclimate\n cc-test-reporter format-coverage -t lcov -o /tmp/codeclimate/${{ inputs.flags }}.json lcov.info\n shell: bash\n - uses: actions/upload-artifact@v4.6.0\n with:\n path: "/tmp/codeclimate/*.json"\n name: codeclimate-${{ inputs.flags }}\n | dataset_sample\yaml\citusdata_citus\.github\actions\upload_coverage\action.yml | action.yml | YAML | 810 | 0.95 | 0 | 0 | awesome-app | 938 | 2024-02-22T19:04:19.094717 | GPL-3.0 | false | 84a0497df4777497a62ba5a5add1b68b |
base:\n - ".* warning: ignoring old recipe for target [`']check'"\n - ".* warning: overriding recipe for target [`']check'"\n | dataset_sample\yaml\citusdata_citus\.github\packaging\packaging_ignore.yml | packaging_ignore.yml | YAML | 124 | 0.7 | 0.666667 | 0 | vue-tools | 73 | 2024-10-14T07:23:12.273443 | GPL-3.0 | false | c95cfd79db7128d1ef12cf06c032bf66 |
name: "CodeQL"\n\non:\n schedule:\n - cron: '59 23 * * 6'\n workflow_dispatch:\n\njobs:\n analyze:\n name: Analyze\n runs-on: ubuntu-22.04\n permissions:\n actions: read\n contents: read\n security-events: write\n\n strategy:\n fail-fast: false\n matrix:\n language: [ 'cpp', 'python']\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Initialize CodeQL\n uses: github/codeql-action/init@v2\n with:\n languages: ${{ matrix.language }}\n\n - name: Install package dependencies\n run: |\n # Create the file repository configuration:\n sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main 15" > /etc/apt/sources.list.d/pgdg.list'\n # Import the repository signing key:\n wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -\n sudo apt-get update\n sudo apt-get install -y --no-install-recommends \\n autotools-dev \\n build-essential \\n ca-certificates \\n curl \\n debhelper \\n devscripts \\n fakeroot \\n flex \\n libcurl4-openssl-dev \\n libdistro-info-perl \\n libedit-dev \\n libfile-fcntllock-perl \\n libicu-dev \\n libkrb5-dev \\n liblz4-1 \\n liblz4-dev \\n libpam0g-dev \\n libreadline-dev \\n libselinux1-dev \\n libssl-dev \\n libxslt-dev \\n libzstd-dev \\n libzstd1 \\n lintian \\n postgresql-server-dev-15 \\n postgresql-server-dev-all \\n python3-pip \\n python3-setuptools \\n wget \\n zlib1g-dev\n\n\n - name: Configure, Build and Install Citus\n if: matrix.language == 'cpp'\n run: |\n ./configure\n make -sj8\n sudo make install-all\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@v2\n | dataset_sample\yaml\citusdata_citus\.github\workflows\codeql.yml | codeql.yml | YAML | 1,999 | 0.8 | 0.012658 | 0.028571 | vue-tools | 243 | 2023-08-30T10:47:02.399523 | BSD-3-Clause | false | ffb5262002a5bde461f41b6661d32368 |
name: "Build devcontainer"\n\n# Since building of containers can be quite time consuming, and take up some storage,\n# there is no need to finish a build for a tag if new changes are concurrently being made.\n# This cancels any previous builds for the same tag, and only the latest one will be kept.\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\non:\n push:\n paths:\n - ".devcontainer/**"\n workflow_dispatch:\n\njobs:\n docker:\n runs-on: ubuntu-latest\n permissions:\n contents: read\n packages: write\n attestations: write\n id-token: write\n steps:\n -\n name: Docker meta\n id: meta\n uses: docker/metadata-action@v5\n with:\n images: |\n ghcr.io/citusdata/citus-devcontainer\n tags: |\n type=ref,event=branch\n type=sha\n -\n name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v2\n -\n name: 'Login to GitHub Container Registry'\n uses: docker/login-action@v3\n with:\n registry: ghcr.io\n username: ${{github.actor}}\n password: ${{secrets.GITHUB_TOKEN}}\n -\n name: Build and push\n uses: docker/build-push-action@v5\n with:\n context: "{{defaultContext}}:.devcontainer"\n push: true\n tags: ${{ steps.meta.outputs.tags }}\n labels: ${{ steps.meta.outputs.labels }}\n cache-from: type=gha\n cache-to: type=gha,mode=max\n | dataset_sample\yaml\citusdata_citus\.github\workflows\devcontainer.yml | devcontainer.yml | YAML | 1,512 | 0.8 | 0.055556 | 0.058824 | awesome-app | 701 | 2025-03-14T23:15:21.953270 | GPL-3.0 | false | ebf63d81c15571ece60289b997c88299 |
%YAML 1.1\n---\n# Configuration for CirrusCI. This is primarily used for testing and building FreeBSD and old versions of Linux,\n# since other CI platforms don't support build jobs for these configurations.\n#\n# Note that we set the YAML directive above to prevent some linting errors around the templates.\n\nsetup_template: &SETUP_TEMPLATE\n setup_script:\n - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs --output rustup.sh\n - sh rustup.sh --default-toolchain stable -y\n\ncache_template: &CACHE_TEMPLATE\n registry_cache:\n folder: $HOME/.cargo/registry\n reupload_on_changes: "true"\n fingerprint_script:\n - $HOME/.cargo/bin/rustc --version\n - cat Cargo.lock\n - echo $CIRRUS_OS\n - echo $CIRRUS_TASK_NAME\n target_cache:\n folder: target\n reupload_on_changes: "true"\n fingerprint_script:\n - $HOME/.cargo/bin/rustc --version\n - cat Cargo.lock\n - echo $CIRRUS_OS\n - echo $CIRRUS_TASK_NAME\n\ncleanup_template: &CLEANUP_TEMPLATE\n before_cache_script:\n - rm -rf $HOME/.cargo/registry/index\n - rm -rf $HOME/.cargo/registry/src\n - rm -f ./target/.rustc_info.json\n\nenv:\n CARGO_INCREMENTAL: "0"\n CARGO_PROFILE_DEV_DEBUG: "0"\n CARGO_HUSKY_DONT_INSTALL_HOOKS: "true"\n\nrelease_task:\n auto_cancellation: "false"\n only_if: $CIRRUS_BUILD_SOURCE == "api" && $BTM_BUILD_RELEASE_CALLER == "ci"\n timeout_in: "30m"\n env:\n BTM_GENERATE: "true"\n COMPLETION_DIR: "target/tmp/bottom/completion/"\n MANPAGE_DIR: "target/tmp/bottom/manpage/"\n # -PLACEHOLDER FOR CI-\n matrix:\n - name: "Legacy Linux (2.17)"\n alias: "linux_2_17_build"\n container:\n image: quay.io/pypa/manylinux2014_x86_64\n env:\n TARGET: "x86_64-unknown-linux-gnu"\n NAME: "x86_64-unknown-linux-gnu-2-17"\n <<: *SETUP_TEMPLATE\n <<: *CACHE_TEMPLATE\n build_script:\n - . $HOME/.cargo/env\n - cargo build --release --verbose --locked --features deploy\n - mv ./target/release/btm ./\n - ./btm -V\n - mv "$COMPLETION_DIR" completion\n - mv "$MANPAGE_DIR" manpage\n - tar -czvf bottom_$NAME.tar.gz btm completion\n binaries_artifacts:\n path: bottom_$NAME.tar.gz\n <<: *CLEANUP_TEMPLATE\n | dataset_sample\yaml\ClementTsang_bottom\.cirrus.yml | .cirrus.yml | YAML | 2,172 | 0.8 | 0.042254 | 0.075758 | vue-tools | 296 | 2023-10-06T04:58:20.877734 | MIT | false | a199d47dc08fb7e15368ded26a84597a |
coverage:\n status:\n project:\n default:\n target: auto\n threshold: 30%\n patch: off\n | dataset_sample\yaml\ClementTsang_bottom\codecov.yml | codecov.yml | YAML | 107 | 0.7 | 0 | 0 | python-kit | 890 | 2025-02-26T05:20:41.406266 | GPL-3.0 | false | b7921208d3c1ddb75b31d1418c4bdbd4 |
blank_issues_enabled: true\ncontact_links:\n - name: Open a discussion\n about: |\n Got a question about using bottom? Need help troubleshooting something? Or maybe just talk about something related to bottom? Feel free to open a discussion!\n url: https://github.com/ClementTsang/bottom/discussions/new\n | dataset_sample\yaml\ClementTsang_bottom\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 311 | 0.8 | 0 | 0 | awesome-app | 194 | 2023-09-10T11:15:17.606141 | BSD-3-Clause | false | 6198e0d0748e35baa6d88bfef27d7300 |
name: Feature request\ndescription: Got a good idea that hasn't already been suggested? Mention it here!\nlabels: ["feature"]\nbody:\n - type: checkboxes\n id: acknowledgements\n attributes:\n label: Checklist\n options:\n - label: >\n I've looked through [the documentation](https://clementtsang.github.io/bottom/nightly/) and \n [existing open issues](https://github.com/ClementTsang/bottom/issues?q=is%3Aopen+is%3Aissue+label%3Afeature)\n for similar feature requests.\n required: true\n\n - type: textarea\n id: description\n validations:\n required: true\n attributes:\n label: Describe the feature request\n description: >\n Please describe what behaviour you are looking for, the motivation for it, and use cases where this feature\n would be helpful to both you and others. Try to be clear and concise.\n\n If you have any ideas to implement this feature as well, feel free to write them down here too.\n placeholder: |\n Example:\n It would be nice to support FreeBSD, as I and others often use similar tools on my FreeBSD-based system.\n I also noticed that sysinfo has FreeBSD support as a data source.\n | dataset_sample\yaml\ClementTsang_bottom\.github\ISSUE_TEMPLATE\feature_request.yml | feature_request.yml | YAML | 1,224 | 0.95 | 0.1 | 0 | vue-tools | 291 | 2024-04-01T00:10:33.653970 | GPL-3.0 | false | b453ceddd86d4c0d69c93cb7048f6a45 |
name: Packaging\ndescription: For issues, questions, or requests regarding packaging or distribution.\nlabels: ["packaging"]\nbody:\n - type: markdown\n attributes:\n value: >\n If this is an issue about supporting a new package/installation method for a platform you use, please\n consider maintaining it yourself/with others and submitting a PR or issue with a link to it - they'll be\n very much appreciated and likely added to the README quickly. [The documentation on packaging/distribution](https://clementtsang.github.io/bottom/nightly/contribution/packaging-and-distribution/)\n may be helpful in setting things up. If there are some issues with bottom itself causing problems with\n packaging, feel free to open an appropriate issue.\n\n\n If this is an issue regarding a specific existing distribution channel, feel free to report issues here if they\n are related to the following sources:\n\n * [crates.io](https://crates.io/crates/bottom)\n * [Binary releases/packages released on GitHub](https://github.com/ClementTsang/bottom/releases)\n\n\n For any other distribution channel, please first try to contact the package maintainers where appropriate\n to get help regarding distribution-specific issues (e.g. the package has issues installing, the package\n is outdated, etc.) before reaching out here. This is as while I am happy to help where possible, I do not\n personally use many of the various ways people distribute bottom. As such, unless specified, I might lack the\n platform-specific context, knowledge, or tools to be able to help you at all regarding the distribution method,\n and the best I can do is just point you to the package maintainer.\n\n - type: checkboxes\n id: acknowledgements\n attributes:\n label: Checklist\n options:\n - label: >\n I have read and understood the above text.\n required: true\n\n - type: textarea\n id: description\n validations:\n required: true\n attributes:\n label: Describe the issue\n description: >\n What is the packaging-related issue? Please be clear and concise.\n placeholder: |\n Example: Would it be possible to add shell completion generation as a separate build artifact?\n | dataset_sample\yaml\ClementTsang_bottom\.github\ISSUE_TEMPLATE\packaging.yml | packaging.yml | YAML | 2,309 | 0.95 | 0.085106 | 0.05 | python-kit | 854 | 2024-03-06T22:01:36.355654 | BSD-3-Clause | false | 9027fcf298c5752959438ca56b1c0239 |
# Builds the following releases:\n# - Binaries\n# - Binaries via VMs\n# - Cirrus binaries (currently just Linux 2.17)\n# - MSI installer for Windows (.msi)\n# - .deb releases\n# - .rpm releases\n\nname: "build releases"\n\non:\n workflow_dispatch:\n workflow_call:\n inputs:\n caller:\n description: "The calling workflow."\n default: ""\n required: false\n type: string\n\nenv:\n RUST_BACKTRACE: 1\n CARGO_INCREMENTAL: 0\n CARGO_PROFILE_DEV_DEBUG: 0\n CARGO_HUSKY_DONT_INSTALL_HOOKS: true\n COMPLETION_DIR: "target/tmp/bottom/completion/"\n MANPAGE_DIR: "target/tmp/bottom/manpage/"\n\npermissions:\n id-token: write\n contents: read\n attestations: write\n\n# TODO: Maybe add retry job in case of timeouts?\njobs:\n build-binaries:\n name: "Build binaries"\n runs-on: ${{ matrix.info.os }}\n container: ${{ matrix.info.container }}\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n # ======= Supported targets =======\n # Linux (x86-64, x86, aarch64)\n #\n # TODO: In the future, when ARM runners are available on github, switch ARM targets off of cross.\n - {\n os: "ubuntu-20.04",\n target: "x86_64-unknown-linux-gnu",\n cross: false,\n generate-other-artifacts: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "i686-unknown-linux-gnu",\n cross: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "x86_64-unknown-linux-musl",\n cross: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "i686-unknown-linux-musl",\n cross: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "aarch64-unknown-linux-gnu",\n cross: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "aarch64-unknown-linux-musl",\n cross: true,\n }\n\n # macOS (x86-64 and aarch64)\n - { os: "macos-13", target: "x86_64-apple-darwin", cross: false }\n - { os: "macos-14", target: "aarch64-apple-darwin", cross: false }\n\n # Windows (x86-64, x86)\n - {\n os: "windows-2019",\n target: "x86_64-pc-windows-msvc",\n cross: false,\n }\n - { os: "windows-2019", target: "i686-pc-windows-msvc", cross: false }\n - {\n os: "windows-2019",\n target: "x86_64-pc-windows-gnu",\n cross: false,\n }\n\n # ======= Unsupported targets =======\n # armv7\n - {\n os: "ubuntu-20.04",\n target: "armv7-unknown-linux-gnueabihf",\n cross: true,\n }\n - {\n os: "ubuntu-20.04",\n target: "armv7-unknown-linux-musleabihf",\n cross: true,\n }\n\n # PowerPC 64 LE\n - {\n os: "ubuntu-20.04",\n target: "powerpc64le-unknown-linux-gnu",\n cross: true,\n }\n\n # Risc-V 64gc\n - {\n os: "ubuntu-20.04",\n target: "riscv64gc-unknown-linux-gnu",\n cross: true,\n }\n\n # Seems like cross' FreeBSD image is a bit broken? I\n # get build errors, may be related to this issue:\n # https://github.com/cross-rs/cross/issues/1291\n steps:\n - name: Checkout repository\n if: matrix.info.container == ''\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Set up Rust toolchain\n if: matrix.info.container == ''\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: ${{ matrix.info.rust || 'stable' }}\n target: ${{ matrix.info.target }}\n\n - name: Set up Rust toolchain (non-GitHub container)\n if: matrix.info.container != ''\n shell: bash\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs --output rustup.sh\n sh rustup.sh --default-toolchain stable -y\n echo "$HOME/.cargo/bin" >> $GITHUB_PATH\n\n - name: Build\n uses: ClementTsang/cargo-action@v0.0.5\n env:\n BTM_GENERATE: true\n BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}\n with:\n command: build\n args: --release --verbose --locked --target=${{ matrix.info.target }} --features deploy\n use-cross: ${{ matrix.info.cross }}\n cross-version: 0.2.5\n\n - name: Move automatically generated completion/manpage\n shell: bash\n run: |\n mv "$COMPLETION_DIR" completion\n mv "$MANPAGE_DIR" manpage\n\n - name: Bundle release and completion (Windows)\n if: matrix.info.os == 'windows-2019'\n shell: bash\n run: |\n cp target/${{ matrix.info.target }}/release/btm.exe btm.exe\n 7z a bottom_${{ matrix.info.target }}.zip "btm.exe"\n 7z a bottom_${{ matrix.info.target }}.zip "completion"\n echo "ASSET=bottom_${{ matrix.info.target }}.zip" >> $GITHUB_ENV\n\n - name: Bundle release and completion (Linux and macOS)\n if: matrix.info.os != 'windows-2019'\n shell: bash\n run: |\n cp target/${{ matrix.info.target }}/release/btm ./btm\n tar -czvf bottom_${{ matrix.info.target }}.tar.gz btm completion\n echo "ASSET=bottom_${{ matrix.info.target }}.tar.gz" >> $GITHUB_ENV\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: ${{ env.ASSET }}\n\n - name: Create release directory for artifact, move file\n shell: bash\n run: |\n mkdir release\n mv ${{ env.ASSET }} release/\n\n - name: Compress completion files\n if: matrix.info.generate-other-artifacts == true\n shell: bash\n run: |\n tar -C ./completion -czvf completion.tar.gz .\n mv completion.tar.gz release/\n\n - name: Compress manpage files\n if: matrix.info.generate-other-artifacts == true\n shell: bash\n run: |\n gzip ./manpage/btm.1\n tar -C ./manpage -czvf manpage.tar.gz .\n mv manpage.tar.gz release/\n\n - name: Copy over .desktop file\n if: matrix.info.generate-other-artifacts == true\n shell: bash\n run: |\n cp ./desktop/bottom.desktop release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: "release-${{ matrix.info.target }}"\n path: release\n\n build-vm:\n name: "Build binaries via VMs"\n runs-on: "ubuntu-latest"\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n # Seems like cross' FreeBSD image is a bit broken? I get build errors, may be related to this issue:\n # https://github.com/cross-rs/cross/issues/1291\n #\n # Alas, that's why we do it with VMs.\n - {\n type: "freebsd",\n os_release: "15.0",\n target: "x86_64-unknown-freebsd",\n }\n - {\n type: "freebsd",\n os_release: "14.1",\n target: "x86_64-unknown-freebsd",\n }\n - {\n type: "freebsd",\n os_release: "13.3",\n target: "x86_64-unknown-freebsd",\n }\n steps:\n - name: Checkout repository\n if: matrix.info.container == ''\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Build (FreeBSD)\n if: ${{ matrix.info.type == 'freebsd' }}\n uses: vmactions/freebsd-vm@debf37ca7b7fa40e19c542ef7ba30d6054a706a4 # v1.1.5\n with:\n release: "${{ matrix.info.os_release }}"\n envs: "RUST_BACKTRACE CARGO_INCREMENTAL CARGO_PROFILE_DEV_DEBUG CARGO_HUSKY_DONT_INSTALL_HOOKS COMPLETION_DIR MANPAGE_DIR"\n usesh: true\n prepare: |\n pkg install -y curl bash\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs --output rustup.sh\n sh rustup.sh --default-toolchain stable -y\n run: |\n . "$HOME/.cargo/env"\n BTM_GENERATE=true BTM_BUILD_RELEASE_CALLER=${{ inputs.caller }} cargo build --release --verbose --locked --target=${{ matrix.info.target }} --features deploy\n\n - name: Move automatically generated completion/manpage\n shell: bash\n run: |\n mv "$COMPLETION_DIR" completion\n mv "$MANPAGE_DIR" manpage\n\n - name: Bundle release and completion\n shell: bash\n run: |\n cp target/${{ matrix.info.target }}/release/btm ./btm\n tar -czvf bottom_${{ matrix.info.target }}-${{ matrix.info.os_release }}.tar.gz btm completion\n echo "ASSET=bottom_${{ matrix.info.target }}-${{ matrix.info.os_release }}.tar.gz" >> $GITHUB_ENV\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: ${{ env.ASSET }}\n\n - name: Create release directory for artifact, move file\n shell: bash\n run: |\n mkdir release\n mv ${{ env.ASSET }} release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: "release-${{ matrix.info.target }}-${{ matrix.info.os_release }}"\n path: release\n\n build-msi:\n name: "Build MSI (WiX) installer"\n runs-on: "windows-2019"\n timeout-minutes: 12\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Install Net-Framework-Core\n shell: powershell\n run: Install-WindowsFeature Net-Framework-Core\n\n - name: Install wixtoolset\n uses: crazy-max/ghaction-chocolatey@0e015857dd851f84fcb7fb53380eb5c4c8202333 # v3.0.0\n with:\n args: install -y wixtoolset\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: stable\n target: x86_64-pc-windows-msvc\n\n - name: Install cargo-wix\n shell: powershell\n run: |\n cargo install cargo-wix --version 0.3.8 --locked\n\n - name: Build MSI file\n shell: powershell\n env:\n BTM_GENERATE: true\n run: |\n cargo wix --nocapture\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: "bottom_x86_64_installer.msi"\n\n - name: Create release directory for artifact, move files\n shell: bash\n run: |\n mkdir release\n mv bottom_x86_64_installer.msi release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: "release-build-msi"\n path: release\n\n build-cirrus:\n name: "Build using Cirrus CI"\n runs-on: "ubuntu-latest"\n timeout-minutes: 12\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 0\n\n - name: Create release directory\n run: |\n mkdir -p release\n\n - name: Execute Cirrus CI build script\n env:\n CIRRUS_KEY: ${{ secrets.CIRRUS_TOKEN }}\n run: |\n if [[ "${{ github.ref_type }}" == "branch" ]]; then\n BRANCH="${{ github.ref_name }}";\n else\n raw=$(git branch -r --contains '${{ github.ref_name }}');\n BRANCH=${raw##*/};\n fi\n python ./scripts/cirrus/release.py "$BRANCH" "release/" "${{ inputs.caller }}"\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: "release/**/*.tar.gz"\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: release-build-cirrus\n path: release\n\n build-deb:\n name: "Build .deb software packages"\n runs-on: "ubuntu-20.04"\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n # TODO: In the future, when ARM runners are available on github, switch ARM targets off of cross.\n info:\n - { target: "x86_64-unknown-linux-gnu", dpkg: amd64 }\n - { target: "x86_64-unknown-linux-musl", cross: true, dpkg: amd64 }\n - {\n target: "aarch64-unknown-linux-gnu",\n cross: true,\n dpkg: arm64,\n container: "ghcr.io/clementtsang/cargo-deb-aarch64-unknown-linux-gnu",\n }\n - {\n target: "armv7-unknown-linux-gnueabihf",\n cross: true,\n dpkg: armhf,\n container: "ghcr.io/clementtsang/cargo-deb-armv7-unknown-linux-gnueabihf",\n }\n - {\n target: "aarch64-unknown-linux-musl",\n cross: true,\n dpkg: arm64,\n container: "ghcr.io/clementtsang/cargo-deb-aarch64-unknown-linux-gnu",\n }\n - {\n target: "armv7-unknown-linux-musleabihf",\n cross: true,\n dpkg: armhf,\n container: "ghcr.io/clementtsang/cargo-deb-armv7-unknown-linux-gnueabihf",\n }\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: ${{ matrix.info.rust || 'stable' }}\n target: ${{ matrix.info.target }}\n\n # TODO: Could I use the previous jobs to skip this call?\n - name: Build\n uses: ClementTsang/cargo-action@v0.0.5\n env:\n BTM_GENERATE: true\n BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}\n with:\n command: build\n args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }}\n use-cross: ${{ matrix.info.cross || false }}\n cross-version: 0.2.5\n\n - name: Move automatically generated completion/manpage\n shell: bash\n run: |\n mv "$COMPLETION_DIR" completion\n mv "$MANPAGE_DIR" manpage\n\n - name: Zip manpage\n run: |\n gzip ./manpage/btm.1\n\n - name: Build Debian release (x86-64)\n if: startsWith(matrix.info.target, 'x86_64')\n env:\n BTM_GENERATE: true\n run: |\n cargo install cargo-deb --version 2.5.1 --locked\n cargo deb --no-build --target ${{ matrix.info.target }}\n cp ./target/${{ matrix.info.target }}/debian/bottom_*.deb .\n\n - name: Build Debian release (ARM)\n if: startsWith(matrix.info.target, 'x86_64') != true\n env:\n BTM_GENERATE: true\n run: |\n docker pull ${{ matrix.info.container }}\n docker run -t --rm --mount type=bind,source="$(pwd)",target=/volume ${{ matrix.info.container }} "--no-build --variant ${{ matrix.info.dpkg }} --target ${{ matrix.info.target }}" "/volume"\n cp ./target/${{ matrix.info.target }}/debian/bottom-*.deb .\n TMP_NAME=$(find bottom-*.deb)\n VERSION=${{ matrix.info.dpkg }}\n mv $TMP_NAME $(echo $TMP_NAME | sed "s/-$VERSION//")\n\n - name: Rename if it is a musl target\n if: contains(matrix.info.target, 'musl')\n run: |\n TMP_NAME=$(find bottom_*.deb)\n mv $TMP_NAME $(echo $TMP_NAME | sed "s/bottom/bottom-musl/")\n\n # TODO: Maybe rename version if nightly?\n - name: Verify Debian release\n id: verify\n run: |\n DEB_FILE=$(find bottom*_*.deb)\n dpkg -I $DEB_FILE\n dpkg -I $DEB_FILE | grep ${{ matrix.info.dpkg }} && echo "Found correct architecture"\n echo "DEB_FILE=$DEB_FILE" >> $GITHUB_OUTPUT\n\n - name: Delete generated Debian folder\n run: |\n sudo chown $USER ./target/${{ matrix.info.target }}/debian/ 2>/dev/null || true\n rm -r ./target/${{ matrix.info.target }}/debian/\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: ${{ steps.verify.outputs.DEB_FILE }}\n\n - name: Create release directory for artifact, move file\n shell: bash\n run: |\n mkdir release\n mv ${{ steps.verify.outputs.DEB_FILE }} release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: release-build-deb-${{ matrix.info.target }}\n path: release\n\n build-rpm:\n name: "Build .rpm software packages"\n runs-on: ubuntu-latest\n container: ghcr.io/clementtsang/almalinux-8\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n - { target: "x86_64-unknown-linux-gnu" }\n - { target: "x86_64-unknown-linux-musl", cross: true }\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: ${{ matrix.info.rust || 'stable' }}\n target: ${{ matrix.info.target }}\n\n # TODO: Could I use the previous jobs to skip this call?\n - name: Build\n uses: ClementTsang/cargo-action@v0.0.5\n env:\n BTM_GENERATE: true\n BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}\n CROSS_CONTAINER_IN_CONTAINER: true\n with:\n command: build\n use-cross: ${{ matrix.info.cross || false }}\n args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }}\n cross-version: 0.2.5\n\n - name: Move automatically generated completion/manpage\n shell: bash\n run: |\n mv "$COMPLETION_DIR" completion\n mv "$MANPAGE_DIR" manpage\n\n - name: Zip manpage\n run: |\n gzip ./manpage/btm.1\n\n - name: Build rpm release\n env:\n BTM_GENERATE: true\n run: |\n cargo install cargo-generate-rpm --version 0.11.0 --locked\n cargo generate-rpm --target ${{ matrix.info.target }}\n cp ./target/${{ matrix.info.target }}/generate-rpm/bottom-*.rpm .\n\n - name: Rename if it is a musl target\n if: contains(matrix.info.target, 'musl')\n run: |\n TMP_NAME=$(find bottom-*.rpm)\n mv $TMP_NAME $(echo $TMP_NAME | sed "s/bottom/bottom-musl/")\n\n - name: Verify rpm release\n id: verify\n run: |\n RPM_FILE=$(find bottom-*.rpm)\n rpm -qip $RPM_FILE\n echo "RPM_FILE=$RPM_FILE" >> $GITHUB_OUTPUT\n\n - name: Delete generated rpm folder\n run: |\n sudo chown $USER ./target/${{ matrix.info.target }}/generate-rpm/ 2>/dev/null || true\n rm -r ./target/${{ matrix.info.target }}/generate-rpm/\n\n - name: Generate artifact attestation for file\n uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2\n with:\n subject-path: ${{ steps.verify.outputs.RPM_FILE }}\n\n - name: Create release directory for artifact, move file\n shell: bash\n run: |\n mkdir release\n mv ${{ steps.verify.outputs.RPM_FILE }} release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: release-build-rpm-${{ matrix.info.target }}\n path: release\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\build_releases.yml | build_releases.yml | YAML | 20,677 | 0.95 | 0.052288 | 0.053407 | awesome-app | 243 | 2024-11-10T20:37:52.769318 | GPL-3.0 | false | 6bfe14468cc42fd11a3f6bb306147ff5 |
# Main CI workflow to validate that files are formatted correctly, pass tests,\n# and pass lints.\n#\n# CI workflow was based on a lot of work from other people:\n# - https://github.com/heim-rs/heim/blob/master/.github/workflows/ci.yml\n# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml\n# - https://www.reillywood.com/blog/rust-faster-ci/\n# - https://matklad.github.io/2021/09/04/fast-rust-builds.html\n#\n# Supported platforms run the following tasks:\n# - Format\n# - Test (built/test in separate steps)\n# - Clippy (apparently faster to do it after the build/test)\n#\n# Unsupported platforms run the following tasks:\n# - Clippy\n\nname: ci\n\non:\n workflow_dispatch:\n pull_request:\n push:\n branches:\n - main\n\nenv:\n RUST_BACKTRACE: 1\n CARGO_INCREMENTAL: 0\n CARGO_PROFILE_DEV_DEBUG: 0\n CARGO_HUSKY_DONT_INSTALL_HOOKS: true\n COMPLETION_DIR: "target/tmp/bottom/completion/"\n MANPAGE_DIR: "target/tmp/bottom/manpage/"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}\n\njobs:\n # Check if things should be skipped.\n pre-job:\n runs-on: ubuntu-latest\n outputs:\n should_skip: ${{ steps.skip_check.outputs.should_skip }}\n steps:\n - name: Check if this action should be skipped\n id: skip_check\n uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1\n with:\n skip_after_successful_duplicate: "true"\n paths: '[".cargo/**", ".github/workflows/ci.yml", "sample_configs/**", "src/**", "tests/**", "build.rs", "Cargo.lock", "Cargo.toml", "clippy.toml", "rustfmt.toml", "Cross.toml"]'\n do_not_skip: '["workflow_dispatch", "push"]'\n\n # Runs rustfmt + tests + clippy on the main supported platforms.\n #\n # TODO: In the future, when ARM runners are available on github, switch ARM targets off of cross.\n supported:\n needs: pre-job\n if: ${{ needs.pre-job.outputs.should_skip != 'true' }}\n runs-on: ${{ matrix.info.os }}\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n - {\n os: "ubuntu-latest",\n target: "x86_64-unknown-linux-gnu",\n cross: false,\n }\n - {\n os: "ubuntu-latest",\n target: "aarch64-unknown-linux-gnu",\n cross: true,\n }\n - { os: "macos-13", target: "x86_64-apple-darwin", cross: false }\n - { os: "macos-14", target: "aarch64-apple-darwin", cross: false }\n - {\n os: "windows-2019",\n target: "x86_64-pc-windows-msvc",\n cross: false,\n }\n features: ["--all-features", "--no-default-features"]\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: stable\n components: rustfmt, clippy\n target: ${{ matrix.info.target }}\n\n - name: Enable Rust cache\n uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 # 2.7.3\n if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork\n with:\n key: ${{ matrix.info.target }}\n cache-all-crates: true\n\n - name: Check cargo fmt\n run: cargo fmt --all -- --check\n\n - name: Build tests\n uses: ClementTsang/cargo-action@v0.0.5\n with:\n command: test\n args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }}\n use-cross: ${{ matrix.info.cross }}\n cross-version: 0.2.5\n env:\n RUST_BACKTRACE: full\n\n - name: Run tests\n uses: ClementTsang/cargo-action@v0.0.5\n with:\n command: test\n args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet\n use-cross: ${{ matrix.info.cross }}\n cross-version: 0.2.5\n env:\n RUST_BACKTRACE: full\n\n - name: Run clippy\n uses: ClementTsang/cargo-action@v0.0.5\n with:\n command: clippy\n args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings\n use-cross: ${{ matrix.info.cross }}\n cross-version: 0.2.5\n env:\n RUST_BACKTRACE: full\n\n # Try running cargo build on all other platforms.\n #\n # TODO: Maybe some of these should be allowed to fail? If so, I guess we can add back the "unofficial" MSRV,\n # I would also put android there.\n other-check:\n needs: pre-job\n runs-on: ${{ matrix.info.os }}\n if: ${{ needs.pre-job.outputs.should_skip != 'true' }}\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n # x86 or x86-64\n - {\n os: "ubuntu-latest",\n target: "i686-unknown-linux-gnu",\n cross: true,\n }\n - {\n os: "ubuntu-latest",\n target: "x86_64-unknown-linux-musl",\n cross: false,\n }\n - {\n os: "ubuntu-latest",\n target: "i686-unknown-linux-musl",\n cross: true,\n }\n\n - { os: "windows-2019", target: "i686-pc-windows-msvc", cross: false }\n - {\n os: "windows-2019",\n target: "x86_64-pc-windows-gnu",\n cross: false,\n }\n\n # Beta\n - {\n os: "ubuntu-latest",\n target: "x86_64-unknown-linux-gnu",\n cross: false,\n rust: "beta",\n }\n - {\n os: "macos-14",\n target: "aarch64-apple-darwin",\n cross: false,\n rust: "beta",\n }\n - {\n os: "windows-2019",\n target: "x86_64-pc-windows-msvc",\n cross: false,\n rust: "beta",\n }\n\n # armv7\n - {\n os: "ubuntu-latest",\n target: "armv7-unknown-linux-gnueabihf",\n cross: true,\n }\n\n # armv6\n - {\n os: "ubuntu-latest",\n target: "arm-unknown-linux-gnueabihf",\n cross: true,\n }\n\n # PowerPC 64 LE\n - {\n os: "ubuntu-latest",\n target: "powerpc64le-unknown-linux-gnu",\n cross: true,\n }\n\n # Risc-V 64gc\n # Note: seems like this breaks with tests?\n - {\n os: "ubuntu-latest",\n target: "riscv64gc-unknown-linux-gnu",\n cross: true,\n }\n\n # Android ARM64\n - {\n os: "ubuntu-latest",\n target: "aarch64-linux-android",\n cross: true,\n cross-version: "git:df3309709a4a26b3dc3b1567239c3f38b9da0425", # latest version that I've found works so far\n no-default-features: true,\n no-clippy: true,\n }\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: ${{ matrix.info.rust || 'stable' }}\n target: ${{ matrix.info.target }}\n components: "clippy"\n\n - name: Enable Rust cache\n uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 # 2.7.3\n if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork\n with:\n key: ${{ matrix.info.target }}\n cache-all-crates: true\n\n - name: Clippy (default features)\n uses: ClementTsang/cargo-action@v0.0.5\n if: ${{ matrix.info.no-default-features != true }}\n with:\n command: clippy\n args: --all-targets --workspace --target=${{ matrix.info.target }} --locked\n use-cross: ${{ matrix.info.cross }}\n cross-version: ${{ matrix.info.cross-version || '0.2.5' }}\n\n - name: Clippy (no features enabled)\n uses: ClementTsang/cargo-action@v0.0.5\n if: ${{ matrix.info.no-default-features == true }}\n with:\n command: clippy\n args: --all-targets --workspace --target=${{ matrix.info.target }} --locked --no-default-features\n use-cross: ${{ matrix.info.cross }}\n cross-version: ${{ matrix.info.cross-version || '0.2.5' }}\n\n vm-check:\n name: "Test using VMs"\n needs: pre-job\n if: ${{ needs.pre-job.outputs.should_skip != 'true' }}\n runs-on: "ubuntu-latest"\n timeout-minutes: 15\n strategy:\n fail-fast: false\n matrix:\n info:\n # Seems like cross' FreeBSD image is a bit broken? I get build errors, may be related to this issue:\n # https://github.com/cross-rs/cross/issues/1291\n #\n # Alas, that's why we do it with VMs.\n - {\n type: "freebsd",\n os_release: "15.0",\n target: "x86_64-unknown-freebsd",\n }\n - {\n type: "freebsd",\n os_release: "14.1",\n target: "x86_64-unknown-freebsd",\n }\n - {\n type: "freebsd",\n os_release: "13.3",\n target: "x86_64-unknown-freebsd",\n }\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Enable Rust cache\n uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 # 2.7.3\n if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork\n with:\n key: ${{ matrix.info.target }}-${{ matrix.info.os_release }}\n cache-all-crates: true\n\n - name: Clippy (FreeBSD)\n if: ${{ matrix.info.type == 'freebsd' }}\n uses: vmactions/freebsd-vm@debf37ca7b7fa40e19c542ef7ba30d6054a706a4 # v1.1.5\n with:\n release: "${{ matrix.info.os_release }}"\n envs: "RUST_BACKTRACE CARGO_INCREMENTAL CARGO_PROFILE_DEV_DEBUG CARGO_HUSKY_DONT_INSTALL_HOOKS"\n usesh: true\n prepare: |\n pkg install -y curl bash\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs --output rustup.sh\n sh rustup.sh --default-toolchain stable -y\n run: |\n . "$HOME/.cargo/env"\n cargo clippy --all-targets --workspace -- -D warnings\n\n completion:\n name: "CI Pass Check"\n needs: [supported, other-check, vm-check]\n if: ${{ needs.supported.result != 'skipped' && needs.other-check.result != 'skipped' && needs.vm-check.result != 'skipped' }}\n runs-on: "ubuntu-latest"\n steps:\n - name: CI Passed\n if: ${{ needs.supported.result == 'success' && needs.other-check.result == 'success' && needs.vm-check.result == 'success' }}\n run: |\n echo "CI workflow completed successfully.";\n\n - name: CI Failed\n if: ${{ needs.supported.result == 'failure' && needs.other-check.result == 'failure' && needs.vm-check.result == 'failure' }}\n run: |\n echo "CI workflow failed.";\n exit 1;\n\n - name: CI Cancelled\n if: ${{ needs.supported.result == 'cancelled' && needs.other-check.result == 'cancelled' && needs.vm-check.result == 'cancelled' }}\n run: |\n echo "CI workflow was cancelled.";\n exit 1;\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\ci.yml | ci.yml | YAML | 11,854 | 0.8 | 0.055072 | 0.11465 | vue-tools | 690 | 2023-07-24T04:53:52.637997 | GPL-3.0 | false | 54fed295e6d2c2d5beb4ad7612e22d60 |
# Simple job to clear the cache used by a workflow. This automatically runs when a PR is closed/merged\n# to clean up the corresponding PR's cache.\n\nname: "clear workflow cache"\n\non:\n workflow_dispatch:\n inputs:\n id:\n description: "Which id to clear. Type main/master/all to clean all, and keep-main/keep-master to clean all but the main branch."\n required: false\n pull_request:\n types:\n - closed\n schedule:\n - cron: "0 11 * * 0"\n\njobs:\n clear-cache:\n runs-on: ubuntu-latest\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n # We run each script twice with a small delay in between to try and catch everything.\n - name: Clear cache\n run: |\n if [[ -n "${{ github.event.schedule }}" ]]; then\n python ./scripts/clear_cache.py keep-main\n sleep 5\n python ./scripts/clear_cache.py keep-main\n elif [[ -z "${{ github.event.inputs.id }}" ]]; then\n python ./scripts/clear_cache.py ${{ github.event.pull_request.number }}\n sleep 5\n python ./scripts/clear_cache.py ${{ github.event.pull_request.number }}\n else\n python ./scripts/clear_cache.py ${{ github.event.inputs.id }}\n sleep 5\n python ./scripts/clear_cache.py ${{ github.event.inputs.id }}\n fi\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\clear_workflow_cache.yml | clear_workflow_cache.yml | YAML | 1,503 | 0.95 | 0.068182 | 0.075 | awesome-app | 483 | 2023-10-15T16:08:01.551019 | BSD-3-Clause | false | acc68038af37e61129ddfb13bdc63e82 |
# Code coverage generation via cargo-llvm-cov, which is then uploaded to Codecov.\n# Codecov will report back via a comment if run on a PR.\n#\n# Note that Codecov will report back the average all uploaded coverage files.\n\nname: codecov\n\non:\n workflow_dispatch:\n pull_request:\n push:\n branches:\n - main\n\nenv:\n CARGO_INCREMENTAL: 0\n CARGO_HUSKY_DONT_INSTALL_HOOKS: true\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}\n\njobs:\n pre-job:\n runs-on: ubuntu-latest\n outputs:\n should_skip: ${{ steps.skip_check.outputs.should_skip }}\n steps:\n - id: skip_check\n uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1\n with:\n skip_after_successful_duplicate: "false"\n paths: '["tests/**", "src/**", ".github/workflows/coverage.yml", ".cargo/**", "Cargo.toml", "Cargo.lock", "build.rs"]'\n do_not_skip: '["workflow_dispatch", "push"]'\n\n coverage:\n needs: pre-job\n if: ${{ needs.pre-job.outputs.should_skip != 'true' }}\n runs-on: ${{ matrix.info.os }}\n timeout-minutes: 12\n strategy:\n fail-fast: false\n matrix:\n info:\n - { os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu" }\n - { os: "macos-14", target: "aarch64-apple-darwin", cross: false }\n - { os: "windows-2019", target: "x86_64-pc-windows-msvc" }\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n\n - name: Set up Rust toolchain\n uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17\n with:\n toolchain: stable\n\n - name: Enable Rust cache\n uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 # 2.7.3\n if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork\n with:\n key: ${{ matrix.info.target }}\n cache-all-crates: true\n\n - name: Install cargo-llvm-cov\n run: |\n rustup component add llvm-tools-preview\n cargo install cargo-llvm-cov --version 0.6.11 --locked\n\n - name: Generate code coverage\n run: |\n cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --locked --target=${{ matrix.info.target }}\n\n # The token is generally not needed, but sometimes the default shared token hits limits.\n - name: Upload to codecov.io\n uses: Wandalen/wretry.action@6feedb7dedadeb826de0f45ff482b53b379a7844 # v3.5.0\n with:\n action: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0\n with: |\n files: lcov.info\n fail_ci_if_error: true\n token: ${{ secrets.CODECOV_TOKEN }}\n flags: ${{ matrix.info.os }}\n attempt_limit: 5\n attempt_delay: 1500\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\coverage.yml | coverage.yml | YAML | 3,007 | 0.8 | 0.047619 | 0.068493 | python-kit | 287 | 2025-06-24T02:35:44.784690 | GPL-3.0 | false | 5904cbfd2bc9916ca6b44852090f5018 |
# How we deploy a release. Covers binary builds. Also manages packaging for choco.\n#\n# Binaries are primarily built by GHA, though some Linux, M1 macOS, and FreeBSD builds are\n# handled by CirrusCI.\n\nname: deployment\n\non:\n workflow_dispatch:\n inputs:\n tag:\n description: "Which tag to deploy as:"\n required: true\n push:\n tags:\n - "[0-9]+.[0-9]+.[0-9]+"\n\nenv:\n CARGO_INCREMENTAL: 0\n CARGO_PROFILE_DEV_DEBUG: 0\n CARGO_HUSKY_DONT_INSTALL_HOOKS: true\n\njobs:\n initialize:\n name: initialize\n runs-on: ubuntu-latest\n outputs:\n version: ${{ env.VERSION }}\n steps:\n - name: Get the release version from the tag\n if: env.VERSION == ''\n run: |\n if [[ -n "${{ github.event.inputs.tag }}" ]]; then\n echo "Manual run against a tag; overriding actual tag in the environment..."\n echo "VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV\n else\n echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV\n fi\n\n - name: Validate version environment variable\n run: |\n echo "Version being built against is version ${{ env.VERSION }}"!\n\n build-release:\n needs: [initialize]\n uses: ./.github/workflows/build_releases.yml\n with:\n caller: "deployment"\n secrets: inherit\n\n generate-choco:\n needs: [initialize, build-release]\n name: "Generate Chocolatey files"\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Set release version\n shell: bash\n run: |\n echo "RELEASE_VERSION=${{ needs.initialize.outputs.version }}" >> $GITHUB_ENV\n\n - name: Validate release version\n run: |\n echo "Release version: ${{ env.RELEASE_VERSION }}"\n\n - name: Get release artifacts\n uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n pattern: release-*\n path: release\n merge-multiple: true\n\n - name: Execute choco packaging script\n run: |\n python "./scripts/windows/choco/choco_packager.py" "./release/bottom_x86_64-pc-windows-msvc.zip" ${{ env.RELEASE_VERSION }} "./scripts/windows/choco/bottom.nuspec.template" "./scripts/windows/choco/chocolateyinstall.ps1.template" "bottom.nuspec" "tools/chocolateyinstall.ps1" "tools/"\n zip -r choco.zip "bottom.nuspec" "tools"\n\n - name: Move release file into release directory\n shell: bash\n run: |\n mv choco.zip release/\n\n - name: Save release as artifact\n uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0\n with:\n retention-days: 3\n name: release-choco\n path: release\n\n upload-release:\n name: upload-release\n runs-on: ubuntu-latest\n needs: [initialize, generate-choco, build-release]\n steps:\n - name: Set release version\n shell: bash\n run: |\n echo "RELEASE_VERSION=${{ needs.initialize.outputs.version }}" >> $GITHUB_ENV\n\n - name: Validate release version\n run: |\n echo "Release version: ${{ env.RELEASE_VERSION }}"\n\n - name: Get release artifacts\n uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n pattern: release-*\n path: release\n merge-multiple: true\n\n - name: Print out all release files\n run: |\n echo "Generated $(ls ./release | wc -l) files:"\n du -h -d 0 ./release/*\n\n - name: Create release and add release files\n uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # 2.0.8\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n prerelease: false\n tag_name: ${{ env.RELEASE_VERSION }}\n draft: true\n fail_on_unmatched_files: true\n name: ${{ env.RELEASE_VERSION }} Release\n body: |\n <!-- Write summary here -->\n\n ---\n\n ## Bug Fixes\n \n ## Features\n \n ## Changes\n\n ## Other\n\n ## Internal Changes\n files: |\n ./release/*\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\deployment.yml | deployment.yml | YAML | 4,307 | 0.95 | 0.020833 | 0.075 | awesome-app | 37 | 2024-02-02T14:50:06.162573 | GPL-3.0 | false | 99f673167b1fe52441cf17da1c435143 |
# Workflow to deploy mkdocs documentation.\n\nname: docs\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - "docs/**"\n - ".github/workflows/docs.yml"\n\nenv:\n # Assign commit authorship to official GitHub Actions bot when pushing to the `gh-pages` branch:\n GIT_USER: "github-actions[bot]"\n GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"\n\njobs:\n build-documentation:\n name: Build and deploy docs\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 0\n\n - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0\n with:\n python-version: 3.12\n\n - name: Install Python dependencies\n run: pip install -r docs/requirements.txt\n\n - name: Configure git user and email\n run: |\n git config --global user.name ${GIT_USER}\n git config --global user.email ${GIT_EMAIL}\n echo Name: $(git config --get user.name)\n echo Email: $(git config --get user.email)\n\n - name: Build and deploy docs with mike\n run: |\n cd docs\n mike deploy nightly --push\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\docs.yml | docs.yml | YAML | 1,254 | 0.95 | 0 | 0.052632 | python-kit | 608 | 2024-11-26T05:02:43.688891 | Apache-2.0 | false | 95ab5f996efc0db63917584c554b6e82 |
# Creates nightly deployment builds for main targets. Note this does not cover package distribution channels,\n# such as choco.\n\nname: nightly\n\non:\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n inputs:\n isMock:\n description: "Mock run"\n default: true\n required: false\n type: boolean\n\nenv:\n CARGO_INCREMENTAL: 0\n CARGO_PROFILE_DEV_DEBUG: 0\n CARGO_HUSKY_DONT_INSTALL_HOOKS: true\n\njobs:\n # Check if things should be skipped, or if this is a mock job.\n initialize-job:\n name: initialize-job\n runs-on: ubuntu-latest\n outputs:\n should_skip: ${{ steps.skip_check.outputs.should_skip }}\n steps:\n - name: Check if this action should be skipped\n id: skip_check\n uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1\n with:\n skip_after_successful_duplicate: "true"\n do_not_skip: '["workflow_dispatch"]'\n\n - name: Check if mock\n run: |\n if [[ -z "${{ github.event.inputs.isMock }}" ]]; then\n echo "This is a scheduled nightly run."\n elif [[ "${{ github.event.inputs.isMock }}" == "true" ]]; then\n echo "This is a mock run."\n else\n echo "This is NOT a mock run. Watch for the generated files!"\n fi\n\n build-release:\n needs: initialize-job\n if: ${{ needs.initialize-job.outputs.should_skip != 'true' }}\n uses: ./.github/workflows/build_releases.yml\n with:\n caller: "nightly"\n secrets: inherit\n\n upload-release:\n name: upload-release\n needs: build-release\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 1\n\n - name: Get release artifacts\n uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n pattern: release-*\n path: release\n merge-multiple: true\n\n - name: Print out all release files\n run: |\n echo "Generated $(ls ./release | wc -l) files:"\n du -h -d 0 ./release/*\n\n - name: Delete tag and release if not mock\n if: github.event.inputs.isMock != 'true'\n run: gh release delete nightly --cleanup-tag\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Sleep for a few seconds to prevent timing issues between the deletion and creation of the release\n run: sleep 10\n if: github.event.inputs.isMock != 'true'\n\n - name: Add all release files and create nightly release if not mock\n uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # 2.0.8\n if: github.event.inputs.isMock != 'true'\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n prerelease: true\n tag_name: "nightly"\n draft: false\n fail_on_unmatched_files: true\n files: |\n ./release/*\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\nightly.yml | nightly.yml | YAML | 2,998 | 0.95 | 0.14433 | 0.035294 | vue-tools | 247 | 2023-12-03T21:07:06.168414 | GPL-3.0 | false | c70079252ae9baaa045b54146b91c8e8 |
# Actions to run after releasing a version, like:\n# - Generating documentation via mkdocs\n# - Notifying packaging repos\n# - Automatically creating winget packages\n\nname: post-release\n\non:\n release:\n types: [published]\n workflow_dispatch:\n inputs:\n tag:\n description: "Which tag to deploy as:"\n required: true\n\nenv:\n # Assign commit authorship to official GitHub Actions bot when pushing to the `gh-pages` branch:\n GIT_USER: "github-actions[bot]"\n GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"\n\njobs:\n initialize:\n name: initialize\n runs-on: ubuntu-latest\n outputs:\n version: ${{ env.VERSION }}\n steps:\n - name: Get the release version from the tag\n run: |\n if [[ -n "${{ github.event.inputs.tag }}" ]]; then\n echo "Manual run against a tag; overriding actual tag in the environment..."\n echo "VERSION=${{ github.event.inputs.tag }}" >> "$GITHUB_ENV"\n else\n echo "VERSION=${{ github.event.release.tag_name }}" >> "$GITHUB_ENV"\n fi\n\n - name: Make sure you're not on master/main/nightly\n run: |\n echo ${{ env.VERSION }} \n if [[ ${{ env.VERSION }} == "master" || ${{ env.VERSION }} == "main" || ${{ env.VERSION }} == "nightly" ]]; then\n exit 1\n fi\n\n docs:\n needs: [initialize]\n runs-on: ubuntu-latest\n steps:\n - name: Set release version\n shell: bash\n run: |\n echo "RELEASE_VERSION=${{ needs.initialize.outputs.version }}" >> $GITHUB_ENV\n\n - name: Validate release version\n run: |\n echo "Release version: ${{ env.RELEASE_VERSION }}"\n\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 0\n\n - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0\n with:\n python-version: 3.12\n\n - name: Install Python dependencies\n run: pip install -r docs/requirements.txt\n\n - name: Configure git user and email\n run: |\n git config --global user.name ${GIT_USER}\n git config --global user.email ${GIT_EMAIL}\n echo Name: $(git config --get user.name)\n echo Email: $(git config --get user.email)\n\n - name: Build and deploy docs with mike as the latest stable branch\n run: |\n cd docs\n OLD_STABLE_VERSION=$(mike list stable | grep -Po '([0-9]+.[0-9]+.[0-9]+)' | head -n1)\n echo ${OLD_STABLE_VERSION}\n mike retitle --push stable ${OLD_STABLE_VERSION}\n mike deploy --push --update-aliases ${RELEASE_VERSION} stable\n mike retitle --push ${RELEASE_VERSION} "${RELEASE_VERSION} (stable)"\n\n chocolatey:\n needs: [initialize]\n runs-on: ubuntu-latest\n steps:\n - name: Set release version\n shell: bash\n run: |\n echo "RELEASE_VERSION=${{ needs.initialize.outputs.version }}" >> $GITHUB_ENV\n\n - name: Validate release version\n run: |\n echo "Release version: ${{ env.RELEASE_VERSION }}"\n - name: Trigger choco\n run: |\n curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \\n -H 'Accept: application/vnd.github.everest-preview+json' \\n -u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \\n --data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'\n\n winget:\n needs: [initialize]\n runs-on: windows-latest\n steps:\n - name: Set release version\n shell: bash\n run: |\n echo "RELEASE_VERSION=${{ needs.initialize.outputs.version }}" >> $GITHUB_ENV\n\n - name: Validate release version\n run: |\n echo "Release version: ${{ env.RELEASE_VERSION }}"\n\n - name: Automatically create PR for winget repos\n uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e\n with:\n identifier: Clement.bottom\n installers-regex: '^bottom_x86_64_installer\.msi$'\n version: ${{ env.RELEASE_VERSION }}\n release-tag: ${{ env.RELEASE_VERSION }}\n token: ${{ secrets.WINGET_TOKEN }}\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\post_release.yml | post_release.yml | YAML | 4,236 | 0.95 | 0.024 | 0.046296 | python-kit | 795 | 2023-11-04T02:40:50.327716 | GPL-3.0 | false | 958ea43eaf347e6e0e8199b1c8cc9bd3 |
# Workflow to validate the latest schema.\n\nname: "validate schema"\non:\n workflow_dispatch:\n pull_request:\n push:\n branches:\n - main\n paths:\n - "schema/**"\n - "scripts/schema/**"\n - ".github/workflows/validate_schema.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}\n\njobs:\n pre-job:\n runs-on: ubuntu-latest\n outputs:\n should_skip: ${{ steps.skip_check.outputs.should_skip }}\n steps:\n - id: skip_check\n uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1\n with:\n skip_after_successful_duplicate: "true"\n paths: '["schema/**", ".github/workflows/validate_schema.yml"]'\n do_not_skip: '["workflow_dispatch"]'\n\n test-build-documentation:\n name: Test validating schema\n needs: pre-job\n if: ${{ needs.pre-job.outputs.should_skip != 'true' }}\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7\n with:\n fetch-depth: 0\n\n - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0\n with:\n python-version: 3.12\n\n - name: Install Python dependencies\n run: pip install -r scripts/schema/requirements.txt\n\n - name: Test nightly validates on valid sample configs\n run: |\n python3 scripts/schema/validator.py -s ./schema/nightly/bottom.json -f ./sample_configs/default_config.toml\n python3 scripts/schema/validator.py --uncomment -s ./schema/nightly/bottom.json -f ./sample_configs/default_config.toml\n python3 scripts/schema/validator.py -s ./schema/nightly/bottom.json -f ./sample_configs/demo_config.toml\n\n - name: Test nightly catches on a bad sample config\n run: |\n python3 scripts/schema/validator.py -s ./schema/nightly/bottom.json -f scripts/schema/bad_file.toml --should_fail\n | dataset_sample\yaml\ClementTsang_bottom\.github\workflows\validate_schema.yml | validate_schema.yml | YAML | 2,062 | 0.95 | 0.017241 | 0.02 | python-kit | 90 | 2025-04-18T07:09:58.194169 | MIT | false | 794439aa6f017a87edd7480ee06d5049 |
# Site information\nsite_name: bottom\nsite_author: Clement Tsang\nsite_url: https://clementtsang.github.io/bottom\nsite_description: >-\n A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows.\ndocs_dir: "content/"\n# Project information\nrepo_name: ClementTsang/bottom\nrepo_url: https://github.com/ClementTsang/bottom\nedit_uri: "edit/main/docs/content/"\ncopyright: Copyright © 2019 - 2024 Clement Tsang\n\n# Theming\ntheme:\n name: material\n font:\n code: IBM Plex Mono\n features:\n - content.action.edit\n - navigation.expand\n - navigation.footer\n - navigation.indexes\n - navigation.instant\n - navigation.instant.progress\n - navigation.sections\n - navigation.tabs\n - navigation.top\n - search.highlight\n - search.suggest\n - toc.integrate\n - toc.follow\n icon:\n edit: material/pencil\n palette:\n # Palette toggle for automatic mode\n - media: "(prefers-color-scheme)"\n scheme: default\n toggle:\n icon: material/brightness-auto\n name: Switch to light mode\n # Light mode\n - media: "(prefers-color-scheme: light)"\n primary: indigo\n accent: indigo\n toggle:\n icon: material/weather-sunny\n name: Switch to dark mode\n # Dark mode\n - media: "(prefers-color-scheme: dark)"\n scheme: slate\n primary: black\n accent: indigo\n toggle:\n icon: material/weather-night\n name: Switch to system preference\n custom_dir: "content/overrides"\nextra_css:\n - stylesheets/extra.css\n\n# Extensions\nmarkdown_extensions:\n - admonition\n - attr_list\n - toc:\n anchorlink: true\n - pymdownx.inlinehilite\n - pymdownx.keys:\n # Override to make it case-sensitive\n key_map:\n {\n "a": "a",\n "b": "b",\n "c": "c",\n "d": "d",\n "e": "e",\n "f": "f",\n "g": "g",\n "h": "h",\n "i": "i",\n "j": "j",\n "k": "k",\n "l": "l",\n "m": "m",\n "n": "n",\n "o": "o",\n "p": "p",\n "q": "q",\n "r": "r",\n "s": "s",\n "t": "t",\n "u": "u",\n "v": "v",\n "w": "w",\n "x": "x",\n "y": "y",\n "z": "z",\n "A": "A",\n "B": "B",\n "C": "C",\n "D": "D",\n "E": "E",\n "F": "F",\n "G": "G",\n "H": "H",\n "I": "I",\n "J": "J",\n "K": "K",\n "L": "L",\n "M": "M",\n "N": "N",\n "O": "O",\n "P": "P",\n "Q": "Q",\n "R": "R",\n "S": "S",\n "T": "T",\n "U": "U",\n "V": "V",\n "W": "W",\n "X": "X",\n "Y": "Y",\n "Z": "Z",\n }\n - pymdownx.details\n - pymdownx.highlight\n - pymdownx.superfences\n - mdx_truly_sane_lists # See https://github.com/mkdocs/mkdocs/issues/545#issuecomment-522196661\n - pymdownx.tabbed:\n alternate_style: true\n\nplugins:\n - tags\n - search\n - mike:\n canonical_version: stable\n - git-revision-date-localized:\n type: date\n - privacy\n\nextra:\n # Versioning\n version:\n provider: mike\n default: stable\n\n# Navigation\nnav:\n - "Home": index.md\n - "Support":\n - "Official Support": support/official.md\n - "Unofficial Support": support/unofficial.md\n - "Usage":\n - "General Usage": usage/general-usage.md\n - "Basic Mode": usage/basic-mode.md\n - "Widgets":\n - "CPU Widget": usage/widgets/cpu.md\n - "Memory Widget": usage/widgets/memory.md\n - "Network Widget": usage/widgets/network.md\n - "Process Widget": usage/widgets/process.md\n - "Disk Widget": usage/widgets/disk.md\n - "Temperature Widget": usage/widgets/temperature.md\n - "Battery Widget": usage/widgets/battery.md\n - "Auto-Complete": usage/autocomplete.md\n - "Configuration":\n - "Command-line Options": configuration/command-line-options.md\n - "Config File":\n - configuration/config-file/index.md\n - "CPU Widget": configuration/config-file/cpu.md\n - "Data Filtering": configuration/config-file/data-filtering.md\n - "Flags": configuration/config-file/flags.md\n - "Layout": configuration/config-file/layout.md\n - "Processes Widget": configuration/config-file/processes.md\n - "Styling": configuration/config-file/styling.md\n - "Contribution":\n - "Issues, Pull Requests, and Discussions": contribution/issues-and-pull-requests.md\n - "Documentation": contribution/documentation.md\n - "Packaging and Distribution": contribution/packaging-and-distribution.md\n - "Development":\n - "Development Environment": contribution/development/dev_env.md\n - "Testing": contribution/development/testing.md\n - "Logging": contribution/development/logging.md\n - "Build Process": contribution/development/build_process.md\n - "Deploy Process": contribution/development/deploy_process.md\n - "Troubleshooting": troubleshooting.md\n | dataset_sample\yaml\ClementTsang_bottom\docs\mkdocs.yml | mkdocs.yml | YAML | 5,132 | 0.8 | 0.010811 | 0.055556 | python-kit | 634 | 2024-11-11T16:26:05.750236 | Apache-2.0 | false | b7d0899ddc6c6004b2193b8227f9e40e |
paths:\n tests: tests\n output: tests/log\n data: tests/data\n support: tests/support\n envs: tests/envs\nsettings:\n shuffle: true\n suite_class: \PHPUnit_Framework_TestSuite\n colors: true\n memory_limit: 1024M\n log: true\n lint: false\n be_strict_about_changes_to_global_state: false\n report_useless_tests: true\n\nextensions:\n enabled: [Codeception\Extension\RunFailed]\n config:\n Codeception\Extension\RunFailed:\n fail-group: failed\n\ncoverage:\n enabled: true\n include:\n - src/Codeception/Command/*\n | dataset_sample\yaml\Codeception_Codeception\codeception.yml | codeception.yml | YAML | 564 | 0.8 | 0 | 0 | awesome-app | 913 | 2025-02-11T05:53:18.336311 | Apache-2.0 | false | a261af79cd3295552634858fbcc17bb8 |
version: 2\n\nupdates:\n - package-ecosystem: 'composer'\n directory: '/'\n schedule:\n interval: 'daily'\n open-pull-requests-limit: 10\n\n - package-ecosystem: 'github-actions'\n directory: '/'\n schedule:\n interval: 'daily'\n ignore:\n - dependency-name: '*'\n update-types:\n - 'version-update:semver-minor'\n - 'version-update:semver-patch'\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\dependabot.yml | dependabot.yml | YAML | 390 | 0.7 | 0 | 0 | react-lib | 321 | 2023-07-12T13:13:42.263534 | GPL-3.0 | false | a36e27c40327f8766e0e84a80d11f556 |
# https://mergeable.readthedocs.io/en/latest/configuration.html\n\nversion: 2\nmergeable:\n - when: issues.opened, issues.reopened\n validate:\n - do: or\n validate:\n - do: and\n validate:\n - do: description\n must_include:\n regex: '### PHP Version'\n - do: description\n must_include:\n regex: '### CodeIgniter4 Version'\n - do: author\n must_include:\n regex: ^kenjis|lonnieezell|MGatner|michalsn|paulbalandan|samsonasik$\n fail:\n - do: comment\n payload:\n body: |\n Hi there, @@author! :wave:\n\n It looks like you opened an issue without following the bug report template:\n\n * Bug report ([open an issue](https://github.com/codeigniter4/CodeIgniter4/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml&title=Bug%3A+))\n * For feature request or support question, please use the [forums](https://forum.codeigniter.com/forum-30.html).\n\n The current issue will be closed. This is a precaution to save maintainers' time, I hope you'll understand.\n\n Sincerely, the mergeable bot 🤖\n - do: close\n\n - when: pull_request.opened, pull_request.ready_for_review\n filter:\n - do: payload\n pull_request:\n author_association:\n must_include:\n regex: ^NONE|FIRST_TIME_CONTRIBUTOR|FIRST_TIMER$\n validate: []\n pass:\n - do: comment\n payload:\n body: |\n Hi there, @@author! :wave:\n\n Thank you for sending this PR!\n\n We expect the following in all Pull Requests (PRs).\n - PRs must be sent to the [appropriate branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#branching)\n - All git commits must be [GPG-signed](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing)\n - Must follow our [style guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#php-style)\n - Be [commented](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#comments) in the PHP source file\n - Be documented in the [user guide](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#user-guide)\n - Be [unit tested](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing)\n - Pass all checks in GitHub Actions\n\n > [!IMPORTANT]\n > We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.\n\n If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work\n on the framework than you do. Please make it as painless for your contributions to be included as possible.\n\n See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md\n\n Sincerely, the mergeable bot 🤖\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\mergeable.yml | mergeable.yml | YAML | 3,231 | 0.8 | 0.028986 | 0.052632 | react-lib | 293 | 2023-12-30T06:17:17.697803 | GPL-3.0 | false | d935cc1428501d628c50146c2671f00d |
changelog:\n exclude:\n authors:\n - dependabot\n categories:\n - title: Breaking Changes\n labels:\n - 'breaking change'\n - title: Fixed Bugs\n labels:\n - bug\n - title: New Features\n labels:\n - 'new feature'\n - title: Enhancements\n labels:\n - enhancement\n - title: Refactoring\n labels:\n - refactor\n - title: Others (Only for checking. Remove this category)\n labels:\n - "*"\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\release.yml | release.yml | YAML | 466 | 0.7 | 0.043478 | 0 | react-lib | 627 | 2025-04-15T13:01:19.202025 | MIT | false | 1c374509f5c9988207cd36b63fcc672f |
name: Bug report\ndescription: Create a report to help us improve CodeIgniter\ntitle: "Bug: "\nlabels: ['bug']\n\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking the time to fill out this bug report!\n\n Before you begin, **please ensure that there are no existing issues,\n whether still open or closed, related to your report**.\n If there is, your report will be closed promptly.\n\n For example, if you get the error "*Undefined property: Config\\Exceptions::$sensitiveDataInTrace*",\n you can search the GitHub repository with the keyword "[$sensitiveDataInTrace](https://github.com/codeigniter4/CodeIgniter4/search?q=%24sensitiveDataInTrace&type=issues)".\n\n ---\n\n - type: dropdown\n id: php-version\n attributes:\n label: PHP Version\n description: Which PHP versions did you run your code?\n multiple: true\n options:\n - '8.1'\n - '8.2'\n - '8.3'\n - '8.4'\n validations:\n required: true\n\n - type: input\n id: codeigniter-version\n attributes:\n label: CodeIgniter4 Version\n description: |\n e.g. 4.1.5\n If you are not using the [latest version](https://github.com/codeigniter4/CodeIgniter4/releases), please\n check to see if the problem occurs with the latest version.\n validations:\n required: true\n\n - type: dropdown\n id: codeigniter-installation\n attributes:\n label: CodeIgniter4 Installation Method\n multiple: false\n options:\n - Composer (using `codeigniter4/appstarter`)\n - Composer (as dependency to an existing project)\n - Manual (zip or tar.gz)\n - Git\n validations:\n required: true\n\n - type: dropdown\n id: operating-systems\n attributes:\n label: Which operating systems have you tested for this bug?\n description: You may select more than one.\n multiple: true\n options:\n - macOS\n - Windows\n - Linux\n validations:\n required: true\n\n - type: dropdown\n id: server\n attributes:\n label: Which server did you use?\n options:\n - apache\n - cli\n - cli-server (PHP built-in webserver)\n - cgi-fcgi\n - fpm-fcgi\n - phpdbg\n validations:\n required: true\n\n - type: input\n id: database\n attributes:\n label: Database\n description: e.g. MySQL 5.6, MariaDB 10.2, PostgreSQL 9.6\n validations:\n required: false\n\n - type: textarea\n id: description\n attributes:\n label: What happened?\n placeholder: Tell us what you see!\n validations:\n required: true\n\n - type: textarea\n attributes:\n label: Steps to Reproduce\n description: Steps to reproduce the behavior.\n validations:\n required: true\n\n - type: textarea\n attributes:\n label: Expected Output\n description: What do you expect to happen instead of this filed bug?\n validations:\n required: true\n\n - type: textarea\n attributes:\n label: Anything else?\n description: |\n Links? References? Anything that will give us more context about the issue you are encountering!\n\n Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.\n validations:\n required: false\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\ISSUE_TEMPLATE\bug_report.yml | bug_report.yml | YAML | 3,309 | 0.95 | 0.032258 | 0 | react-lib | 115 | 2024-11-19T01:12:27.110660 | BSD-3-Clause | false | 18ab7fdf17e8339c8ce1e88c39f532da |
blank_issues_enabled: false\ncontact_links:\n - name: CodeIgniter Forum\n url: https://forum.codeigniter.com/forum-30.html\n about: Please ask your support questions and/or feature requests in the forums. Thanks!\n\n - name: CodeIgniter Slack channel\n url: https://codeigniterchat.slack.com\n about: Engage with other members of the community in our Slack channel.\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 372 | 0.8 | 0 | 0 | node-utils | 561 | 2025-05-26T02:54:12.886129 | GPL-3.0 | false | a3990b57a39ebecb466a0d61d99a86af |
# When changes are pushed to the develop branch,\n# build the current version of the API documentation\n# with phpDocumentor and deploy it to codeigniter4/api.\nname: Deploy API Documentation\n\non:\n push:\n branches:\n - 'develop'\n paths:\n - 'system/**'\n - '.github/workflows/deploy-apidocs.yml'\n\npermissions:\n contents: read\n\njobs:\n build:\n name: Deploy to api\n permissions:\n contents: write\n if: github.repository == 'codeigniter4/CodeIgniter4'\n runs-on: ubuntu-22.04\n\n steps:\n - name: Setup credentials\n run: |\n git config --global user.email "action@github.com"\n git config --global user.name "${GITHUB_ACTOR}"\n\n - name: Checkout source\n uses: actions/checkout@v4\n with:\n path: source\n\n - name: Checkout target\n uses: actions/checkout@v4\n with:\n repository: codeigniter4/api\n token: ${{ secrets.ACCESS_TOKEN }}\n path: api\n\n - name: Setup PHP\n uses: shivammathur/setup-php@v2\n with:\n php-version: '8.1'\n tools: phive\n coverage: none\n\n - name: Download latest phpDocumentor\n working-directory: source\n run: phive --no-progress install --trust-gpg-keys 6DA3ACC4991FFAE5 phpDocumentor\n\n - name: Prepare API repo\n working-directory: api\n run: |\n git reset --hard master\n rm -rfv docs\n mkdir --parents --verbose docs\n\n - name: Build API in source repo\n working-directory: source\n run: |\n php tools/phpDocumentor --ansi --verbose\n cp -R ${GITHUB_WORKSPACE}/source/api/build/* ${GITHUB_WORKSPACE}/api/docs\n\n - name: Deploy to API repo\n working-directory: api\n run: |\n git add .\n if ! git diff-index --quiet HEAD; then\n git commit -m "Updated API for commit ${GITHUB_SHA}"\n git push origin master\n fi\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\workflows\deploy-apidocs.yml | deploy-apidocs.yml | YAML | 1,954 | 0.8 | 0.040541 | 0.047619 | python-kit | 828 | 2023-07-28T23:56:50.338474 | Apache-2.0 | false | dc8bbcf26e35a144ea4bfbefc083fecb |
# When a new release is created, deploy relevant\n# files to each of the generated repos.\nname: Deploy Distributable Repos\n\non:\n release:\n types: [published]\n\npermissions:\n contents: read\n\njobs:\n check-version:\n name: Check for updated version\n runs-on: ubuntu-22.04\n\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n with:\n fetch-depth: 0 # fetch all tags\n\n - name: Get latest version\n run: |\n echo 'LATEST_VERSION<<EOF' >> $GITHUB_ENV\n echo $(git describe --tags --abbrev=0) | sed "s/v//" >> $GITHUB_ENV\n echo 'EOF' >> $GITHUB_ENV\n\n - name: Search for updated version\n if: ${{ env.LATEST_VERSION }}\n run: |\n chmod +x ${GITHUB_WORKSPACE}/.github/scripts/validate-version\n ${GITHUB_WORKSPACE}/.github/scripts/validate-version ${{ env.LATEST_VERSION }}\n\n framework:\n name: Deploy to framework\n permissions:\n # Allow actions/github-script to create release\n contents: write\n if: github.repository == 'codeigniter4/CodeIgniter4'\n runs-on: ubuntu-22.04\n needs: check-version\n\n steps:\n - name: Identify\n run: |\n git config --global user.email "action@github.com"\n git config --global user.name "${GITHUB_ACTOR}"\n\n - name: Checkout source\n uses: actions/checkout@v4\n with:\n path: source\n\n - name: Checkout target\n uses: actions/checkout@v4\n with:\n repository: codeigniter4/framework\n token: ${{ secrets.ACCESS_TOKEN }}\n path: framework\n\n - name: Chmod\n run: chmod +x ./source/.github/scripts/deploy-framework\n\n - name: Deploy\n run: ./source/.github/scripts/deploy-framework ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/framework ${GITHUB_REF##*/}\n\n - name: Release\n uses: actions/github-script@v7\n with:\n github-token: ${{secrets.ACCESS_TOKEN}}\n script: |\n const release = await github.rest.repos.getLatestRelease({\n owner: context.repo.owner,\n repo: context.repo.repo\n })\n github.rest.repos.createRelease({\n owner: context.repo.owner,\n repo: 'framework',\n tag_name: release.data.tag_name,\n name: release.data.name,\n body: release.data.body\n })\n\n appstarter:\n name: Deploy to appstarter\n permissions:\n # Allow actions/github-script to create release\n contents: write\n if: github.repository == 'codeigniter4/CodeIgniter4'\n runs-on: ubuntu-22.04\n needs: check-version\n\n steps:\n - name: Identify\n run: |\n git config --global user.email "action@github.com"\n git config --global user.name "${GITHUB_ACTOR}"\n\n - name: Checkout source\n uses: actions/checkout@v4\n with:\n path: source\n\n - name: Checkout target\n uses: actions/checkout@v4\n with:\n repository: codeigniter4/appstarter\n token: ${{ secrets.ACCESS_TOKEN }}\n path: appstarter\n\n - name: Chmod\n run: chmod +x ./source/.github/scripts/deploy-appstarter\n\n - name: Deploy\n run: ./source/.github/scripts/deploy-appstarter ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/appstarter ${GITHUB_REF##*/}\n\n - name: Release\n uses: actions/github-script@v7\n with:\n github-token: ${{secrets.ACCESS_TOKEN}}\n script: |\n const release = await github.rest.repos.getLatestRelease({\n owner: context.repo.owner,\n repo: context.repo.repo\n })\n github.rest.repos.createRelease({\n owner: context.repo.owner,\n repo: 'appstarter',\n tag_name: release.data.tag_name,\n name: release.data.name,\n body: release.data.body\n })\n\n userguide:\n name: Deploy to userguide\n permissions:\n # Allow actions/github-script to create release\n contents: write\n if: github.repository == 'codeigniter4/CodeIgniter4'\n runs-on: ubuntu-22.04\n needs: check-version\n\n steps:\n - name: Identify\n run: |\n git config --global user.email "action@github.com"\n git config --global user.name "${GITHUB_ACTOR}"\n\n - name: Checkout source\n uses: actions/checkout@v4\n with:\n path: source\n\n - name: Checkout target\n uses: actions/checkout@v4\n with:\n repository: codeigniter4/userguide\n token: ${{ secrets.ACCESS_TOKEN }}\n path: userguide\n\n - name: Setup Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.12'\n\n - name: Install Sphinx\n run: |\n python -m pip install --upgrade pip\n pip install -r ./source/user_guide_src/requirements.txt\n\n - name: Chmod\n run: chmod +x ./source/.github/scripts/deploy-userguide\n\n - name: Deploy\n run: ./source/.github/scripts/deploy-userguide ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/userguide ${GITHUB_REF##*/}\n\n - name: Release\n uses: actions/github-script@v7\n with:\n github-token: ${{secrets.ACCESS_TOKEN}}\n script: |\n const release = await github.rest.repos.getLatestRelease({\n owner: context.repo.owner,\n repo: context.repo.repo\n })\n github.rest.repos.createRelease({\n owner: context.repo.owner,\n repo: 'userguide',\n tag_name: release.data.tag_name,\n name: release.data.name,\n body: release.data.body\n })\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\workflows\deploy-distributables.yml | deploy-distributables.yml | YAML | 5,706 | 0.95 | 0.031088 | 0.030488 | python-kit | 933 | 2025-05-01T04:30:55.670916 | MIT | false | e5f5e7896af85befeae47987bc1e85dd |
name: Auto Label "stale" for All PRs\n\non:\n push:\n branches:\n - develop\n - '4.*'\n\njobs:\n build:\n name: Check Conflicts\n\n permissions:\n contents: read\n pull-requests: write\n\n runs-on: ubuntu-22.04\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n\n - name: Get PR List\n id: PR-list\n run: echo "pr_list=$(gh pr list -L 100 --json mergeable,url,labels,author)" >> $GITHUB_OUTPUT\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: 'Add label "stale" and comment'\n env:\n PR_LIST: ${{ steps.PR-list.outputs.pr_list }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n\n IFS=$'\n' # Set Internal Field Separator to newline to handle array elements\n\n # Iterate through the PRs in PR_LIST\n for pr in $(echo "$PR_LIST" | jq -c '.[]'); do\n mergeable=$(echo "$pr" | jq -r '.mergeable')\n author=$(echo "$pr" | jq -r '.author.login')\n labels=$(echo "$pr" | jq -c '.labels[].name' | tr -d '[]"')\n url=$(echo "$pr" | jq -r '.url')\n\n # CONFLICTING and no 'stale' label\n if [ "$mergeable" == "CONFLICTING" ] && [[ ! "$labels" == *"stale"* ]]; then\n # Add "stale" label\n gh pr edit $url --add-label "stale"\n\n # Add a comment\n gh pr comment $url --body ":wave: Hi, @$author!<br><br>We detected conflicts in your PR against the base branch :speak_no_evil:<br>You may want to sync :arrows_counterclockwise: your branch with upstream!<br><br>Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#updating-your-branch)"\n fi\n done\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\workflows\label-add-conflict-all-pr.yml | label-add-conflict-all-pr.yml | YAML | 1,759 | 0.8 | 0.058824 | 0.097561 | python-kit | 626 | 2023-09-24T16:29:41.265635 | Apache-2.0 | false | 436be5cdffe520d982a6e657bb7256c8 |
name: Check Signed PR\non:\n pull_request:\n branches:\n - 'develop'\n - '4.*'\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}\n cancel-in-progress: true\n\npermissions:\n contents: read\n pull-requests: write\n\njobs:\n build:\n name: Check Signed Commit\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n\n - name: Check signed commits in PR\n uses: 1Password/check-signed-commits-action@v1\n with:\n comment: |\n You must GPG-sign your work, certifying that you either wrote the work or otherwise have the right to pass it on to an open-source project. See Developer's Certificate of Origin. See [signing][1].\n\n **Note that all your commits must be signed.** If you have an unsigned commit, you can sign the previous commits by referring to [gpg-signing-old-commits][2].\n [1]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing\n [2]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#gpg-signing-old-commits\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\workflows\label-signing.yml | label-signing.yml | YAML | 1,145 | 0.8 | 0 | 0.037037 | react-lib | 638 | 2024-06-26T21:25:35.025454 | GPL-3.0 | false | f20247e154fb99d1576644399983a634 |
name: Reusable Coveralls Upload\n\non:\n workflow_call:\n inputs:\n php-version:\n description: The PHP version the workflow should run\n type: string\n required: true\n\njobs:\n coveralls:\n runs-on: ubuntu-22.04\n\n steps:\n - name: Checkout base branch for PR\n if: github.event_name == 'pull_request'\n uses: actions/checkout@v4\n with:\n ref: ${{ github.base_ref }}\n\n - name: Checkout\n uses: actions/checkout@v4\n\n - name: Setup PHP\n uses: shivammathur/setup-php@v2\n with:\n php-version: ${{ inputs.php-version }}\n tools: composer\n coverage: xdebug\n\n - name: Download coverage files\n uses: actions/download-artifact@v4\n with:\n path: build/cov\n\n - name: Display structure of downloaded files\n run: ls -R\n working-directory: build/cov\n\n - name: Get composer cache directory\n run: |\n echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV\n\n - name: Cache dependencies\n uses: actions/cache@v4\n with:\n path: ${{ env.COMPOSER_CACHE_FILES_DIR }}\n key: ${{ github.job }}-php-${{ inputs.php-version }}-${{ hashFiles('**/composer.*') }}\n restore-keys: |\n ${{ github.job }}-php-${{ inputs.php-version }}-\n ${{ github.job }}-\n\n - name: Cache PHPUnit's static analysis cache\n uses: actions/cache@v4\n with:\n path: build/.phpunit.cache/code-coverage\n key: phpunit-code-coverage-${{ hashFiles('**/phpunit.*') }}\n restore-keys: |\n phpunit-code-coverage-\n\n - name: Install dependencies\n run: composer update --ansi\n\n - name: Merge coverage files\n run: |\n jq '.autoload."psr-4" += {"Config\\": "app/Config/"}' composer.json > temp.json && mv temp.json composer.json\n composer dump-autoload\n vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov\n\n - name: Upload coverage to Coveralls\n run: |\n composer global require php-coveralls/php-coveralls\n php-coveralls --verbose --exclude-no-stmt --ansi\n env:\n COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\.github\workflows\reusable-coveralls.yml | reusable-coveralls.yml | YAML | 2,275 | 0.85 | 0.026316 | 0 | node-utils | 342 | 2024-12-13T12:59:04.008473 | MIT | false | 7c1dbd22d3a1d6f48b54434910c73f4f |
name: Close Pull Request\n\non:\n pull_request_target:\n types: [opened, reopened]\n\npermissions:\n pull-requests: write\n\njobs:\n main:\n runs-on: ubuntu-latest\n steps:\n - name: Close PR with nice message\n run: gh pr close ${{ env.ISSUE }} -c "${{ env.COMMENT }}"\n working-directory: ${{ github.workspace }}\n env:\n COMMENT: >\n Thank you for your pull request. However, you have submitted your PR on a read-only\n split of <code>codeigniter4/CodeIgniter4</code>. This repository, unfortunately, does\n not accept PRs. Please submit your PR at https://github.com/codeigniter4/CodeIgniter4\n repository.<br/><br/>Thank you.\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ISSUE: ${{ github.event.pull_request.html_url }}\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\admin\framework\.github\workflows\close-pull-request.yml | close-pull-request.yml | YAML | 812 | 0.8 | 0.041667 | 0 | python-kit | 212 | 2024-06-07T16:31:54.863986 | BSD-3-Clause | false | 769cbdd145259963ff215b739da181b5 |
name: Close Pull Request\n\non:\n pull_request_target:\n types: [opened, reopened]\n\npermissions:\n pull-requests: write\n\njobs:\n main:\n runs-on: ubuntu-latest\n steps:\n - name: Close PR with nice message\n run: gh pr close ${{ env.ISSUE }} -c "${{ env.COMMENT }}"\n working-directory: ${{ github.workspace }}\n env:\n COMMENT: >\n Thank you for your pull request. However, you have submitted your PR on a read-only\n split of <code>codeigniter4/CodeIgniter4</code>. This repository, unfortunately, does\n not accept PRs. Please submit your PR at https://github.com/codeigniter4/CodeIgniter4\n repository.<br/><br/>Thank you.\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ISSUE: ${{ github.event.pull_request.html_url }}\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\admin\starter\.github\workflows\close-pull-request.yml | close-pull-request.yml | YAML | 812 | 0.8 | 0.041667 | 0 | vue-tools | 889 | 2025-01-20T01:46:42.270096 | GPL-3.0 | false | 769cbdd145259963ff215b739da181b5 |
name: PHPUnit\n\non:\n pull_request:\n branches:\n - develop\n\njobs:\n main:\n name: Build and test\n\n strategy:\n matrix:\n php-versions: ['8.1', '8.3']\n\n runs-on: ubuntu-latest\n\n if: (! contains(github.event.head_commit.message, '[ci skip]'))\n\n steps:\n - name: Checkout\n uses: actions/checkout@v2\n\n - name: Setup PHP, with composer and extensions\n uses: shivammathur/setup-php@v2\n with:\n php-version: ${{ matrix.php-versions }}\n tools: composer, pecl, phpunit\n extensions: intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3\n coverage: xdebug\n\n - name: Get composer cache directory\n id: composer-cache\n run: echo "::set-output name=dir::$(composer config cache-files-dir)"\n\n - name: Cache composer dependencies\n uses: actions/cache@v2\n with:\n path: ${{ steps.composer-cache.outputs.dir }}\n key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}\n restore-keys: ${{ runner.os }}-composer-\n\n - name: Install dependencies\n run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader\n # To prevent rate limiting you may need to supply an OAuth token in Settings > Secrets\n # env:\n # https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens\n # COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}\n\n - name: Test with phpunit\n run: vendor/bin/phpunit --coverage-text\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\admin\starter\.github\workflows\phpunit.yml | phpunit.yml | YAML | 1,540 | 0.8 | 0.019608 | 0.1 | vue-tools | 374 | 2024-06-18T03:46:34.755771 | BSD-3-Clause | false | 6c1d1815fab9ed73cd99febbc95d19c0 |
name: Close Pull Request\n\non:\n pull_request_target:\n types: [opened, reopened]\n\npermissions:\n pull-requests: write\n\njobs:\n main:\n runs-on: ubuntu-latest\n steps:\n - name: Close PR with nice message\n run: gh pr close ${{ env.ISSUE }} -c "${{ env.COMMENT }}"\n working-directory: ${{ github.workspace }}\n env:\n COMMENT: >\n Thank you for your pull request. However, you have submitted your PR on a read-only\n split of <code>codeigniter4/CodeIgniter4</code>. This repository, unfortunately, does\n not accept PRs. Please submit your PR at https://github.com/codeigniter4/CodeIgniter4\n repository.<br/><br/>Thank you.\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ISSUE: ${{ github.event.pull_request.html_url }}\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\admin\userguide\.github\workflows\close-pull-request.yml | close-pull-request.yml | YAML | 812 | 0.8 | 0.041667 | 0 | vue-tools | 404 | 2024-08-10T06:17:50.922831 | BSD-3-Clause | false | 769cbdd145259963ff215b739da181b5 |
# Deploys the User Guide to the production\n# website whenever master branch is updated\nname: Deploy Production\n\non:\n push:\n branches:\n - master\n\njobs:\n build:\n runs-on: ubuntu-latest\n\n steps:\n - name: executing remote ssh commands using ssh key\n uses: appleboy/ssh-action@master\n with:\n host: ${{ secrets.HOST }}\n username: ${{ secrets.USERNAME }}\n key: ${{ secrets.KEY }}\n port: ${{ secrets.PORT }}\n script: /opt/userguide/.github/scripts/deploy.sh\n | dataset_sample\yaml\codeigniter4_CodeIgniter4\admin\userguide\.github\workflows\deploy.yml | deploy.yml | YAML | 530 | 0.8 | 0 | 0.105263 | python-kit | 345 | 2024-12-22T03:38:11.349847 | MIT | false | 6453041e0dbb02afa0d893e7bf0a3c83 |
trigger:\n- main\n- dev/*\n- rel/*\n\npr:\n- main\n- dev/*\n- rel/*\n\npool:\n vmImage: windows-2019\n\nvariables:\n BuildConfiguration: Release\n\njobs:\n### BUILD ###\n- job: BuildBits\n timeoutInMinutes: 60\n\n steps:\n - task: BatchScript@1\n inputs:\n filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"\n arguments: -no_logo\n modifyEnvironment: true\n displayName: Setup Environment Variables\n\n - task: NuGetToolInstaller@0\n displayName: Use NuGet 5.11.x\n inputs:\n versionSpec: 5.11.x\n \n - task: DotNetCoreCLI@2\n inputs:\n command: custom\n custom: tool\n arguments: install --tool-path . nbgv\n displayName: Install NBGV tool\n\n - script: nbgv cloud\n displayName: Set Version\n\n #- powershell: .\build\Install-WindowsSdkISO.ps1 19041\n # displayName: Insider SDK\n\n - powershell: .\build\build.ps1 -Target Build\n displayName: Build\n\n ### Unit Tests ###\n\n - powershell: .\build\build.ps1 -Target Test\n displayName: Test\n\n - task: PublishTestResults@2\n inputs:\n testResultsFormat: 'VSTest'\n testResultsFiles: '**/VsTestResults*.trx'\n displayName: Publish Test Results\n condition: always()\n\n ### UI Integration Tests ###\n\n - powershell: .\build\build.ps1 -Target UITest\n displayName: UI Integration Tests\n\n - task: PublishPipelineArtifact@1\n displayName: Publish UI Test Results\n inputs:\n targetPath: .\build\UITestResults.wtl\n artifactName: WexUITestLogFileOutput\n condition: always()\n\n - task: PublishPipelineArtifact@1\n displayName: Publish Test WexLogFileOutput\n inputs:\n targetPath: .\build\WexLogFileOutput\n artifactName: WexUnitTestErrorLogFileOutput\n condition: failed()\n\n ### Package ###\n\n - powershell: .\build\build.ps1 -Target Package\n displayName: Package\n\n - task: PowerShell@2\n displayName: Authenticode Sign Packages\n inputs:\n filePath: build/Sign-Package.ps1\n env:\n SignClientUser: $(SignClientUser)\n SignClientSecret: $(SignClientSecret)\n ArtifactDirectory: bin\nupkg\n condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))\n\n - task: PublishPipelineArtifact@1\n displayName: Publish Package Artifacts\n inputs:\n targetPath: .\bin\nupkg\n artifactName: Packages\n\n### Smoke Tests ###\n\n- job: SmokeTests\n dependsOn: BuildBits\n timeoutInMinutes: 60\n\n steps:\n - task: DownloadPipelineArtifact@2\n displayName: Download NuGet Packages Artifact\n inputs:\n artifact: Packages\n path: .\bin\nupkg\n\n - task: DotNetCoreCLI@2\n inputs:\n command: custom\n custom: tool\n arguments: install --tool-path . nbgv\n displayName: Install NBGV tool\n\n - script: nbgv cloud\n displayName: Set Version\n\n - powershell: .\build\build.ps1 -Target SmokeTest\n displayName: SmokeTest\n\n - task: CopyFiles@2\n inputs:\n sourceFolder: .\SmokeTests\AppPackages\n contents: '**\*.msixbundle'\n targetFolder: $(build.artifactstagingdirectory)\SmokeTestBundles\n\n - task: PublishBuildArtifacts@1\n displayName: Publish Smoke Test Artifacts\n inputs:\n pathToPublish: $(build.artifactstagingdirectory)\SmokeTestBundles\n artifactType: container\n artifactName: SmokeTestBundles\n\n - powershell: .\SmokeTests\SmokeTestAnalysis.ps1\n displayName: Analyze Package Sizes\n | dataset_sample\yaml\CommunityToolkit_WindowsCommunityToolkit\azure-pipelines.yml | azure-pipelines.yml | YAML | 3,458 | 0.8 | 0 | 0.061947 | awesome-app | 446 | 2024-08-06T15:06:46.196315 | BSD-3-Clause | false | df36a3dc7fb4244c3f065138831339eb |
blank_issues_enabled: false\ncontact_links:\n - name: We've moved ➡️\n url: https://github.com/CommunityToolkit/Windows/issues/new/choose\n about: "Please file your issue in the new repository."\n - name: MVVM Toolkit, High Performance, or Diagnostic Package? \n url: https://aka.ms/toolkit/dotnet\n about: "If you have a question on these, see the .NET Community Toolkit repo:"\n | dataset_sample\yaml\CommunityToolkit_WindowsCommunityToolkit\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 392 | 0.8 | 0 | 0 | python-kit | 525 | 2024-05-04T10:24:35.214056 | GPL-3.0 | false | 1dfa4a9ad5677adb5a18c9327781c6ab |
linters:\n enable:\n - depguard # Checks for dependencies that should not be (re)introduced. See "linter-settings" for further details.\n - copyloopvar # Checks for loop variable copies in Go 1.22+\n - gofmt\n - goimports\n - gosec\n - ineffassign\n - misspell\n - nolintlint\n - revive\n - staticcheck\n - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17\n - unconvert\n - unused\n - govet\n - dupword # Checks for duplicate words in the source code\n disable:\n - errcheck\n\nissues:\n include:\n - EXC0002\n max-issues-per-linter: 0\n max-same-issues: 0\n\n exclude-dirs:\n - api\n - cluster\n - docs\n - docs/man\n - releases\n - test # e2e scripts\n\n # Only using / doesn't work due to https://github.com/golangci/golangci-lint/issues/1398.\n exclude-rules:\n - path: 'cmd[\\/]containerd[\\/]builtins[\\/]'\n text: "blank-imports:"\n - path: 'contrib[\\/]fuzz[\\/]'\n text: "exported: func name will be used as fuzz.Fuzz"\n - path: 'archive[\\/]tarheader[\\/]'\n # conversion is necessary on Linux, unnecessary on macOS\n text: "unnecessary conversion"\n - path: 'integration[\\/]client'\n text: "dot-imports:"\n - linters:\n - revive\n text: "if-return"\n - linters:\n - revive\n text: "empty-block"\n - linters:\n - revive\n text: "superfluous-else"\n - linters:\n - revive\n text: "unused-parameter"\n - linters:\n - revive\n text: "unreachable-code"\n - linters:\n - revive\n text: "redefines-builtin-id"\n - linters:\n - forbidigo\n text: 'use of `regexp.MustCompile` forbidden'\n path: _test\.go\n\nlinters-settings:\n depguard:\n rules:\n main:\n deny:\n - pkg: github.com/opencontainers/runc\n desc: We don't want to depend on runc (libcontainer), unless there is no other option; see https://github.com/opencontainers/runc/issues/3028.\n forbidigo:\n forbid:\n - pkg: ^regexp$\n p: ^regexp\.MustCompile\n msg: Use internal/lazyregexp.New instead.\n\n gosec:\n # The following issues surfaced when `gosec` linter\n # was enabled. They are temporarily excluded to unblock\n # the existing workflow, but still to be addressed by\n # future works.\n excludes:\n - G204\n - G305\n - G306\n - G402\n - G404\n - G115\n nolintlint:\n allow-unused: true\n\nrun:\n timeout: 8m\n | dataset_sample\yaml\containerd_containerd\.golangci.yml | .golangci.yml | YAML | 2,435 | 0.95 | 0.05102 | 0.065217 | node-utils | 634 | 2025-05-22T13:05:43.968320 | MIT | false | 9c5da53cffe8d641724d3ce87f4e713e |
---\n\n# Main collection of env. vars to set for all tasks and scripts.\nenv:\n ####\n #### Global variables used for all tasks\n ####\n # Sane (default) value for GOPROXY and GOSUMDB.\n GOPROXY: "https://proxy.golang.org,direct"\n GOSUMDB: "sum.golang.org"\n # Overrides default location (/tmp/cirrus) for repo clone\n GOPATH: &gopath "/var/tmp/go"\n GOCACHE: "${GOPATH}/cache"\n GOSRC: &gosrc "/var/tmp/go/src/github.com/containers/podman"\n CIRRUS_WORKING_DIR: *gosrc\n # The default is 'sh' if unspecified\n CIRRUS_SHELL: "/bin/bash"\n # Save a little typing (path relative to $CIRRUS_WORKING_DIR)\n SCRIPT_BASE: "./contrib/cirrus"\n # Runner statistics log file path/name\n STATS_LOGFILE_SFX: 'runner_stats.log'\n STATS_LOGFILE: '$GOSRC/${CIRRUS_TASK_NAME}-${STATS_LOGFILE_SFX}'\n\n ####\n #### Cache-image names to test with (double-quotes around names are critical)\n ####\n FEDORA_NAME: "fedora-42"\n FEDORA_AARCH64_NAME: "${FEDORA_NAME}-aarch64"\n PRIOR_FEDORA_NAME: "fedora-41"\n RAWHIDE_NAME: "rawhide"\n DEBIAN_NAME: "debian-13"\n\n # Image identifiers\n IMAGE_SUFFIX: "c20250422t130822z-f42f41d13"\n\n # EC2 images\n FEDORA_AMI: "fedora-aws-${IMAGE_SUFFIX}"\n FEDORA_AARCH64_AMI: "fedora-podman-aws-arm64-${IMAGE_SUFFIX}"\n # GCP Images\n FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"\n PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"\n RAWHIDE_CACHE_IMAGE_NAME: "rawhide-${IMAGE_SUFFIX}"\n DEBIAN_CACHE_IMAGE_NAME: "debian-${IMAGE_SUFFIX}"\n # Container FQIN's\n FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"\n PRIOR_FEDORA_CONTAINER_FQIN: "quay.io/libpod/prior-fedora_podman:${IMAGE_SUFFIX}"\n WINDOWS_AMI: "win-server-wsl-${IMAGE_SUFFIX}"\n ####\n #### Control variables that determine what to run and how to run it.\n #### N/B: Required ALL of these are set for every single task.\n ####\n TEST_FLAVOR: # int, sys, ext_svc, validate, automation, etc.\n TEST_ENVIRON: host # 'host', or 'container'.\n PODBIN_NAME: podman # 'podman' or 'remote'\n PRIV_NAME: root # 'root' or 'rootless'\n DISTRO_NV: # any {PRIOR_,}{FEDORA,DEBIAN}_NAME value\n VM_IMAGE_NAME: # One of the "Google-cloud VM Images" (above)\n CTR_FQIN: # One of the "Container FQIN's" (above)\n CI_DESIRED_RUNTIME: crun # As of 2024-05-28 there are no other supported runtimes\n CI_DESIRED_DATABASE: sqlite # 'sqlite' or 'boltdb'\n CI_DESIRED_STORAGE: overlay # overlay, vfs, or composefs (which is actually overlay)\n\n # Curl-command prefix for downloading task artifacts, simply add the\n # the url-encoded task name, artifact name, and path as a suffix.\n ART_URL: https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}\n ARTCURL: >-\n curl --retry 5 --retry-delay 8 --fail --location -O\n --url ${ART_URL}\n\n\n# Default timeout for each task\ntimeout_in: 20m\n\n\ngcp_credentials: ENCRYPTED[a28959877b2c9c36f151781b0a05407218cda646c7d047fc556e42f55e097e897ab63ee78369dae141dcf0b46a9d0cdd]\n\naws_credentials: ENCRYPTED[4ca070bffe28eb9b27d63c568b52970dd46f119c3a83b8e443241e895dbf1737580b4d84eed27a311a2b74287ef9f79f]\n\n\nvalidate-source_task:\n name: "Validate source code changes"\n alias: validate-source\n # This task is primarily intended to catch human-errors early on, in a\n # PR context. Skip running it everywhere else.\n only_if: &is_pr "$CIRRUS_PR != ''"\n gce_instance:\n image_project: libpod-218412\n zone: "us-central1-a"\n # golangci-lint is a very, very hungry beast.\n cpu: 8\n memory: "16Gb"\n # Required to be 200gig, do not modify - has i/o performance impact\n # according to gcloud CLI tool warning messages.\n disk: 200\n image_name: "${FEDORA_CACHE_IMAGE_NAME}" # from stdenvars\n env:\n TEST_FLAVOR: validate-source\n # NOTE: The default way Cirrus-CI clones is *NOT* compatible with\n # environment expectations in contrib/cirrus/lib.sh. Specifically\n # the 'origin' remote must be defined, and all remote branches/tags\n # must be available for reference from CI scripts.\n clone_script: &full_clone |\n set -exo pipefail\n cd /\n rm -rf $CIRRUS_WORKING_DIR\n mkdir -p $CIRRUS_WORKING_DIR\n if [[ -z "$CIRRUS_PR" ]]; then\n DEST_BRANCH="$CIRRUS_BRANCH"\n else\n DEST_BRANCH="$CIRRUS_BASE_BRANCH"\n fi\n git clone --recursive --branch=$DEST_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR\n cd $CIRRUS_WORKING_DIR\n git remote update origin\n if [[ -n "$CIRRUS_PR" ]]; then # running for a PR\n git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR\n git checkout pull/$CIRRUS_PR\n else\n git reset --hard $CIRRUS_CHANGE_IN_REPO\n fi\n # Standard setup stage call, used by nearly every task in CI.\n setup_script: &setup '$GOSRC/$SCRIPT_BASE/setup_environment.sh'\n golangci-lint_cache:\n folder: /root/.cache/golangci-lint\n reupload_on_changes: true\n fingerprint_script:\n - go version\n - grep GOLANGCI_LINT_VERSION Makefile | head -1\n # Standard main execution stage call, used by nearly every task in CI.\n main_script: &main '/usr/bin/time --verbose --output="$STATS_LOGFILE" $GOSRC/$SCRIPT_BASE/runner.sh'\n\n\n# N/B: This matrix of build tasks are critical to CI, along with the following\n# aarch64 task. They build binaries for all CI platforms, and versions. On\n# success, the contents of the repository are preserved as an artifact for\n# consumption by most subsequent CI tasks. This saves about 3-5 minutes of\n# otherwise duplicative effort in most tasks.\nbuild_task:\n alias: 'build'\n name: 'Build for $DISTRO_NV' # N/B: Referenced by URLencoded strings elsewhere\n gce_instance: &fastvm\n image_project: libpod-218412\n zone: "us-central1-a"\n cpu: 4\n memory: "4Gb"\n # Required to be 200gig, do not modify - has i/o performance impact\n # according to gcloud CLI tool warning messages.\n disk: 200\n image_name: "${VM_IMAGE_NAME}" # from stdenvars\n matrix: &platform_axis\n # Ref: https://cirrus-ci.org/guide/writing-tasks/#matrix-modification\n - env: &stdenvars\n DISTRO_NV: ${FEDORA_NAME}\n # Not used here, is used in other tasks\n VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n - env:\n DISTRO_NV: ${PRIOR_FEDORA_NAME}\n VM_IMAGE_NAME: ${PRIOR_FEDORA_CACHE_IMAGE_NAME}\n CTR_FQIN: ${PRIOR_FEDORA_CONTAINER_FQIN}\n CI_DESIRED_DATABASE: boltdb\n CI_DESIRED_STORAGE: vfs\n - env:\n <<: *stdenvars\n DISTRO_NV: ${RAWHIDE_NAME}\n VM_IMAGE_NAME: ${RAWHIDE_CACHE_IMAGE_NAME}\n CI_DESIRED_STORAGE: composefs\n CTR_FQIN: ""\n - env:\n DISTRO_NV: ${DEBIAN_NAME}\n VM_IMAGE_NAME: ${DEBIAN_CACHE_IMAGE_NAME}\n env:\n TEST_FLAVOR: build\n clone_script: *full_clone\n # Attempt to prevent flakes by confirming basic environment expectations,\n # network service connectivity and essential container image availability.\n # TODO: Rename to "ci-sanity" and move into task that runs in parallel to build\n prebuild_script: &prebuild $SCRIPT_BASE/prebuild.sh\n setup_script: *setup\n # Attempt to prevent flakes by confirming automation environment and\n # all required external/3rd-party services are available and functional.\n main_script: *main\n # Attempt to catch code-quality and vendoring problems early.\n postbuild_script: &postbuild $SCRIPT_BASE/postbuild.sh\n # Cirrus-CI is very slow uploading one file at time, and the repo contains\n # thousands of files. Speed this up by archiving into tarball first.\n repo_prep_script: &repo_prep >-\n tar --zstd -cf /tmp/repo.tar.zst -C $GOSRC . && mv /tmp/repo.tar.zst $GOSRC/\n repo_artifacts: &repo_artifacts\n path: ./repo.tar.zst\n type: application/octet-stream\n always: &runner_stats\n runner_stats_artifacts:\n path: ./*-${STATS_LOGFILE_SFX}\n type: text/plain\n\n\nbuild_aarch64_task:\n alias: 'build_aarch64'\n name: 'Build for $DISTRO_NV'\n ec2_instance: &standard_build_ec2_aarch64\n image: ${VM_IMAGE_NAME}\n type: ${EC2_INST_TYPE}\n region: us-east-1\n architecture: arm64 # CAUTION: This has to be "arm64", not "aarch64".\n env: &stdenvars_aarch64\n EC2_INST_TYPE: "t4g.xlarge"\n DISTRO_NV: ${FEDORA_AARCH64_NAME}\n VM_IMAGE_NAME: ${FEDORA_AARCH64_AMI}\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n TEST_FLAVOR: build\n clone_script: *full_clone\n # TODO: Rename to "ci-sanity" and move into task that runs in parallel to build\n prebuild_script: *prebuild\n setup_script: *setup\n postbuild_script: *postbuild\n main_script: *main\n # Cirrus-CI is very slow uploading one file at time, and the repo contains\n # thousands of files. Speed this up by archiving into tarball first.\n repo_prep_script: *repo_prep\n repo_artifacts: *repo_artifacts\n always: *runner_stats\n\n\n# There are several other important variations of podman which\n# must always build successfully. Most of them are handled in\n# this task, though a few need dedicated tasks which follow.\nalt_build_task:\n name: "$ALT_NAME"\n alias: alt_build\n # Don't create task on rhel-release builds\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: &no_rhel_release |\n $CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&\n $CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'\n env:\n <<: *stdenvars\n TEST_FLAVOR: "altbuild"\n gce_instance: *fastvm\n matrix:\n - env:\n ALT_NAME: 'Build Each Commit'\n - env:\n # TODO: Replace with task using `winmake` to build\n # binary and archive installation zip file.\n ALT_NAME: 'Windows Cross' # N/B: Referenced by URLencoded strings elsewhere\n - env:\n ALT_NAME: 'Alt Arch. x86 Cross'\n - env:\n ALT_NAME: 'Alt Arch. ARM Cross'\n - env:\n ALT_NAME: 'Alt Arch. MIPS Cross'\n - env:\n ALT_NAME: 'Alt Arch. MIPS64 Cross'\n - env:\n ALT_NAME: 'Alt Arch. Other Cross'\n # This task cannot make use of the shared repo.tar.zst artifact.\n clone_script: *full_clone\n setup_script: *setup\n main_script: *main\n # Produce a new repo.tar.zst artifact for consumption by 'artifacts' task.\n repo_prep_script: *repo_prep\n repo_artifacts: *repo_artifacts\n always: *runner_stats\n\n\n# Confirm building the remote client, natively on a Mac OS-X VM.\nosx_alt_build_task:\n name: "Build for MacOS amd64+arm64" # N/B: Referenced by URLencoded strings elsewhere\n alias: osx_alt_build\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *no_rhel_release # RHEL never releases podman mac installer binary\n persistent_worker: &mac_pw\n labels:\n os: darwin\n arch: arm64\n purpose: prod\n env: &mac_env\n CIRRUS_SHELL: "/bin/bash" # sh is the default\n CIRRUS_WORKING_DIR: "$HOME/ci/task-${CIRRUS_TASK_ID}" # Isolation: $HOME will be set to "ci" dir.\n # Prevent cache-pollution fron one task to the next.\n GOPATH: "$CIRRUS_WORKING_DIR/.go"\n GOCACHE: "$CIRRUS_WORKING_DIR/.go/cache"\n GOENV: "$CIRRUS_WORKING_DIR/.go/support"\n GOSRC: "$HOME/ci/task-${CIRRUS_TASK_ID}"\n clone_script: *full_clone\n # This host is/was shared with potentially many other CI tasks.\n # The previous task may have been canceled or aborted.\n prep_script: &mac_cleanup "contrib/cirrus/mac_cleanup.sh"\n lint_script:\n - make golangci-lint\n basic_build_script:\n - make .install.ginkgo\n - make podman-remote\n - make podman-mac-helper\n build_pkginstaller_script:\n - pushd contrib/pkginstaller\n - make ARCH=amd64 NO_CODESIGN=1 pkginstaller\n - make ARCH=aarch64 NO_CODESIGN=1 pkginstaller\n - make ARCH=universal NO_CODESIGN=1 pkginstaller\n - popd\n build_amd64_script:\n - make podman-remote-release-darwin_amd64.zip\n # Building arm podman needs to be the last thing built in this task\n # The Mac tests rely this Podman binary to run, and the CI Mac is ARM-based\n build_arm64_script:\n - make podman-remote-release-darwin_arm64.zip\n # Produce a new repo.tar.zst artifact for consumption by dependent tasks.\n repo_prep_script: *repo_prep\n repo_artifacts: *repo_artifacts\n # This host is/was shared with potentially many other CI tasks.\n # Ensure nothing is left running while waiting for the next task.\n always:\n task_cleanup_script: *mac_cleanup\n\n\n# Build freebsd release natively on a FreeBSD VM.\nfreebsd_alt_build_task:\n name: "FreeBSD Cross"\n alias: freebsd_alt_build\n # Only run on 'main' and PRs against 'main'\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_BASE_BRANCH == 'main'\n env:\n <<: *stdenvars\n # Functional FreeBSD builds must be built natively since they depend on CGO\n DISTRO_NV: freebsd-13\n VM_IMAGE_NAME: notyet\n CTR_FQIN: notyet\n CIRRUS_SHELL: "/bin/sh"\n TEST_FLAVOR: "altbuild"\n ALT_NAME: 'FreeBSD Cross'\n freebsd_instance:\n image_family: freebsd-13-4\n # golangci-lint is a very, very hungry beast.\n cpu: 4\n memory: 8Gb\n setup_script:\n - pkg install -y gpgme bash go-md2man gmake gsed gnugrep go pkgconf zstd\n - go version # Downloads a new go version based on go.mod's go directive.\n golint_cache:\n folder: ~/.cache/golangci-lint\n reupload_on_changes: true\n fingerprint_script:\n - go version\n - grep GOLANGCI_LINT_VERSION Makefile | head -1\n lint_script:\n - gmake golangci-lint\n build_amd64_script:\n - gmake podman-release\n # This task cannot make use of the shared repo.tar.zst artifact and must\n # produce a new repo.tar.zst artifact for consumption by 'artifacts' task.\n repo_prep_script: *repo_prep\n repo_artifacts: *repo_artifacts\n\n\n# Status aggregator for all builds. This task simply makes dependency\n# management easier, and results in a simpler graph that using YAML\n# anchors/aliases.\nbuild_success_task:\n name: "Total Build Success"\n alias: build_success\n depends_on:\n - validate-source\n - build\n - build_aarch64\n - alt_build\n - osx_alt_build\n - freebsd_alt_build\n env:\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n container: &smallcontainer\n image: ${CTR_FQIN}\n # Resources are limited across ALL currently executing tasks\n # ref: https://cirrus-ci.org/guide/linux/#linux-containers\n cpu: 1\n memory: 1\n clone_script: &noop mkdir -p "$CIRRUS_WORKING_DIR"\n script: *noop\n\n\n# Exercise the "libpod" API with a small set of common\n# operations to ensure they are functional.\nbindings_task:\n name: "Test Bindings"\n alias: bindings\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - bindings test code is changed; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('pkg/bindings/test/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: &build\n - build_success\n gce_instance: &standardvm\n <<: *fastvm\n cpu: 2\n env:\n <<: *stdenvars\n TEST_FLAVOR: bindings\n # N/B: This script depends on ${DISTRO_NV} being defined for the task.\n clone_script: &get_gosrc |\n cd /tmp\n echo "$ARTCURL/Build%20for%20${DISTRO_NV}/repo/repo.tar.zst"\n time $ARTCURL/Build%20for%20${DISTRO_NV}/repo/repo.tar.zst\n time tar -xf /tmp/repo.tar.zst -C $GOSRC\n setup_script: *setup\n main_script: *main\n always: &logs_artifacts\n <<: *runner_stats\n # Required for `contrib/cirrus/logformatter` to work properly\n html_artifacts:\n path: ./*.html\n type: text/html\n server_log_artifacts:\n path: ./podman-server.log\n type: text/plain\n cleanup_tracer_artifacts:\n path: ./podman-cleanup-tracer.log\n type: text/plain\n df_script: '$SCRIPT_BASE/logcollector.sh df'\n audit_log_script: '$SCRIPT_BASE/logcollector.sh audit'\n journal_script: '$SCRIPT_BASE/logcollector.sh journal'\n podman_system_info_script: '$SCRIPT_BASE/logcollector.sh podman'\n time_script: '$SCRIPT_BASE/logcollector.sh time'\n\n\n# Build the "libpod" API documentation `swagger.yaml` and\n# publish it to google-cloud-storage (GCS).\nswagger_task:\n name: "Test Swagger"\n alias: swagger\n depends_on: *build\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: swagger\n CTR_FQIN: 'quay.io/libpod/gcsupld:${IMAGE_SUFFIX}'\n GCPJSON: ENCRYPTED[927dc01e755eaddb4242b0845cf86c9098d1e3dffac38c70aefb1487fd8b4fe6dd6ae627b3bffafaba70e2c63172664e]\n GCPNAME: ENCRYPTED[c145e9c16b6fb88d476944a454bf4c1ccc84bb4ecaca73bdd28bdacef0dfa7959ebc8171a27b2e4064d66093b2cdba49]\n GCPPROJECT: 'libpod-218412'\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always:\n <<: *runner_stats\n swagger_artifacts:\n path: ./swagger.yaml\n type: text/plain\n\n\nwin_installer_task:\n name: "Verify Win Installer Build"\n matrix:\n - env:\n CONTAINERS_MACHINE_PROVIDER: 'wsl'\n - env:\n CONTAINERS_MACHINE_PROVIDER: 'hyperv'\n alias: win_installer\n only_if: *no_rhel_release\n depends_on: *build\n ec2_instance: &windows\n image: "${WINDOWS_AMI}"\n type: m5.large\n region: us-east-1\n platform: windows\n env: &winenv\n CIRRUS_WORKING_DIR: &wincwd "${LOCALAPPDATA}\\cirrus-ci-build"\n CIRRUS_SHELL: powershell\n PATH: "${PATH};C:\\ProgramData\\chocolatey\\bin"\n DISTRO_NV: "windows"\n PRIV_NAME: "rootless"\n # Fake version, we are only testing the installer functions, so version doesn't matter\n WIN_INST_VER: 9.9.9\n # It's HIGHLY desireable to use the same binary throughout CI. Otherwise, if\n # there's a toolchain or build-environment specific problem, it can be incredibly\n # difficult (and non-obvious) to debug.\n clone_script: &winclone |\n $ErrorActionPreference = 'Stop'\n $ProgressPreference = 'SilentlyContinue'\n New-Item -ItemType Directory -Force -Path "$ENV:CIRRUS_WORKING_DIR"\n Set-Location "$ENV:CIRRUS_WORKING_DIR"\n $uri = "${ENV:ART_URL}/Windows Cross/repo/repo.tar.zst"\n Write-Host "Downloading $uri"\n For($i = 0;;) {\n Try {\n Invoke-WebRequest -UseBasicParsing -ErrorAction Stop -OutFile "repo.tar.zst" `\n -Uri "$uri"\n Break\n } Catch {\n if (++$i -gt 6) {\n throw $_.Exception\n }\n Write-Host "Download failed - retrying:" $_.Exception.Response.StatusCode\n Start-Sleep -Seconds 10\n }\n }\n Write-Host "zstd -d repo.tar.zst"\n zstd -d repo.tar.zst\n if ($LASTEXITCODE -ne 0) {\n throw "Extract repo.tar.zst failed"\n Exit 1\n }\n Write-Host "arc unarchive repo.tar .\"\n arc unarchive repo.tar .\repo\n if ($LASTEXITCODE -ne 0) {\n throw "Unarchive repo.tar failed"\n Exit 1\n }\n Get-ChildItem -Path .\n Get-ChildItem -Path .\repo\n main_script: ".\\repo\\contrib\\cirrus\\win-installer-main.ps1"\n\n\n# Verify podman is compatible with the docker python-module.\ndocker-py_test_task:\n name: Docker-py Compat.\n alias: docker-py_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - docker-py test code is changed; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/python/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: docker-py\n TEST_ENVIRON: container\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *runner_stats\n\n\n# Does exactly what it says, execute the podman unit-tests on Fedora.\nunit_test_task:\n name: "Unit tests on $DISTRO_NV"\n alias: unit_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - unit test files are changed (contains a false positves such as test/e2e/\n # but that should not be an issue, it only runs when it doesn't have to)\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('**/*_test.go') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n matrix:\n - env: *stdenvars\n # Special-case: Rootless on latest Fedora (standard) VM\n - name: "Rootless unit on $DISTRO_NV"\n env:\n <<: *stdenvars\n PRIV_NAME: rootless\n gce_instance: *standardvm\n env:\n TEST_FLAVOR: unit\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\nunit_test_windows_task:\n name: "Unit tests on Windows"\n alias: unit_test_windows\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - unit test files are changed (contains a false positves such as test/e2e/\n # but that should not be an issue, it only runs when it doesn't have to)\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('winmake.ps1') ||\n changesInclude('**/*_test.go') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n # Special case, we do not run macos/windows builds on rhel branches.\n # Thus the machine task should not be run too, while we use only_if\n # everywhere to do so here it would mean we would need duplicate the\n # full big only_if condition which is more difficult to maintain so\n # use the skip here.\n skip: &skip_rhel_release |\n $CIRRUS_BRANCH =~ 'v[0-9\.]+-rhel' ||\n $CIRRUS_BASE_BRANCH =~ 'v[0-9\.]+-rhel'\n depends_on: *build\n ec2_instance: *windows\n timeout_in: 20m\n env:\n <<: *winenv\n TEST_FLAVOR: unit\n clone_script: *winclone\n main_script: ".\\repo\\contrib\\cirrus\\win-unit-main.ps1"\n always:\n # Required for `contrib/cirrus/logformatter` to work properly\n html_artifacts:\n path: ./*.html\n type: text/html\n\n\napiv2_test_task:\n name: "APIv2 test on $DISTRO_NV ($PRIV_NAME)"\n alias: apiv2_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - apiv2 test code is changed; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/apiv2/**', 'test/python/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: apiv2\n matrix:\n - env:\n PRIV_NAME: root\n - env:\n PRIV_NAME: rootless\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\ncompose_test_task:\n name: "$TEST_FLAVOR test on $DISTRO_NV ($PRIV_NAME)"\n alias: compose_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - compose test code is changed; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/compose/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n gce_instance: *standardvm\n matrix:\n - env:\n PRIV_NAME: root\n - env:\n PRIV_NAME: rootless\n env:\n <<: *stdenvars\n TEST_FLAVOR: compose_v2\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\n# versions, as root, without involving the podman-remote client.\nlocal_integration_test_task: &local_integration_test_task\n # Integration-test task name convention:\n # <int.|sys.> <podman|remote> <Distro NV> <root|rootless>\n name: &std_name_fmt "$TEST_FLAVOR $PODBIN_NAME $DISTRO_NV $PRIV_NAME $TEST_ENVIRON ${CI_DESIRED_DATABASE}"\n alias: local_integration_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - int test code is changed; or\n # - actual source code changed\n only_if: &only_if_int_test >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/e2e/**', 'test/utils/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n matrix: *platform_axis\n # integration tests scale well with cpu as they are parallelized\n # so we give these tests 4 cores to make them faster\n gce_instance: *fastvm\n env:\n TEST_FLAVOR: int\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: &int_logs_artifacts\n <<: *logs_artifacts\n ginkgo_node_logs_artifacts:\n path: ./test/e2e/ginkgo-node-*.log\n type: text/plain\n\n\n# Nearly identical to `local_integration_test` except all operations\n# are performed through the podman-remote client vs a podman "server"\n# running on the same host.\nremote_integration_test_task:\n <<: *local_integration_test_task\n alias: remote_integration_test\n env:\n TEST_FLAVOR: int\n PODBIN_NAME: remote\n\n\n# Run the complete set of integration tests from inside a container.\n# This verifies all/most operations function with "podman-in-podman".\ncontainer_integration_test_task:\n name: *std_name_fmt\n alias: container_integration_test\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *only_if_int_test\n depends_on: *build\n matrix: &fedora_vm_axis\n - env:\n DISTRO_NV: ${FEDORA_NAME}\n VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n - env:\n DISTRO_NV: ${PRIOR_FEDORA_NAME}\n VM_IMAGE_NAME: ${PRIOR_FEDORA_CACHE_IMAGE_NAME}\n CTR_FQIN: ${PRIOR_FEDORA_CONTAINER_FQIN}\n CI_DESIRED_DATABASE: boltdb\n gce_instance: *fastvm\n env:\n TEST_FLAVOR: int\n TEST_ENVIRON: container\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *int_logs_artifacts\n\n\n# Execute most integration tests as a regular (non-root) user.\nrootless_integration_test_task:\n name: *std_name_fmt\n alias: rootless_integration_test\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *only_if_int_test\n depends_on: *build\n matrix: *platform_axis\n gce_instance: *fastvm\n env:\n TEST_FLAVOR: int\n PRIV_NAME: rootless\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *int_logs_artifacts\n\n\npodman_machine_task:\n name: *std_name_fmt\n alias: podman_machine\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - machine code files are changed\n only_if: &only_if_machine_test >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('cmd/podman/machine/**', 'pkg/machine/**', '**/*machine*.go')\n depends_on: *build\n ec2_instance:\n image: "${VM_IMAGE_NAME}"\n type: "${EC2_INST_TYPE}"\n region: us-east-1\n timeout_in: 30m\n env:\n EC2_INST_TYPE: "m5zn.metal" # Bare-metal instance is required\n TEST_FLAVOR: "machine-linux"\n PRIV_NAME: "rootless" # intended use-case\n DISTRO_NV: "${FEDORA_NAME}"\n VM_IMAGE_NAME: "${FEDORA_AMI}"\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *int_logs_artifacts\n\n\npodman_machine_aarch64_task:\n name: *std_name_fmt\n alias: podman_machine_aarch64\n only_if: *only_if_machine_test\n depends_on: *build\n ec2_instance:\n <<: *standard_build_ec2_aarch64\n timeout_in: 30m\n env:\n TEST_FLAVOR: "machine-linux"\n EC2_INST_TYPE: c6g.metal\n PRIV_NAME: "rootless" # intended use-case\n DISTRO_NV: "${FEDORA_AARCH64_NAME}"\n VM_IMAGE_NAME: "${FEDORA_AARCH64_AMI}"\n clone_script: &get_gosrc_aarch64 |\n cd /tmp\n echo "$ARTCURL/build_aarch64/repo/repo.tar.zst"\n time $ARTCURL/build_aarch64/repo/repo.tar.zst\n time tar -xf /tmp/repo.tar.zst -C $GOSRC\n setup_script: *setup\n main_script: *main\n always: *int_logs_artifacts\n\n\npodman_machine_windows_task:\n name: *std_name_fmt\n alias: podman_machine_windows\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *only_if_machine_test\n # Special case, we do not run macos/windows builds on rhel branches.\n # Thus the machine task should not be run too, while we use only_if\n # everywhere to do so here it would mean we would need duplicate the\n # full big only_if condition which is more difficult to maintain so\n # use the skip here.\n skip: *skip_rhel_release\n depends_on: *build\n ec2_instance:\n <<: *windows\n type: z1d.metal\n platform: windows\n timeout_in: 60m\n env: *winenv\n matrix:\n - env:\n TEST_FLAVOR: "machine-wsl"\n - env:\n TEST_FLAVOR: "machine-hyperv"\n clone_script: *winclone\n # This depends on an instance with an local NVMe storage so we can make use of fast IO\n # Our machine tests are IO bound so this is rather imporant to speed them up a lot.\n setup_disk_script: |\n echo "Get-Disk"\n Get-Disk | Ft -autosize | out-string -width 4096\n # Hard coded to disk 0, assume that this is always the case for our ec2 instance.\n # It is not clear to me how I would filter by name because we still have two disks\n # with the same name.\n echo "Format and mount disk 0"\n $disk = Get-Disk 0\n $disk | Initialize-Disk -PartitionStyle MBR\n $disk | New-Partition -UseMaximumSize -MbrType IFS\n $Partition = Get-Partition -DiskNumber $disk.Number\n $Partition | Format-Volume -FileSystem NTFS -Confirm:$false\n $Partition | Add-PartitionAccessPath -AccessPath "Z:\"\n echo "Get-Volume"\n Get-Volume\n main_script: ".\\repo\\contrib\\cirrus\\win-podman-machine-main.ps1"\n always:\n # Required for `contrib/cirrus/logformatter` to work properly\n html_artifacts:\n path: ./*.html\n type: text/html\n\n\npodman_machine_mac_task:\n name: *std_name_fmt\n alias: podman_machine_mac\n only_if: *only_if_machine_test\n skip: *skip_rhel_release\n depends_on: *build\n persistent_worker: *mac_pw\n timeout_in: 60m\n env:\n <<: *mac_env\n DISTRO_NV: "darwin"\n PRIV_NAME: "rootless" # intended use-case\n matrix:\n - env:\n # See contrib/cirrus/mac_runner.sh\n TEST_FLAVOR: "machine-applehv"\n - env:\n # See contrib/cirrus/mac_runner.sh\n TEST_FLAVOR: "machine-libkrun"\n clone_script: # artifacts from osx_alt_build_task\n - mkdir -p $CIRRUS_WORKING_DIR\n - cd $CIRRUS_WORKING_DIR\n - $ARTCURL/Build%20for%20MacOS%20amd64%2Barm64/repo/repo.tar.zst\n - tar -xf repo.tar.zst\n # This host is/was shared with potentially many other CI tasks.\n # The previous task may have been canceled or aborted.\n prep_script: *mac_cleanup\n setup_script: "contrib/cirrus/mac_setup.sh"\n env_script: "contrib/cirrus/mac_env.sh"\n # TODO: Timeout bumped b/c initial image download (~5min) and VM\n # resize (~2min) causes test-timeout (90s default). Should\n # tests deal with this internally?\n test_script:\n - "contrib/cirrus/mac_runner.sh"\n # This host is/was shared with potentially many other CI tasks.\n # Ensure nothing is left running while waiting for the next task.\n always:\n # Required for `contrib/cirrus/logformatter` to work properly\n html_artifacts:\n path: ./*.html\n type: text/html\n task_cleanup_script: *mac_cleanup\n\n\n# Always run subsequent to integration tests. While parallelism is lost\n# with runtime, debugging system-test failures can be more challenging\n# for some golang developers. Otherwise the following tasks run across\n# the same matrix as the integration-tests (above).\nlocal_system_test_task: &local_system_test_task\n name: *std_name_fmt\n alias: local_system_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - sys test code is changed; or\n # - actual source code changed\n only_if: &only_if_system_test >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/system/**') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n matrix: *platform_axis\n gce_instance: *fastvm\n timeout_in: 25m\n env:\n TEST_FLAVOR: sys\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\nlocal_system_test_aarch64_task: &local_system_test_task_aarch64\n name: *std_name_fmt\n alias: local_system_test_aarch64\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *only_if_system_test\n depends_on: *build\n ec2_instance: *standard_build_ec2_aarch64\n timeout_in: 35m\n env:\n <<: *stdenvars_aarch64\n TEST_FLAVOR: sys\n DISTRO_NV: ${FEDORA_AARCH64_NAME}\n clone_script: *get_gosrc_aarch64\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\nremote_system_test_task:\n <<: *local_system_test_task\n alias: remote_system_test\n env:\n TEST_FLAVOR: sys\n PODBIN_NAME: remote\n\n\nremote_system_test_aarch64_task:\n <<: *local_system_test_task_aarch64\n alias: remote_system_test_aarch64\n env:\n TEST_FLAVOR: sys\n PODBIN_NAME: remote\n\n\nrootless_remote_system_test_task:\n matrix:\n # Minimal sanity testing: only the latest Fedora\n - env:\n DISTRO_NV: ${FEDORA_NAME}\n # Not used here, is used in other tasks\n VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n <<: *local_system_test_task\n alias: rootless_remote_system_test\n gce_instance: *fastvm\n timeout_in: 25m\n env:\n TEST_FLAVOR: sys\n PODBIN_NAME: remote\n PRIV_NAME: rootless\n\n\nrootless_system_test_task:\n name: *std_name_fmt\n alias: rootless_system_test\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *only_if_system_test\n depends_on: *build\n matrix: *platform_axis\n gce_instance: *fastvm\n timeout_in: 25m\n env:\n TEST_FLAVOR: sys\n PRIV_NAME: rootless\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\nfarm_test_task:\n name: *std_name_fmt\n alias: farm_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - farm test code is changed or one of the shared helper import files from the system test; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/farm/**', 'test/system/*.bash') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: farm\n PRIV_NAME: rootless\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\nbuildah_bud_test_task:\n name: *std_name_fmt\n alias: buildah_bud_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - podman build source code files or bud tests files are changed\n # (vendor updates, i.e. buildah, are already covered in the main rules)\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('**/*build*.go', 'test/buildah-bud/**')\n depends_on: *build\n env:\n <<: *stdenvars\n TEST_FLAVOR: bud\n matrix:\n - env:\n PODBIN_NAME: podman\n - env:\n PODBIN_NAME: remote\n gce_instance: *fastvm\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *int_logs_artifacts\n\nupgrade_test_task:\n name: "Upgrade test: from $PODMAN_UPGRADE_FROM"\n alias: upgrade_test\n # Docs: ./contrib/cirrus/CIModes.md (Cirrus Task contexts and runtime modes)\n # only when: - main rules (see doc above); or\n # - upgrade test code is changed or one of the shared helper import files from the system test; or\n # - actual source code changed\n only_if: >-\n $CIRRUS_PR == '' ||\n $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||\n changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||\n changesInclude('test/upgrade/**', 'test/system/*.bash') ||\n (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))\n depends_on: *build\n matrix:\n - env:\n # 2024-02: as long as possible/reasonable, try to keep\n # one version < 4.8 so we can test boltdb. v4.3.1 is\n # the lowest we can go right now, builds before that\n # have netavark <1.4 which hangs on f39 kernel (#21863).\n PODMAN_UPGRADE_FROM: v4.3.1\n - env:\n PODMAN_UPGRADE_FROM: v4.8.0\n gce_instance: *standardvm\n env:\n TEST_FLAVOR: upgrade_test\n DISTRO_NV: ${FEDORA_NAME}\n VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}\n # Never force a DB, let the old version decide its default\n CI_DESIRED_DATABASE:\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n always: *logs_artifacts\n\n\n# This task is critical. It updates the "last-used by" timestamp stored\n# in metadata for all VM images. This mechanism functions in tandem with\n# an out-of-band pruning operation to remove disused VM images.\nmeta_task:\n name: "VM img. keepalive"\n alias: meta\n container:\n cpu: 2\n memory: 2\n image: quay.io/libpod/imgts:latest\n env:\n # Space-separated list of images used by this repository state\n IMGNAMES: >-\n ${FEDORA_CACHE_IMAGE_NAME}\n ${PRIOR_FEDORA_CACHE_IMAGE_NAME}\n ${RAWHIDE_CACHE_IMAGE_NAME}\n ${DEBIAN_CACHE_IMAGE_NAME}\n EC2IMGNAMES: >-\n ${FEDORA_AARCH64_AMI}\n ${FEDORA_AMI}\n ${WINDOWS_AMI}\n BUILDID: "${CIRRUS_BUILD_ID}"\n REPOREF: "${CIRRUS_REPO_NAME}"\n AWSINI: ENCRYPTED[21b2db557171b11eb5abdbccae593f48c9caeba86dfcc4d4ff109edee9b4656ab6720a110dadfcd51e88cc59a71cc7af]\n GCPJSON: ENCRYPTED[3a198350077849c8df14b723c0f4c9fece9ebe6408d35982e7adf2105a33f8e0e166ed3ed614875a0887e1af2b8775f4]\n GCPNAME: ENCRYPTED[2f9738ef295a706f66a13891b40e8eaa92a89e0e87faf8bed66c41eca72bf76cfd190a6f2d0e8444c631fdf15ed32ef6]\n GCPPROJECT: libpod-218412\n clone_script: *noop\n script: /usr/local/bin/entrypoint.sh\n\n\n# Status aggregator for all tests. This task ensures a defined set of tasks\n# all passed, and allows confirming that based on the status of this task.\nsuccess_task:\n # N/B: The prow merge-bot (tide) is sensitized to this exact name, DO NOT CHANGE IT.\n # Ref: https://github.com/openshift/release/pull/48855\n name: "Total Success"\n alias: success\n # N/B: ALL tasks must be listed here, minus their '_task' suffix.\n depends_on:\n - build_success\n - bindings\n - swagger\n - win_installer\n - docker-py_test\n - unit_test\n - unit_test_windows\n - apiv2_test\n - compose_test\n - local_integration_test\n - remote_integration_test\n - container_integration_test\n - rootless_integration_test\n - podman_machine\n - podman_machine_aarch64\n - podman_machine_windows\n - podman_machine_mac\n - local_system_test\n - local_system_test_aarch64\n - remote_system_test\n - remote_system_test_aarch64\n - rootless_remote_system_test\n - rootless_system_test\n - farm_test\n - buildah_bud_test\n - upgrade_test\n - meta\n env:\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n container: *smallcontainer\n clone_script: *noop\n script: *noop\n\n# WARNING: Most of the artifacts captured here are also have their\n# permalinks present in the `DOWNLOADS.md` file. Any changes made\n# here, should probably be reflected in that document.\nartifacts_task:\n name: "Artifacts"\n alias: artifacts\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: *no_rhel_release\n depends_on:\n - success\n # This task is a secondary/convenience for downstream consumers, don't\n # block development progress if there is a failure in a PR, only break\n # when running on branches or tags.\n allow_failures: $CIRRUS_PR != ''\n container: *smallcontainer\n env:\n CTR_FQIN: ${FEDORA_CONTAINER_FQIN}\n TEST_ENVIRON: container\n # In order to keep the download URL and Cirrus-CI artifact.zip contents\n # simple, nothing should exist in $CIRRUS_WORKING_DIR except for artifacts.\n clone_script: *noop\n fedora_binaries_script:\n - mkdir -p /tmp/fed\n - cd /tmp/fed\n - $ARTCURL/Build%20for%20${FEDORA_NAME}/repo/repo.tar.zst\n - tar -xf repo.tar.zst\n - cp ./bin/* $CIRRUS_WORKING_DIR/\n win_binaries_script:\n - mkdir -p /tmp/win\n - cd /tmp/win\n - $ARTCURL/Windows%20Cross/repo/repo.tar.zst\n - tar -xf repo.tar.zst\n - mv ./podman-remote*.zip $CIRRUS_WORKING_DIR/\n osx_binaries_script:\n - mkdir -p /tmp/osx\n - cd /tmp/osx\n - $ARTCURL/Build%20for%20MacOS%20amd64%2Barm64/repo/repo.tar.zst\n - tar -xf repo.tar.zst\n - mv ./podman-remote-release-darwin_*.zip $CIRRUS_WORKING_DIR/\n - mv ./contrib/pkginstaller/out/podman-installer-macos-*.pkg $CIRRUS_WORKING_DIR/\n always:\n contents_script: ls -la $CIRRUS_WORKING_DIR\n # Produce downloadable files and an automatic zip-file accessible\n # by a consistent URL, based on contents of $CIRRUS_WORKING_DIR\n # Ref: https://cirrus-ci.org/guide/writing-tasks/#latest-build-artifacts\n binary_artifacts:\n path: ./*\n type: application/octet-stream\n\n\n# When a new tag is pushed, confirm that the code and commits\n# meet criteria for an official release.\nrelease_task:\n name: "Verify Release"\n alias: release\n # This should _only_ run for new tags\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: $CIRRUS_TAG != ''\n depends_on:\n - build_success\n - success\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: release\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n\n\n# When preparing to release a new version, this task may be manually\n# activated at the PR stage to verify the build is proper for a potential\n# podman release.\n#\n# Note: This cannot use a YAML alias on 'release_task' as of this\n# comment, it is incompatible with 'trigger_type: manual'\nrelease_test_task:\n name: "Optional Release Test"\n alias: release_test\n # Release-PRs always include "release" or "Bump" in the title\n # Docs: ./contrib/cirrus/CIModes.md\n only_if: $CIRRUS_CHANGE_TITLE =~ '.*((release)|(bump)).*'\n # Allow running manually only as part of release-related builds\n # see RELEASE_PROCESS.md\n trigger_type: manual\n depends_on:\n - build_success\n - success\n gce_instance: *standardvm\n env:\n <<: *stdenvars\n TEST_FLAVOR: release\n clone_script: *get_gosrc\n setup_script: *setup\n main_script: *main\n | dataset_sample\yaml\containers_podman\.cirrus.yml | .cirrus.yml | YAML | 48,000 | 0.95 | 0.03962 | 0.199831 | react-lib | 457 | 2023-07-17T23:57:21.775762 | BSD-3-Clause | false | 1a48a9ba33cd3881a0a8ead872f866b1 |
version: "2"\nrun:\n modules-download-mode: readonly\n\nformatters:\n enable:\n - gofmt\n - goimports\n exclusions:\n generated: disable\n\nlinters:\n enable:\n - asasalint\n - asciicheck\n - bidichk\n - bodyclose\n - copyloopvar\n - decorder\n - dogsled\n - durationcheck\n - errchkjson\n - exptostd\n - fatcontext\n - ginkgolinter\n - gocheckcompilerdirectives\n - gochecksumtype\n - gocritic\n - goprintffuncname\n - grouper\n - iface\n - inamedparam\n - interfacebloat\n - makezero\n - mirror\n - misspell\n - nilerr\n - nilnesserr\n - nolintlint\n - nosprintfhostport\n - prealloc\n - protogetter\n - reassign\n - recvcheck\n - revive\n - rowserrcheck\n - sqlclosecheck\n - staticcheck\n - testableexamples\n - unconvert\n - unparam\n - usestdlibvars\n - usetesting\n - wastedassign\n - whitespace\n settings:\n staticcheck:\n checks:\n - all\n - -ST1003 # https://staticcheck.dev/docs/checks/#ST1003 Poorly chosen identifier.\n - -QF1008 # https://staticcheck.dev/docs/checks/#QF1008 Omit embedded fields from selector expression.\n nolintlint:\n require-specific: true\n revive:\n rules:\n - name: unused-parameter\n disabled: true\n exclusions:\n generated: strict\n presets:\n - comments\n - std-error-handling\n rules:\n - linters:\n - recvcheck\n path: pkg/k8s.io/\n\nissues:\n max-issues-per-linter: 0\n max-same-issues: 0\n | dataset_sample\yaml\containers_podman\.golangci.yml | .golangci.yml | YAML | 1,500 | 0.95 | 0 | 0 | react-lib | 367 | 2024-03-30T15:55:26.234290 | Apache-2.0 | false | c7945101e9b3c7493d2f4d0a5db9b87a |
coverage:\n status:\n project:\n default:\n target: 50%\n threshold: null\n patch: false\n changes: false\n | dataset_sample\yaml\coredns_coredns\.codecov.yml | .codecov.yml | YAML | 128 | 0.7 | 0 | 0 | vue-tools | 417 | 2024-05-09T04:14:09.019302 | GPL-3.0 | false | 59ca0035ee38dde656664cc1459ffe39 |
version: "2"\nlinters:\n default: none\n enable:\n - govet\n - ineffassign\n - staticcheck\n - unconvert\n - unused\n - whitespace\n exclusions:\n generated: lax\n presets:\n - comments\n - common-false-positives\n - legacy\n - std-error-handling\n paths:\n - third_party$\n - builtin$\n - examples$\nformatters:\n enable:\n - gofmt\n exclusions:\n generated: lax\n paths:\n - third_party$\n - builtin$\n - examples$\n | dataset_sample\yaml\coredns_coredns\.golangci.yml | .golangci.yml | YAML | 479 | 0.7 | 0 | 0 | python-kit | 320 | 2024-12-07T04:01:48.767288 | BSD-3-Clause | false | 76ae29f2e277bacdc991852fa5005864 |
---\nlinters:\n golint:\n min_confidence: 0.85\n fixer: true\n\nfiles:\n ignore:\n - 'vendor/*'\n - 'pb/*'\n | dataset_sample\yaml\coredns_coredns\.stickler.yml | .stickler.yml | YAML | 112 | 0.8 | 0 | 0 | react-lib | 495 | 2024-02-04T17:20:16.494032 | MIT | false | e4059abdc3840ae4300394ae18d5d847 |
version: 2\n\nupdates:\n - package-ecosystem: "gomod"\n directory: "/"\n schedule:\n interval: "weekly"\n groups:\n k8s.io:\n patterns:\n - "k8s.io/*"\n go.etcd.io:\n patterns:\n - "go.etcd.io/etcd/*"\n open-pull-requests-limit: 20\n\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n open-pull-requests-limit: 20\n | dataset_sample\yaml\coredns_coredns\.github\dependabot.yml | dependabot.yml | YAML | 410 | 0.8 | 0 | 0 | node-utils | 844 | 2025-03-06T13:18:02.352535 | BSD-3-Clause | false | a33091399c3826986b9902874f5dace7 |
name: CIFuzz\non:\n pull_request:\n branches:\n - master\njobs:\n Fuzzing:\n runs-on: ubuntu-latest\n steps:\n - name: Build Fuzzers\n id: build\n uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master # cifuzz can't be pinned https://github.com/google/oss-fuzz/issues/6836\n with:\n oss-fuzz-project-name: "go-coredns"\n dry-run: false\n - name: Run Fuzzers\n uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master # cifuzz can't be pinned\n with:\n oss-fuzz-project-name: "go-coredns"\n fuzz-seconds: 600\n dry-run: false\n - name: Upload Crash\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n if: failure() && steps.build.outcome == 'success'\n with:\n name: artifacts\n path: ./out/artifacts\n | dataset_sample\yaml\coredns_coredns\.github\workflows\cifuzz.yml | cifuzz.yml | YAML | 874 | 0.8 | 0.037037 | 0 | node-utils | 350 | 2024-12-15T01:21:44.266025 | Apache-2.0 | false | 635c2200eb86e54e3f971401d3dc212a |
name: "CodeQL"\n\non:\n push:\n branches: [ master ]\n pull_request:\n branches: [ master ]\n schedule:\n - cron: '22 10 * * 4'\n\npermissions:\n contents: read\n\njobs:\n analyze:\n permissions:\n actions: read # for github/codeql-action/init to get workflow details\n contents: read # for actions/checkout to fetch code\n security-events: write # for github/codeql-action/autobuild to send a status report\n name: Analyze\n runs-on: ubuntu-latest\n\n strategy:\n fail-fast: false\n matrix:\n language: [ 'go' ]\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Initialize CodeQL\n uses: github/codeql-action/init@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 # v3.28.14\n with:\n languages: ${{ matrix.language }}\n\n - name: Autobuild\n uses: github/codeql-action/autobuild@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 # v3.28.14\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 # v3.28.14\n | dataset_sample\yaml\coredns_coredns\.github\workflows\codeql-analysis.yml | codeql-analysis.yml | YAML | 1,119 | 0.8 | 0.073171 | 0 | awesome-app | 531 | 2024-04-16T23:41:47.474442 | BSD-3-Clause | false | 74d217b12faf8c5063e44567379211c4 |
name: 'Dependency Review'\non: [pull_request]\n\npermissions:\n contents: read\n\njobs:\n dependency-review:\n runs-on: ubuntu-latest\n steps:\n - name: 'Checkout Repository'\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: 'Dependency Review'\n uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8\n | dataset_sample\yaml\coredns_coredns\.github\workflows\depsreview.yml | depsreview.yml | YAML | 382 | 0.8 | 0 | 0 | vue-tools | 409 | 2024-11-05T10:47:00.569667 | BSD-3-Clause | false | 1afdd0ae11faaec5e2a93ce4b06f4538 |
name: Docker Release\n\non:\n release:\n types: [published]\n workflow_dispatch:\n inputs:\n release:\n description: "Release (e.g., v1.9.0)"\n required: true\n\npermissions:\n contents: read\n\njobs:\n docker-release:\n runs-on: ubuntu-latest\n env:\n DOCKER_LOGIN: ${{ secrets.DOCKERHUB_USERNAME }}\n DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}\n RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Build Docker Images\n run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker release\n - name: Show Docker Images\n run: docker images\n - name: Docker login\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_PASSWORD }}\n - name: Publish Docker Images\n run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker docker-push\n | dataset_sample\yaml\coredns_coredns\.github\workflows\docker.yml | docker.yml | YAML | 1,086 | 0.95 | 0 | 0 | react-lib | 660 | 2024-09-12T07:03:37.130908 | GPL-3.0 | false | 6550fe8991d4c91ba462ce02a6d9ebe1 |
name: Go Coverage\non: [pull_request]\npermissions:\n contents: read\n\njobs:\n test:\n name: Coverage\n runs-on: ubuntu-latest\n steps:\n - name: Check out code\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Setup Go Version\n run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV\n\n - name: Install Go\n uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0\n with:\n go-version: ${{ env.GO_VERSION }}\n id: go\n\n - name: Build\n run: go build -v ./...\n\n - name: Test With Coverage\n run: |\n go install github.com/fatih/faillint@latest\n for d in request core coremain plugin test; do \\n ( cd $d; go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt ); \\n done\n\n - name: Upload coverage to Codecov\n uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0\n | dataset_sample\yaml\coredns_coredns\.github\workflows\go.coverage.yml | go.coverage.yml | YAML | 1,030 | 0.8 | 0.029412 | 0 | node-utils | 52 | 2025-02-26T10:59:15.318376 | Apache-2.0 | false | 8bbb91982c31454e059a45a858535ad1 |
name: golangci-lint\non:\n pull_request:\njobs:\n golangci:\n name: lint\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Setup Go Version\n run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV\n - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0\n with:\n go-version: ${{ env.GO_VERSION }}\n - name: golangci-lint\n uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0\n with:\n version: v2.0.2\n | dataset_sample\yaml\coredns_coredns\.github\workflows\golangci-lint.yml | golangci-lint.yml | YAML | 592 | 0.8 | 0 | 0 | awesome-app | 551 | 2023-08-28T20:11:31.167271 | MIT | false | 57d43e16334f3b87a44c9acc3aa01359 |
name: Make Doc\n\non:\n schedule:\n - cron: '22 10 * * 0'\n\npermissions: read-all\n\njobs:\n fix:\n runs-on: ubuntu-latest\n permissions:\n contents: write\n steps:\n - name: Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Setup Go Version\n run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV\n\n - name: Setup Go\n uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0\n with:\n go-version: ${{ env.GO_VERSION }}\n\n - name: Update Docs\n run: |\n bash -x -e ./.github/fixup_file_mtime.sh\n make -f Makefile.doc\n\n - name: Set up Git\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n git config user.name "coredns[bot]"\n git config user.email "bot@bot.coredns.io"\n git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git\n\n - name: Commit and push changes\n run: |\n git add .\n if output=$(git status --porcelain) && [ ! -z "$output" ]; then\n git commit -s -m 'auto make -f Makefile.doc'\n git push\n fi\n | dataset_sample\yaml\coredns_coredns\.github\workflows\make.doc.yml | make.doc.yml | YAML | 1,217 | 0.8 | 0.022222 | 0 | react-lib | 198 | 2025-01-21T22:54:40.215496 | BSD-3-Clause | false | 514debb552effa1e961ab013001322e9 |
name: Release\n\non:\n workflow_dispatch:\n inputs:\n commit:\n description: "Commit (e.g., 52f0348)"\n default: "master"\n\njobs:\n release:\n name: Release\n runs-on: ubuntu-latest\n permissions:\n contents: write\n steps:\n - name: Check out code\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.commit }}\n - name: Set up info\n run: |\n set -x -e\n VERSION=$(make -f Makefile.release version)\n COMMIT=$(git rev-parse --quiet --verify ${{ github.event.inputs.commit }})\n if [[ "$(git tag -l v${VERSION})" == "v${VERSION}" ]]; then\n echo "v${VERSION} already released"\n exit 1\n fi\n echo "commit=${COMMIT}" >> $GITHUB_OUTPUT\n echo "version=${VERSION}" >> $GITHUB_OUTPUT\n id: info\n - name: Build release binary\n run: make -f Makefile.release release\n - name: Build release binary sha256\n run: (cd release; for asset in `ls -A *tgz`; do sha256sum $asset > $asset.sha256; done)\n - name: Remove hidden section\n run: sed '/+++/,//d' notes/coredns-${{ steps.info.outputs.version}}.md > release.md\n - name: Log release info\n run: |\n set -x -e\n git log -1\n echo ${{ steps.info.outputs.commit }}\n echo ${{ steps.info.outputs.version }}\n cat release.md\n sha256sum release/*.tgz\n - name: Draft release\n uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1\n with:\n body_path: release.md\n name: v${{ steps.info.outputs.version }}\n tag_name: v${{ steps.info.outputs.version }}\n target_commitish: ${{ steps.info.outputs.commit }}\n files: |\n release/*.tgz\n release/*.tgz.sha256\n draft: true\n | dataset_sample\yaml\coredns_coredns\.github\workflows\release.yml | release.yml | YAML | 1,922 | 0.8 | 0.035088 | 0 | awesome-app | 726 | 2024-05-23T16:22:26.259928 | MIT | false | 7c46fb00a02ea027669f9855cb1ecc03 |
name: Scorecards supply-chain security\non:\n # Only the default branch is supported.\n branch_protection_rule:\n schedule:\n - cron: '36 10 * * 3'\n push:\n branches: [ master ]\n\n# Declare default permissions as read only.\npermissions: read-all\n\njobs:\n analysis:\n name: Scorecards analysis\n runs-on: ubuntu-latest\n permissions:\n # Needed to upload the results to code-scanning dashboard.\n security-events: write\n actions: read\n contents: read\n id-token: write\n\n steps:\n - name: "Checkout code"\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n persist-credentials: false\n\n - name: "Run analysis"\n uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1\n with:\n results_file: results.sarif\n results_format: sarif\n # Read-only PAT token. To create it,\n # follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.\n repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}\n # Publish the results to enable scorecard badges. For more details, see\n # https://github.com/ossf/scorecard-action#publishing-results.\n # For private repositories, `publish_results` will automatically be set to `false`,\n # regardless of the value entered here.\n publish_results: true\n\n # Upload the results as artifacts (optional).\n - name: "Upload artifact"\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: SARIF file\n path: results.sarif\n retention-days: 5\n\n # Upload the results to GitHub's code scanning dashboard.\n - name: "Upload to code-scanning"\n uses: github/codeql-action/upload-sarif@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 # v3.28.14\n with:\n sarif_file: results.sarif\n | dataset_sample\yaml\coredns_coredns\.github\workflows\scorecards.yml | scorecards.yml | YAML | 1,933 | 0.8 | 0 | 0.22 | react-lib | 863 | 2024-03-10T09:15:09.357189 | Apache-2.0 | false | 19d8e081f40270023d606543d25d3b8c |
name: 'Close Stale Issues and PRs'\non:\n schedule:\n - cron: '30 1 * * *'\n\npermissions:\n contents: read\n\njobs:\n stale:\n permissions:\n issues: write # for actions/stale to close stale issues\n pull-requests: write # for actions/stale to close stale PRs\n runs-on: ubuntu-latest\n steps:\n - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0\n with:\n stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days'\n stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days'\n days-before-stale: 30\n days-before-close: 7\n exempt-issue-labels: 'enhancement'\n exempt-all-milestones: true\n labels-to-remove-when-unstale: 'answered,needs info,needs update'\n any-of-issue-labels: 'answered,needs info'\n any-of-pr-labels: 'needs update,needs info'\n | dataset_sample\yaml\coredns_coredns\.github\workflows\stale.yml | stale.yml | YAML | 1,068 | 0.8 | 0.076923 | 0 | react-lib | 309 | 2025-03-26T17:24:28.431503 | BSD-3-Clause | false | a20dd67d9222a49dc625642ea47cd2a3 |
name: 'Yamllint GitHub Actions'\non:\n - pull_request\npermissions: read-all\njobs:\n yamllint:\n name: 'Yamllint'\n runs-on: ubuntu-latest\n steps:\n - name: 'Checkout'\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: 'Yamllint'\n uses: karancode/yamllint-github-action@4052d365f09b8d34eb552c363d1141fd60e2aeb2\n with:\n yamllint_file_or_dir: '.'\n yamllint_strict: false\n yamllint_comment: true\n env:\n GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\coredns_coredns\.github\workflows\yamllint.yml | yamllint.yml | YAML | 560 | 0.8 | 0 | 0 | awesome-app | 362 | 2024-05-11T16:12:58.843616 | BSD-3-Clause | false | b82cea2f49a40a4d625bf6db707e3a96 |
# .readthedocs.yml\n# Read the Docs configuration file\n# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details\n\n# Required\nversion: 2\n\nsphinx:\n configuration: python/docs/conf.py\n fail_on_warning: false\n\n# Setup build requirements for docs.\n# Use conda so that we can install the latest libprotobuf package without\n# having to build from scratch just for docs builds.\nconda:\n environment: python/docs/environment.yml\n\npython:\n version: 3.8\n install:\n - method: setuptools\n path: python\n | dataset_sample\yaml\cpp\.readthedocs.yml | .readthedocs.yml | YAML | 518 | 0.95 | 0.136364 | 0.388889 | react-lib | 727 | 2025-02-01T12:43:51.993484 | GPL-3.0 | false | 3700eda53b1ed5e1ff909ee17e64f9f1 |
configuration:\n - Debug\n\nenvironment:\n matrix:\n # Only test few combinations: "Visual Studio 2017 (15) + Win64/MinGW + Debug + DLL". We can\n # test more combinations but AppVeyor just takes too long to finish (each\n # combination takes ~15mins).\n - platform: MinGW\n language: cpp\n image: Visual Studio 2017\n\n - platform: Win64\n language: cpp\n image: Visual Studio 2017\n BUILD_DLL: ON\n UNICODE: ON\n\n - platform: Win64\n language: cpp\n image: Visual Studio 2017\n BUILD_DLL: OFF\n UNICODE: ON\n\n - platform: Win64\n language: csharp\n image: Visual Studio 2017\n\n# Our build scripts run tests automatically; we don't want AppVeyor\n# to try to detect them itself.\ntest: off\n\ninstall:\n - git submodule update --init --recursive\n\nbefore_build:\n - if %platform%==MinGW set generator=MinGW Makefiles\n - if %platform%==Win32 set generator=Visual Studio 15\n - if %platform%==Win64 set generator=Visual Studio 15 Win64\n - if %platform%==Win32 set vcplatform=Win32\n - if %platform%==Win64 set vcplatform=x64\n\nbuild_script:\n - CALL appveyor.bat\n\nskip_commits:\n message: /.*\[skip appveyor\].*/\n | dataset_sample\yaml\cpp\appveyor.yml | appveyor.yml | YAML | 1,166 | 0.8 | 0.12766 | 0.131579 | react-lib | 612 | 2024-05-01T02:42:58.033269 | Apache-2.0 | false | 1e3c42031c6fa94f336be5560d626787 |
version: 2\nupdates:\n - package-ecosystem: "github-actions" # Necessary to update action hashs\n directory: "/"\n schedule:\n interval: "weekly"\n # Don't allow non-security PRs to be opened.\n open-pull-requests-limit: 0 | dataset_sample\yaml\cpp\dependabot.yml | dependabot.yml | YAML | 233 | 0.8 | 0 | 0.125 | vue-tools | 546 | 2024-06-13T03:58:47.979326 | GPL-3.0 | false | 3adea7cc638eda928aad751f913513a4 |
# LINT.IfChange(bcr_presubmit)\nbcr_test_module:\n module_path: examples\n matrix:\n platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"]\n bazel: [7.x, 8.x]\n\n tasks:\n verify_targets:\n name: "Verify build targets"\n platform: ${{ platform }}\n bazel: ${{ bazel }}\n build_targets:\n - '//...'\n - '@com_google_protobuf//:protobuf'\n - '@com_google_protobuf//:protobuf_lite'\n - '@com_google_protobuf//:protobuf_python'\n - '@com_google_protobuf//:protobuf_java'\n - '@com_google_protobuf//:protoc'\n - '@com_google_protobuf//:test_messages_proto2_cc_proto'\n - '@com_google_protobuf//:test_messages_proto3_cc_proto'\n# LINT.ThenChange(<ROOT_DIR>/.bazelci/presubmit.yml)\n | dataset_sample\yaml\cpp\presubmit.yml | presubmit.yml | YAML | 744 | 0.8 | 0 | 0.095238 | node-utils | 895 | 2023-07-30T04:42:23.089282 | Apache-2.0 | false | 4d0eadb7705ae3c7ef3f4b577e247a4f |
version: '{build}'\nbranches:\n only:\n - master\nskip_branch_with_pr: true\nimage: Visual Studio 2022\nconfiguration: Release\nplatform: Any CPU\nclone_script:\n- cmd: >-\n git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%\n \n cd %APPVEYOR_BUILD_FOLDER%\n \n git checkout -qf %APPVEYOR_REPO_COMMIT%\n \n git submodule update --init --recursive\ncache:\n- packages -> **\packages.config\n- '%USERPROFILE%\.nuget\packages -> **\project.json'\nbefore_build:\n- ps: >-\n $env:GIT_TAG = git describe --always --tags --exclude latest\n \n nuget restore -verbosity detailed\nbuild:\n verbosity: minimal\nafter_build:\n- ps: >-\n Get-Content GitVersion.cs\n\n Move-Item Build\QuickLook-$env:GIT_TAG.msi QuickLook-$env:GIT_TAG.msi\n \n Move-Item Build\QuickLook-$env:GIT_TAG.zip QuickLook-$env:GIT_TAG.zip\n\nartifacts:\n- path: QuickLook-%GIT_TAG%.zip\n name: QuickLook-%GIT_TAG%\n- path: QuickLook-%GIT_TAG%.msi\n name: QuickLook-%GIT_TAG%\n# deploy:\n# - provider: GitHub\n# auth_token:\n# secure: 5CSvkfKBq9kUho529L1tkH5ywQQFJY/A8Y6lNoHGJFi7mnSqQAaoiVPbUVU4a/KC\n# artifact: QuickLook-$(APPVEYOR_REPO_TAG_NAME)\n# draft: true\n# on:\n# APPVEYOR_REPO_TAG: true\n | dataset_sample\yaml\csharp\.appveyor.yml | .appveyor.yml | YAML | 1,236 | 0.8 | 0 | 0.195122 | react-lib | 361 | 2024-04-28T21:57:44.577187 | BSD-3-Clause | false | f881706aa2773586ad3ca0bafb1ebd98 |
---\nexclude_paths:\n - '**/*.g.cs'\n - 'src/SamplesApp/**'\n - '**/tsBindings/*.ts'\n - 'doc/**'\n - 'src/Uno.UI/Microsoft/UI/Xaml/Controls/Repeater/**'\n - 'src/Uno.UI/UI/Xaml/Controls/CalendarView/**'\n - 'src/Uno.UI/DirectUI/**'\n | dataset_sample\yaml\csharp\.codacy.yml | .codacy.yml | YAML | 232 | 0.8 | 0 | 0 | python-kit | 616 | 2025-06-30T16:39:27.181288 | Apache-2.0 | false | 3993ec270dd69956f99dc31514162771 |
# This file configures CodeQL runs and TSA bug autofiling. For more information, see:\n# https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/troubleshooting/bugs/generated-library-code\n# (Access restricted to Microsoft employees only.)\n\npath_classifiers:\n refs:\n # The ref/ directories don't contain shipping implementations of code, so they should\n # be excluded from analysis. If there is a problem at the API layer, the analysis\n # engine will detect the problem in the src/ implementations anyway.\n - src/libraries/**/ref/*\n # exclude artifacts/obj/**/CMakeFiles/**/CheckFunctionExists.c since CMake \n # generates random directory names causing creation of duplicate issues \n # related to obsolete encryption algorithm used. Note that CheckFuntionExists \n # files are generated as part of build-time checks in CMake and are not compiled\n # or linked into any product binaries.\n - artifacts/obj/**/CMakeFiles/**/CheckFunctionExists.c\n | dataset_sample\yaml\csharp\.CodeQL.yml | .CodeQL.yml | YAML | 1,003 | 0.8 | 0 | 0.733333 | node-utils | 323 | 2025-03-25T22:09:35.258019 | Apache-2.0 | false | b12f716bb1b6c96f5ded5b489528f7ea |
# verbose: true\ncommits:\n # strict: false\n # limit: 100\n # all: true\n upstreamBranch: origin/master\n | dataset_sample\yaml\csharp\.commitsar.yml | .commitsar.yml | YAML | 104 | 0.8 | 0 | 0.666667 | vue-tools | 949 | 2024-11-30T14:35:08.824264 | Apache-2.0 | false | d68e114420d385faa3ecce8aee3142d8 |
omitted_paths:\n - archive/*\n - common/Perf/*\n - common/SmokeTests/*\n - common/Stress/*\n - doc/ApiDocGeneration/*\n - Documentation/*\n - eng/*\n - samples/*\n - sdk/*/*.Management.*/*\n - sdk/*/*/perf/*\n - sdk/*/*/stress/*\n - sdk/*/*/integration/*\n - sdk/*/*/tests/Samples/*\n - sdk/*/*/tests/samples/*\n - sdk/*/*/samples/*\n - sdk/*/samples/*\n - sdk/*/swagger/*\n - sdk/*mgmt*/*\n - sdk/resourcemanager/*\n - src/*\n - tools/*\n - sdk/**/tools/*\n\nlanguage: net\nroot_check_enabled: True\n\nrequired_readme_sections:\n - "Azure .+ client library for .NET"\n - "^Getting started$":\n - Install the [Pp]ackage\n - Prerequisites\n - Authenticate the [Cc]lient\n - ^Key concepts$\n - ^Examples$\n - ^Troubleshooting$\n - ^Next steps$\n - ^Contributing$\n\nknown_presence_issues:\n - ['sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query','Track 1']\n - ['sdk/attestation/Microsoft.Azure.Attestation','Track 1']\n - ['sdk/batch/Microsoft.Azure.Batch.FileStaging','Track 1']\n - ['sdk/batch/Microsoft.Azure.Batch/Tools','Track 1']\n - ['sdk/cognitiveservices/AnomalyDetector','Track 1']\n - ['sdk/cognitiveservices/Knowledge.QnAMaker','Track 1']\n - ['sdk/cognitiveservices/Language.LUIS.Authoring','Track 1']\n - ['sdk/cognitiveservices/Language.LUIS.Runtime','Track 1']\n - ['sdk/cognitiveservices/Language.SpellCheck','Track 1']\n - ['sdk/cognitiveservices/Language.TextAnalytics','Track 1']\n - ['sdk/cognitiveservices/Personalizer','Track 1']\n - ['sdk/cognitiveservices/Search.BingAutoSuggest','Track 1']\n - ['sdk/cognitiveservices/Search.BingCustomImageSearch','Track 1']\n - ['sdk/cognitiveservices/Search.BingCustomSearch','Track 1']\n - ['sdk/cognitiveservices/Search.BingEntitySearch/','Track 1']\n - ['sdk/cognitiveservices/Search.BingImageSearch/','Track 1']\n - ['sdk/cognitiveservices/Search.BingLocalSearch/','Track 1']\n - ['sdk/cognitiveservices/Search.BingNewsSearch','Track 1']\n - ['sdk/cognitiveservices/Search.BingVideoSearch','Track 1']\n - ['sdk/cognitiveservices/Search.BingVisualSearch','Track 1']\n - ['sdk/cognitiveservices/Search.BingWebSearch','Track 1']\n - ['sdk/cognitiveservices/Vision.ComputerVision','Track 1']\n - ['sdk/cognitiveservices/Vision.ContentModerator','Track 1']\n - ['sdk/cognitiveservices/Vision.CustomVision.Prediction','Track 1']\n - ['sdk/cognitiveservices/Vision.CustomVision.Training','Track 1']\n - ['sdk/cognitiveservices/Vision.Face','Track 1']\n - ['sdk/containerregistry/Microsoft.Azure.ContainerRegistry','Track 1']\n - ['sdk/eventgrid/Microsoft.Azure.EventGrid','Track 1']\n - ['sdk/eventhub/Microsoft.Azure.EventHubs.Processor','Track 1']\n - ['sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor','Track 1']\n - ['sdk/graphrbac/Microsoft.Azure.Graph.RBAC','Track 1']\n - ['sdk/hdinsight/Microsoft.Azure.HDInsight.Job','Track 1']\n - ['sdk/keyvault/Microsoft.Azure.KeyVault.Core','Track 1']\n - ['sdk/keyvault/Microsoft.Azure.KeyVault.Cryptography','Track 1']\n - ['sdk/keyvault/Microsoft.Azure.KeyVault.Extensions','Track 1']\n - ['sdk/keyvault/Microsoft.Azure.KeyVault.WebKey','Track 1']\n - ['sdk/operationalinsights/Microsoft.Azure.OperationalInsights','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Common','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Data','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Service','Track 1']\n - ['sdk/operationalinsights/Microsoft.Azure.OperationalInsights','Track 1']\n - ['sdk/search/Microsoft.Azure.Search','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Common/CHANGELOG.md','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Data/CHANGELOG.md','Track 1']\n - ['sdk/search/Microsoft.Azure.Search.Service/CHANGELOG.md','Track 1']\n\n - ['sdk/eventgrid/Azure.Messaging.EventGrid/EventGridSourceGenerator','https://github.com/Azure/azure-sdk-tools/issues/2444']\n - ['sdk/provisioning/Generator','Not a package']\n\nknown_content_issues:\n - ['sdk/batch/Microsoft.Azure.Batch.Conventions.Files/README.md','Track 1']\n - ['sdk/batch/Microsoft.Azure.Batch/README.md','Track 1']\n - ['sdk/cognitiveservices/FormRecognizer/README.md','Track 1']\n - ['sdk/cognitiveservices/Language.TextAnalytics/src/README.md','Track 1']\n - ['sdk/cognitiveservices/Personalizer/src/README.md','Track 1']\n - ['sdk/eventhub/Microsoft.Azure.EventHubs/README.md','Track 1']\n - ['sdk/keyvault/Microsoft.Azure.KeyVault/README.md','Track 1']\n - ['sdk/servicebus/Microsoft.Azure.ServiceBus/README.md','Track 1']\n - ['sdk/synapse/Microsoft.Azure.Synapse/README.md','Track 1']\n\n - ['README.md','Not a package: azure-sdk-tools/issues/42']\n - ['doc/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/appconfiguration/README.md','azure-sdk-tools/issues/42']\n - ['sdk/eventgrid/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/eventhub/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/extensions/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/personalizer/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/provisioning/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/search/README.md','Not a package: azure-sdk-tools/issues/42']\n - ['sdk/storage/README.md','Not a package: azure-sdk-tools/issues/42']\n\n - ['sdk/core/Azure.Core.Amqp/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Azure.Core.Experimental/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Azure.Core.TestFramework/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Azure.Core/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Azure.Core.Expressions.DataFactory/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Microsoft.Azure.Core.NewtonsoftJson/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/Microsoft.Azure.Core.Spatial/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/core/System.ClientModel/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404', 'Missing section: Azure .+ client library for .NET']\n - ['sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/README.md','https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/eventhub/Azure.Messaging.EventHubs.Shared/README.md','https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/eventhub/Azure.Messaging.EventHubs.Experimental/README.md','https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md', 'azure-sdk-tools/issues/404']\n - ['sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md','azure-sdk-tools/issues/404']\n - ['sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md','azure-sdk-tools/issues/404']\n - ['sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/README.md','azure-sdk-tools/issues/404']\n - ['sdk/extensions/Microsoft.Extensions.Azure/README.md','azure-sdk-tools/issues/404']\n - ['sdk/storage/Azure.Storage.Common/README.md','azure-sdk-tools/issues/404']\n - ['sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/README.md','https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/webpubsub/Azure.Messaging.WebPubSub/README.md', 'azure-sdk-tools/issues/404 - requires different name for auth section']\n - ['sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/README.md', 'Opt out of sections: https://github.com/Azure/azure-sdk-tools/issues/404']\n\n - ['sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md', '#25936: Needs Examples']\n - ['sdk/personalizer/Azure.AI.Personalizer/README.md','#24535: Needs content']\n - ['sdk/storage/Azure.Storage.Files.DataLake/README.md', 'Storage: #11492: Needs auth section']\n - ['sdk/storage/Azure.Storage.Files.Shares/README.md', 'Storage: #11492: Needs auth section']\n\n - ['sdk/extension-wcf/Microsoft.CoreWCF.Azure.StorageQueues/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/extension-wcf/Microsoft.WCF.Azure.StorageQueues/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n \n - ['sdk/provisioning/Azure.Provisioning.AppService/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Sql/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.ServiceBus/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Redis/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.EventGrid/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.SignalR/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.OperationalInsights/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Storage/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.KubernetesConfiguration/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.CosmosDB/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.EventHubs/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.CognitiveServices/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.WebPubSub/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.PostgreSql/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.AppContainers/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.KeyVault/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.ContainerRegistry/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.AppConfiguration/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Search/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Kubernetes/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Communication/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.ApplicationInsights/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.ContainerService/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n - ['sdk/provisioning/Azure.Provisioning.Deployment/README.md', 'https://github.com/Azure/azure-sdk-tools/issues/404']\n\n# .net climbs upwards. placing these to prevent assigning readmes to the wrong project\npackage_indexing_exclusion_list:\n - 'AutoRest-AzureDotNetSDK'\n - 'NetCoreTestPublish'\n - 'ObjectModelCodeGenerator'\n - 'CodeGenerationLibrary'\n - 'ProxyLayerParser'\n - 'IntegrationTestCommon'\n - 'Azure.Template'\n - 'SampleSDKTestPublish'\n - 'CSProjTestPublish'\n - 'ConfigureAwaitAnalyzer'\n - 'Microsoft.WindowsAzure.Build.Tasks'\n - 'Microsoft.Azure.Services.AppAuthentication.TestCommon'\n - 'RP2_Sdk'\n - 'RP1_MgmtPlane'\n - 'RP1_DataPlane'\n - 'Gallery'\n - 'Intune'\n - 'Common'\n - 'SnippetGenerator'\n - 'docgen'\npackage_indexing_traversal_stops:\n - 'sdk/'\n - 'src/SDKs/'\n - 'src/SdkCommon/'\n - 'src/AzureStack/'\n | dataset_sample\yaml\csharp\.docsettings.yml | .docsettings.yml | YAML | 12,269 | 0.95 | 0.015385 | 0.005435 | react-lib | 499 | 2025-04-30T07:35:50.771094 | Apache-2.0 | false | 24ec4fdeeeea25ee02f43b0c1c8167c4 |
image:\n file: build/gitpod/.gitpod.Dockerfile\n\nports:\n # Default port for the SampleApp\n - port: 8000\n onOpen: open-preview\n\ntasks:\n # Mitigation for https://github.com/gitpod-io/gitpod/issues/6460 \n - name: Postinstall .NET and dev certificates\n init: |\n mkdir -p $DOTNET_ROOT && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel $DOTNET_VERSION --install-dir $DOTNET_ROOT \n mkdir -p $DOTNET_ROOT && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 7.0.302 --install-dir $DOTNET_ROOT \n dotnet dev-certs https \n build/gitpod/build-skia.sh\n build/gitpod/build-wasm.sh\n\n - name: SampleApp Static Files Server\n before: export NUGET_PACKAGES=/workspace/.nuget\n openMode: tab-after\n command: echo "once you've built the sources run build/gitpod/serve-sampleapp-wasm.sh"\n\n - name: Build\n before: export NUGET_PACKAGES=/workspace/.nuget\n command: echo -e "Follow the guide here https://github.com/unoplatform/uno/tree/master/doc/articles/features/working-with-gitpod.md" && echo && echo "Build Uno with build/gitpod/build-wasm.sh"\n openMode: tab-after\n\ngithub:\n prebuilds:\n # enable for the master/default branch (defaults to true)\n master: true\n # enable for all branches in this repo (defaults to false)\n branches: false\n # enable for pull requests coming from this repo (defaults to true)\n pullRequests: true\n # enable for pull requests coming from forks (defaults to false)\n pullRequestsFromForks: true\n # add a check to pull requests (defaults to true)\n addCheck: true\n # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)\n addComment: true\n # add a "Review in Gitpod" button to the pull request's description (defaults to false)\n addBadge: false\n # add a label once the prebuild is ready to pull requests (defaults to false)\n addLabel: false\n | dataset_sample\yaml\csharp\.gitpod.yml | .gitpod.yml | YAML | 1,930 | 0.8 | 0.130435 | 0.243902 | awesome-app | 461 | 2025-06-09T13:19:46.478472 | BSD-3-Clause | false | b92a32d4027762044aa5268fcb2e3949 |
dirs: \n - .\nignorePatterns:\n - pattern: "/github/"\n - pattern: "./actions"\n - pattern: "./blob"\n - pattern: "./issues"\n - pattern: "./discussions"\n - pattern: "./pulls"\n - pattern: "https:\/\/platform.openai.com"\n - pattern: "https:\/\/outlook.office.com/bookings"\nexcludedFiles:\n # Files that are temporarily excluded because they contain links that are temporarily unavailable.\n - ./dotnet/src/Experimental/Process.IntegrationTestRunner.Dapr/README.md # Cannot reach https://docs.dapr.io/getting-started/install-dapr-selfhost/. Status: 404" location:{path:"dotnet/src/Experimental/Process.IntegrationTestRunner.Dapr/README.md" \n - ./python/DEV_SETUP.md # "Cannot reach https://code.visualstudio.com/docs/editor/workspaces. Status: 404"\nexcludedDirs:\n # Folders which include links to localhost, since it's not ignored with regular expressions\n - ./python/samples/demos/telemetry\n - ./python/samples/demos/process_with_dapr\n - ./dotnet/samples/Demos/ProcessWithDapr\n - ./dotnet/samples/Demos/CopilotAgentPlugins\n # Exclude the decisions folder that contains documents with links prone to becoming broken and temporarily unavailable. This should be removed when the link checker is implemented as a background job that does not block PRs.\n - ./docs/decisions/\nbaseUrl: https://github.com/microsoft/semantic-kernel/\naliveStatusCodes: \n - 200\n - 206\n - 429\n - 500\n - 503\nuseGitIgnore: true\n | dataset_sample\yaml\csharp\.linkspector.yml | .linkspector.yml | YAML | 1,412 | 0.8 | 0 | 0.096774 | react-lib | 144 | 2023-10-22T05:33:28.696429 | MIT | false | 206847ca9be781705c2f2c3baeb88b1e |
pull_request_rules:\n\n - name: automatic strict merge when CI passes, has 2 reviews, no requests for change and is labeled 'ready-to-merge' unless labelled 'do-not-merge/breaking-change' or 'do-not-merge/work-in-progress'\n conditions:\n # Only pull-requests sent to the master branch\n - base=master\n\n # All Azure builds should be green:\n - status-success=Uno.UI - CI\n\n # CLA check must pass:\n #- "status-success=license/cla"\n\n # Note that this only matches people with write / admin access to the repo,\n # see <https://doc.mergify.io/conditions.html#attribute-list>\n - "#approved-reviews-by>=2"\n - "#changes-requested-reviews-by=0"\n\n # Pull-request must be labeled with:\n - label=ready-to-merge\n\n # Do not automatically merge pull-requests that are labelled as do-not-merge\n # see <https://doc.mergify.io/examples.html#id6>\n - label!=do-not-merge/breaking-change\n - label!=do-not-merge/work-in-progress\n\n # Note: mergify cannot break branch protection rules\n actions:\n merge:\n method: merge\n # https://doc.mergify.io/strict-workflow.html\n # https://doc.mergify.io/actions.html#label\n | dataset_sample\yaml\csharp\.mergify.yml | .mergify.yml | YAML | 1,197 | 0.8 | 0.03125 | 0.48 | awesome-app | 583 | 2024-07-31T03:55:44.083218 | BSD-3-Clause | false | f8abf9e6682924bfe7991f7556fe74b6 |
################################################################################\n# ML.NET's nightly build\n################################################################################\n\n# no PR builds\npr: none\n\n# no CI builds\ntrigger: none\n\n# scheduled trigger, runs at UTC 8:00 every day which is midnight of GMT-8\nschedules:\n- cron: "0 8 * * *"\n displayName: Nightly Build at midnight\n branches:\n include:\n - main\n - feature/*\n - release/*\n always: true\n\nresources:\n containers:\n - container: CentosContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-mlnet\n\n - container: UbuntuContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet\n\njobs:\n- template: /build/ci/job-template.yml\n parameters:\n name: Centos_x64_Net60\n buildScript: ./build.sh\n container: CentosContainer\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _targetFramework: net6.0\n _includeBenchmarkData: false\n Release_Build:\n _configuration: Release\n _config_short: RI\n _targetFramework: net6.0\n _includeBenchmarkData: true\n nightlyBuild: true\n pool:\n vmImage: ubuntu-18.04\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Ubuntu_x64_NetCoreApp21\n buildScript: ./build.sh\n container: UbuntuContainer\n nightlyBuild: true\n pool:\n vmImage: ubuntu-18.04\n\n- template: /build/ci/job-template.yml\n parameters:\n name: MacOS_x64_NetCoreApp21\n buildScript: ./build.sh\n nightlyBuild: true\n pool:\n vmImage: macOS-13\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_Net60\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n nightlyBuild: true\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_NetCoreApp21\n buildScript: build.cmd\n nightlyBuild: true\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_NetFx461\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DFX\n _includeBenchmarkData: false\n _targetFramework: net462\n Release_Build:\n _configuration: Release\n _config_short: RFX\n _includeBenchmarkData: false\n _targetFramework: net462\n nightlyBuild: true\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x86_NetCoreApp21\n architecture: x86\n buildScript: build.cmd\n nightlyBuild: true\n pool:\n vmImage: windows-2019\n | dataset_sample\yaml\csharp\.night-build.yml | .night-build.yml | YAML | 2,894 | 0.8 | 0 | 0.056075 | python-kit | 704 | 2024-09-04T15:59:25.955373 | MIT | false | 5195caf6a49f7347597fa7d222f722ff |
################################################################################\n# ML.NET's outer loop build that will run all tests\n################################################################################\n\n# no PR builds\npr: none\n\n# no CI builds\ntrigger: none\n\n# scheduled trigger, runs at UTC 8:00 every day which is midnight of GMT-8\nschedules:\n- cron: "0 8 * * *"\n displayName: outer loop build at midnight\n branches:\n include:\n - main\n - feature/*\n - release/*\n always: true\n\n\nresources:\n containers:\n - container: CentosContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-mlnet\n\n - container: UbuntuContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet\n\njobs:\n- template: /build/ci/job-template.yml\n parameters:\n name: Centos_x64_Net60\n buildScript: ./build.sh\n container: CentosContainer\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n pool:\n vmImage: ubuntu-18.04\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Ubuntu_x64_Net60\n buildScript: ./build.sh\n container: UbuntuContainer\n pool:\n vmImage: ubuntu-18.04\n\n- template: /build/ci/job-template.yml\n parameters:\n name: MacOS_x64_Net60\n buildScript: ./build.sh\n pool:\n vmImage: macOS-10.15\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_Net60\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_Net60\n buildScript: build.cmd\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_NetFx461\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DFX\n _includeBenchmarkData: false\n _targetFramework: net462\n Release_Build:\n _configuration: Release\n _config_short: RFX\n _includeBenchmarkData: false\n _targetFramework: net462\n pool:\n vmImage: windows-2019\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x86_Net60\n architecture: x86\n buildScript: build.cmd\n pool:\n vmImage: windows-2019\n | dataset_sample\yaml\csharp\.outer-loop-build.yml | .outer-loop-build.yml | YAML | 2,673 | 0.8 | 0 | 0.061224 | node-utils | 131 | 2023-11-06T03:06:30.394296 | BSD-3-Clause | false | 58253c21abc057862cbe96e3bf6bc69e |
# Read the Docs configuration file\n# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details\n\n# Required\nversion: 2\n\nbuild:\n os: ubuntu-22.04\n tools:\n python: "3.11"\n\n# Build documentation in the docs/ directory with Sphinx\n#sphinx:\n# configuration: docs/conf.py\n\n# Build documentation with MkDocs\nmkdocs:\n configuration: mkdocs.yml\n\n# Optionally build your docs in additional formats such as PDF and ePub\nformats: all\n\n# Optionally set the version of Python and requirements required to build your docs\npython:\n install:\n - requirements: src/docs/requirements.txt | dataset_sample\yaml\csharp\.readthedocs.yml | .readthedocs.yml | YAML | 593 | 0.95 | 0.04 | 0.45 | awesome-app | 683 | 2023-12-27T16:32:15.493273 | BSD-3-Clause | false | c2cbdbec69a3398d0cbdd30a8bf64fc0 |
branches:\n - name: master\n \nverifyConditions:\n - "@semantic-release/github"\n\nplugins:\n # Determines the type of release to create, if any.\n # See https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type\n # More types can be added here and in release-notes-generator below.\n - - '@semantic-release/commit-analyzer'\n - preset: "angular"\n releaseRules:\n - type: "release"\n release: "major"\n - type: "breaking"\n release: "minor"\n - type: "feature"\n release: "minor"\n - type: "fix"\n release: "patch"\n\n # Extends the behavior of semantic-release to generate release notes.\n # 'fix' and 'feat' are built in and don't need to be defined here.\n # More types can be added to correspond with commit-analyzer above.\n - - '@semantic-release/release-notes-generator'\n - preset: "conventionalcommits"\n presetConfig:\n types:\n - type: "breaking"\n section: "Breaking Changes"\n hidden: false\n - type: "release"\n section: "Release"\n hidden: false\n - type: "fix"\n section: "Bug Fixes"\n hidden: false\n - type: "feat"\n section: "Features"\n hidden: false\n - type: "feature"\n section: "Features"\n hidden: false\n - type: "perf"\n section: "Performance Improvements"\n hidden: false\n\n # Write the new version in version.txt\n - - '@semantic-release/exec'\n - prepareCmd: "echo ${nextRelease.version} > Assets/Mirror/version.txt"\n\n # Remove Test folder so it's excluded from Unity package\n # -f: force, -r: recursive\n - - '@semantic-release/exec'\n - prepareCmd: "rm -f -r Assets/Mirror/Tests && rm -f Assets/Mirror/Tests.meta"\n \n # Remove EdgeGap Hosting folder so it's excluded from Unity package\n # -f: force, -r: recursive\n # - - '@semantic-release/exec'\n # - prepareCmd: "rm -f -r Assets/Mirror/Hosting && rm -f Assets/Mirror/Hosting.meta"\n \n # Move ScriptTemplates to Mirror folder so they're included in Unity package\n # There's an editor script that moves them back to Assets when imported to Unity\n - - '@semantic-release/exec'\n - prepareCmd: "mv Assets/ScriptTemplates Assets/Mirror/ && mv Assets/ScriptTemplates.meta Assets/Mirror/"\n\n # Create Unity package with Mirror, ScriptTemplates, and LICENSE\n - - '@semantic-release/exec'\n - prepareCmd: "dotnet script .github/UnityPack.csx ${nextRelease.version}"\n\n # Create a new release on GitHub\n - - '@semantic-release/github'\n - assets:\n - path: "Mirror.unitypackage"\n label: "Mirror Unity Package"\n name: "Mirror-${nextRelease.version}.unitypackage"\n successCommentCondition: "false"\n failCommentCondition: "false"\n | dataset_sample\yaml\csharp\.releaserc.yml | .releaserc.yml | YAML | 2,749 | 0.95 | 0.012658 | 0.242857 | vue-tools | 718 | 2024-10-11T08:03:00.428776 | BSD-3-Clause | false | 96f2cfa77a088b65cc72bec28ae1ea3b |
revision: 6\nschema-version: 5\nowner-ms-alias: adegeo\n\nconfig:\n DocMetadata:\n Headers:\n - ["---", "#### "]\n\n ParserRegex: "^\\* (.*): (.*)$"\n\n ContentUrlRegex:\n - "### Page URL\n\n(.*)"\n\nissues:\n\n opened:\n\n # Add links to related issues if it's a doc issue\n - check:\n - type: metadata-exists\n - type: variable-exists\n name: "document_version_independent_id"\n pass:\n - link-related-issues\n\n # If it's an issue from docs feedback, add svc/subsvc and source labels.\n - check:\n - type: metadata-exists\n pass:\n - labels-add: ["Source - Docs.ms"]\n - svc_subsvc_labels: true\n\nprojects_v2_item:\n\n reordered:\n\n - labels-add: ["mapQuest"]\n\n edited:\n\n - check:\n - type: query\n value: "EventPayload.changes.field_value.field_name == 'Priority' || EventPayload.changes.field_value.field_name == 'Size'"\n pass:\n - labels-add: ["mapQuest"]\n | dataset_sample\yaml\csharp\.repoman.yml | .repoman.yml | YAML | 954 | 0.8 | 0.021739 | 0.058824 | python-kit | 254 | 2024-05-09T14:05:34.931055 | BSD-3-Clause | false | f00cfe17d0bc7206a8770cdb536607d5 |
language: csharp\nmono: none\ndotnet: 5.0\nos: linux\ndist: focal\nbefore_install:\n - export PATH="$HOME/miniconda3/bin:$PATH"\n - export PYTHONNET_PYDLL="$HOME/miniconda3/lib/libpython3.6m.so"\n - wget -q https://cdn.quantconnect.com/miniconda/Miniconda3-4.5.12-Linux-x86_64.sh\n - bash Miniconda3-4.5.12-Linux-x86_64.sh -b\n - rm -rf Miniconda3-4.5.12-Linux-x86_64.sh\n - sudo ln -s $HOME/miniconda3/lib/libpython3.6m.so /usr/lib/libpython3.6m.so\n - conda update -y python conda pip\n - conda install -y python=3.6.8\n - conda install -y numpy=1.18.1\n - conda install -y pandas=0.25.3\n - conda install -y cython=0.29.15\n - conda install -y scipy=1.4.1\n - conda install -y wrapt=1.12.1\nscript:\n - dotnet nuget add source $TRAVIS_BUILD_DIR/LocalPackages\n - dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.Lean.sln\n - dotnet test ./Tests/bin/Release/QuantConnect.Tests.dll --filter TestCategory!=TravisExclude -- TestRunParameters.Parameter\(name=\"log-handler\", value=\"ConsoleErrorLogHandler\"\) | dataset_sample\yaml\csharp\.travis.yml | .travis.yml | YAML | 1,031 | 0.8 | 0 | 0 | node-utils | 637 | 2024-06-01T07:59:41.267603 | MIT | false | 02b17c675087491bc9a15ed589f4b3f2 |
trigger:\n branches:\n include:\n - master\n - release/beta/*\n - release/stable/*\n - feature/*\n - legacy/*\n\npr: \n branches:\n include:\n - master\n - release/beta/*\n - release/stable/*\n - feature/*\n - legacy/*\n\nvariables:\n windowsScaledPool: 'Windows2022-20241021-1'\n linuxVMImage: 'ubuntu-22.04'\n\n enable_dotnet_cache: true\n GlobalUnoCheckVersion: '1.31.0-dev.12'\n\nstages:\n- template: build/ci/.azure-devops-stages-docs.yml\n | dataset_sample\yaml\csharp\.vsts-ci-docs.yml | .vsts-ci-docs.yml | YAML | 480 | 0.8 | 0 | 0 | awesome-app | 469 | 2024-12-07T23:25:28.854991 | GPL-3.0 | false | 53a6e0359c0033cc83d47e664932c8e9 |
trigger:\n branches:\n include:\n - master\n - release/beta/*\n - release/stable/*\n - feature/*\n - legacy/*\n \n paths:\n include:\n - '/'\n exclude:\n - .dependabot/\n - .github/\n # don't trigger the CI if only docs files are changed\n - doc/*\n - '**/*.md'\n - '*.md'\n - 'build/cSpell.json'\n - 'build/.markdownlint.json'\n \npr: \n branches:\n include:\n - master\n - release/beta/*\n - release/stable/*\n - feature/*\n - legacy/*\n \n paths:\n include:\n - '/'\n exclude:\n - .dependabot/\n - .github/\n # don't trigger the CI if only docs files are changed\n - doc/*\n - '**/*.md'\n - '*.md'\n - 'build/cSpell.json'\n - 'build/.markdownlint.json'\n\nresources:\n containers:\n - container: nv-bionic-wasm\n image: unoplatform/wasm-build:3.0\n # Ensures that Chromium has enough room to avoid net::ERR_INSUFFICIENT_RESOURCES errors\n options: "--shm-size=2gb"\n\nvariables:\n DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true\n windows2019HostedVMImage: 'windows-2019'\n windows2022HostedVMImage: 'windows-2022'\n windowsScaledPool: 'Windows2022-20241021-1'\n linuxVMImage: 'ubuntu-22.04'\n linuxScaledPool: 'Ubuntu2204-20230918'\n macOSVMImage: 'macOS-15'\n macOSVMImage_UITests: 'macOS-14'\n xCodeRoot: '/Applications/Xcode_16.2.app'\n xCodeRoot_iOS_UITests: '/Applications/Xcode_15.3.app'\n\n # Offline validation to improve build performance\n NUGET_CERT_REVOCATION_MODE: offline\n\n # https://github.com/microsoft/azure-pipelines-tasks/issues/11864\n #enable_package_cache: true\n\n enable_dotnet_cache: true\n GlobalUnoCheckVersion: '1.31.0-dev.12'\n\nstages:\n- template: build/ci/.azure-devops-stages.yml\n | dataset_sample\yaml\csharp\.vsts-ci.yml | .vsts-ci.yml | YAML | 1,704 | 0.8 | 0.027027 | 0.092308 | vue-tools | 409 | 2024-06-25T20:59:34.142971 | BSD-3-Clause | false | d9822c70ee13bb61539578921d2e8429 |
################################################################################\n# ML.NET's PR validation build\n################################################################################\n\npr:\n branches:\n include:\n - main\n - feature/*\n - release/*\n paths:\n include:\n - '*'\n exclude:\n - '**.md'\n - .github/*\n - docs/*\n - LICENSE\n - THIRD-PARTY-NOTICES.TXT\n\ntrigger:\n branches:\n include:\n - main\n - feature/*\n - release/*\n paths:\n include:\n - '*'\n exclude:\n - '**.md'\n - .github/*\n - docs/*\n - LICENSE\n - THIRD-PARTY-NOTICES.TXT\n\nresources:\n containers:\n - container: CentosContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-mlnet\n\n - container: UbuntuContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet\n\n - container: UbuntuCrossArmContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm\n\n - container: UbuntuCrossArm64Container\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm64\n\njobs:\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm\n name: Ubuntu_x64_cross_arm\n buildScript: ./build.sh\n container: UbuntuCrossArmContainer\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-arm32v7\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: Ubuntu_x64_cross_arm64\n buildScript: ./build.sh\n container: UbuntuCrossArm64Container\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-arm64v8\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Centos_x64\n buildScript: ./build.sh\n container: CentosContainer\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9-mlnet-helix\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Ubuntu_x64\n buildScript: ./build.sh\n container: UbuntuContainer\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-mlnet-helix\n\n- template: /build/ci/job-template.yml\n parameters:\n name: MacOS_x64\n buildScript: ./build.sh\n innerLoop: true\n pool:\n vmImage: macOS-13\n helixQueue: OSX.13.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: MacOS_cross_arm64\n buildScript: ./build.sh\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n vmImage: macOS-13\n helixQueue: OSX.13.Arm64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: Windows_cross_arm64\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v6.0"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: windows.11.arm64.open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64\n buildScript: build.cmd\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_NetFx461\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DFX\n _includeBenchmarkData: false\n _targetFramework: net462\n Release_Build:\n _configuration: Release\n _config_short: RFX\n _includeBenchmarkData: false\n _targetFramework: net462\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v4.0"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x86\n architecture: x86\n buildScript: build.cmd\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n | dataset_sample\yaml\csharp\.vsts-dotnet-ci.yml | .vsts-dotnet-ci.yml | YAML | 5,987 | 0.8 | 0 | 0.015 | vue-tools | 673 | 2025-01-25T12:41:50.158636 | MIT | false | 55e004e7e165da2cad74998bfec365d4 |
steps:\n- script: |\n chmod +x build.linux.sh\n ./build.linux.sh\n- task: PublishBuildArtifacts@1\n displayName: Publish Linux package assets\n inputs:\n pathtoPublish: $(Build.SourcesDirectory)/Installers/Linux/build\n artifactName: Package\n artifactType: container | dataset_sample\yaml\csharp\.vsts.linux.yml | .vsts.linux.yml | YAML | 275 | 0.7 | 0 | 0 | python-kit | 164 | 2024-03-27T22:39:02.178972 | Apache-2.0 | false | 6e259d8a4fec2e2cf24dbebdcf7b8b16 |
steps:\n- script: |\n chmod +x build.mac.sh\n ./build.mac.sh\n- task: PublishBuildArtifacts@1\n displayName: Publish Mac package assets\n inputs:\n pathtoPublish: $(Build.SourcesDirectory)/Installers/Mac/build\n artifactName: Package\n artifactType: container | dataset_sample\yaml\csharp\.vsts.mac.yml | .vsts.mac.yml | YAML | 267 | 0.7 | 0 | 0 | awesome-app | 697 | 2023-09-15T16:18:09.960108 | Apache-2.0 | false | 44ee43443726d3649701800c2b0aa20e |
steps:\n- powershell: |\n ./build.windows.ps1\n- task: PublishBuildArtifacts@1\n displayName: Publish Windows package assets\n inputs:\n pathtoPublish: $(Build.SourcesDirectory)/bin/x64/Release\n artifactName: Package\n artifactType: container | dataset_sample\yaml\csharp\.vsts.windows.yml | .vsts.windows.yml | YAML | 249 | 0.7 | 0 | 0 | node-utils | 998 | 2023-07-24T05:09:05.332488 | GPL-3.0 | false | d93941b8d5109f321fda2a9fd0f649de |
github: &github\n - .github/actions/**\n - .github/workflows/**-ci.yml\ntools: &tools\n - tools/buildCommon/**\n - tools/ci.psm1\nprops: &props\n - '**.props'\ntests: &tests\n - test/powershell/**\n - test/tools/**\n - test/xUnit/**\nmainSource: &mainSource\n - src/**\nbuildModule: &buildModule\n - build.psm1\nsource:\n - *github\n - *tools\n - *props\n - *buildModule\n - *mainSource\n - *tests\n | dataset_sample\yaml\csharp\action-filters.yml | action-filters.yml | YAML | 392 | 0.8 | 0 | 0 | react-lib | 630 | 2025-03-06T03:41:52.894295 | BSD-3-Clause | false | 0ae9fd77f8a60f386a6acdc2c3075d3d |
policy:\n - template: ["bug_report.yml"]\n section:\n - id: ["platforms"]\n block-list: []\n label:\n - name: platforms:Windows\n keys: ["Windows"]\n - name: platforms:macOS\n keys: ["macOS"]\n - name: platforms:Linux\n keys: ["Linux"]\n - id: ["app-kind"]\n block-list: []\n label:\n - name: app-kind:GUI\n keys: ["DevToys (app with GUI)"]\n - name: app-kind:CLI\n keys: ["DevToys CLI"]\n | dataset_sample\yaml\csharp\advanced-issue-labeler.yml | advanced-issue-labeler.yml | YAML | 512 | 0.7 | 0 | 0 | vue-tools | 605 | 2025-05-21T17:28:18.751202 | GPL-3.0 | false | 11963b178d1fe64068d4b71d61b3a635 |
# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\nname: apiscan-genNotice-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId)\ntrigger: none\n\nparameters:\n - name: FORCE_CODEQL\n displayName: Debugging - Enable CodeQL and set cadence to 1 hour\n type: boolean\n default: false\n - name: SkipVerifyPackages\n type: boolean\n default: false\n\nvariables:\n # PAT permissions NOTE: Declare a SymbolServerPAT variable in this group with a 'microsoft' organizanization scoped PAT with 'Symbols' Read permission.\n # A PAT in the wrong org will give a single Error 203. No PAT will give a single Error 401, and individual pdbs may be missing even if permissions are correct.\n - group: symbols\n - name: ob_outputDirectory\n value: '$(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT'\n - name: CDP_DEFINITION_BUILD_COUNT\n value: $[counter('', 0)]\n # Defines the variables AzureFileCopySubscription, StorageAccount, StorageAccountKey, StorageResourceGroup, StorageSubscriptionName\n - group: 'Azure Blob variable group'\n # Defines the variables CgPat, CgOrganization, and CgProject\n - group: 'ComponentGovernance'\n - group: 'PoolNames'\n - name: LinuxContainerImage\n value: onebranch.azurecr.io/linux/ubuntu-2004:latest\n - name: WindowsContainerImage\n value: onebranch.azurecr.io/windows/ltsc2022/vse2022:latest\n - ${{ if eq(parameters['FORCE_CODEQL'],'true') }}:\n # Cadence is hours before CodeQL will allow a re-upload of the database\n - name: CodeQL.Cadence\n value: 0\n - name: CODEQL_ENABLED\n ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(parameters['FORCE_CODEQL'],'true')) }}:\n value: true\n ${{ else }}:\n value: false\n - name: Codeql.TSAEnabled\n value: $(CODEQL_ENABLED)\n # AnalyzeInPipeline: false = upload results\n # AnalyzeInPipeline: true = do not upload results\n - name: Codeql.AnalyzeInPipeline\n ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(parameters['FORCE_CODEQL'],'true')) }}:\n value: false\n ${{ else }}:\n value: true\n\nresources:\n repositories:\n - repository: templates\n type: git\n name: OneBranch.Pipelines/GovernedTemplates\n ref: refs/heads/main\n\nextends:\n template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates\n parameters:\n featureFlags:\n WindowsHostVersion:\n Version: 2022\n globalSdl:\n codeql:\n compiled:\n enabled: $(CODEQL_ENABLED)\n tsaEnabled: $(CODEQL_ENABLED) # This enables TSA bug filing only for CodeQL 3000\n armory:\n enabled: false\n sbom:\n enabled: false\n cg:\n enabled: true\n ignoreDirectories: '.devcontainer,demos,docker,docs,src,test,tools/packaging'\n tsa:\n enabled: true # onebranch publish all SDL results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.\n credscan:\n enabled: true\n scanFolder: $(Build.SourcesDirectory)\n suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json\n binskim:\n break: true # always break the build on binskim issues in addition to TSA upload\n policheck:\n break: true # always break the build on policheck issues. You can disable it by setting to 'false'\n # APIScan requires a non-Ready-To-Run build\n apiscan:\n enabled: true\n softwareName: "PowerShell" # Default is repo name\n versionNumber: "7.5" # Default is build number\n isLargeApp: false # Default: false.\n symbolsFolder: $(SymbolsServerUrl);$(ob_outputDirectory)\n#softwareFolder - relative path to a folder to be scanned. Default value is root of artifacts folder\n tsaOptionsFile: .config\tsaoptions.json\n psscriptanalyzer:\n enabled: true\n policyName: Microsoft\n break: false\n\n stages:\n - stage: APIScan\n displayName: 'ApiScan'\n dependsOn: []\n jobs:\n - template: /.pipelines/templates/compliance/apiscan.yml@self\n parameters:\n parentJobs: []\n - stage: notice\n displayName: Generate Notice File\n dependsOn: []\n jobs:\n - template: /.pipelines/templates/compliance/generateNotice.yml@self\n parameters:\n parentJobs: []\n SkipVerifyPackages: ${{ parameters.SkipVerifyPackages }}\n | dataset_sample\yaml\csharp\apiscan-gen-notice.yml | apiscan-gen-notice.yml | YAML | 4,359 | 0.95 | 0.043478 | 0.1 | awesome-app | 342 | 2025-06-27T01:17:16.369058 | MIT | false | 89f001a3c5445060c98736ca8a1b8ecc |
version: 66.66.66.{build}\n\n# Do not build on tags (GitHub, Bitbucket, GitLab, Gitea)\nskip_tags: true\n\n# set clone depth\nclone_depth: 1 # clone entire repository history if not defined\n\nbranches:\n only:\n - /experimental\/*/\n\nmatrix:\n fast_finish: false\n\n# https://www.appveyor.com/docs/build-environment/#build-worker-images\nimage: Visual Studio 2019\n\nenvironment:\n # The following entries define the default values of the environment variables.\n # They can be overridden in AppVeyor | Settings | Environment.\n GE_TEST_SLEEP_SECONDS_ON_HANG: 0\n GE_TEST_LAUNCH_DEBUGGER_ON_HANG: 0\n # How many times to execute tests\n TEST_RUN_COUNT: 1\n # Execute unit tests\n RUN_UNIT_TESTS: 1\n # Execute integration tests\n RUN_INTEGRATION_TESTS: 1\n # Fail the build if any of the tests fail\n FAIL_BUILD_IF_TESTS_FAIL: 1\n\ninit:\n - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))\n\n# Build settings, not to be confused with "before_build" and "after_build".\n# "project" is relative to the original build directory and not influenced by directory changes in "before_build".\nbuild:\n # enable MSBuild parallel builds\n parallel: true\n # MSBuild verbosity level\n verbosity: minimal\n\ninstall:\n- cmd: echo %APPVEYOR_REPO_COMMIT%\n- cmd: echo %APPVEYOR_PULL_REQUEST_HEAD_COMMIT%\n- cmd: git submodule update --init --recursive\n- cmd: echo /logger:"%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll">> Directory.Build.rsp\n- cmd: |-\n cd eng\n C:\\Python35\\python set_version_to.py -v %APPVEYOR_BUILD_VERSION% -t %APPVEYOR_BUILD_VERSION%\n cd ..\n\n\n# to run your custom scripts instead of automatic MSBuild\nbuild_script:\n- ps: |\n # for release branches mark the repo as clean\n if (!$env:APPVEYOR_PULL_REQUEST_TITLE -and $env:APPVEYOR_REPO_BRANCH.StartsWith("release/")) {\n & .\eng\Mark-RepoClean.ps1\n }\n\n # if building a temporary merge with master, soft reset to the PR commit so the build contains the PR's hash instead of the merge-commit's hash\n if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -and ($env:APPVEYOR_REPO_COMMIT -ne $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT))\n {\n git reset --soft "$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT" --\n }\n\n # build\n & .\cibuild.cmd -restore -build -buildNative -logFileName build.binlog\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n\n # if we have reset above we need to reset English xlfs, otherwise the loc verification step will fail\n # refer to https://github.com/gitextensions/gitextensions/issues/7979\n if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {\n git reset $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT --quiet -- "GitUI/Translation/English.xlf" "GitUI/Translation/English.Plugins.xlf"\n git checkout --force -- "GitUI/Translation/English.xlf" "GitUI/Translation/English.Plugins.xlf"\n }\n\n # it would be nice to run '.\cibuild.cmd -loc -logFileName localise.binlog /p:NoBuild=true' but it doesn't work without `-build` switch :\\n Push-Location .\src\app\GitExtensions\n msbuild /p:Configuration=Release /t:_UpdateEnglishTranslations /p:RunTranslationApp=true /p:ContinuousIntegrationBuild=true /v:m /bl:..\artifacts\log\localise.binlog\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n Pop-Location\n\n\n# to run your custom scripts instead of automatic tests\ntest_script:\n- ps: |\n $failBuildIfTestsFail = $env:FAIL_BUILD_IF_TESTS_FAIL\n $runUnitTests = $env:RUN_UNIT_TESTS\n $runIntegrationTests = $env:RUN_INTEGRATION_TESTS\n $testRunCount = $env:TEST_RUN_COUNT\n\n Write-Host "FAIL_BUILD_IF_TESTS_FAIL: ${failBuildIfTestsFail}"\n Write-Host "RUN_UNIT_TESTS: ${runUnitTests}"\n Write-Host "RUN_INTEGRATION_TESTS: ${runIntegrationTests}"\n Write-Host "TEST_RUN_COUNT: ${testRunCount}"\n Write-Host "GE_TEST_SLEEP_SECONDS_ON_HANG: ${env:GE_TEST_SLEEP_SECONDS_ON_HANG}"\n Write-Host "GE_TEST_LAUNCH_DEBUGGER_ON_HANG: ${env:GE_TEST_LAUNCH_DEBUGGER_ON_HANG}"\n\n $testErrorsTotal = 0\n for ($testRun = 1; $testRun -le $testRunCount; $testRun++)\n {\n $failedBefore = if ($testRun -ne 1) { ", ${testErrorsTotal} test(s) failed before" }\n Write-Host ""\n Write-Host "[INFO]: Test Run ${testRun}/${testRunCount}${failedBefore}"\n\n if ($runUnitTests -ne 0) { & .\cibuild.cmd /p:NoBuild=true -test -logFileName UnitTest.binlog }\n if ($runIntegrationTests -ne 0) { & .\cibuild.cmd /p:NoBuild=true -integrationTest -logFileName IntegrationTest.binlog }\n\n Get-ChildItem -recurse artifacts\tests\TestResult.xml -ErrorAction SilentlyContinue `\n | ForEach-Object {\n $resultFilePath = "$_"\n Get-Content $resultFilePath `\n | Select-String -Pattern '<test-run id="[^"]*"\s+testcasecount="(\d+)"\s+result="([^"]*)"\s+total="(\d+)"\s+passed="(\d+)"\s+failed="(\d+)".*' `\n | foreach {\n $result = $_.Matches.Groups\n #$result[0].Value\n $total = $result[1].Value\n $passed = $result[4].Value\n $failed = $result[5].Value\n $notPassed = $total - $passed\n $testErrors = $failed\n $testProjectName = $resultFilePath.Split('\\')[-3]\n $artifactName = "TestResult#${testRun}.${testErrors}err.${testProjectName}"\n Push-AppveyorArtifact $resultFilePath -FileName "${artifactName}.xml"\n if ($notPassed -ne 0) {\n $logFile = Get-ChildItem -recurse artifacts\$testProjectName*.log\n if ($testErrors -ne 0) { Push-AppveyorArtifact $logFile -FileName "${artifactName}.log" }\n }\n $testErrorsTotal += $testErrors\n }\n }\n }\n if ($testErrorsTotal -ne 0 -and $failBuildIfTestsFail -ne 0) { $host.SetShouldExit($testErrorsTotal) }\n\n\n# scripts to run after tests\nafter_test:\n- ps: |\n Write-Host "Preparing build artifacts..."\n & .\cibuild.cmd -publish -logFileName publish.binlog\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n\n\nartifacts:\n - path: artifacts\log\**\*.binlog\n - path: artifacts\publish\*.zip\n\n#on_finish:\n# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))\n\n\n# on build failure\non_failure:\n- ps: |\n Get-ChildItem -recurse artifacts\log\*.binlog -ErrorAction SilentlyContinue `\n | ForEach-Object {\n Push-AppveyorArtifact "$_"\n }\n | dataset_sample\yaml\csharp\appveyor.experimental.yml | appveyor.experimental.yml | YAML | 6,696 | 0.8 | 0.118012 | 0.195489 | vue-tools | 636 | 2023-08-08T11:02:50.901010 | BSD-3-Clause | false | 995b01a8f1b1dcada141d91e6e8eb279 |
version: "{build}"\n\nimage: Visual Studio 2022\n\nplatform:\n - Any CPU\n\nconfiguration:\n - Release\n\nbuild_script:\n - msbuild "SubtitleEdit.sln" /r /v:minimal /clp:summary /p:"Platform=%PLATFORM%" /p:"Configuration=%CONFIGURATION%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\n\ntest_script_pre:\n - ps: |\n Write-Host "=== 📁 Listing test output directory ==="\n Get-ChildItem "src\Tests\bin\$env:CONFIGURATION" -Recurse | ForEach-Object {\n Write-Host $_.FullName\n }\n\n # Try to find and copy libSkiaSharp.dll\n - ps: |\n Write-Host "=== 🔍 Searching for libSkiaSharp.dll under /src ==="\n $target = "src\Tests\bin\$env:CONFIGURATION"\n $dlls = Get-ChildItem -Recurse -Filter libSkiaSharp.dll src -ErrorAction SilentlyContinue\n\n if ($dlls.Count -eq 0) {\n Write-Host "❌ libSkiaSharp.dll not found under 'src'."\n Get-ChildItem -Recurse -Filter *.dll src | ForEach-Object {\n Write-Host "📦 Found other DLL: $($_.FullName)"\n }\n } else {\n foreach ($dll in $dlls) {\n Write-Host "✅ Found: $($dll.FullName)"\n Copy-Item $dll.FullName $target -Force\n Write-Host "📥 Copied to $target"\n }\n }\n\ntest_script:\n - vstest.console "src\Tests\bin\%CONFIGURATION%\Tests.dll" /logger:Appveyor\n\ncache:\n - 'packages -> **\src\ui\packages.config'\n\nmatrix:\n fast_finish: true\n | dataset_sample\yaml\csharp\appveyor.yml | appveyor.yml | YAML | 1,414 | 0.8 | 0.042553 | 0.027027 | node-utils | 294 | 2024-07-01T11:08:20.657387 | MIT | false | a468f883f4ed5a2e1ec4145fa42917df |
clone_depth: 1\nversion: '{build}'\nimage: Visual Studio 2022\ntest: off\nskip_non_tags: true\nconfiguration: Release\n\nenvironment:\n matrix:\n - job_name: osu-game\n - job_name: osu-ruleset\n job_depends_on: osu-game\n - job_name: taiko-ruleset\n job_depends_on: osu-game\n - job_name: catch-ruleset\n job_depends_on: osu-game\n - job_name: mania-ruleset\n job_depends_on: osu-game\n - job_name: templates\n job_depends_on: osu-game\n\nnuget:\n project_feed: true\n\nfor:\n -\n matrix:\n only:\n - job_name: osu-game\n build_script:\n - cmd: dotnet pack osu.Game\osu.Game.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n -\n matrix:\n only:\n - job_name: osu-ruleset\n build_script:\n - cmd: dotnet remove osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet add osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet pack osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n -\n matrix:\n only:\n - job_name: taiko-ruleset\n build_script:\n - cmd: dotnet remove osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet add osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet pack osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n -\n matrix:\n only:\n - job_name: catch-ruleset\n build_script:\n - cmd: dotnet remove osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet add osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet pack osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n -\n matrix:\n only:\n - job_name: mania-ruleset\n build_script:\n - cmd: dotnet remove osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet add osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet pack osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n -\n matrix:\n only:\n - job_name: templates\n build_script:\n - cmd: dotnet remove Templates\Rulesets\ruleset-empty\osu.Game.Rulesets.EmptyFreeform\osu.Game.Rulesets.EmptyFreeform.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet remove Templates\Rulesets\ruleset-example\osu.Game.Rulesets.Pippidon\osu.Game.Rulesets.Pippidon.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet remove Templates\Rulesets\ruleset-scrolling-empty\osu.Game.Rulesets.EmptyScrolling\osu.Game.Rulesets.EmptyScrolling.csproj reference osu.Game\osu.Game.csproj\n - cmd: dotnet remove Templates\Rulesets\ruleset-scrolling-example\osu.Game.Rulesets.Pippidon\osu.Game.Rulesets.Pippidon.csproj reference osu.Game\osu.Game.csproj\n\n - cmd: dotnet add Templates\Rulesets\ruleset-empty\osu.Game.Rulesets.EmptyFreeform\osu.Game.Rulesets.EmptyFreeform.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet add Templates\Rulesets\ruleset-example\osu.Game.Rulesets.Pippidon\osu.Game.Rulesets.Pippidon.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet add Templates\Rulesets\ruleset-scrolling-empty\osu.Game.Rulesets.EmptyScrolling\osu.Game.Rulesets.EmptyScrolling.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n - cmd: dotnet add Templates\Rulesets\ruleset-scrolling-example\osu.Game.Rulesets.Pippidon\osu.Game.Rulesets.Pippidon.csproj package ppy.osu.Game -v %APPVEYOR_REPO_TAG_NAME%\n\n - cmd: dotnet pack Templates\osu.Game.Templates.csproj /p:Version=%APPVEYOR_REPO_TAG_NAME%\n\nartifacts:\n - path: '**\*.nupkg'\n\ndeploy:\n - provider: Environment\n name: nuget\n | dataset_sample\yaml\csharp\appveyor_deploy.yml | appveyor_deploy.yml | YAML | 4,052 | 0.7 | 0.034884 | 0 | awesome-app | 604 | 2024-12-14T15:33:55.952472 | MIT | false | f2fc944541e88866f961ed0c8cc7c3ab |
# Comment to post when potential duplicates are detected\nreferenceComment: |\n Thank you for the bug report :+1:\n \n Sadly, it appears some important information is still missing, which you may have overlooked while submitting the bug.\n Without this information we may not be able to assist you in resolving the issue.\n \n Please review your submission, fill the missing information in and post a new comment to ping us back to re-open the issue.\n Thanks again\n | dataset_sample\yaml\csharp\archivarius.yml | archivarius.yml | YAML | 465 | 0.95 | 0.222222 | 0.142857 | react-lib | 720 | 2025-05-08T12:26:57.686323 | Apache-2.0 | false | 3c7d9b888c4acc40b6517cebfda91584 |
# Name: DotNet-Roslyn-Compliance\n# URL: https://devdiv.visualstudio.com/DevDiv/_build?definitionId=16722\n#\n# Responsible for running compliance checks.\n\n#\n# NOTE: triggers for this build are defined in the Web UI instead of here in the YAML file so they\n# apply to all branches.\n\nqueue:\n name: VSEngSS-MicroBuild2022-1ES\n demands: Cmd\n timeoutInMinutes: 90\nvariables:\n - group: DotNet-Roslyn-ApiScan\n - name: BuildConfiguration\n value: Release\n - name: TeamName\n value: DotNet-Roslyn\n - name: SignType\n value: test\n - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n - name: _DevDivDropAccessToken\n value: $(System.AccessToken)\n - name: Codeql.Enabled\n value: false\n - name: Codeql.SkipTaskAutoInjection\n value: true\n\nsteps:\n- template: eng/pipelines/checkout-windows-task.yml\n\n- powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"\n displayName: Setting SourceBranchName variable\n\n- powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)"\n displayName: Setting VisualStudio.DropName variable\n\n- task: PowerShell@2\n displayName: Build\n inputs:\n filePath: eng/build.ps1\n arguments: -ci\n -prepareMachine\n -restore\n -build\n -configuration $(BuildConfiguration)\n -officialBuildId $(Build.BuildNumber)\n -officialSkipTests true\n -officialSkipApplyOptimizationData true\n -officialSourceBranchName $(SourceBranchName)\n -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken)\n /p:RepositoryName=$(Build.Repository.Name)\n /p:VisualStudioDropName=$(VisualStudio.DropName)\n\n- task: CopyFiles@2\n # APIScan can take a long time, so here we copy (mostly) just the product binaries and related .pdbs\n # in an effort to limit what it needs to work on.\n displayName: Copy Roslyn assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\Roslyn.VisualStudio.Setup\$(BuildConfiguration)\net472' # Limit to (mostly) product binaries\n Contents: |\n Microsoft.CodeAnalysis*.dll\n Microsoft.CodeAnalysis*.pdb\n Microsoft.VisualStudio.LanguageServices*.dll\n Microsoft.VisualStudio.LanguageServices*.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy csc assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\csc\$(BuildConfiguration)\net472'\n Contents: |\n csc.dll\n csc.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy vbc assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\vbc\$(BuildConfiguration)\net472'\n Contents: |\n vbc.dll\n vbc.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy VBCSCompiler assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\VBCSCompiler\$(BuildConfiguration)\net472'\n Contents: |\n VBCSCompiler.dll\n VBCSCompiler.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: APIScan@2\n # Scan for the use of undocumented APIs.\n displayName: Run APIScan\n inputs:\n softwareFolder: '$(Agent.TempDirectory)\APIScanFiles' # Only examine the product binaries we previously copied.\n softwareName: 'Dotnet-Roslyn'\n softwareVersionNum: '17.0'\n softwareBuildNum: '$(Build.BuildId)'\n symbolsFolder: 'SRV*http://symweb'\n env:\n AzureServicesAuthConnectionString: runAs=App;AppId=$(MicroBuildApiScanClientId)\n continueOnError: true\n\n- task: TSAUpload@2\n # Scan the output of previous steps and create bugs for any problems.\n displayName: Upload results and create bugs\n inputs:\n GdnPublishTsaOnboard: true\n GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\eng\TSAConfig.gdntsa' # All relevant settings are in this file.\n continueOnError: true\n\n- task: PublishSecurityAnalysisLogs@3\n displayName: Publishing analysis artifacts\n inputs:\n ArtifactName: 'CodeAnalysisLogs'\n ArtifactType: 'Container' # Associate the artifacts with the build.\n AllTools: true # Look for logs from all tools.\n ToolLogsNotFoundAction: 'Standard' # If a log is not found just output a message to that effect. | dataset_sample\yaml\csharp\azure-pipelines-compliance.yml | azure-pipelines-compliance.yml | YAML | 4,637 | 0.8 | 0.070866 | 0.095652 | awesome-app | 570 | 2024-04-12T00:47:22.480566 | MIT | false | 5c74685bb846d020967c04689cbf1a48 |
# Separate pipeline from normal integration CI to allow branches to change legs\n\n# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - release/dev17.4\n - release/dev17.6\n - release/dev17.8\n - release/dev17.9\n - release/dev17.10\n\n# Branches that are allowed to trigger a build via /azp run.\n# Automatic building of all PRs is disabled in the pipeline's trigger page.\n# See https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers\npr:\n branches:\n include:\n - release/dev17.4\n - release/dev17.6\n - release/dev17.8\n - release/dev17.9\n - release/dev17.10\n paths:\n exclude:\n - docs/*\n - eng/config/OptProf.json\n - eng/config/PublishData.json\n - .vscode/*\n - .github/*\n - .devcontainer/*\n - src/Compilers/*\n - .git-blame-ignore-revs\n - .vsconfig\n - CODE-OF-CONDUCT.md\n - CONTRIBUTING.md\n - README.md\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_CoreHost_Debug\n\n- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_CoreHost_Release\n | dataset_sample\yaml\csharp\azure-pipelines-integration-corehost.yml | azure-pipelines-integration-corehost.yml | YAML | 2,307 | 0.8 | 0.011236 | 0.060241 | node-utils | 128 | 2023-08-30T02:14:13.463964 | Apache-2.0 | false | 5e57bdbc4b0ae10c70980005b3eab1d2 |
# Roslyn integration test pipeline for validating against branch builds of VS.\n\ntrigger: none # Manual trigger for now\npr: none # Manual trigger for now\n\nresources:\n pipelines:\n - pipeline: VisualStudioBuildUnderTest\n source: DD-CB-ReleaseVS\n branch: main\n - pipeline: DartLab\n source: DartLab\n branch: main\n repositories:\n - repository: DartLabTemplates\n type: git\n name: DartLab.Templates\n ref: main\n - repository: RoslynMirror\n endpoint: dnceng/internal\n type: git\n name: internal/dotnet-roslyn\n ref: $(Build.SourceBranch)\n trigger:\n - main\n\nparameters:\n - name: prNumber\n type: string\n default: 'None'\n - name: sha\n type: string\n default: 'None'\n\nvariables:\n- name: XUNIT_LOGS\n value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nstages:\n- ${{ if ne(parameters.prNumber, 'None') }}:\n - stage: GitHubCommentFirst\n jobs:\n - job: GitHubCommentFirstJob\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'Started DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) for ${{ parameters.sha }}'\n\n- template: \stages\visual-studio\agent.yml@DartLabTemplates\n parameters:\n name: VSIntegration\n displayName: VS Integration\n testLabPoolName: VS-Platform\n visualStudioBootstrapperURI: https://vsdrop.corp.microsoft.com/file/v1/$(VisualStudio.BuildUnderTest.ProductsDropName);bootstrappers/Enterprise/vs_enterprise.exe\n visualStudioInstallationParameters: --add Microsoft.VisualStudio.Component.NuGet --add Microsoft.VisualStudio.Component.Roslyn.Compiler --add Microsoft.Component.MSBuild --add Microsoft.NetCore.Component.Runtime.6.0 --add Microsoft.NetCore.Component.SDK --add Microsoft.Net.Component.4.7.2.TargetingPack --add Microsoft.VisualStudio.Component.Roslyn.LanguageServices --add Microsoft.VisualStudio.Component.FSharp --add Microsoft.ComponentGroup.ClickOnce.Publish --add Microsoft.NetCore.Component.DevelopmentTools --add Microsoft.VisualStudio.Component.MSODBC.SQL --add Microsoft.VisualStudio.Component.MSSQL.CMDLnUtils --add Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime --add Microsoft.VisualStudio.Component.SQL.CLR --add Microsoft.VisualStudio.Component.CoreEditor --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.Net.Component.4.8.SDK --add Microsoft.Net.ComponentGroup.DevelopmentPrerequisites --add Microsoft.VisualStudio.Component.TypeScript.TSServer --add Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions --add Microsoft.VisualStudio.Component.JavaScript.TypeScript --add Microsoft.VisualStudio.Component.JavaScript.Diagnostics --add Microsoft.VisualStudio.Component.TextTemplating --add Component.Microsoft.VisualStudio.RazorExtension --add Microsoft.VisualStudio.Component.IISExpress --add Microsoft.VisualStudio.Component.Common.Azure.Tools --add Microsoft.Component.ClickOnce --add Microsoft.VisualStudio.Component.ManagedDesktop.Core --add Microsoft.VisualStudio.Component.SQL.SSDT --add Microsoft.VisualStudio.Component.SQL.DataSources --add Component.Microsoft.Web.LibraryManager --add Component.Microsoft.WebTools.BrowserLink.WebLivePreview --add Microsoft.VisualStudio.ComponentGroup.Web --add Microsoft.VisualStudio.Component.FSharp.WebTemplates --add Microsoft.VisualStudio.Component.DockerTools --add Microsoft.NetCore.Component.Web --add Microsoft.VisualStudio.Component.WebDeploy --add Microsoft.VisualStudio.Component.AppInsights.Tools --add Microsoft.VisualStudio.Component.Web --add Microsoft.Net.Component.4.8.TargetingPack --add Microsoft.Net.ComponentGroup.4.8.DeveloperTools --add Microsoft.VisualStudio.Component.AspNet45 --add Microsoft.VisualStudio.Component.AspNet --add Component.Microsoft.VisualStudio.Web.AzureFunctions --add Microsoft.VisualStudio.ComponentGroup.AzureFunctions --add Microsoft.VisualStudio.Component.Debugger.Snapshot --add Microsoft.VisualStudio.ComponentGroup.Web.CloudTools --add Microsoft.VisualStudio.Component.IntelliTrace.FrontEnd --add Microsoft.VisualStudio.Component.DiagnosticTools --add Microsoft.VisualStudio.Component.EntityFramework --add Microsoft.VisualStudio.Component.LiveUnitTesting --add Microsoft.VisualStudio.Component.Debugger.JustInTime --add Component.Microsoft.VisualStudio.LiveShare.2022 --add Microsoft.VisualStudio.Component.WslDebugging --add Microsoft.VisualStudio.Component.IntelliCode --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites --add Microsoft.ComponentGroup.Blend --add Microsoft.VisualStudio.Component.DotNetModelBuilder --add Microsoft.VisualStudio.Component.FSharp.Desktop --add Microsoft.VisualStudio.Component.PortableLibrary --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.Net.Component.4.6.TargetingPack --add Microsoft.VisualStudio.Component.VSSDK --add Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites --add Microsoft.Component.CodeAnalysis.SDK --add Microsoft.VisualStudio.Workload.VisualStudioExtension --installPath "C:\Test\VisualStudio" --quiet --norestart --wait\n testExecutionJobStrategy:\n maxParallel: 4\n matrix:\n debug_32:\n _configuration: Debug\n _oop64bit: false\n debug_64:\n _configuration: Debug\n _oop64bit: true\n release_32:\n _configuration: Release\n _oop64bit: false\n release_64:\n _configuration: Release\n _oop64bit: true\n testMachineTotalCount: 4\n testAgentElevated: true\n preTestMachineConfigurationStepList:\n - checkout: none\n - download: VisualStudioBuildUnderTest\n - task: PowerShell@2\n name: SetProductsDropName\n displayName: Set 'VisualStudio.BuildUnderTest.ProductsDropName'\n inputs:\n filePath: $(DartLab.Path)\Scripts\VisualStudio\Build\Get-VisualStudioDropName.ps1\n arguments: -DropNamePrefix 'Products' -VstsDropUrlsJson '$(Pipeline.Workspace)\VisualStudioBuildUnderTest\BuildArtifacts\VstsDropUrls.json' -OutVariableName 'VisualStudio.BuildUnderTest.ProductsDropName'\n deployAndRunTestsStepList:\n - checkout: RoslynMirror\n fetchDepth: 1\n fetchTags: false\n - template: eng/pipelines/test-integration-job.yml\n parameters:\n configuration: $(_configuration)\n oop64bit: $(_oop64bit)\n lspEditor: false\n skipCheckout: true\n\n- ${{ if ne(parameters.prNumber, 'None') }}:\n - stage: GitHubCommentCompleted\n condition: always()\n dependsOn: VSIntegration\n jobs:\n - job: GitHubCommentCompletedSuccessfullyJob\n condition: eq(stageDependencies.VSIntegration.result, 'Succeeded')\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) completed successfully for ${{ parameters.sha }}'\n - job: GitHubCommentCompletedUnsuccessfullyJob\n condition: ne(stageDependencies.VSIntegration.result, 'Succeeded')\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) did not complete successfully for ${{ parameters.sha }}' | dataset_sample\yaml\csharp\azure-pipelines-integration-dartlab.yml | azure-pipelines-integration-dartlab.yml | YAML | 8,047 | 0.8 | 0.064516 | 0.008475 | node-utils | 884 | 2023-12-24T01:47:24.398069 | Apache-2.0 | false | 8ebca88277670fecac0774a53888fcff |
# Separate pipeline from normal integration CI to allow branches to change legs\n\n# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.0-vs-deps\n - release/dev17.2\n - release/dev17.3\n\n# Branches that are allowed to trigger a build via /azp run.\n# Automatic building of all PRs is disabled in the pipeline's trigger page.\n# See https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers\npr:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.0-vs-deps\n - release/dev17.2\n - release/dev17.3\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: true\n lspEditor: true\n runName: VS_Integration_LSP_Debug_64\n | dataset_sample\yaml\csharp\azure-pipelines-integration-lsp.yml | azure-pipelines-integration-lsp.yml | YAML | 2,004 | 0.8 | 0 | 0.128571 | python-kit | 543 | 2024-03-07T14:49:33.926355 | GPL-3.0 | false | 08331088fe1f94f77425059e26b9fb18 |
# Disable CI triggers\ntrigger: none\npr: none\n\n# Nightly run of integration tests against the scouting queue\nschedules:\n- cron: "0 0 * * *"\n displayName: Nightly builds\n branches:\n include:\n - main\n - main-vs-deps\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Debug_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Debug_64\n\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Release_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Release_64\n | dataset_sample\yaml\csharp\azure-pipelines-integration-scouting.yml | azure-pipelines-integration-scouting.yml | YAML | 1,650 | 0.8 | 0 | 0.03125 | awesome-app | 895 | 2023-11-11T18:25:41.102099 | Apache-2.0 | false | 87dc7004117da0769eb74b70c68f2eaa |
# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.8\n - release/dev17.10\n - release/dev17.12\n\n# Branches that trigger builds on PR\npr:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.8\n - release/dev17.10\n - release/dev17.12\n paths:\n exclude:\n - docs/*\n - eng/config/OptProf.json\n - eng/config/PublishData.json\n - eng/setup-pr-validation.ps1\n - .vscode/*\n - .github/*\n - .devcontainer/*\n - .git-blame-ignore-revs\n - .vsconfig\n - azure-pipelines-compliance.yml\n - azure-pipelines-integration-dartlab.yml\n - azure-pipelines-integration-scouting.yml\n - azure-pipelines-official.yml\n - azure-pipelines-pr-validation.yml\n - CODE-OF-CONDUCT.md\n - CONTRIBUTING.md\n - README.md\n - src/Compilers/*\n - src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/README.md\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Debug_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Debug_64\n\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Release_32\n - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Release_64\n | dataset_sample\yaml\csharp\azure-pipelines-integration.yml | azure-pipelines-integration.yml | YAML | 2,983 | 0.8 | 0.018018 | 0.056604 | python-kit | 628 | 2023-09-06T05:25:49.570807 | GPL-3.0 | false | 579230862e18af6066edb5da9da0e8ff |
trigger:\n branches:\n include:\n - main\n - main-vs-deps\n - release/dev16.*-vs-deps\n - release/dev17.*\n - release/dev18.*\n - features/lsp_tools_host\n - features/runtime-async\n exclude:\n - release/dev17.0\npr: none\n\nresources:\n repositories:\n - repository: 1ESPipelineTemplates\n type: git\n name: 1ESPipelineTemplates/1ESPipelineTemplates\n ref: refs/tags/release\n pipelines:\n - pipeline: profilingInputs\n source: dotnet-vscode-csharp-profiling\n branch: main\n trigger: none\n\nparameters:\n- name: IbcDrop\n type: string\n default: default\n\n- name: SignType\n default: real\n type: string\n values:\n - real\n - test\n\n- name: SkipApplyOptimizationData\n type: boolean\n default: false\n\n- name: SkipTests\n type: boolean\n default: true\n\n# An optional VS commit SHA that will be automatically cherry-picked\n# to the insertion PR created by this build.\n- name: VisualStudioCherryPickSHA\n type: string\n default: '(default)'\n\nschedules:\n - cron: "0 8 23-29 * 0"\n displayName: "Monthly smoke test"\n branches:\n include: \n - main\n - release/*\n exclude: \n - ""\n always: true # Run even if there have been no source code changes since the last successful scheduled run\n batch: false # Do not run the pipeline if the previously scheduled run is in-progress\n\nvariables:\n - group: DotNet-Roslyn-SDLValidation-Params\n - name: Codeql.Enabled\n value: true\n\n # To retrieve OptProf data we need to authenticate to the VS drop storage.\n # Get access token with $dn-bot-devdiv-drop-rw-code-rw and dn-bot-dnceng-build-rw-code-rw from DotNet-VSTS-Infra-Access\n # Get $AccessToken-dotnet-build-bot-public-repo from DotNet-Versions-Publish\n - group: DotNet-Versions-Publish\n - group: DotNet-VSTS-Infra-Access\n - group: DotNet-DevDiv-Insertion-Workflow-Variables\n - group: AzureDevOps-Artifact-Feeds-Pats\n - name: _DevDivDropAccessToken\n value: $(dn-bot-devdiv-drop-rw-code-rw)\n - name: ArtifactServices.Drop.PAT\n value: $(dn-bot-devdiv-drop-rw-code-rw)\n - group: DotNet-Roslyn-Insertion-Variables\n - group: AzureDevOps-Artifact-Feeds-Pats\n\n - name: BuildConfiguration\n value: release\n - name: Roslyn.GitHubEmail\n value: dotnet-build-bot@microsoft.com\n - name: Roslyn.GitHubToken\n value: $(AccessToken-dotnet-build-bot-public-repo)\n - name: Roslyn.GitHubUserName\n value: dotnet-build-bot\n\n - name: Insertion.InsertToolset\n value: true\n - name: Insertion.CreateDraftPR\n value: true\n - name: Insertion.TitlePrefix\n value: '[Auto Insertion]'\n - name: Insertion.TitleSuffix\n value: ''\n\n - ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:\n - name: enableSourceIndex\n value: true\n - name: VSCodeOptimizationDataRoot\n value: $(Pipeline.Workspace)/profilingInputs/merged mibc\n\n\nextends:\n template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates\n parameters:\n featureFlags:\n autoBaseline: true\n sdl:\n sourceAnalysisPool:\n name: NetCore1ESPool-Svc-Internal\n image: 1es-windows-2022\n os: windows\n sbom:\n enabled: false\n suppression:\n suppressionFile: $(Build.SourcesDirectory)\eng\config\guardian\.gdnsuppres\n policheck:\n enabled: true\n tsa:\n enabled: true\n configFile: '$(Build.SourcesDirectory)/eng/TSAConfig.gdntsa'\n pool:\n name: NetCore1ESPool-Svc-Internal\n image: windows.vs2022preview.amd64\n os: windows\n customBuildTags:\n - ES365AIMigrationTooling\n stages:\n\n - stage: build\n displayName: Build and Test\n\n jobs:\n - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/release/dev17.13') }}:\n - template: /eng/common/templates-official/job/onelocbuild.yml@self\n parameters:\n MirrorRepo: roslyn\n MirrorBranch: release/dev17.13\n LclSource: lclFilesfromPackage\n LclPackageId: 'LCL-JUNO-PROD-ROSLYN'\n\n - template: /eng/common/templates-official/jobs/source-build.yml@self\n\n - job: OfficialBuild\n displayName: Official Build\n timeoutInMinutes: 360\n templateContext:\n outputs:\n\n # Publish OptProf generated JSON files as a pipeline artifact. This allows for easy inspection from\n # a build execution.\n - output: pipelineArtifact\n displayName: 'Publish OptProf Data Files'\n condition: succeeded()\n targetPath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'\n artifactName: 'OptProf Data Files'\n\n - output: pipelineArtifact\n displayName: 'Publish Logs'\n condition: succeededOrFailed()\n targetPath: '$(Build.SourcesDirectory)\artifacts\log\$(BuildConfiguration)'\n artifactName: 'Build Diagnostic Files'\n publishLocation: Container\n\n - output: pipelineArtifact\n displayName: 'Publish Ngen Logs'\n condition: and(succeeded(), ${{ not(parameters.SkipApplyOptimizationData) }})\n targetPath: '$(Build.SourcesDirectory)\artifacts\log\$(BuildConfiguration)\ngen'\n artifactName: 'NGen Logs'\n publishLocation: Container\n\n # Publishes setup VSIXes to a drop.\n # Note: The insertion tool looks for the display name of this task in the logs.\n - output: microBuildVstsDrop\n displayName: Upload VSTS Drop\n condition: succeeded()\n dropFolder: 'artifacts\VSSetup\$(BuildConfiguration)\Insertion'\n dropName: $(VisualStudio.DropName)\n accessToken: $(_DevDivDropAccessToken)\n dropRetentionDays: 90\n\n # Publish insertion packages to CoreXT store.\n - output: nuget\n displayName: 'Publish CoreXT Packages'\n condition: succeeded()\n packageParentPath: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages'\n packagesToPush: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages\**\*.nupkg'\n allowPackageConflicts: true\n nuGetFeedType: external\n publishFeedCredentials: 'DevDiv - VS package feed'\n\n # Publish an artifact that the RoslynInsertionTool is able to find by its name.\n - output: pipelineArtifact\n displayName: 'Publish Artifact VSSetup'\n condition: succeeded()\n targetPath: 'artifacts\VSSetup\$(BuildConfiguration)'\n artifactName: 'VSSetup'\n\n # Publish our NuPkgs as an artifact. The name of this artifact must be PackageArtifacts as the\n # arcade templates depend on the name.\n - output: buildArtifacts\n displayName: 'Publish Artifact Packages'\n condition: succeeded()\n PathtoPublish: 'artifacts\packages\$(BuildConfiguration)'\n ArtifactName: 'PackageArtifacts'\n\n # Publish Asset Manifests for Build Asset Registry job\n - output: buildArtifacts\n displayName: 'Publish Asset Manifests'\n condition: succeeded()\n PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(BuildConfiguration)/AssetManifest'\n ArtifactName: AssetManifests\n\n steps:\n - pwsh: Set-MpPreference -DisableRealtimeMonitoring $true\n displayName: Disable Real-time Monitoring\n \n - powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"\n displayName: Setting SourceBranchName variable\n condition: succeeded()\n\n - task: Powershell@2\n displayName: Tag official build\n inputs:\n targetType: inline\n script: |\n Write-Host "##vso[build.addBuildTag]OfficialBuild"\n condition: succeeded()\n\n # Don't run this while we don't have a main-vs-deps to merge. Should be uncommented when the branch comes back. Also need to change the condition of the tagging task above.\n #\n # - task: Powershell@2\n # displayName: Tag main validation build\n # inputs:\n # targetType: inline\n # script: |\n # Write-Host "##vso[build.addBuildTag]MainValidationBuild"\n # condition: and(succeeded(), eq(variables['SourceBranchName'], 'main'))\n\n # Don't run this while we don't have a main-vs-deps to merge. Should be uncommented when the branch comes back.\n #\n # - task: PowerShell@2\n # displayName: Merge main-vs-deps into source branch\n # inputs:\n # filePath: 'scripts\merge-vs-deps.ps1'\n # arguments: '-accessToken $(dn-bot-dnceng-build-rw-code-rw)'\n # condition: and(succeeded(), eq(variables['SourceBranchName'], 'main'))\n\n - powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)"\n displayName: Setting VisualStudio.DropName variable\n\n - task: NodeTool@0\n inputs:\n versionSpec: '16.x'\n displayName: 'Install Node.js'\n\n - task: NuGetToolInstaller@0\n inputs:\n versionSpec: '4.9.2'\n\n # Authenticate with service connections to be able to publish packages to external nuget feeds.\n - task: NuGetAuthenticate@1\n inputs:\n nuGetServiceConnections: azure-public/vs-impl, azure-public/vssdk, devdiv/engineering, devdiv/dotnet-core-internal-tooling\n\n # Needed for SBOM tool\n - task: UseDotNet@2\n displayName: 'Use .NET Core 3.1 runtime'\n inputs:\n packageType: runtime\n version: 3.1.28\n installationPath: '$(Build.SourcesDirectory)\.dotnet'\n\n # Needed because the build fails the NuGet Tools restore without it\n - task: UseDotNet@2\n displayName: 'Use .NET Core sdk'\n inputs:\n packageType: sdk\n useGlobalJson: true\n workingDirectory: '$(Build.SourcesDirectory)'\n\n - task: MicroBuildSigningPlugin@4\n inputs:\n signType: $(SignType)\n zipSources: false\n feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json\n condition: and(succeeded(), in(variables['SignType'], 'test', 'real'))\n\n - download: profilingInputs\n artifact: merged mibc\n displayName: Download VSCode optimization inputs\n\n - task: PowerShell@2\n displayName: Build\n inputs:\n filePath: eng/build.ps1\n arguments: -ci\n -prepareMachine\n -restore\n -build\n -pack\n -sign\n -publish\n -binaryLog\n -configuration $(BuildConfiguration)\n -officialBuildId $(Build.BuildNumber)\n -officialSkipTests $(SkipTests)\n -officialSkipApplyOptimizationData ${{ parameters.SkipApplyOptimizationData }}\n -officialSourceBranchName $(SourceBranchName)\n -officialIbcDrop $(IbcDrop)\n -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken)\n /p:RepositoryName=$(Build.Repository.Name)\n /p:VisualStudioDropName=$(VisualStudio.DropName)\n /p:VSCodeOptimizationDataRoot="$(VSCodeOptimizationDataRoot)"\n /p:DotNetSignType=$(SignType)\n /p:DotnetPublishUsingPipelines=true\n /p:IgnoreIbcMergeErrors=true\n /p:GenerateSbom=true\n condition: succeeded()\n\n - template: /eng/common/templates-official/steps/generate-sbom.yml@self\n\n - task: PowerShell@2\n displayName: Publish Assets\n inputs:\n filePath: 'eng\publish-assets.ps1'\n arguments: '-configuration $(BuildConfiguration) -branchName "$(SourceBranchName)"'\n condition: succeeded()\n\n # Publish OptProf configuration files to the artifact service\n # This uses the ArtifactServices.Drop.PAT build variable which is required to enable cross account access using PAT (dnceng -> devdiv)\n - task: 1ES.PublishArtifactsDrop@1\n inputs:\n dropServiceURI: 'https://devdiv.artifacts.visualstudio.com'\n buildNumber: 'ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)'\n sourcePath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'\n toLowerCase: false\n usePat: false\n retentionDays: 90\n displayName: 'OptProf - Publish to Artifact Services - ProfilingInputs'\n condition: succeeded()\n\n - task: PublishTestResults@2\n displayName: Publish xUnit Test Results\n inputs:\n testRunner: XUnit\n testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml'\n mergeTestResults: true\n testRunTitle: 'Unit Tests'\n condition: and(succeededOrFailed(), ne(variables['SkipTests'], 'true'))\n\n # Publish to Build Asset Registry\n - template: /eng/common/templates-official/job/publish-build-assets.yml@self\n parameters:\n publishUsingPipelines: true\n dependsOn:\n - OfficialBuild\n pool:\n name: NetCore1ESPool-Svc-Internal\n demands: ImageOverride -equals windows.vs2022.amd64\n\n - ${{ if eq(variables.enableSourceIndex, 'true') }}:\n - template: /eng/common/templates-official/job/source-index-stage1.yml@self\n parameters:\n sourceIndexBuildCommand: powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng\build.ps1 -configuration Release -prepareMachine -ci -restore -build -binaryLogName Build.binlog -skipDocumentation -msbuildEngine dotnet /p:UsingToolVSSDK=false /p:GenerateSatelliteAssemblies=false /p:PublishReadyToRun=false"\n binlogPath: artifacts/log/$(BuildConfiguration)/Build.binlog\n pool:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals 1es-windows-2022\n\n - stage: insert\n dependsOn:\n - publish_using_darc\n displayName: Insert to VS\n\n jobs:\n - job: insert\n displayName: Insert to VS\n steps:\n - download: current\n artifact: VSSetup\n - powershell: |\n $branchName = "$(Build.SourceBranch)".Substring("refs/heads/".Length)\n Write-Host "##vso[task.setvariable variable=ComponentBranchName]$branchName"\n displayName: Get Branch Name\n - template: /eng/pipelines/insert.yml@self\n parameters:\n buildUserName: "dn-bot@microsoft.com"\n buildPassword: $(dn-bot-devdiv-build-e-code-full-release-e-packaging-r)\n componentUserName: "dn-bot@microsoft.com"\n componentPassword: $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)\n componentBuildProjectName: internal\n sourceBranch: "$(ComponentBranchName)"\n publishDataURI: "https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"\n publishDataAccessToken: "$(System.AccessToken)"\n dropPath: '$(Pipeline.Workspace)\VSSetup'\n cherryPick: ${{ parameters.VisualStudioCherryPickSHA }}\n\n - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - template: /eng/common/templates-official/post-build/post-build.yml@self\n parameters:\n publishingInfraVersion: 3\n # Symbol validation is not entirely reliable as of yet, so should be turned off until\n # https://github.com/dotnet/arcade/issues/2871 is resolved.\n enableSymbolValidation: false\n enableSourceLinkValidation: false\n # Enable SDL validation, passing through values from the 'DotNet-Roslyn-SDLValidation-Params' group.\n SDLValidationParameters:\n enable: true\n params: >-\n -SourceToolsList @("policheck","credscan")\n -ArtifactToolsList @("binskim")\n -BinskimAdditionalRunConfigParams @("IgnorePdbLoadError < True","Recurse < True","SymbolsPath < SRV*https://msdl.microsoft.com/download/symbols")\n -TsaInstanceURL $(_TsaInstanceURL)\n -TsaProjectName $(_TsaProjectName)\n -TsaNotificationEmail $(_TsaNotificationEmail)\n -TsaCodebaseAdmin $(_TsaCodebaseAdmin)\n -TsaBugAreaPath $(_TsaBugAreaPath)\n -TsaIterationPath $(_TsaIterationPath)\n -TsaRepositoryName $(_TsaRepositoryName)\n -TsaCodebaseName $(_TsaCodebaseName)\n -TsaPublish $True\n | dataset_sample\yaml\csharp\azure-pipelines-official.yml | azure-pipelines-official.yml | YAML | 17,195 | 0.95 | 0.028037 | 0.105541 | python-kit | 614 | 2025-04-27T01:47:36.005334 | BSD-3-Clause | false | 7d5b71bc068baf0cda071463bb70443c |
trigger: none\npr: none\n\nresources:\n repositories:\n - repository: 1ESPipelineTemplates\n type: git\n name: 1ESPipelineTemplates/1ESPipelineTemplates\n ref: refs/tags/release\n\nparameters:\n- name: PRNumber\n type: number\n- name: CommitSHA\n type: string\n- name: EnforceLatestCommit\n type: boolean\n default: true\n- name: VisualStudioBranchName\n type: string\n default: default\n- name: OptionalTitlePrefix\n type: string\n default: '[PR Validation]'\n- name: VisualStudioCherryPickSHA\n type: string\n default: '(default)'\n- name: InsertToolset\n type: boolean\n default: true\n- name: SkipApplyOptimizationData\n type: boolean\n default: false\n\nvariables:\n - group: DotNet-Roslyn-SDLValidation-Params\n - group: DotNet-Roslyn-Insertion-Variables\n - name: Codeql.Enabled\n value: false\n - name: Codeql.SkipTaskAutoInjection\n value: true\n\n # To retrieve OptProf data we need to authenticate to the VS drop storage.\n # If the pipeline is running in DevDiv, the account has access to the VS drop storage.\n # Get $AccessToken-dotnet-build-bot-public-repo from DotNet-GitHub-Versions-Repo-Write\n - group: DotNet-GitHub-Versions-Repo-Write\n - name: _DevDivDropAccessToken\n value: $(System.AccessToken)\n\nextends:\n template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates\n parameters:\n sdl:\n enableAllTools: false\n pool:\n name: VSEngSS-MicroBuild2022-1ES\n demands:\n - msbuild\n - visualstudio\n - DotNetFramework\n customBuildTags:\n - ES365AIMigrationTooling\n stages:\n\n - stage: build\n displayName: Build and Test\n\n jobs:\n - job: PRValidationBuild\n displayName: PR Validation Build\n timeoutInMinutes: 360\n templateContext:\n outputs:\n\n # Publish OptProf configuration files to the artifact service\n - output: artifactsDrop\n displayName: 'OptProf - Publish to Artifact Services - ProfilingInputs'\n condition: succeeded()\n dropServiceURI: 'https://devdiv.artifacts.visualstudio.com'\n buildNumber: 'ProfilingInputs/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(OriginalBuildNumber)'\n sourcePath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'\n toLowerCase: false\n usePat: true\n accessToken: $(_DevDivDropAccessToken)\n retentionDays: 90\n\n # Publish OptProf generated JSON files as a pipeline artifact. This allows for easy inspection from\n # a build execution.\n - output: pipelineArtifact\n displayName: 'Publish OptProf Data Files'\n condition: succeeded()\n targetPath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'\n artifactName: 'OptProf Data Files'\n\n - output: pipelineArtifact\n displayName: 'Publish Logs'\n condition: succeededOrFailed()\n targetPath: '$(Build.SourcesDirectory)\artifacts\log\$(BuildConfiguration)'\n artifactName: 'Build Diagnostic Files'\n publishLocation: Container\n\n - output: pipelineArtifact\n displayName: 'Publish Ngen Logs'\n condition: and(succeeded(), ${{ not(parameters.SkipApplyOptimizationData) }})\n targetPath: '$(Build.SourcesDirectory)\artifacts\log\$(BuildConfiguration)\ngen'\n artifactName: 'NGen Logs'\n publishLocation: Container\n\n # Publishes setup VSIXes to a drop.\n # Note: The insertion tool looks for the display name of this task in the logs.\n - output: microBuildVstsDrop\n displayName: Upload VSTS Drop\n condition: succeeded()\n dropFolder: 'artifacts\VSSetup\$(BuildConfiguration)\Insertion'\n dropName: $(VisualStudio.DropName)\n accessToken: $(_DevDivDropAccessToken)\n dropRetentionDays: 90\n\n # Publish insertion packages to CoreXT store.\n - output: nuget\n displayName: 'Publish CoreXT Packages'\n condition: succeeded()\n packageParentPath: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages'\n packagesToPush: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages\**\*.nupkg'\n allowPackageConflicts: true\n nuGetFeedType: internal\n publishVstsFeed: '97a41293-2972-4f48-8c0e-05493ae82010'\n\n # Publish an artifact that the RoslynInsertionTool is able to find by its name.\n - output: pipelineArtifact\n displayName: 'Publish Artifact VSSetup'\n condition: succeeded()\n targetPath: 'artifacts\VSSetup\$(BuildConfiguration)'\n artifactName: 'VSSetup'\n\n # Publish our NuPkgs as an artifact. The name of this artifact must be PackageArtifacts as the\n # arcade templates depend on the name.\n - output: buildArtifacts\n displayName: 'Publish Artifact Packages'\n condition: succeeded()\n PathtoPublish: 'artifacts\packages\$(BuildConfiguration)'\n ArtifactName: 'PackageArtifacts'\n\n # Publish Asset Manifests for Build Asset Registry job\n - output: buildArtifacts\n displayName: 'Publish Asset Manifests'\n condition: succeeded()\n PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(BuildConfiguration)/AssetManifest'\n ArtifactName: AssetManifests\n\n steps:\n - pwsh: Set-MpPreference -DisableRealtimeMonitoring $true\n displayName: Disable Real-time Monitoring\n \n - task: Powershell@2\n displayName: Setting OriginalBuildNumber variable\n condition: succeeded()\n inputs:\n targetType: inline\n script: |\n $originalBuildNumber = "$(Build.BuildNumber)".Split(' - ')[0]\n Write-Host "##vso[task.setvariable variable=OriginalBuildNumber;isreadonly=true]$originalBuildNumber"\n\n - powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName;isreadonly=true]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"\n displayName: Setting SourceBranchName variable\n condition: succeeded()\n\n - task: Powershell@2\n name: FancyBuild\n displayName: Setting FancyBuild.BuildNumber\n inputs:\n targetType: inline\n script: |\n $pull_request = Invoke-RestMethod -Uri "https://api.github.com/repos/dotnet/roslyn/pulls/${{ parameters.PRNumber }}" `\n -Headers @{\n "Accept" = "application/vnd.github+json";\n "X-GitHub-Api-Version" = "2022-11-28"\n }\n $buildNumberName = "$(OriginalBuildNumber) - $($pull_request.user.login) - '$($pull_request.title)'"\n $buildNumberName = $buildNumberName -replace '["/:<>\|?@*]','_'\n # Maximum buildnumber length is 255 chars and we are going to append to the end to ensure we have space.\n if ($buildNumberName.Length -GT 253) {\n $buildNumberName = $buildNumberName.Substring(0, 253)\n }\n # Avoid ever ending the BuildNumber with a `.` by always appending to it.\n $buildNumberName += ' #'\n Write-Host "##vso[task.setvariable variable=BuildNumber;isoutput=true;isreadonly=true]$buildNumberName"\n Write-Host "##vso[build.updatebuildnumber]$buildNumberName"\n\n - task: Powershell@2\n displayName: Tag PR validation build\n inputs:\n targetType: inline\n script: |\n Write-Host "##vso[build.addBuildTag]OfficialBuild"\n Write-Host "##vso[build.addBuildTag]${{ parameters.CommitSHA }}"\n Write-Host "##vso[build.addBuildTag]PRNumber${{ parameters.PRNumber }}"\n condition: succeeded()\n\n - task: PowerShell@2\n displayName: Setup branch for insertion validation\n inputs:\n filePath: 'eng\setup-pr-validation.ps1'\n arguments: "-sourceBranchName $(SourceBranchName) -prNumber ${{ parameters.PRNumber }} -commitSHA ${{ parameters.CommitSHA }} -enforceLatestCommit ${{ iif(parameters.EnforceLatestCommit, '1', '0') }}"\n condition: succeeded()\n\n - powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(OriginalBuildNumber)"\n displayName: Setting VisualStudio.DropName variable\n\n - task: NuGetToolInstaller@0\n inputs:\n versionSpec: '4.9.2'\n\n # Authenticate with service connections to be able to publish packages to external nuget feeds.\n - task: NuGetAuthenticate@1\n inputs:\n nuGetServiceConnections: azure-public/vs-impl, azure-public/vssdk\n\n # Needed because the build fails the NuGet Tools restore without it\n - task: UseDotNet@2\n displayName: 'Use .NET Core sdk'\n inputs:\n packageType: sdk\n useGlobalJson: true\n workingDirectory: '$(Build.SourcesDirectory)'\n\n - task: MicroBuildSigningPlugin@4\n inputs:\n signType: $(SignType)\n zipSources: false\n condition: and(succeeded(), in(variables['SignType'], 'test', 'real'))\n\n - task: PowerShell@2\n displayName: Build\n inputs:\n filePath: eng/build.ps1\n arguments: -ci\n -prepareMachine\n -restore\n -build\n -pack\n -sign\n -publish\n -binaryLog\n -configuration $(BuildConfiguration)\n -officialBuildId $(OriginalBuildNumber)\n -officialSkipTests $(SkipTests)\n -officialSkipApplyOptimizationData ${{ parameters.SkipApplyOptimizationData }}\n -officialSourceBranchName $(SourceBranchName)\n -officialIbcDrop $(IbcDrop)\n -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken)\n /p:RepositoryName=$(Build.Repository.Name)\n /p:VisualStudioDropName=$(VisualStudio.DropName)\n /p:DotNetSignType=$(SignType)\n /p:DotnetPublishUsingPipelines=true\n /p:IgnoreIbcMergeErrors=true\n /p:GenerateSbom=true\n /p:PreReleaseVersionLabel=pr-validation\n condition: succeeded()\n\n - template: /eng/common/templates-official/steps/generate-sbom.yml@self\n\n - task: PowerShell@2\n displayName: Publish Assets\n inputs:\n filePath: 'eng\publish-assets.ps1'\n arguments: '-configuration $(BuildConfiguration) -branchName "$(SourceBranchName)" -prValidation'\n condition: succeeded()\n\n - task: PublishTestResults@2\n displayName: Publish xUnit Test Results\n inputs:\n testRunner: XUnit\n testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml'\n mergeTestResults: true\n testRunTitle: 'Unit Tests'\n condition: and(succeededOrFailed(), ne(variables['SkipTests'], 'true'))\n\n # We need to reset the BuildNumber before we pass off to Arcade\n - powershell: Write-Host "##vso[build.updatebuildnumber]$(OriginalBuildNumber)"\n displayName: Reset BuildNumber\n condition: succeeded()\n\n # Publish to Build Asset Registry\n - template: /eng/common/templates-official/job/publish-build-assets.yml@self\n parameters:\n publishUsingPipelines: true\n dependsOn:\n - PRValidationBuild\n pool:\n name: VSEngSS-MicroBuild2022-1ES\n\n - stage: insert\n dependsOn:\n - build\n - publish_using_darc\n displayName: Insert to VS\n\n jobs:\n - job: insert\n variables:\n FancyBuildNumber: $[stageDependencies.build.PRValidationBuild.outputs['FancyBuild.BuildNumber']]\n displayName: Insert to VS\n pool:\n name: VSEngSS-MicroBuild2022-1ES\n steps:\n - download: current\n artifact: VSSetup\n - powershell: |\n $branchName = "$(Build.SourceBranch)".Substring("refs/heads/".Length)\n Write-Host "##vso[task.setvariable variable=ComponentBranchName]$branchName"\n displayName: Get Branch Name\n - template: /eng/pipelines/insert.yml@self\n parameters:\n createDraftPR: true\n autoComplete: false\n insertToolset: ${{ parameters.InsertToolset }}\n buildUserName: "dn-bot@microsoft.com"\n buildPassword: $(dn-bot-devdiv-build-e-code-full-release-e-packaging-r)\n componentUserName: "dn-bot@microsoft.com"\n componentPassword: $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)\n vsBranchName: ${{ parameters.VisualStudioBranchName }}\n titlePrefix: ${{ parameters.OptionalTitlePrefix }}\n sourceBranch: $(ComponentBranchName)\n publishDataURI: "https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json"\n queueSpeedometerValidation: true\n dropPath: '$(Pipeline.Workspace)\VSSetup'\n retainInsertedBuild: false\n cherryPick: ${{ parameters.VisualStudioCherryPickSHA }}\n # Arcade is done so we can set BuildNumber back\n - powershell: Write-Host "##vso[build.updatebuildnumber]$(FancyBuildNumber)"\n displayName: Reset BuildNumber\n condition: succeeded()\n\n # Use post-build to publish symbol packages.\n - template: /eng/common/templates-official/post-build/post-build.yml@self\n parameters:\n publishingInfraVersion: 3\n # Symbol validation is not entirely reliable as of yet, so should be turned off until\n # https://github.com/dotnet/arcade/issues/2871 is resolved.\n enableSymbolValidation: false\n enableSigningValidation: false\n enableSourceLinkValidation: false\n SDLValidationParameters: false\n | dataset_sample\yaml\csharp\azure-pipelines-pr-validation.yml | azure-pipelines-pr-validation.yml | YAML | 14,355 | 0.8 | 0.014535 | 0.074675 | python-kit | 452 | 2023-08-16T09:18:10.118554 | GPL-3.0 | false | 6eef7eecc5ba59ed339f4ca5abe2560e |
# This is a simple wrapper for eng/pipeline.yml to get around the limitation of\n# user-defined variables not being available in yaml template expressions.\n\n# Parameters ARE available in template expressions, and parameters can have default values,\n# so they can be used to control yaml flow.\n#\n\nvariables:\n # clean the local repo on the build agents\n - name: Build.Repository.Clean\n value: true\n - name: _DotNetArtifactsCategory\n value: WINDOWSDESKTOP\n - name: _DotNetValidationArtifactsCategory\n value: WINDOWSDESKTOP\n - ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:\n - name: PostBuildSign\n value: false\n - ${{ else }}:\n - name: PostBuildSign\n value: true\n \n - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - group: DotNet-Wpf-SDLValidation-Params\n\n\n# This is set in the pipeline directly \n# When set to false, CI tests will not be enabled in builds. \n#\n# _ContinuousIntegrationTestsEnabled: false\n\n# Setting batch to true, triggers one build at a time.\n# if there is a push while a build in progress, it will wait,\n# until the running build finishes, and produce a build with all the changes\n#\n# only trigger ci builds for the master and release branches\ntrigger:\n batch: true \n branches:\n include: \n - main\n - release/*\n - internal/release/*\n - experimental/*\n paths:\n exclude:\n - Documentation/*\n\npr:\n autoCancel: true\n branches:\n include:\n - main\n - release/* \n - experimental/*\n - feature/win11theming/staging\n - feature/win11theming/release\n paths:\n exclude:\n - Documentation/*\n\n# Call the pipeline-pr.yml template, which does the real work\nstages:\n- stage: build\n displayName: Build \n jobs:\n - template: /eng/pipeline-pr.yml\n parameters:\n ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n runAsPublic: false\n\n- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - template: eng\common\templates\post-build\post-build.yml\n parameters:\n publishingInfraVersion: 3\n enableSymbolValidation: false\n enableSigningValidation: false\n enableNugetValidation: false\n enableSourceLinkValidation: false\n # This is to enable SDL runs part of Post-Build Validation Stage\n SDLValidationParameters:\n enable: false\n params: ' -SourceToolsList @("policheck","credscan")\n -TsaInstanceURL $(_TsaInstanceURL)\n -TsaProjectName $(_TsaProjectName)\n -TsaNotificationEmail $(_TsaNotificationEmail)\n -TsaCodebaseAdmin $(_TsaCodebaseAdmin)\n -TsaBugAreaPath $(_TsaBugAreaPath)\n -TsaIterationPath $(_TsaIterationPath)\n -TsaRepositoryName "wpf"\n -TsaCodebaseName "wpf"\n -TsaPublish $True'\n | dataset_sample\yaml\csharp\azure-pipelines-pr.yml | azure-pipelines-pr.yml | YAML | 3,030 | 0.8 | 0.086957 | 0.204819 | node-utils | 16 | 2025-02-10T14:09:08.868052 | MIT | false | 1b09c7a77d71469903d7c9b97f65b8df |
variables:\n - name: _BuildConfig\n value: Release\n - name: _TeamName\n value: AspNetCore\n - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n - name: _PublishUsingPipelines\n value: true\n - name: _CosmosConnectionUrl\n value: https://localhost:8081\n - name: _CosmosToken\n value: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==\n - name: PostBuildSign\n value: false\n - name: _InternalRuntimeDownloadArgs\n value: ''\n - name: LC_ALL\n value: 'en_US.UTF-8'\n - name: LANG\n value: 'en_US.UTF-8'\n - name: LANGUAGE\n value: 'en_US.UTF-8'\n - template: /eng/common/templates/variables/pool-providers.yml\n\ntrigger:\n batch: true\n branches:\n include:\n - main\n - release/*\n - feature/*\n - internal/release/*\n\npr: ['*']\n\nstages:\n- stage: build\n displayName: Build\n jobs:\n - template: eng/common/templates/jobs/jobs.yml\n parameters:\n enableMicrobuild: true\n enablePublishBuildArtifacts: true\n enablePublishBuildAssets: true\n enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}\n publishAssetsImmediately: true\n enableSourceIndex: false\n enableTelemetry: true\n helixRepo: dotnet/efcore\n jobs:\n - job: Windows\n enablePublishTestResults: true\n pool:\n name: $(DncEngPublicBuildPool)\n demands: ImageOverride -equals 1es-windows-2022-open\n timeoutInMinutes: 90\n variables:\n - _InternalBuildArgs: ''\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - script: "echo ##vso[build.addbuildtag]daily-build"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), ne(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - script: "echo ##vso[build.addbuildtag]release-candidate"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - powershell: SqlLocalDB start\n displayName: Start LocalDB\n - script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine /bl:artifacts\log\$(_BuildConfig)\Build.binlog $(_InternalBuildArgs)\n $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: macOS\n enablePublishTestResults: true\n pool:\n vmImage: macOS-13\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine /bl:artifacts/log/$(_BuildConfig)/Build.binlog $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: Linux\n timeoutInMinutes: 120\n enablePublishTestResults: true\n pool:\n vmImage: ubuntu-22.04\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine /bl:artifacts/log/$(_BuildConfig)/Build.binlog $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n Test__Cosmos__AuthToken: $(_CosmosToken)\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: Helix\n timeoutInMinutes: 180\n pool:\n name: $(DncEngPublicBuildPool)\n demands: ImageOverride -equals 1es-windows-2022-open\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n - name: _HelixBuildConfig\n value: $(_BuildConfig)\n - name: HelixTargetQueues\n value: Windows.10.Amd64.Open;OSX.13.Amd64.Open;Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-helix-sqlserver-amd64\n - name: _HelixAccessToken\n value: '' # Needed for public queues\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - script: restore.cmd -ci /p:configuration=$(_BuildConfig) $(_InternalRuntimeDownloadArgs)\n displayName: Restore packages\n - script: .dotnet\dotnet build eng\helix.proj /restore /t:Test /p:configuration=$(_BuildConfig) /bl:artifacts/log/$(_BuildConfig)/SendToHelix.binlog $(_InternalRuntimeDownloadArgs)\n displayName: Send job to helix\n env:\n HelixAccessToken: $(_HelixAccessToken)\n SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops\n MSSQL_SA_PASSWORD: "PLACEHOLDER"\n COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758\n DotNetBuildsInternalReadSasToken: $(dotnetbuilds-internal-container-read-token)\n | dataset_sample\yaml\csharp\azure-pipelines-public.yml | azure-pipelines-public.yml | YAML | 7,504 | 0.8 | 0.017341 | 0.023952 | awesome-app | 854 | 2024-11-24T04:19:30.324119 | MIT | false | efc19b27c80b1d47792719694f341ad6 |
trigger: none\n\npr: none\n\npool:\n vmImage: "VS2017-Win2016"\n\nsteps:\n - task: PowerShell@2\n inputs:\n filePath: 'build\\GenerateThemesWikiMarkdown.ps1'\n\n - task: WikiUpdaterTask@1\n inputs:\n repo: "github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit.wiki.git"\n filename: "ControlStyleList.md"\n dataIsFile: true\n sourceFile: 'build\\ControlStyleList.md'\n message: "Automatic update of ControlStyleList.md from Azure pipeline"\n gitname: "Azure Dev Ops"\n gitemail: "azure@materialdesigninxaml.net"\n user: "$(GitHubUser)"\n password: "$(GitHubPat)"\n localpath: '$(System.DefaultWorkingDirectory)\\Scripts\\Wiki'\n | dataset_sample\yaml\csharp\azure-pipelines-wiki.yml | azure-pipelines-wiki.yml | YAML | 728 | 0.7 | 0 | 0 | react-lib | 354 | 2025-05-11T20:25:43.448114 | BSD-3-Clause | false | 723e97a1554fc37f4541b87f7d3b186d |
variables:\n- name : Codeql.Enabled\n value: true\n- name: DefaultBuildPlatform\n value: 'any cpu'\n- name: ApkName\n value: AndroidControlGallery.AndroidControlGallery.apk\n- name: BuildVersion\n value: $[counter('nuget-counter', 126)]\n- name: NUGET_VERSION\n value: 5.8.1\n- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n- name: DOTNET_VERSION\n value: 5.0.102\n- name: signingCondition\n value: and(succeeded(), ne(variables['signVmImage'], ''), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))\n- group: Xamarin-Secrets\n\nresources:\n repositories:\n - repository: xamarin-templates\n type: github\n name: xamarin/yaml-templates\n endpoint: xamarin\n ref: refs/heads/main\n\ntrigger:\n branches:\n include:\n - main\n - 3.*\n - 4.*\n - 5.*\n tags:\n include:\n - '*'\n paths:\n exclude:\n - README.md\n\npr:\n autoCancel: false\n branches:\n include:\n - main\n - 3.*\n - 4.*\n - 5.*\n\nschedules:\n- cron: "0 0 * * *"\n displayName: Daily midnight build\n branches:\n include:\n - 5.0.0\n\nstages:\n - stage: windows\n displayName: Build Windows\n jobs:\n - job: win_hosted\n condition: eq(variables['vs2019VmPool'], 'Azure Pipelines')\n workspace:\n clean: all\n displayName: Build Windows Phase\n timeoutInMinutes: 90\n pool:\n name: $(vs2019VmPool)\n vmImage: $(vs2019VmImage)\n demands:\n msbuild\n strategy:\n matrix:\n debug:\n BuildConfiguration: 'Debug'\n release:\n BuildConfiguration: 'Release'\n steps:\n - template: build/steps/build-windows.yml\n parameters:\n provisionatorPath : 'build/provisioning/provisioning.csx'\n provisionatorVSPath : 'build/provisioning/vs.csx'\n - job: nuget_pack_hosted\n workspace:\n clean: all\n displayName: Nuget Phase\n dependsOn:\n - win_hosted\n condition: succeeded()\n pool:\n name: $(vs2019VmPool)\n vmImage: $(vs2019VmImage)\n demands:\n msbuild\n variables:\n FormsIdAppend: ''\n buildConfiguration: $(DefaultBuildConfiguration)\n nugetPackageVersion : $[ dependencies.win_hosted.outputs['debug.winbuild.xamarinformspackageversion'] ]\n steps:\n - template: build/steps/build-nuget.yml\n - job: win_bots\n condition: ne(variables['vs2019VmPool'], 'Azure Pipelines')\n workspace:\n clean: all\n displayName: Build Windows Phase Bots\n timeoutInMinutes: 90\n pool:\n name: $(vs2019VmPool)\n vmImage: $(vs2019VmImage)\n demands:\n - Agent.OS -equals Windows_NT\n - msbuild\n strategy:\n matrix:\n debug:\n BuildConfiguration: 'Debug'\n release:\n BuildConfiguration: 'Release'\n steps:\n - template: build/steps/build-windows.yml\n parameters:\n provisionatorPath : 'build/provisioning/provisioning.csx'\n - job: nuget_pack_bots\n workspace:\n clean: all\n displayName: Nuget Phase\n dependsOn:\n - win_bots\n condition: succeeded()\n pool:\n name: $(vs2019VmPool)\n vmImage: $(vs2019VmImage)\n demands:\n - Agent.OS -equals Windows_NT\n - msbuild\n variables:\n FormsIdAppend: ''\n buildConfiguration: $(DefaultBuildConfiguration)\n nugetPackageVersion : $[ dependencies.win_bots.outputs['debug.winbuild.xamarinformspackageversion'] ]\n steps:\n - template: build/steps/build-nuget.yml\n\n - stage: android\n displayName: Build Android\n ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:\n dependsOn: windows\n ${{ if eq(variables['System.TeamProject'], 'public') }}:\n dependsOn: []\n jobs:\n - template: build/steps/build-android.yml\n parameters:\n vmPool: $[coalesce(variables.macAndroid2019VmPool, 'Azure Pipelines')]\n vmImage: $[coalesce(variables.macAndroid2019VmImage, 'macOS-latest')]\n provisionatorPath : 'build/provisioning/provisioning.csx'\n buildConfiguration: $(DefaultBuildConfiguration)\n ${{ if ne(variables['MSBuildArguments_cg_android'], '') }}:\n MSBuildArguments_cg_android: $(MSBuildArguments_cg_android)\n\n - stage: build_osx\n displayName: Build OSX\n ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:\n dependsOn: windows\n ${{ if eq(variables['System.TeamProject'], 'public') }}:\n dependsOn: []\n jobs:\n - job: osx\n workspace:\n clean: all\n displayName: OSX Phase\n timeoutInMinutes: 120\n pool:\n name: $(osx2019VmPool)\n vmImage: $(macOSXVmImage)\n demands:\n - sh\n variables:\n provisionator.osxPath : 'build/provisioning/provisioning.csx'\n buildConfiguration: $(DefaultBuildConfiguration)\n iOSCertSecureFileName: 'Xamarin Forms iOS Certificate.p12'\n iOSProvisioningSecureFileName: 'Xamarin Forms iOS Provisioning.mobileprovision'\n steps:\n - template: build/steps/build-osx.yml\n\n # only sign using the private server and not sigining Maui for now\n - ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:\n - stage: nuget_signing\n dependsOn: windows\n displayName: Sign Nuget\n jobs:\n - template: sign-artifacts/jobs/v2.yml@xamarin-templates\n parameters:\n targetFolder: $(Build.ArtifactStagingDirectory)/nuget/signed\n artifactPath: release\n signedArtifactName: nuget\n signedArtifactPath: signed\n displayName: Sign Phase\n condition: ${{ variables.signingCondition }}\n preSignSteps:\n - task: NuGetToolInstaller@1\n inputs:\n versionSpec: $(NUGET_VERSION)\n\n - stage: PoliCheck\n displayName: 'Code Analysis'\n dependsOn: windows\n jobs:\n - job: run_poli_check\n displayName: 'Policheck And Credentials Compliance'\n pool:\n name: $(vs2019VmPool)\n vmImage: $(vs2019VmImage)\n timeoutInMinutes: 60\n cancelTimeoutInMinutes: 5\n steps:\n - checkout: self\n\n - template: security/policheck/v2.yml@xamarin-templates\n\n - template: security/credscan/v3.yml@xamarin-templates\n parameters:\n suppressionsFile: $(System.DefaultWorkingDirectory)\build\automation\CredScanSuppressions.json\n\n - task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@4\n displayName: Run AntiMalware (Defender) Scan\n inputs:\n FileDirPath: $(System.DefaultWorkingDirectory)\n EnableServices: true\n condition: succeededOrFailed()\n\n - task: securedevelopmentteam.vss-secure-development-tools.build-task-report.SdtReport@2\n displayName: Create Security Analysis Report\n inputs:\n CredScan: true\n PoliCheck: true\n condition: succeededOrFailed()\n\n - task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@3\n displayName: Publish Security Analysis Logs\n inputs:\n ArtifactName: CodeAnalysisLogs\n condition: succeededOrFailed()\n\n - task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@2\n displayName: Fail Job if Security Issues are Detected\n inputs:\n CredScan: true\n PoliCheck: true\n GdnBreakGdnToolPoliCheckSeverity: 'Error'\n condition: succeededOrFailed()\n\n - stage: sbom\n dependsOn: nuget_signing\n displayName: 'Software Bill of Materials'\n jobs:\n - template: compliance/sbom/job.v1.yml@xamarin-templates # Software Bill of Materials (SBOM): https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/secure-supply-chain/ado-sbom-generator\n parameters:\n artifactNames: ['nuget']\n artifactMap: ['nuget/signed']\n packageName: 'Xamarin Forms'\n packageFilter: '*.nupkg'\n condition: ${{ variables.signingCondition }}\n | dataset_sample\yaml\csharp\azure-pipelines.yml | azure-pipelines.yml | YAML | 8,641 | 0.8 | 0.030534 | 0.004065 | awesome-app | 345 | 2023-07-14T03:49:02.032743 | GPL-3.0 | false | 521d5e5f99e39aee897292ae481565c6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.