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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
language: ruby\nrvm:\n - 2.2.5\n - 2.3.1\nenv:\n matrix:\n - "RAILS_VERSION=4.2.7.1"\n - "RAILS_VERSION=5.0.0.1"\n | dataset_sample\yaml\forem_forem\vendor\cache\acts_as_follower-06393d3693a1\.travis.yml | .travis.yml | YAML | 115 | 0.7 | 0 | 0 | node-utils | 950 | 2024-08-28T23:23:38.409132 | GPL-3.0 | false | bc5d3c96597ac5f5994af76b3982be31 |
test:\n adapter: sqlite3\n database: ':memory:'\ndevelopment:\n adapter: sqlite3\n database: ':memory:'\n\n | dataset_sample\yaml\forem_forem\vendor\cache\acts_as_follower-06393d3693a1\test\dummy30\config\database.yml | database.yml | YAML | 104 | 0.7 | 0 | 0 | python-kit | 813 | 2025-06-02T22:03:10.920916 | Apache-2.0 | true | be623883981177b1d1676e3b40b29958 |
# Sample localization file for English. Add more files in this directory for other locales.\n# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.\n\nen:\n hello: "Hello world"\n | dataset_sample\yaml\forem_forem\vendor\cache\acts_as_follower-06393d3693a1\test\dummy30\config\locales\en.yml | en.yml | YAML | 213 | 0.8 | 0.6 | 0.5 | react-lib | 190 | 2025-03-13T10:15:17.889630 | MIT | true | db4b902854e3f164eca50f0beba9bea7 |
name: Bug report\ndescription: File a bug report\nlabels: ["T-bug", "T-needs-triage"]\nbody:\n - type: markdown\n attributes:\n value: |\n Please ensure that the bug has not already been filed in the issue tracker.\n\n Thanks for taking the time to report this bug!\n - type: dropdown\n attributes:\n label: Component\n description: What component is the bug in?\n multiple: true\n options:\n - Forge\n - Cast\n - Anvil\n - Foundryup\n - Chisel\n - Other (please describe)\n validations:\n required: true\n - type: checkboxes\n attributes:\n label: Have you ensured that all of these are up to date?\n options:\n - label: Foundry\n - label: Foundryup\n - type: input\n attributes:\n label: What version of Foundry are you on?\n placeholder: "Run forge --version and paste the output here"\n - type: input\n attributes:\n label: What version of Foundryup are you on?\n placeholder: "Run foundryup --version and paste the output here"\n - type: input\n attributes:\n label: What command(s) is the bug in?\n description: Leave empty if not relevant\n placeholder: "For example: forge test"\n - type: dropdown\n attributes:\n label: Operating System\n description: What operating system are you on?\n options:\n - Windows\n - macOS (Intel)\n - macOS (Apple Silicon)\n - Linux\n - type: textarea\n attributes:\n label: Describe the bug\n description: Please include relevant Solidity snippets as well if relevant.\n validations:\n required: true | dataset_sample\yaml\foundry-rs_foundry\.github\ISSUE_TEMPLATE\BUG-FORM.yml | BUG-FORM.yml | YAML | 1,828 | 0.85 | 0.052632 | 0 | python-kit | 939 | 2024-01-11T17:54:47.203399 | GPL-3.0 | false | 710fdb2e6fa235de826b6866d218999b |
blank_issues_enabled: true\ncontact_links:\n - name: Support\n url: https://t.me/foundry_support\n about: This issue tracker is only for bugs and feature requests. Support is available on Telegram!\n | dataset_sample\yaml\foundry-rs_foundry\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 207 | 0.8 | 0.2 | 0 | awesome-app | 848 | 2025-05-16T19:27:20.636759 | MIT | false | 788e9e20d05872bfb9cf717ba3f82b4b |
name: Feature request\ndescription: Suggest a feature\nlabels: ["T-feature", "T-needs-triage"]\nbody:\n - type: markdown\n attributes:\n value: |\n Please ensure that the feature has not already been requested in the issue tracker.\n\n Thanks for helping us improve Foundry!\n - type: dropdown\n attributes:\n label: Component\n description: What component is the feature for?\n multiple: true\n options:\n - Forge\n - Cast\n - Anvil\n - Foundryup\n - Chisel\n - Other (please describe)\n validations:\n required: true\n - type: textarea\n attributes:\n label: Describe the feature you would like\n description: Please also describe what the feature is aiming to solve, if relevant.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Additional context\n description: Add any other context to the feature (like screenshots, resources)\n | dataset_sample\yaml\foundry-rs_foundry\.github\ISSUE_TEMPLATE\FEATURE-FORM.yml | FEATURE-FORM.yml | YAML | 1,070 | 0.85 | 0.088235 | 0 | awesome-app | 422 | 2023-11-21T01:41:18.311919 | MIT | false | e7c57b0e14403a8ad16ed2a4cecc4d84 |
# Daily CI job to update forge-std version used for tests if new release has been published\n\nname: bump-forge-std\n\non:\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\njobs:\n update-tag:\n name: update forge-std tag\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - name: Fetch and update forge-std tag\n run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' -jr > testdata/forge-std-rev\n - name: Create pull request\n uses: peter-evans/create-pull-request@v5\n with:\n commit-message: "chore: bump forge-std version used for tests"\n title: "chore(tests): bump forge-std version"\n body: |\n New release of forge-std has been published, bump forge-std version used in tests. Likely some fixtures need to be updated.\n branch: chore/bump-forge-std\n | dataset_sample\yaml\foundry-rs_foundry\.github\workflows\bump-forge-std.yml | bump-forge-std.yml | YAML | 891 | 0.8 | 0.12 | 0.045455 | react-lib | 99 | 2024-02-13T20:50:12.855624 | GPL-3.0 | false | 66c21b5f0855addf4f0682272126ca35 |
# Runs `cargo update` periodically.\n\nname: dependencies\n\non:\n schedule:\n # Run weekly\n - cron: "0 0 * * SUN"\n workflow_dispatch:\n # Needed so we can run it manually\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n update:\n uses: ithacaxyz/ci/.github/workflows/cargo-update-pr.yml@main\n secrets:\n token: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\foundry-rs_foundry\.github\workflows\dependencies.yml | dependencies.yml | YAML | 368 | 0.8 | 0 | 0.1875 | node-utils | 753 | 2025-03-29T00:57:15.690425 | GPL-3.0 | false | abbd5fa5d9e857a32a74a849c85b7135 |
name: docker\n\non:\n # Trigger without any parameters a proactive rebuild\n workflow_dispatch: {}\n workflow_call:\n inputs:\n tag_name:\n required: true\n type: string\n\nenv:\n REGISTRY: ghcr.io\n # Will resolve to foundry-rs/foundry\n IMAGE_NAME: ${{ github.repository }}\n\njobs:\n build:\n name: build and push\n runs-on: Linux-22.04\n permissions:\n id-token: write\n packages: write\n contents: read\n timeout-minutes: 120\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: Swatinem/rust-cache@v2\n with:\n cache-on-failure: true\n - name: Install cross\n id: cross_main\n run: |\n cargo install cross\n # Login against a Docker registry except on PR\n # https://github.com/docker/login-action\n - name: Login into registry ${{ env.REGISTRY }}\n # Ensure this doesn't trigger on PR's\n if: github.event_name != 'pull_request'\n uses: docker/login-action@v2\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.actor }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n # Extract metadata (tags, labels) for Docker\n # https://github.com/docker/metadata-action\n - name: Extract Docker metadata\n id: meta\n uses: docker/metadata-action@v4\n with:\n images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}\n\n # Creates an additional 'latest' or 'nightly' tag\n # If the job is triggered via cron schedule, tag nightly and nightly-{SHA}\n # If the job is triggered via workflow dispatch and on a master branch, tag branch and latest\n # Otherwise, just tag as the branch name\n - name: Finalize Docker Metadata\n id: docker_tagging\n run: |\n if [[ "${{ github.event_name }}" == 'schedule' ]]; then\n echo "cron trigger, assigning nightly tag"\n echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT\n elif [[ "${GITHUB_REF##*/}" == "main" ]] || [[ ${GITHUB_REF##*/} == "master" ]]; then\n echo "manual trigger from master/main branch, assigning latest tag"\n echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_OUTPUT\n else\n echo "Neither scheduled nor manual release from main branch. Just tagging as branch name"\n echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT\n fi\n\n # Log docker metadata to explicitly know what is being pushed\n - name: Inspect Docker Metadata\n run: |\n echo "TAGS -> ${{ steps.docker_tagging.outputs.docker_tags }}"\n echo "LABELS -> ${{ steps.meta.outputs.labels }}"\n\n - name: Build and push foundry image\n run: make DOCKER_IMAGE_NAME=${{ steps.docker_tagging.outputs.docker_tags }} CARGO_TAG_NAME=${{ inputs.tag_name }} PROFILE=maxperf docker-build-push\n | dataset_sample\yaml\foundry-rs_foundry\.github\workflows\docker-publish.yml | docker-publish.yml | YAML | 3,140 | 0.95 | 0.0375 | 0.164384 | vue-tools | 703 | 2025-05-21T01:09:05.387382 | GPL-3.0 | false | d19db70f73ecb13776a18b28e0463577 |
name: release\n\non:\n push:\n tags:\n - "stable"\n - "rc"\n - "rc-*"\n - "v*.*.*"\n schedule:\n - cron: "0 6 * * *"\n workflow_dispatch:\n\nenv:\n CARGO_TERM_COLOR: always\n IS_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}\n PROFILE: maxperf\n STABLE_VERSION: "v1.0.0"\n\njobs:\n prepare:\n name: Prepare release\n runs-on: ubuntu-latest\n timeout-minutes: 30\n outputs:\n tag_name: ${{ steps.release_info.outputs.tag_name }}\n release_name: ${{ steps.release_info.outputs.release_name }}\n changelog: ${{ steps.build_changelog.outputs.changelog }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0\n\n - name: Compute release name and tag\n id: release_info\n run: |\n if [[ ${IS_NIGHTLY} == 'true' ]]; then\n echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT\n echo "release_name=Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT\n else\n echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT\n echo "release_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT\n fi\n\n # Creates a `nightly-SHA` tag for this specific nightly\n # This tag is used for this specific nightly version's release\n # which allows users to roll back. It is also used to build\n # the changelog.\n - name: Create build-specific nightly tag\n if: ${{ env.IS_NIGHTLY == 'true' }}\n uses: actions/github-script@v7\n env:\n TAG_NAME: ${{ steps.release_info.outputs.tag_name }}\n with:\n script: |\n const createTag = require('./.github/scripts/create-tag.js')\n await createTag({ github, context }, process.env.TAG_NAME)\n\n - name: Build changelog\n id: build_changelog\n uses: mikepenz/release-changelog-builder-action@v4\n with:\n configuration: "./.github/changelog.json"\n fromTag: ${{ env.IS_NIGHTLY == 'true' && 'nightly' || env.STABLE_VERSION }}\n toTag: ${{ steps.release_info.outputs.tag_name }}\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n release-docker:\n name: Release Docker\n needs: prepare\n uses: ./.github/workflows/docker-publish.yml\n with:\n tag_name: ${{ needs.prepare.outputs.tag_name }}\n\n release:\n permissions:\n id-token: write\n contents: write\n attestations: write\n name: ${{ matrix.target }} (${{ matrix.runner }})\n runs-on: ${{ matrix.runner }}\n timeout-minutes: 240\n needs: prepare\n strategy:\n fail-fast: false\n matrix:\n include:\n # `runner`: GHA runner label\n # `target`: Rust build target triple\n # `platform` and `arch`: Used in tarball names\n # `svm`: target platform to use for the Solc binary: https://github.com/roynalnaruto/svm-rs/blob/84cbe0ac705becabdc13168bae28a45ad2299749/svm-builds/build.rs#L4-L24\n - runner: Linux-22.04\n target: x86_64-unknown-linux-gnu\n svm_target_platform: linux-amd64\n platform: linux\n arch: amd64\n - runner: Linux-22.04\n target: x86_64-unknown-linux-musl\n svm_target_platform: linux-amd64\n platform: alpine\n arch: amd64\n - runner: Linux-22.04\n target: aarch64-unknown-linux-gnu\n svm_target_platform: linux-aarch64\n platform: linux\n arch: arm64\n - runner: Linux-22.04\n target: aarch64-unknown-linux-musl\n svm_target_platform: linux-aarch64\n platform: alpine\n arch: arm64\n # This is pinned to `macos-13-large` to support old SDK versions.\n # If the runner is deprecated it should be pinned to the oldest available version of the runner.\n - runner: macos-13-large\n target: x86_64-apple-darwin\n svm_target_platform: macosx-amd64\n platform: darwin\n arch: amd64\n - runner: macos-latest-large\n target: aarch64-apple-darwin\n svm_target_platform: macosx-aarch64\n platform: darwin\n arch: arm64\n - runner: Windows\n target: x86_64-pc-windows-msvc\n svm_target_platform: windows-amd64\n platform: win32\n arch: amd64\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ matrix.target }}\n - uses: Swatinem/rust-cache@v2\n with:\n key: ${{ matrix.target }}\n cache-on-failure: true\n\n - name: Apple M1 setup\n if: matrix.target == 'aarch64-apple-darwin'\n run: |\n echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV\n echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV\n\n - name: cross setup\n if: matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-gnu'\n run: |\n cargo install cross\n\n - name: Build binaries\n env:\n TAG_NAME: ${{ (env.IS_NIGHTLY == 'true' && 'nightly') || needs.prepare.outputs.tag_name }}\n SVM_TARGET_PLATFORM: ${{ matrix.svm_target_platform }}\n PLATFORM_NAME: ${{ matrix.platform }}\n TARGET: ${{ matrix.target }}\n OUT_DIR: target/${{ matrix.target }}/${{ env.PROFILE }}\n shell: bash\n run: |\n set -eo pipefail\n flags=(--target $TARGET --profile $PROFILE --bins \n --no-default-features --features aws-kms,gcp-kms,cli,asm-keccak)\n\n # `jemalloc` is not fully supported on MSVC or aarch64 Linux.\n if [[ "$TARGET" != *msvc* && "$TARGET" != "aarch64-unknown-linux-gnu" ]]; then\n flags+=(--features jemalloc)\n fi\n\n [[ "$TARGET" == *windows* ]] && ext=".exe"\n\n if [[ "$TARGET" == *-musl || "$TARGET" == "aarch64-unknown-linux-gnu" ]]; then\n cross build "${flags[@]}"\n else\n cargo build "${flags[@]}"\n fi\n\n bins=(anvil cast chisel forge)\n for name in "${bins[@]}"; do\n bin=$OUT_DIR/$name$ext\n echo ""\n file "$bin" || true\n du -h "$bin" || true\n ldd "$bin" || true\n $bin --version || true\n echo "${name}_bin_path=${bin}" >> $GITHUB_ENV\n done\n\n - name: Archive binaries\n id: artifacts\n env:\n PLATFORM_NAME: ${{ matrix.platform }}\n OUT_DIR: target/${{ matrix.target }}/${{ env.PROFILE }}\n VERSION_NAME: ${{ (env.IS_NIGHTLY == 'true' && 'nightly') || needs.prepare.outputs.tag_name }}\n ARCH: ${{ matrix.arch }}\n shell: bash\n run: |\n if [[ "$PLATFORM_NAME" == "linux" || "$PLATFORM_NAME" == "alpine" ]]; then\n tar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast anvil chisel\n echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT\n elif [ "$PLATFORM_NAME" == "darwin" ]; then\n # We need to use gtar here otherwise the archive is corrupt.\n # See: https://github.com/actions/virtual-environments/issues/2619\n gtar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast anvil chisel\n echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT\n else\n cd $OUT_DIR\n 7z a -tzip "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" forge.exe cast.exe anvil.exe chisel.exe\n mv "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" ../../../\n echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT\n fi\n\n - name: Build man page\n id: man\n if: matrix.target == 'x86_64-unknown-linux-gnu'\n env:\n OUT_DIR: target/${{ matrix.target }}/${{ env.PROFILE }}\n VERSION_NAME: ${{ (env.IS_NIGHTLY == 'true' && 'nightly') || needs.prepare.outputs.tag_name }}\n shell: bash\n run: |\n sudo apt-get -y install help2man\n help2man -N $OUT_DIR/forge > forge.1\n help2man -N $OUT_DIR/cast > cast.1\n help2man -N $OUT_DIR/anvil > anvil.1\n help2man -N $OUT_DIR/chisel > chisel.1\n gzip forge.1\n gzip cast.1\n gzip anvil.1\n gzip chisel.1\n tar -czvf "foundry_man_${VERSION_NAME}.tar.gz" forge.1.gz cast.1.gz anvil.1.gz chisel.1.gz\n echo "foundry_man=foundry_man_${VERSION_NAME}.tar.gz" >> $GITHUB_OUTPUT\n\n # Creates the release for this specific version\n - name: Create release\n uses: softprops/action-gh-release@v2\n with:\n name: ${{ needs.prepare.outputs.release_name }}\n tag_name: ${{ needs.prepare.outputs.tag_name }}\n prerelease: ${{ env.IS_NIGHTLY == 'true' }}\n body: ${{ needs.prepare.outputs.changelog }}\n files: |\n ${{ steps.artifacts.outputs.file_name }}\n ${{ steps.man.outputs.foundry_man }}\n\n - name: Binaries attestation\n uses: actions/attest-build-provenance@v2\n with:\n subject-path: |\n ${{ env.anvil_bin_path }}\n ${{ env.cast_bin_path }}\n ${{ env.chisel_bin_path }}\n ${{ env.forge_bin_path }}\n\n # If this is a nightly release, it also updates the release\n # tagged `nightly` for compatibility with `foundryup`\n - name: Update nightly release\n if: ${{ env.IS_NIGHTLY == 'true' }}\n uses: softprops/action-gh-release@v2\n with:\n name: "Nightly"\n tag_name: "nightly"\n prerelease: true\n body: ${{ needs.prepare.outputs.changelog }}\n files: |\n ${{ steps.artifacts.outputs.file_name }}\n ${{ steps.man.outputs.foundry_man }}\n\n cleanup:\n name: Release cleanup\n runs-on: ubuntu-latest\n timeout-minutes: 30\n needs: release\n if: always()\n steps:\n - uses: actions/checkout@v4\n\n # Moves the `nightly` tag to `HEAD`\n - name: Move nightly tag\n if: ${{ env.IS_NIGHTLY == 'true' }}\n uses: actions/github-script@v7\n with:\n script: |\n const moveTag = require('./.github/scripts/move-tag.js')\n await moveTag({ github, context }, 'nightly')\n\n - name: Delete old nightlies\n uses: actions/github-script@v7\n with:\n script: |\n const prunePrereleases = require('./.github/scripts/prune-prereleases.js')\n await prunePrereleases({github, context})\n\n # If any of the jobs fail, this will create a high-priority issue to signal so.\n issue:\n name: Open an issue\n runs-on: ubuntu-latest\n needs: [prepare, release-docker, release, cleanup]\n if: failure()\n steps:\n - uses: actions/checkout@v4\n - uses: JasonEtco/create-an-issue@v2\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n WORKFLOW_URL: |\n ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n with:\n update_existing: true\n filename: .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md\n | dataset_sample\yaml\foundry-rs_foundry\.github\workflows\release.yml | release.yml | YAML | 11,392 | 0.95 | 0.058632 | 0.063604 | python-kit | 255 | 2024-03-02T13:31:15.503104 | GPL-3.0 | false | 4f72c1f7538424bd20e58df14d4a7802 |
version: "3.9"\n\nservices:\n fuel-core:\n build: \n context: . \n dockerfile: deployment/Dockerfile\n image: fuel-core\n ports:\n - "4000:4000"\n volumes:\n - db:/mnt/db\nvolumes:\n db:\n | dataset_sample\yaml\FuelLabs_fuel-core\docker-compose.yml | docker-compose.yml | YAML | 208 | 0.7 | 0 | 0 | node-utils | 786 | 2024-04-09T06:07:00.555338 | BSD-3-Clause | false | 8b1372049199fcebd20839d4562e63c1 |
name: CI\n\non:\n workflow_dispatch:\n push:\n branches:\n - master\n pull_request:\n types: [opened, synchronize, reopened, labeled, unlabeled]\n release:\n types: [published]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\nenv:\n GIT_BRANCH: ${{ github.head_ref || github.ref_name }}\n GIT_REPO_OWNER: ${{ github.repository_owner }}\n GIT_REPO: ${{ github.repository }}\n GIT_REPO_NAME: ${{ github.event.repository.name }}\n AWS_ROLE_ARN: arn:aws:iam::024848458133:role/github_oidc_FuelLabs_fuel-core\n AWS_ECR_ORG: fuellabs\n CARGO_TERM_COLOR: always\n RUST_VERSION: 1.85.0\n RUST_VERSION_FMT: nightly-2025-03-08\n RUST_VERSION_COV: nightly-2025-03-08\n RUSTFLAGS: -D warnings\n REGISTRY: ghcr.io\n SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2\n\njobs:\n check-changelog:\n name: Check Changelog\n runs-on: ubuntu-latest\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n\n - name: Check for a file with the PR number in a sub-directory of the .changes directory" or "no changelog" label.\n run: |\n if [[ "${{ github.event_name }}" != "pull_request" ]]; then\n echo "Not a pull request."\n exit 0\n fi\n pr_number_file=$(echo $GITHUB_REF | cut -d'/' -f3).md\n if [[ $(find .changes/ -type f -name $pr_number_file -print -quit) ]]; then\n echo "File $pr_number_file exists."\n else\n if [ "${{ contains(github.event.pull_request.labels.*.name, 'no changelog') }}" = "true" ]; then\n echo "No changelog needed."\n exit 0\n else\n echo "File $pr_number_file does not exist."\n exit 1\n fi\n fi\n\n rustfmt:\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - uses: actions/checkout@v4\n - name: Install latest nightly\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION_FMT }}\n components: rustfmt\n\n - name: Rustfmt check\n run: cargo +${{ env.RUST_VERSION_FMT }} fmt --all -- --check\n\n lint-toml-files:\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n - name: setup binstall\n uses: taiki-e/install-action@cargo-binstall\n - name: Install Cargo.toml linter\n run: cargo binstall --no-confirm cargo-sort\n - name: Run Cargo.toml sort check\n run: cargo sort -w --check\n - name: Install Prettier and TOML Plugin\n run: |\n # prettier has issues with global installation and plugin discovery. The temporary `package.json` created by `npm init -y` is a workaround.\n npm init -y > /dev/null 2>&1\n npm install prettier prettier-plugin-toml\n - name: Check format of Cargo.toml files\n run: |\n if ! npx prettier --check "**/Cargo.toml"; then\n npx prettier --write "**/Cargo.toml" > /dev/null 2>&1\n echo "Changes required:"\n git --no-pager diff\n exit 1\n fi\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && github.ref == 'refs/heads/master'\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n\n prevent-openssl:\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - uses: actions/checkout@v4\n # ensure openssl hasn't crept into the dep tree\n - name: Check if openssl is included\n run: ./.github/workflows/scripts/verify_openssl.sh\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && github.ref == 'refs/heads/master'\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n\n cargo-verifications:\n needs:\n - lint-toml-files\n - prevent-openssl\n - rustfmt\n - check-changelog\n runs-on: buildjet-4vcpu-ubuntu-2204\n env:\n RUSTFLAGS: -D warnings\n strategy:\n matrix:\n include:\n - command: clippy\n args: -p fuel-core-wasm-executor --target wasm32-unknown-unknown --no-default-features\n - command: clippy\n args: --all-targets --all-features\n - command: check\n args: --all-targets\n - command: doc\n args: --all-features --workspace --no-deps\n - command: make\n args: check --locked\n - command: nextest\n args: run --workspace\n - command: nextest\n args: run --all-features --workspace\n - command: nextest\n args: run -p fuel-core --no-default-features\n - command: nextest\n args: run -p fuel-core --lib executor --features wasm-executor\n env: FUEL_ALWAYS_USE_WASM=true\n - command: nextest\n args: run -p fuel-core-client --no-default-features\n - command: nextest\n args: run -p fuel-core-chain-config --no-default-features\n - command: nextest\n args: run --workspace --features fault-proving --test integration_tests\n # Don't split this command; this is a workaround.\n # We need to run `cargo check` first to fetch the locked dependencies\n # for `fuel-core 0.26.0`(because of the bug with `--offline`\n # and `--locked` when we build `fuel-core-wasm-executor 0.26.0`).\n - command: check\n args: --manifest-path version-compatibility/Cargo.toml --workspace && cargo test --manifest-path version-compatibility/Cargo.toml --workspace\n - command: build\n args: -p fuel-core-bin --no-default-features --features production\n\n # WASM compatibility checks\n - command: check\n args: -p fuel-core-types --target wasm32-unknown-unknown --no-default-features --features alloc\n - command: check\n args: -p fuel-core-storage --target wasm32-unknown-unknown --no-default-features --features alloc\n - command: check\n args: -p fuel-core-client --target wasm32-unknown-unknown --no-default-features\n - command: check\n args: -p fuel-core-chain-config --target wasm32-unknown-unknown --no-default-features\n - command: check\n args: -p fuel-core-executor --target wasm32-unknown-unknown --no-default-features --features alloc\n - command: check\n args: -p fuel-core --no-default-features\n fail-fast: false\n\n # disallow any job that takes longer than 45 minutes\n timeout-minutes: 45\n continue-on-error: ${{ matrix.skip-error || false }}\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: "wasm32-unknown-unknown"\n components: "clippy"\n - name: Install Cargo Make\n uses: davidB/rust-cargo-make@v1\n with:\n version: "0.36.4"\n - uses: rui314/setup-mold@v1\n - uses: buildjet/cache@v3\n with:\n path: |\n ~/.cargo/bin/\n ~/.cargo/registry/index/\n ~/.cargo/registry/cache/\n ~/.cargo/git/db/\n target/\n key: ${{ matrix.command }}-${{ matrix.args }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}\n - uses: actions-rs/cargo@v1\n if: ${{ matrix.command == 'nextest' }}\n with:\n command: install\n args: cargo-nextest --locked\n continue-on-error: true\n - name: ${{ matrix.command }} ${{ matrix.args }}\n run: ${{ matrix.env }} cargo ${{ matrix.command }} ${{ matrix.args }}\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && github.ref == 'refs/heads/master'\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n\n publish-crates-check:\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: "wasm32-unknown-unknown"\n - name: Publish crate check\n uses: FuelLabs/publish-crates@v1\n with:\n dry-run: true\n check-repo: false\n ignore-unpublished-changes: true\n\n cargo-test-kms:\n if: github.event.repository.fork == false\n needs:\n - rustfmt\n - check-changelog\n runs-on: buildjet-4vcpu-ubuntu-2204\n env:\n RUSTFLAGS: -D warnings\n FUEL_CORE_TEST_AWS_KMS_ARN: "arn:aws:kms:us-east-1:249945542445:key/mrk-e13c7118ce544f7da66294f6e87c8790"\n timeout-minutes: 45\n permissions:\n contents: read\n id-token: write\n steps:\n - name: Configure AWS credentials for integration testing\n uses: aws-actions/configure-aws-credentials@v4\n with:\n role-to-assume: arn:aws:iam::249945542445:role/github_oidc_FuelLabs_fuel-core\n aws-region: us-east-1\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n - uses: rui314/setup-mold@v1\n - uses: buildjet/cache@v3\n with:\n path: |\n ~/.cargo/bin/\n ~/.cargo/registry/index/\n ~/.cargo/registry/cache/\n ~/.cargo/git/db/\n target/\n key: cargo-test-kms-${{ hashFiles('**/Cargo.lock') }}\n - name: Run integration tests for kms only\n run: cargo test -p fuel-core-tests --features aws-kms -- kms\n\n verifications-complete:\n needs:\n - cargo-verifications\n - publish-crates-check\n - cargo-test-kms\n runs-on: ubuntu-latest\n steps:\n - run: echo "pass"\n\n verify-tag-version:\n # Only do this job if publishing a release\n if: github.event_name == 'release' && github.event.action == 'published'\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Verify tag version\n run: |\n # TODO: Automate running `verify_tag` only for "publish = true" crates\n curl -sSLf "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -L -o dasel && chmod +x dasel\n mv ./dasel /usr/local/bin/dasel\n ./.github/workflows/scripts/verify_tag.sh ${{ github.ref_name }} Cargo.toml\n\n publish-crates:\n # Only do this job if publishing a release\n needs:\n - verify-tag-version\n - verifications-complete\n if: github.event_name == 'release' && github.event.action == 'published'\n runs-on: buildjet-4vcpu-ubuntu-2204\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: "wasm32-unknown-unknown"\n\n - name: Publish crate\n uses: FuelLabs/publish-crates@v1\n with:\n publish-delay: 60000\n registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}\n\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always()\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n\n publish-fuel-core-binary:\n name: Release fuel-core binaries\n runs-on: ${{ matrix.job.os }}\n # Only do this job if publishing a release\n needs:\n - verify-tag-version\n - verifications-complete\n if: github.event_name == 'release' && github.event.action == 'published'\n continue-on-error: true\n strategy:\n fail-fast: false\n matrix:\n job:\n - os: buildjet-4vcpu-ubuntu-2204\n platform: linux\n target: x86_64-unknown-linux-gnu\n cross_image: x86_64-linux-gnu\n - os: buildjet-4vcpu-ubuntu-2204\n platform: linux-arm\n target: aarch64-unknown-linux-gnu\n cross_image: aarch64-linux-gnu\n - os: macos-latest\n platform: darwin\n target: x86_64-apple-darwin\n - os: macos-latest\n platform: darwin-arm\n target: aarch64-apple-darwin\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Set up Docker Buildx\n if: matrix.job.cross_image\n uses: docker/setup-buildx-action@v1\n\n - name: Log in to the ghcr.io registry\n if: matrix.job.os == 'buildjet-4vcpu-ubuntu-2204'\n uses: docker/login-action@v1\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.repository_owner }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Log in to the docker.io registry\n if: matrix.job.os == 'buildjet-4vcpu-ubuntu-2204'\n uses: docker/login-action@v2\n with:\n username: fuellabs\n password: ${{ secrets.DOCKER_IO_READ_ONLY_TOKEN }}\n\n - name: Setup custom cross env ${{ matrix.job.cross_image }}\n if: matrix.job.cross_image\n uses: docker/build-push-action@v2\n with:\n context: ci\n file: ci/Dockerfile.${{ matrix.job.target }}-clang\n tags: ${{ matrix.job.cross_image }}:latest\n load: true\n cache-from: type=registry,ref=ghcr.io/fuellabs/${{ matrix.job.cross_image }}-build-cache:latest\n cache-to: type=registry,ref=ghcr.io/fuellabs/${{ matrix.job.cross_image }}-build-cache:latest,mode=max\n\n - name: Install packages (macOS)\n if: matrix.job.os == 'macos-latest'\n run: |\n ci/macos-install-packages.sh\n\n - name: Install toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n target: ${{ matrix.job.target }},"wasm32-unknown-unknown"\n\n - name: Install cross\n uses: baptiste0928/cargo-install@v1\n with:\n crate: cross\n cache-key: "${{ matrix.job.target }}"\n\n - name: Build fuel-core and fuel-core-keygen\n run: |\n cross build --profile=release --target ${{ matrix.job.target }} --no-default-features --features "production" -p fuel-core-bin\n cross build --profile=release --target ${{ matrix.job.target }} -p fuel-core-keygen-bin\n\n - name: Strip release binary linux x86_64\n if: matrix.job.platform == 'linux'\n run: |\n strip "target/${{ matrix.job.target }}/release/fuel-core"\n strip "target/${{ matrix.job.target }}/release/fuel-core-keygen"\n\n - name: Strip release binary aarch64-linux-gnu\n if: matrix.job.target == 'aarch64-unknown-linux-gnu'\n run: |\n docker run --rm -v \\n "$PWD/target:/target:Z" \\n aarch64-linux-gnu:latest \\n aarch64-linux-gnu-strip \\n /target/aarch64-unknown-linux-gnu/release/fuel-core\n docker run --rm -v \\n "$PWD/target:/target:Z" \\n aarch64-linux-gnu:latest \\n aarch64-linux-gnu-strip \\n /target/aarch64-unknown-linux-gnu/release/fuel-core-keygen\n\n - name: Strip release binary mac\n if: matrix.job.os == 'macos-latest'\n run: |\n strip -x "target/${{ matrix.job.target }}/release/fuel-core"\n strip -x "target/${{ matrix.job.target }}/release/fuel-core-keygen"\n\n - name: Prepare Binary Artifact\n env:\n PLATFORM_NAME: ${{ matrix.job.platform }}\n TARGET: ${{ matrix.job.target }}\n run: |\n # trim refs/tags/ prefix\n FUEL_CORE_VERSION="${GITHUB_REF#refs/tags/}"\n # optionally trim v from tag prefix\n FUEL_CORE_VERSION="${FUEL_CORE_VERSION#v}"\n echo "version is: $FUEL_CORE_VERSION"\n # setup artifact filename\n ARTIFACT="fuel-core-$FUEL_CORE_VERSION-${{ env.TARGET }}"\n ZIP_FILE_NAME="$ARTIFACT.tar.gz"\n echo "ZIP_FILE_NAME=$ZIP_FILE_NAME" >> $GITHUB_ENV\n # create zip file\n mkdir -pv "$ARTIFACT"\n cp "target/${{ matrix.job.target }}/release/fuel-core" "$ARTIFACT"\n cp "target/${{ matrix.job.target }}/release/fuel-core-keygen" "$ARTIFACT"\n cp "target/${{ matrix.job.target }}/release/fuel-core-upgradable-executor-cache/wasm32-unknown-unknown/release/fuel-core-wasm-executor.wasm" "$ARTIFACT"\n tar -czvf "$ZIP_FILE_NAME" "$ARTIFACT"\n\n - name: Upload Binary Artifact\n uses: actions/upload-release-asset@v1\n env:\n GITHUB_TOKEN: ${{ github.token }}\n with:\n upload_url: ${{ github.event.release.upload_url }}\n asset_path: ./${{ env.ZIP_FILE_NAME }}\n asset_name: ${{ env.ZIP_FILE_NAME }}\n asset_content_type: application/gzip\n\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && (github.ref == 'refs/heads/master' || github.ref_type == 'tag') && matrix.job.os != 'macos-latest'\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n cargo-audit:\n runs-on: ubuntu-latest\n continue-on-error: true\n steps:\n - uses: actions/checkout@v4\n - uses: actions-rs/audit-check@v1\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\ci.yml | ci.yml | YAML | 17,504 | 0.95 | 0.065263 | 0.036613 | vue-tools | 307 | 2025-01-21T19:38:29.212691 | Apache-2.0 | false | ef2500be193c2ab85ebb00694caf2751 |
name: Create version\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize, reopened, labeled, unlabeled]\n\njobs:\n create_version:\n permissions:\n contents: write\n pull-requests: write\n runs-on: ubuntu-latest\n if: ${{ github.event.label.name == 'pr release' }}\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.pull_request.head.ref }}\n\n - name: Get the version number in the PR description\n id: get_version\n run: |\n # Extract the version number from the PR description\n version=$(echo "${{ github.event.pull_request.body }}" | grep -oP '## Version \K[0-9]+\.[0-9]+\.[0-9]+')\n echo "NEW_VERSION=${version}" >> $GITHUB_OUTPUT\n\n - name: Gather all changes\n id: gather_changes\n run: |\n\n # Define the order of sections\n sections_order=("breaking" "added" "changed" "fixed" "removed")\n\n # Process each section in the specified order\n for section in "${sections_order[@]}"; do\n dir_path=".changes/${section}"\n if [ -d "$dir_path" ]; then\n # Collect .md files sorted numerically using version sort\n files=()\n while IFS= read -r -d $'\0' file; do\n files+=("$file")\n done < <(find "$dir_path" -maxdepth 1 -type f -name '*.md' -print0 | sort -V -z)\n \n if [ ${#files[@]} -gt 0 ]; then\n # Capitalize the first letter of the section name\n section_name="$(tr '[:lower:]' '[:upper:]' <<< "${section:0:1}")${section:1}"\n VERSION_TEXT+="\n### $section_name\n"\n for file in "${files[@]}"; do\n filename=$(basename "$file" .md)\n content=$(cat "$file")\n # Ident by two spaces every new line\n content=$(echo -e "$content" | awk 'NR==1{print $0; next} {print " " $0}')\n VERSION_TEXT+="- [${filename}](https://github.com/FuelLabs/fuel-core/pull/${filename}): ${content}\n"\n done\n fi\n fi\n done\n #Escape backquotes\n VERSION_TEXT=$(echo "$VERSION_TEXT" | sed 's/`/\\`/g')\n echo -e "$VERSION_TEXT"\n {\n echo 'VERSION_TEXT<<EOF'\n echo -e "${VERSION_TEXT}"\n echo EOF\n } >> "$GITHUB_OUTPUT"\n\n\n - name: Update PR description with the version and changes\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n # Update the PR description with the version and changes\n gh pr edit ${{ github.event.pull_request.number }} --body "## Version ${{ steps.get_version.outputs.NEW_VERSION }}\n ${{ steps.gather_changes.outputs.VERSION_TEXT }}"\n\n - name: Update the CHANGELOG.md file\n run: |\n while IFS= read -r line; do\n if [[ "$line" == "## [Unreleased (see .changes folder)]" ]]; then\n echo -e "## [Unreleased (see .changes folder)]\n"\n echo -e "## [Version ${{ steps.get_version.outputs.NEW_VERSION }}]"\n VERSION_TEXT="${{ steps.gather_changes.outputs.VERSION_TEXT }}"\n VERSION_TEXT=${VERSION_TEXT::-1}\n echo -e "$VERSION_TEXT"\n else\n printf "%s\n" "$line"\n fi\n done < CHANGELOG.md > CHANGELOG.md.tmp && mv CHANGELOG.md.tmp CHANGELOG.md\n cat CHANGELOG.md\n \n - name: Delete all the .md files in the .changes directory\n run: |\n find .changes -type f -name '*.md' -delete\n \n - name: Commit & push the changes\n run: |\n git config user.name 'github-actions[bot]'\n git config user.email 'github-actions[bot]@users.noreply.github.com'\n git add CHANGELOG.md\n git add .changes\n git commit -m "Generate changelog for v.${{ steps.get_version.outputs.NEW_VERSION }}"\n git push | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\create_version.yml | create_version.yml | YAML | 4,040 | 0.8 | 0.087379 | 0.087912 | node-utils | 177 | 2024-09-01T02:25:59.656815 | MIT | false | a35e40d952184b49cbf00b7826708823 |
# Automatically run `cargo update` periodically\n\n---\nname: Bump dependencies in Cargo.lock\non:\n schedule:\n # Run weekly\n - cron: '0 0 * * Sun'\n workflow_dispatch:\n # Needed so we can run it manually\npermissions:\n contents: read\ndefaults:\n run:\n shell: bash\nenv:\n # So cargo doesn't complain about unstable features\n RUSTC_BOOTSTRAP: 1\n RUST_VERSION: 1.85.0\n PR_TITLE: Weekly `cargo update`\n PR_MESSAGE: |\n Automation to keep dependencies in `Cargo.lock` current.\n\n The following is the output from `cargo update`:\n COMMIT_MESSAGE: "cargo update \n\n"\n\njobs:\n update:\n name: update dependencies\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - name: Checkout repository\n uses: actions/checkout@v3\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n\n - name: cargo update\n # Remove first line that always just says "Updating crates.io index"\n run: cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log\n - name: upload Cargo.lock artifact for use in PR\n uses: actions/upload-artifact@v3\n with:\n name: Cargo-lock\n path: Cargo.lock\n retention-days: 1\n - name: upload cargo-update log artifact for use in PR\n uses: actions/upload-artifact@v3\n with:\n name: cargo-updates\n path: cargo_update.log\n retention-days: 1\n\n pr:\n name: amend PR\n needs: update\n runs-on: buildjet-4vcpu-ubuntu-2204\n permissions:\n contents: write\n pull-requests: write\n steps:\n - name: checkout the source code\n uses: actions/checkout@v4\n\n - name: download Cargo.lock from update job\n uses: actions/download-artifact@v3\n with:\n name: Cargo-lock\n - name: download cargo-update log from update job\n uses: actions/download-artifact@v3\n with:\n name: cargo-updates\n\n - name: craft PR body and commit message\n run: |\n echo "${COMMIT_MESSAGE}" > commit.txt\n cat cargo_update.log >> commit.txt\n\n echo "${PR_MESSAGE}" > body.md\n echo '```txt' >> body.md\n cat cargo_update.log >> body.md\n echo '```' >> body.md\n\n - name: commit\n run: |\n git config user.name 'github-actions[bot]'\n git config user.email 'github-actions[bot]@users.noreply.github.com'\n git switch --force-create cargo_update\n git add ./Cargo.lock\n git commit --no-verify --file=commit.txt\n\n - name: push\n run: git push --no-verify --force --set-upstream origin cargo_update\n\n - name: edit existing open pull request\n id: edit\n # Don't fail job if we need to open new PR\n continue-on-error: true\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n # Exit with error if PR is closed\n STATE=$(gh pr view cargo_update --repo $GITHUB_REPOSITORY --json state --jq '.state')\n if [[ "$STATE" != "OPEN" ]]; then\n exit 1\n fi\n\n gh pr edit cargo_update --title "${PR_TITLE}" --body-file body.md --repo $GITHUB_REPOSITORY\n\n - name: open new pull request\n # Only run if there wasn't an existing PR\n if: steps.edit.outcome != 'success'\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: gh pr create --title "${PR_TITLE}" --body-file body.md --repo $GITHUB_REPOSITORY --label "no changelog"\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\dependencies.yml | dependencies.yml | YAML | 3,509 | 0.8 | 0.069565 | 0.078431 | python-kit | 82 | 2024-04-15T10:27:36.848364 | GPL-3.0 | false | fefb87ed0c39be2fc5ef988d37cbb453 |
name: Docker Images\n\non:\n workflow_dispatch:\n push:\n branches:\n - master\n release:\n types: [ published ]\n\nenv:\n GIT_BRANCH: ${{ github.head_ref || github.ref_name }}\n GIT_REPO_OWNER: ${{ github.repository_owner }}\n GIT_REPO: ${{ github.repository }}\n GIT_REPO_NAME: ${{ github.event.repository.name }}\n AWS_ROLE_ARN: arn:aws:iam::024848458133:role/github_oidc_FuelLabs_fuel-core\n AWS_ECR_ORG: fuellabs\n CARGO_TERM_COLOR: always\n RUST_VERSION: 1.85.0\n RUST_VERSION_FMT: nightly-2023-10-29\n RUST_VERSION_COV: nightly-2024-06-05\n RUSTFLAGS: -D warnings\n REGISTRY: ghcr.io\n SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2\n\njobs:\n build-docker-images:\n strategy:\n matrix:\n arch: [\n # build on native runners instead of using emulation\n { platform: linux/amd64, runner: buildjet-8vcpu-ubuntu-2204 },\n { platform: linux/arm64, runner: buildjet-16vcpu-ubuntu-2204-arm }\n ]\n runs-on: ${{ matrix.arch.runner }}\n permissions:\n contents: read\n packages: write\n steps:\n - name: Setup environment\n run: |\n echo "REGISTRY_URL=${REGISTRY@L}/${GIT_REPO@L}" >>${GITHUB_ENV}\n platform=${{ matrix.arch.platform }}\n echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV\n\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v3\n\n - name: Log in to the ghcr.io registry\n uses: docker/login-action@v3\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.repository_owner }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Log in to the docker.io registry\n uses: docker/login-action@v3\n with:\n username: fuellabs\n password: ${{ secrets.DOCKER_IO_READ_ONLY_TOKEN }}\n\n - name: Docker meta\n id: meta\n uses: docker/metadata-action@v5\n with:\n images: ${{ env.REGISTRY_URL }}\n\n - name: Setup Rust build cache\n id: cache\n uses: buildjet/cache@v3\n with:\n path: |\n home-cargo-bin\n home-cargo-registry-index\n home-cargo-registry-cache\n home-cargo-git-db\n target\n key: ${{ env.PLATFORM_PAIR }}-${{ hashFiles('**/Cargo.lock') }}\n\n - name: Inject cache into docker\n uses: reproducible-containers/buildkit-cache-dance@v3.1.2\n with:\n cache-map: |\n {\n "home-cargo-bin": "/usr/local/cargo/bin",\n "home-cargo-registry-index": "/usr/local/cargo/registry/index",\n "home-cargo-registry-cache": "/usr/local/cargo/registry/cache",\n "home-cargo-git-db": "/usr/local/cargo/git/db",\n "target": "/build/target"\n }\n skip-extraction: ${{ steps.cache.outputs.cache-hit }}\n\n - name: Build Docker image\n id: build\n uses: docker/build-push-action@v6\n with:\n context: .\n platforms: ${{ matrix.arch.platform }}\n file: deployment/Dockerfile\n labels: ${{ steps.meta.outputs.labels }}\n cache-from: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache:latest-${{ matrix.arch.runner }}\n cache-to: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache:latest-${{ matrix.arch.runner }},mode=max,image-manifest=true,oci-mediatypes=true\n outputs: |\n type=image,name=${{ env.REGISTRY_URL }},push-by-digest=true,name-canonical=true,push=true\n\n - name: Export digest\n run: |\n mkdir -p /tmp/digests\n digest="${{ steps.build.outputs.digest }}"\n touch "/tmp/digests/${digest#sha256:}"\n\n - name: Upload digest\n uses: actions/upload-artifact@v4\n with:\n name: digests-${{ env.PLATFORM_PAIR }}\n path: /tmp/digests/*\n if-no-files-found: error\n retention-days: 1\n\n publish-docker-image:\n needs:\n - build-docker-images\n runs-on: ubuntu-latest\n permissions:\n contents: read\n packages: write\n id-token: write\n steps:\n - name: Setup environment\n run: |\n echo "REGISTRY_URL=${REGISTRY@L}/${GIT_REPO@L}" >>${GITHUB_ENV}\n\n - name: Download digests\n uses: actions/download-artifact@v4\n with:\n path: /tmp/digests\n pattern: digests-*\n merge-multiple: true\n\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v3\n\n - name: Configure AWS credentials for ECR publishing\n uses: aws-actions/configure-aws-credentials@v4\n with:\n role-to-assume: ${{ env.AWS_ROLE_ARN }}\n aws-region: us-east-1 # ecr public is only in us-east-1\n\n - name: Login to Amazon ECR Public\n id: login-ecr-public\n uses: aws-actions/amazon-ecr-login@v2\n with:\n registry-type: public\n\n - name: Log in to the ghcr.io registry\n uses: docker/login-action@v3\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.repository_owner }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Log in to the docker.io registry\n uses: docker/login-action@v3\n with:\n username: fuellabs\n password: ${{ secrets.DOCKER_IO_READ_ONLY_TOKEN }}\n\n - name: Docker metadata\n id: meta\n uses: docker/metadata-action@v5\n with:\n images: |\n ${{ env.REGISTRY_URL }}\n ${{ steps.login-ecr-public.outputs.registry }}/${{ env.AWS_ECR_ORG }}/${{ env.GIT_REPO_NAME }}\n tags: |\n type=sha\n type=ref,event=branch\n type=ref,event=tag\n type=semver,pattern={{raw}}\n type=raw,value=sha-{{sha}}-{{date 'YYYYMMDDhhmmss'}}\n type=raw,value=latest,enable={{is_default_branch}}\n\n - name: Create manifest list and push to all registries\n working-directory: /tmp/digests\n run: |\n docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \\n $(printf '${{ env.REGISTRY_URL }}@sha256:%s ' *)\n\n - name: Inspect image\n run: |\n docker buildx imagetools inspect ${{ env.REGISTRY_URL }}:${{ steps.meta.outputs.version }}\n\n # duplicate of publish-docker-image, but with profiling features enabled\n # this is split into a separate action since it takes longer to build\n publish-docker-image-profiling:\n runs-on: buildjet-16vcpu-ubuntu-2204\n permissions:\n contents: read\n packages: write\n id-token: write\n steps:\n - name: Setup environment\n run: |\n echo "REGISTRY_URL=${REGISTRY@L}/${GIT_REPO@L}" >>${GITHUB_ENV}\n\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v3\n\n - name: Configure AWS credentials for ECR publishing\n uses: aws-actions/configure-aws-credentials@v4\n with:\n role-to-assume: ${{ env.AWS_ROLE_ARN }}\n aws-region: us-east-1 # ecr public is only in us-east-1\n\n - name: Login to Amazon ECR Public\n id: login-ecr-public\n uses: aws-actions/amazon-ecr-login@v2\n with:\n registry-type: public\n\n - name: Log in to the ghcr.io registry\n uses: docker/login-action@v1\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.repository_owner }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Log in to the docker.io registry\n uses: docker/login-action@v2\n with:\n username: fuellabs\n password: ${{ secrets.DOCKER_IO_READ_ONLY_TOKEN }}\n\n - name: Docker meta\n id: meta\n uses: docker/metadata-action@v5\n with:\n images: |\n ${{ env.REGISTRY_URL }}-debug\n ${{ steps.login-ecr-public.outputs.registry }}/${{ env.AWS_ECR_ORG }}/${{ env.GIT_REPO_NAME }}-debug\n tags: |\n type=sha\n type=ref,event=branch\n type=ref,event=tag\n type=semver,pattern={{raw}}\n type=raw,value=sha-{{sha}}-{{date 'YYYYMMDDhhmmss'}}\n type=raw,value=latest,enable={{is_default_branch}}\n\n - name: Setup Rust build cache\n id: cache\n uses: buildjet/cache@v3\n with:\n path: |\n home-cargo-bin\n home-cargo-registry-index\n home-cargo-registry-cache\n home-cargo-git-db\n target\n key: publish-docker-image-profiling-${{ hashFiles('**/Cargo.lock') }}\n\n - name: Inject cache into docker\n uses: reproducible-containers/buildkit-cache-dance@v3.1.2\n with:\n cache-map: |\n {\n "home-cargo-bin": "/usr/local/cargo/bin",\n "home-cargo-registry-index": "/usr/local/cargo/registry/index",\n "home-cargo-registry-cache": "/usr/local/cargo/registry/cache",\n "home-cargo-git-db": "/usr/local/cargo/git/db",\n "target": "/build/target"\n }\n skip-extraction: ${{ steps.cache.outputs.cache-hit }}\n\n - name: Build & push Docker image\n id: build\n uses: docker/build-push-action@v6\n with:\n context: .\n file: deployment/Dockerfile\n build-args: "DEBUG_SYMBOLS=true"\n push: true\n tags: ${{ steps.meta.outputs.tags }}\n labels: ${{ steps.meta.outputs.labels }}\n cache-from: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache-debug:latest\n cache-to: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache-debug:latest,mode=max,image-manifest=true,oci-mediatypes=true\n\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && (github.ref == 'refs/heads/master' || github.ref_type == 'tag')\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n \n publish-e2e-client-docker-image:\n runs-on: buildjet-4vcpu-ubuntu-2204\n permissions:\n contents: read\n packages: write\n id-token: write\n steps:\n - name: Setup environment\n run: |\n echo "REGISTRY_URL=${REGISTRY@L}/${GIT_REPO@L}" >>${GITHUB_ENV}\n\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v3\n\n - name: Configure AWS credentials for ECR publishing\n uses: aws-actions/configure-aws-credentials@v4\n with:\n role-to-assume: ${{ env.AWS_ROLE_ARN }}\n aws-region: us-east-1 # ecr public is only in us-east-1\n\n - name: Login to Amazon ECR Public\n id: login-ecr-public\n uses: aws-actions/amazon-ecr-login@v2\n with:\n registry-type: public\n\n - name: Log in to the ghcr.io registry\n uses: docker/login-action@v1\n with:\n registry: ${{ env.REGISTRY }}\n username: ${{ github.repository_owner }}\n password: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Log in to the docker.io registry\n uses: docker/login-action@v2\n with:\n username: fuellabs\n password: ${{ secrets.DOCKER_IO_READ_ONLY_TOKEN }}\n\n - name: Docker meta\n id: meta\n uses: docker/metadata-action@v5\n with:\n images: |\n ${{ env.REGISTRY_URL }}-e2e-client\n ${{ steps.login-ecr-public.outputs.registry }}/${{ env.AWS_ECR_ORG }}/${{ env.GIT_REPO_NAME }}-e2e-client\n tags: |\n type=sha\n type=ref,event=branch\n type=ref,event=tag\n type=semver,pattern={{raw}}\n type=raw,value=sha-{{sha}}-{{date 'YYYYMMDDhhmmss'}}\n type=raw,value=latest,enable={{is_default_branch}}\n\n - name: Setup Rust build cache\n id: cache\n uses: buildjet/cache@v3\n with:\n path: |\n home-cargo-bin\n home-cargo-registry-index\n home-cargo-registry-cache\n home-cargo-git-db\n target\n key: publish-e2e-client-docker-image-${{ hashFiles('**/Cargo.lock') }}\n\n - name: Inject cache into docker\n uses: reproducible-containers/buildkit-cache-dance@v3.1.2\n with:\n cache-map: |\n {\n "home-cargo-bin": "/usr/local/cargo/bin",\n "home-cargo-registry-index": "/usr/local/cargo/registry/index",\n "home-cargo-registry-cache": "/usr/local/cargo/registry/cache",\n "home-cargo-git-db": "/usr/local/cargo/git/db",\n "target": "/build/target"\n }\n skip-extraction: ${{ steps.cache.outputs.cache-hit }}\n\n - name: Build & push Docker image\n id: build\n uses: docker/build-push-action@v6\n with:\n context: .\n file: deployment/e2e-client.Dockerfile\n push: true\n tags: ${{ steps.meta.outputs.tags }}\n labels: ${{ steps.meta.outputs.labels }}\n cache-from: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache-e2e:latest\n cache-to: type=registry,ref=${{ env.REGISTRY_URL }}-build-cache-e2e:latest,mode=max,image-manifest=true,oci-mediatypes=true\n\n - uses: FuelLabs/.github/.github/actions/slack-notify-template@master\n if: always() && (github.ref == 'refs/heads/master' || github.ref_type == 'tag')\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n slack_webhook: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }}\n # Deploy Fuel Core Ephemeral Developer Environment\n deploy-eph-env:\n if: startsWith(github.head_ref, 'preview/')\n needs:\n - publish-docker-image\n runs-on: buildjet-4vcpu-ubuntu-2204\n steps:\n - name: Set Environment Variables\n run: |\n tag=(`echo $GITHUB_SHA | cut -c1-7`)\n echo "IMAGE_TAG=`echo sha-$tag`" >> $GITHUB_ENV\n echo "DEPLOYMENT_VERSION=$(echo $GITHUB_SHA)" >> $GITHUB_ENV\n echo "NAMESPACE=$(echo ${GITHUB_HEAD_REF} | cut -c 9-)" >> $GITHUB_ENV\n\n - name: Deploy Fuel Core Ephemeral Developer Environment\n uses: benc-uk/workflow-dispatch@v1\n with:\n workflow: Deploy Fuel-Core on k8s\n repo: FuelLabs/fuel-deployment\n ref: refs/heads/master\n token: ${{ secrets.REPO_TOKEN }}\n inputs: '{ "k8s-type": "${{ env.K8S }}", "config-directory": "${{ env.CONFIG }}", "config-env": "${{ env.ENV }}", "deployment-version": "${{ env.DEPLOYMENT_VERSION }}", "image-tag": "${{ env.IMAGE_TAG }}", "namespace": "${{ env.NAMESPACE }}", "delete-infra": "${{ env.DELETE_INFRA }}" }'\n env:\n K8S: 'eks'\n CONFIG: 'fuel-dev1'\n ENV: 'fueldevsway.env'\n DELETE_INFRA: true\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\docker-images.yml | docker-images.yml | YAML | 14,828 | 0.8 | 0.016509 | 0.010638 | python-kit | 971 | 2025-04-12T02:48:17.215420 | BSD-3-Clause | false | b5b9c7926d3f6ff69ed432de7df882d3 |
name: Nightly Gas Costs Benchmark\n\non:\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n inputs:\n create_pr:\n description: "Create a pull request with the benchmark results"\n required: true\n default: "false"\n\nenv:\n GIT_REPO: ${{ github.repository }}\n GIT_REPO_NAME: ${{ github.event.repository.name }}\n CARGO_TERM_COLOR: always\n RUST_VERSION: 1.81.0\n CONSENSUS_PARAMETERS_VERSION: V2\n\njobs:\n benchmark:\n runs-on:\n group: fuelcore-benchmark\n concurrency:\n group: fuelcore-benchmark # only allow one benchmark run at a time\n cancel-in-progress: false\n outputs:\n benchmark_results: ${{ steps.benchmarks.outputs.benchmark_results }}\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n\n - name: Install Rust Toolchain\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: "wasm32-unknown-unknown"\n\n - name: Install criterion\n run: cargo install cargo-criterion\n\n - name: Cache\n uses: Swatinem/rust-cache@v2\n\n - name: Run benchmarks\n id: run_benchmarks\n run: |\n cargo criterion -p fuel-core-benches --message-format json --bench vm > nightly_benchmarks.json\n cargo run -p fuel-core-benches --bin collect --release -- --input nightly_benchmarks.json --format consensus-parameters --output nightly_benchmarks.json\n\n - name: Archive benchmark results\n uses: actions/upload-artifact@v4\n with:\n name: nightly_benchmarks.json\n path: nightly_benchmarks.json\n\n - name: Set benchmark result output\n id: benchmarks\n run: | # this will fail when consensus parameters version changes\n echo "benchmark_results=$(cat nightly_benchmarks.json | jq '.${{ env.CONSENSUS_PARAMETERS_VERSION }}.gas_costs' | tr -d '\n' )" >> "$GITHUB_OUTPUT"\n\n create_pr:\n needs: benchmark\n runs-on: ubuntu-latest\n permissions:\n contents: write\n pull-requests: write\n\n if: ${{ github.event.inputs.create_pr == 'true' || github.event_name == 'pull_request' }}\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n\n - name: Parse benchmark results and create PR\n run: |\n jq --argjson benchmark_results "$benchmark_results" \\n '.consensus_parameters.${{ env.CONSENSUS_PARAMETERS_VERSION }}.gas_costs = $benchmark_results' \\n bin/fuel-core/chainspec/local-testnet/chain_config.json > \\n bin/fuel-core/chainspec/local-testnet/chain_config.json.tmp && \\n mv bin/fuel-core/chainspec/local-testnet/chain_config.json.tmp bin/fuel-core/chainspec/local-testnet/chain_config.json\n # create a new branch\n branch_name="chore/benchmark-update-$(date +%s)"\n git checkout -b "$branch_name"\n git add bin/fuel-core/chainspec/local-testnet/chain_config.json\n git config user.name 'github-actions[bot]'\n git config user.email 'github-actions[bot]@users.noreply.github.com'\n git commit -m "Update benchmark results"\n\n git push origin "$branch_name"\n\n # create a new PR\n gh pr create \\n --title "chore(gas_costs): update local chain config with nightly benchmark results" \\n --body "Updated benchmark results" \\n --base master \\n --head "$branch_name"\n --label "no changelog"\n env:\n benchmark_results: ${{ needs.benchmark.outputs.benchmark_results }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\nightly-benchmark.yml | nightly-benchmark.yml | YAML | 3,588 | 0.95 | 0.01 | 0.023256 | react-lib | 196 | 2024-01-23T01:57:29.262041 | Apache-2.0 | false | 0b85b19622623ff4725c604006d7c427 |
name: Nightly Cargo Audit\n\non:\n schedule:\n - cron: '0 0 * * *'\n\njobs:\n cargo_audit:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n - uses: actions-rs/audit-check@v1\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\nightly-cargo-audit.yml | nightly-cargo-audit.yml | YAML | 260 | 0.7 | 0 | 0 | awesome-app | 368 | 2025-07-07T14:46:25.687830 | Apache-2.0 | false | e98501456d122f91664da3a29e6f5c71 |
name: Publish Codecov Report\n\non:\n workflow_dispatch:\n\nenv:\n GIT_BRANCH: ${{ github.head_ref || github.ref_name }}\n GIT_REPO_OWNER: ${{ github.repository_owner }}\n GIT_REPO: ${{ github.repository }}\n GIT_REPO_NAME: ${{ github.event.repository.name }}\n AWS_ROLE_ARN: arn:aws:iam::024848458133:role/github_oidc_FuelLabs_fuel-core\n AWS_ECR_ORG: fuellabs\n CARGO_TERM_COLOR: always\n RUST_VERSION: 1.85.0\n RUST_VERSION_FMT: nightly-2023-10-29\n RUST_VERSION_COV: nightly-2024-06-05\n RUSTFLAGS: -D warnings\n REGISTRY: ghcr.io\n SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2\n\njobs:\n publish-codecov:\n name: Publish code coverage report on GitHub pages branch\n runs-on: buildjet-4vcpu-ubuntu-2204\n permissions: # Write access to push changes to pages\n contents: write\n steps:\n - uses: actions/checkout@v4\n - name: Install latest Rust\n uses: dtolnay/rust-toolchain@master\n with:\n toolchain: ${{ env.RUST_VERSION_COV }}\n targets: wasm32-unknown-unknown\n\n - name: Install cargo-llvm-codecov\n uses: taiki-e/install-action@cargo-llvm-cov\n\n - name: Code coverage report\n run: cargo +${{ env.RUST_VERSION_COV }} llvm-cov --all-features --html --branch\n\n - name: Checkout the repo again for pushing pages revision\n uses: actions/checkout@v4\n with:\n ref: 'codecov-pages'\n path: 'pages-branch'\n\n - name: Push codecov report to pages branch\n working-directory: ./pages-branch\n run: |\n export BRANCH_B64=$(echo -n "${{ env.GIT_BRANCH }}" | basenc --base64url)\n git config user.email "2204863+Dentosal@users.noreply.github.com"\n git config user.name "Dentosal"\n cp -r ../target/llvm-cov/html "$BRANCH_B64"\n python3 ../.github/workflows/scripts/generate_pages_index.py > index.html\n git add .\n git commit -m "Update codecov for ${{ env.GIT_BRANCH }}"\n git push\n export PAGES_URL="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/$BRANCH_B64/index.html"\n echo "$PAGES_URL"\n echo "Codecov report $PAGES_URL" >> $GITHUB_STEP_SUMMARY \n \n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\publish-codecov.yml | publish-codecov.yml | YAML | 2,197 | 0.8 | 0.032787 | 0 | react-lib | 798 | 2025-01-19T17:51:28.696143 | MIT | false | c1a34bb2afa4e2132dd3e92a9c3134f6 |
name: Notify downstream repos\n\non:\n push:\n branches:\n - master\n\njobs:\n\n notify:\n runs-on: ubuntu-latest\n env:\n DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }} \n steps:\n - uses: actions/checkout@v4\n - run: |\n git clone https://github.com/FuelLabs/releasy && cd releasy && git checkout kayagokalp/releasy-handle && cd ..\n cargo install --path ./releasy/releasy-emit\n releasy-emit --event new-commit-to-dependency --path ./.github/workflows/repo-plan.toml --event-commit-hash ${GITHUB_SHA}\n name: Install and run releasy\n | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\releasy-dependency-commits.yml | releasy-dependency-commits.yml | YAML | 570 | 0.8 | 0 | 0 | awesome-app | 859 | 2024-09-20T01:34:12.930397 | GPL-3.0 | false | 8b405cf6b923fe4b2845a9bdb787b13a |
name: Spellcheck\n\non:\n pull_request:\n\njobs:\n find-typos:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v3\n\n - name: Check spelling\n uses: crate-ci/typos@master\n with:\n config: .typos.toml | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\spellcheck.yml | spellcheck.yml | YAML | 262 | 0.7 | 0 | 0 | react-lib | 757 | 2024-03-10T06:45:31.035052 | BSD-3-Clause | false | 4f80e5fafc58369c47d6f2e682bd04ca |
name: Update README Network Versions\non:\n schedule:\n - cron: '0 * * * *' # Runs every hour at the 0th minute\n workflow_dispatch: # Allows manual triggering\n\njobs:\n check-and-update:\n runs-on: ubuntu-latest\n permissions:\n contents: write\n pull-requests: write\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v3\n\n - name: Fetch current versions\n id: get-versions\n run: |\n # Fetch versions from all networks\n ignition_version=$(curl -s -X POST -H "Content-Type: application/json" --data '{"query":"query { nodeInfo { nodeVersion }}"}' https://mainnet.fuel.network/v1/graphql | jq -r '.data.nodeInfo.nodeVersion')\n testnet_version=$(curl -s -X POST -H "Content-Type: application/json" --data '{"query":"query { nodeInfo { nodeVersion }}"}' https://testnet.fuel.network/v1/graphql | jq -r '.data.nodeInfo.nodeVersion')\n devnet_version=$(curl -s -X POST -H "Content-Type: application/json" --data '{"query":"query { nodeInfo { nodeVersion }}"}' https://devnet.fuel.network/v1/graphql | jq -r '.data.nodeInfo.nodeVersion')\n\n echo "ignition_version=$ignition_version" >> $GITHUB_OUTPUT\n echo "testnet_version=$testnet_version" >> $GITHUB_OUTPUT\n echo "devnet_version=$devnet_version" >> $GITHUB_OUTPUT\n\n - name: Extract current README versions\n id: readme-versions\n run: |\n # Extract versions from README.md\n ignition_readme=$(grep -E '^\| Fuel Ignition' README.md | awk -F '|' '{gsub(/ /, "", $3); print $3}')\n testnet_readme=$(grep -E '^\| Testnet' README.md | awk -F '|' '{gsub(/ /, "", $3); print $3}')\n devnet_readme=$(grep -E '^\| Devnet' README.md | awk -F '|' '{gsub(/ /, "", $3); print $3}')\n\n echo "ignition_readme=$ignition_readme" >> $GITHUB_OUTPUT\n echo "testnet_readme=$testnet_readme" >> $GITHUB_OUTPUT\n echo "devnet_readme=$devnet_readme" >> $GITHUB_OUTPUT\n\n - name: Update README if needed\n id: update-readme\n run: |\n echo "Comparing versions..."\n needs_update=false\n tmp_file=$(mktemp)\n\n # Create sed command file\n {\n if [ "${{ steps.get-versions.outputs.ignition_version }}" != "${{ steps.readme-versions.outputs.ignition_readme }}" ]; then\n echo "s/^\| *Fuel Ignition *\|.*\|/| Fuel Ignition | ${{ steps.get-versions.outputs.ignition_version }} |/"\n needs_update=true\n fi\n \n if [ "${{ steps.get-versions.outputs.testnet_version }}" != "${{ steps.readme-versions.outputs.testnet_readme }}" ]; then\n echo "s/^\| *Testnet *\|.*\|/| Testnet | ${{ steps.get-versions.outputs.testnet_version }} |/"\n needs_update=true\n fi\n \n if [ "${{ steps.get-versions.outputs.devnet_version }}" != "${{ steps.readme-versions.outputs.devnet_readme }}" ]; then\n echo "s/^\| *Devnet *\|.*\|/| Devnet | ${{ steps.get-versions.outputs.devnet_version }} |/"\n needs_update=true\n fi\n } > sed_commands.txt\n\n echo "Generated sed commands:"\n cat sed_commands.txt\n echo ""\n\n if [ "$needs_update" = true ]; then\n echo "Updating README.md..."\n sed -E -f sed_commands.txt README.md > "$tmp_file"\n mv "$tmp_file" README.md\n \n echo "Updated README content:"\n cat README.md\n echo "UPDATED=true" >> $GITHUB_ENV\n else\n echo "No version changes detected"\n echo "UPDATED=false" >> $GITHUB_ENV\n fi\n\n - name: Create Pull Request\n if: env.UPDATED == 'true'\n run: |\n # Check for existing PRs with specific label\n existing_prs=$(gh pr list --state open --search 'in:title "Update network versions on README"' --json number --jq 'length')\n if [ "$existing_prs" -gt 0 ]; then\n echo "Existing PR found, skipping PR creation"\n exit 0\n fi\n\n # Proceed with PR creation\n echo "Creating PR..."\n git config user.name 'github-actions[bot]'\n git config user.email 'github-actions[bot]@users.noreply.github.com'\n\n branch_name="version-update-$(date +%s)"\n git checkout -b "$branch_name"\n git add README.md\n git commit -m "Update network versions on README:\n \n - Fuel Ignition: ${{ steps.get-versions.outputs.ignition_version }}\n - Testnet: ${{ steps.get-versions.outputs.testnet_version }}\n - Devnet: ${{ steps.get-versions.outputs.devnet_version }}"\n\n git push origin "$branch_name"\n\n gh pr create \\n --title "Update network versions on README" \\n --body "Automated version updates:\n - Fuel Ignition: ${{ steps.get-versions.outputs.ignition_version }}\n - Testnet: ${{ steps.get-versions.outputs.testnet_version }}\n - Devnet: ${{ steps.get-versions.outputs.devnet_version }}" \\n --base master \\n --head "$branch_name"\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | dataset_sample\yaml\FuelLabs_fuel-core\.github\workflows\update_readme_versions.yml | update_readme_versions.yml | YAML | 5,043 | 0.8 | 0.067797 | 0.05 | python-kit | 554 | 2024-10-15T10:39:58.313041 | GPL-3.0 | false | 999c36b5c2c8cc9f71029a67c6cda716 |
name: Update READMEs and download links from GitHub profile page\n\non: \n repository_dispatch:\n workflow_dispatch:\n\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Dispatch trigger\n run: |\n git config --global user.email "github-actions@github.com"\n git config --global user.name "GitHub Action"\n\n # pull generated files from github profile page and commit them\n git remote add readmes https://github.com/getlantern/.github.git\n git fetch readmes\n git checkout --no-overlay readmes/main -- profile\n mv profile/* .\n rm -rf profile\n git add README*\n git diff --quiet && git diff --staged --quiet || git commit -m 'fetched from getlantern/.github/profile'; git push\n | dataset_sample\yaml\getlantern_lantern\.github\workflows\mirror.yml | mirror.yml | YAML | 788 | 0.8 | 0 | 0.047619 | awesome-app | 798 | 2024-06-12T13:14:39.261080 | BSD-3-Clause | false | c1b85aa1b1c83bec438d6b2acb58c4af |
language: node_js\nnode_js:\n - "0.10"\n\n#before_script:\n# - npm install --quiet karma karma-jasmine\n# - ./scripts/web-server.js > /dev/null &\n# - sleep 1 # give server time to start\n#\n#script:\n# - ./node_modules/karma/bin/karma start config/karma.conf.js --no-auto-watch --single-run --reporters=dots\n# - ./node_modules/karma/bin/karma start config/karma-e2e.conf.js --reporters=dots\n\nnotifications:\n irc: "irc.freenode.net#lantern"\n | dataset_sample\yaml\getlantern_lantern\archive\lantern-ui\.travis.yml | .travis.yml | YAML | 438 | 0.8 | 0 | 0.615385 | vue-tools | 342 | 2024-01-08T00:14:26.759660 | MIT | false | 2a6f73e3b0d7d0c66335eb4a9aeca260 |
language: node_js\nnode_js:\n - '0.10'\nbefore_script:\n - 'npm install -g grunt-cli'\n - 'npm install -g bower'\n - 'bower install'\nscript: grunt test\nafter_script: "npm install coveralls@2.10.0 && cat ./coverage/*/lcov.info | coveralls" | dataset_sample\yaml\getlantern_lantern\archive\lantern-ui\app\bower_components\angular-local-storage\.travis.yml | .travis.yml | YAML | 236 | 0.8 | 0 | 0 | node-utils | 785 | 2023-09-25T22:31:19.781412 | Apache-2.0 | false | 796e0b63e0609f86137f87eba7ea4caf |
language: node_js\n node_js:\n - "0.8"\n - "0.10"\n\n before_install:\n - export DISPLAY=:99.0\n - sh -e /etc/init.d/xvfb start\n - npm install -g karma bower grunt-cli\n - bower install\n - npm install\n\n script: "grunt"\n | dataset_sample\yaml\getlantern_lantern\archive\lantern-ui\app\bower_components\angular-ui-select2\.travis.yml | .travis.yml | YAML | 221 | 0.7 | 0 | 0 | awesome-app | 842 | 2024-06-17T01:24:50.172901 | MIT | false | f3d07291d16c73be87d94bc7536b7c5c |
language: node_js\nnode_js:\n - '0.10'\nbefore_script:\n - 'npm install -g bower grunt-cli'\n - 'bower install' | dataset_sample\yaml\getlantern_lantern\archive\lantern-ui\app\bower_components\ngclipboard\.travis.yml | .travis.yml | YAML | 109 | 0.7 | 0 | 0 | node-utils | 84 | 2023-11-22T00:29:18.406440 | GPL-3.0 | false | 2354144a1465c1163988f62b3a2654c2 |
language: node_js\n node_js:\n - "0.10"\n\n before_script:\n - export DISPLAY=:99.0\n - sh -e /etc/init.d/xvfb start\n - npm install --quiet -g grunt-cli karma\n - npm install\n\n script: grunt | dataset_sample\yaml\getlantern_lantern\archive\lantern-ui\app\bower_components\ui-bootstrap\.travis.yml | .travis.yml | YAML | 190 | 0.7 | 0 | 0 | react-lib | 440 | 2024-12-26T22:15:57.745634 | Apache-2.0 | false | 7f6c44a67527e3ee4c645528332bb3ed |
language: go\ngo: 1.2\ninstall:\n - go get -v code.google.com/p/go.tools/cmd/cover\nscript:\n - go test -v -tags=disableunsafe ./spew\n - go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov\nafter_success:\n - go get -v github.com/mattn/goveralls\n - export PATH=$PATH:$HOME/gopath/bin\n - goveralls -coverprofile=profile.cov -service=travis-ci\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\davecgh\go-spew\.travis.yml | .travis.yml | YAML | 376 | 0.7 | 0 | 0 | vue-tools | 937 | 2024-03-16T22:06:14.088343 | GPL-3.0 | false | 8cb07cdbe01951da83b3aa36d753f302 |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/balancer\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\balancer\.travis.yml | .travis.yml | YAML | 301 | 0.7 | 0 | 0 | node-utils | 118 | 2025-06-07T23:40:39.606554 | GPL-3.0 | false | 0b187f3a08fb80b64604952a6daeb98a |
# This references the default golang container from\n# the Docker Hub: https://registry.hub.docker.com/u/library/golang/\n# If you want Google's container you would reference google/golang\n# Read more about containers on our dev center\n# http://devcenter.wercker.com/docs/containers/index.html\nbox: golang:1.6.2\n# This is the build pipeline. Pipelines are the core of wercker\n# Read more about pipelines on our dev center\n# http://devcenter.wercker.com/docs/pipelines/index.html\nbuild:\n# The steps that will be executed on build\n# Steps make up the actions in your pipeline\n# Read more about steps on our dev center:\n# http://devcenter.wercker.com/docs/steps/index.html\n steps:\n # Sets the go workspace and places you package\n # at the right place in the workspace tree\n - wercker/setup-go-workspace:\n package-dir: github.com/getlantern/borda\n - script:\n name: glide install\n code: |\n cd /tmp\n curl -L https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.tar.gz -o glide.tar.gz\n tar -xf glide.tar.gz\n sudo mv linux-amd64/glide /usr/local/bin/\n - script:\n name: glide update\n code: |\n glide update\n # Build the project\n - script:\n name: go build\n code: |\n go build .\n # Test the project\n - script:\n name: go test\n code: |\n go test -race .\n\nintegration-test:\n steps:\n - script:\n name: influx install\n code: |\n wget https://dl.influxdata.com/influxdb/releases/influxdb_0.12.2-1_amd64.deb\n sudo dpkg -i influxdb_0.12.2-1_amd64.deb\n nohup influxd &\n - wercker/setup-go-workspace:\n package-dir: github.com/getlantern/borda\n - script:\n name: glide install\n code: |\n cd /tmp\n curl -L https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.tar.gz -o glide.tar.gz\n tar -xf glide.tar.gz\n sudo mv linux-amd64/glide /usr/local/bin/\n - script:\n name: glide update\n code: |\n glide update\n # Build the project\n - script:\n name: go build\n code: |\n go build .\n # Test the project\n - script:\n name: go test\n code: |\n go test -v -tags "integration_test"\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\borda\wercker.yml | wercker.yml | YAML | 2,270 | 0.8 | 0 | 0.253521 | awesome-app | 754 | 2023-08-16T23:16:19.178733 | Apache-2.0 | false | a93e60f6ee0c3e99bbc3afd602c5fdfb |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/buuid | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\buuid\.travis.yml | .travis.yml | YAML | 297 | 0.7 | 0 | 0 | python-kit | 107 | 2024-11-25T16:59:12.976570 | Apache-2.0 | false | 708c538cef782d221b96d7f20caf5ecc |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/bytecounting | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\bytecounting\.travis.yml | .travis.yml | YAML | 304 | 0.7 | 0 | 0 | awesome-app | 199 | 2023-10-27T00:35:57.378313 | Apache-2.0 | false | 652f82b7196ff75891bf3e906386860f |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/byteexec | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\byteexec\.travis.yml | .travis.yml | YAML | 300 | 0.7 | 0 | 0 | python-kit | 717 | 2024-01-25T13:44:44.614322 | MIT | false | a89b26d0a73271254f95b2048cc57b12 |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/chained | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\chained\.travis.yml | .travis.yml | YAML | 299 | 0.7 | 0 | 0 | vue-tools | 543 | 2024-07-07T04:25:39.988853 | BSD-3-Clause | false | b198028e8f1667c421ee33869d71c3fc |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/connpool\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\connpool\.travis.yml | .travis.yml | YAML | 301 | 0.7 | 0 | 0 | awesome-app | 863 | 2023-12-29T08:17:58.869849 | MIT | false | 7cdfd38ebde840e8b65fafada29c92d2 |
language: go\n\ngo:\n - 1.6.2\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - go test -race -v -covermode=atomic -coverprofile=profile.cov\n - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\context\.travis.yml | .travis.yml | YAML | 358 | 0.7 | 0 | 0 | vue-tools | 952 | 2024-01-20T08:36:55.724943 | MIT | false | 2c40c518bddb8f009e35e9891abaf545 |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/deepcopy | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\deepcopy\.travis.yml | .travis.yml | YAML | 300 | 0.7 | 0 | 0 | vue-tools | 937 | 2025-02-16T09:36:29.172279 | GPL-3.0 | false | b5ce9ab5135e5b8d9ed31ffd4cdc869a |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/fdcount | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\fdcount\.travis.yml | .travis.yml | YAML | 299 | 0.7 | 0 | 0 | node-utils | 695 | 2024-08-15T13:44:43.705162 | BSD-3-Clause | false | af6f04f76865272abe9a1cc21076f44e |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/flashlight\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/flashlight/client\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\flashlight\.travis.yml | .travis.yml | YAML | 396 | 0.7 | 0 | 0 | python-kit | 323 | 2024-07-03T10:34:53.012197 | GPL-3.0 | false | 7c0c12af9961c5ac442b8c6b62273c4f |
language: go\n\ngo:\n - 1.6.2\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/fronted\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\fronted\.travis.yml | .travis.yml | YAML | 300 | 0.7 | 0 | 0 | react-lib | 200 | 2024-08-16T01:19:44.968418 | Apache-2.0 | false | 340fba3f3f2bcdfd307206b8e136fa2b |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/golog | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\golog\.travis.yml | .travis.yml | YAML | 297 | 0.7 | 0 | 0 | vue-tools | 997 | 2023-10-22T01:50:07.315813 | Apache-2.0 | false | 499428d24efc965454131dfa9066cf09 |
language: go\ngo:\n- 1.6.2\ninstall:\n- curl https://s3-eu-west-1.amazonaws.com/uaalto/go1.6.2_lantern_20160503_linux_amd64.tar.gz | tar -xz -C /tmp\n- rm -Rf $GOROOT\n- mv /tmp/go $GOROOT\n- go get golang.org/x/tools/cmd/cover\n- go get -v github.com/axw/gocov/gocov\n- go get -v github.com/mattn/goveralls\n- go get -t\nscript:\n- GOPATH=`pwd`:$GOPATH; go test -race -v -covermode=atomic -coverprofile=profile_tmp github.com/getlantern/http-proxy && tail -n +2 profile_tmp >> profile.cov && tail -n +2 profile_tmp >> profile.cov\nafter_success:\n- GOPATH=`pwd`:$GOPATH $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\http-proxy\.travis.yml | .travis.yml | YAML | 629 | 0.8 | 0 | 0 | react-lib | 788 | 2024-09-11T07:40:20.422173 | Apache-2.0 | false | 02015d083036bd6493a726ff09fcf5b9 |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/idletiming | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\idletiming\.travis.yml | .travis.yml | YAML | 302 | 0.7 | 0 | 0 | awesome-app | 156 | 2024-10-13T12:22:47.913013 | MIT | false | 67ad4d0d9e930ee51e42411821d62c74 |
language: go\ngo:\n - 1.2\nbefore_install:\n- go get github.com/onsi/ginkgo/...\n- go get github.com/onsi/gomega/...\n- go install github.com/onsi/ginkgo/ginkgo\nscript: PATH=$PATH:$HOME/gopath/bin ginkgo -r .\nbranches:\n only:\n - master\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\jibber_jabber\.travis.yml | .travis.yml | YAML | 233 | 0.7 | 0 | 0 | python-kit | 654 | 2024-01-18T12:49:49.312739 | MIT | false | 29a509edafdf4eab4234cec2773ce5cf |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/keyman\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\keyman\.travis.yml | .travis.yml | YAML | 299 | 0.7 | 0 | 0 | node-utils | 964 | 2024-11-09T13:35:37.596392 | MIT | false | 9cca37718d3483408433e976a585b3dc |
language: go\ngo:\n- 1.6\ninstall:\n- go get golang.org/x/tools/cmd/cover\n- go get -v github.com/mattn/goveralls\n- go get -t\nscript:\n- GOPATH=`pwd`:$GOPATH go test -race -v -tags="headless" -covermode=atomic -coverprofile=profile.cov\nafter_success:\n- GOPATH=`pwd`:$GOPATH $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\measured\.travis.yml | .travis.yml | YAML | 340 | 0.7 | 0 | 0 | python-kit | 457 | 2024-10-13T12:49:36.086149 | BSD-3-Clause | false | d8b86d7d57e2781978d90cb533d96f4f |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/pathreflect | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\pathreflect\.travis.yml | .travis.yml | YAML | 303 | 0.7 | 0 | 0 | awesome-app | 637 | 2025-06-28T22:42:09.995549 | BSD-3-Clause | false | 1aac4129225ab44b57b77c76b8fe654e |
language: go\n\ngo:\n - 1.3\n\nbefore_install:\n - sudo pip install codecov\n\ninstall:\n - go get code.google.com/p/go.tools/cmd/cover\n - go get github.com/stretchr/testify/assert\n\nscript:\n - go test -v -coverprofile=coverage.txt -covermode=count\n\nafter_success:\n - codecov\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\rotator\.travis.yml | .travis.yml | YAML | 272 | 0.7 | 0 | 0 | node-utils | 582 | 2024-02-03T08:23:50.117301 | GPL-3.0 | false | ba29c6599eb16039803a2b81b1b57b15 |
language: go\n\ngo:\n - 1.0.3\n - 1.1.2\n - 1.2.2\n - 1.3.3\n - 1.4.3\n - 1.5.3\n - release\n - tip\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\stack\.travis.yml | .travis.yml | YAML | 114 | 0.7 | 0 | 0 | vue-tools | 674 | 2024-06-02T03:25:31.534472 | BSD-3-Clause | false | d5e587ad45f0362f684c88d58fb575aa |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/tlsdialer | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\tlsdialer\.travis.yml | .travis.yml | YAML | 301 | 0.7 | 0 | 0 | node-utils | 845 | 2024-02-02T22:12:08.462146 | MIT | false | 14972a572edd57fa7b089fc38f7d8527 |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/waitforserver | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\waitforserver\.travis.yml | .travis.yml | YAML | 305 | 0.7 | 0 | 0 | vue-tools | 580 | 2025-05-15T08:02:26.567919 | Apache-2.0 | false | 2083564c3e2396cd5de594c6b59e1d7a |
language: go\n\ngo:\n - 1.4.1\n\ninstall:\n - go get -d -t -v ./...\n - go build -v ./...\n - go get golang.org/x/tools/cmd/cover\n - go get -v github.com/axw/gocov/gocov\n - go get -v github.com/mattn/goveralls\n\nscript:\n - $HOME/gopath/bin/goveralls -v -service travis-ci github.com/getlantern/withtimeout | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\getlantern\withtimeout\.travis.yml | .travis.yml | YAML | 303 | 0.7 | 0 | 0 | awesome-app | 635 | 2024-01-17T21:28:52.123929 | MIT | false | be55f8fe19a70a82b9f88bfcc5711d83 |
language: go\nsudo: false\n\nmatrix:\n include:\n - go: 1.3\n - go: 1.4\n - go: 1.5\n - go: 1.6\n - go: tip\n\ninstall:\n - go get golang.org/x/tools/cmd/vet\n\nscript:\n - go get -t -v ./...\n - diff -u <(echo -n) <(gofmt -d .)\n - go tool vet .\n - go test -v -race ./...\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\gorilla\context\.travis.yml | .travis.yml | YAML | 277 | 0.7 | 0 | 0 | react-lib | 108 | 2024-11-17T00:40:27.018755 | Apache-2.0 | false | 880c485124aca16f7ed47224bea82cbf |
language: go\nsudo: false\n\nmatrix:\n include:\n - go: 1.2\n - go: 1.3\n - go: 1.4\n - go: 1.5\n - go: 1.6\n - go: tip\n\ninstall:\n - go get golang.org/x/tools/cmd/vet\n\nscript:\n - go get -t -v ./...\n - diff -u <(echo -n) <(gofmt -d .)\n - go vet .\n - go test -v -race ./...\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\gorilla\websocket\.travis.yml | .travis.yml | YAML | 286 | 0.7 | 0 | 0 | react-lib | 465 | 2024-12-06T21:09:57.716976 | BSD-3-Clause | false | ccce04be38a257e43bef10008f3502b9 |
language: go\n\ngo:\n - 1.2\n - 1.3\n - 1.4\n - 1.5\n\nscript:\n - ./validate.sh\n\n# this should give us faster builds according to \n# http://docs.travis-ci.com/user/migrating-from-legacy/\nsudo: false\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\rcrowley\go-metrics\.travis.yml | .travis.yml | YAML | 206 | 0.8 | 0 | 0.181818 | awesome-app | 191 | 2024-04-17T02:26:12.562058 | GPL-3.0 | false | d5bc773b9583efd81c7ef75dc5fbf48a |
language: go\n\nsudo: false\n\ngo:\n - 1.1\n - 1.2\n - 1.3\n - 1.4\n - 1.5\n - 1.6\n - tip\n\nscript:\n - go test -v ./...\n | dataset_sample\yaml\getlantern_lantern\archive\src\github.com\stretchr\testify\.travis.yml | .travis.yml | YAML | 117 | 0.7 | 0 | 0 | python-kit | 725 | 2024-02-23T07:47:04.754401 | Apache-2.0 | true | 94cb5f45dc3e20c08735512237f4fd3e |
language: go\nscript: make testall\nsudo: false\ngo:\n - 1.5\n - 1.4\n - 1.3\n - 1.2\ninstall:\n - go get github.com/onsi/ginkgo github.com/onsi/gomega\n - mkdir -p $GOPATH/src/gopkg.in/bsm\n - mv $GOPATH/src/github.com/bsm/ratelimit $GOPATH/src/gopkg.in/bsm/ratelimit.v1\n - cd $GOPATH/src/gopkg.in/bsm/ratelimit.v1\n | dataset_sample\yaml\getlantern_lantern\archive\src\gopkg.in\bsm\ratelimit.v1\.travis.yml | .travis.yml | YAML | 313 | 0.7 | 0 | 0 | vue-tools | 943 | 2024-05-05T20:59:27.686262 | MIT | false | 5c4fc70048c026bea5d67cda6bc6a25b |
sudo: false\nlanguage: go\n\nservices:\n - redis-server\n\ngo:\n - 1.5\n - 1.6\n - tip\n\nmatrix:\n allow_failures:\n - go: tip\n\ninstall:\n - go get gopkg.in/bsm/ratelimit.v1\n - go get github.com/onsi/ginkgo\n - go get github.com/onsi/gomega\n - go get github.com/garyburd/redigo/redis\n - mkdir -p $HOME/gopath/src/gopkg.in\n - mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v3\n - cd $HOME/gopath/src/gopkg.in/redis.v3\n | dataset_sample\yaml\getlantern_lantern\archive\src\gopkg.in\redis.v3\.travis.yml | .travis.yml | YAML | 448 | 0.7 | 0 | 0 | node-utils | 495 | 2023-10-07T17:45:50.184267 | Apache-2.0 | false | 7dd430df6e307542df195b2a1db64a54 |
coverage:\n status:\n project:\n default:\n informational: true\n if_ci_failed: success\n patch:\n default:\n informational: true\n if_ci_failed: success\ncomment: false\ngithub_checks:\n annotations: false\n | dataset_sample\yaml\gfx-rs_wgpu\codecov.yml | codecov.yml | YAML | 243 | 0.7 | 0 | 0 | awesome-app | 243 | 2025-05-09T06:24:54.128639 | BSD-3-Clause | false | 4d4441c4d4d2cdbf32cb0666178749ee |
blank_issues_enabled: false\ncontact_links:\n - name: Question about wgpu\n url: https://github.com/gfx-rs/wgpu/discussions/new\n about: Any questions about how to use wgpu should go here.\n | dataset_sample\yaml\gfx-rs_wgpu\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 192 | 0.8 | 0 | 0 | python-kit | 47 | 2023-10-10T13:33:35.676493 | Apache-2.0 | false | ce6abb6e2919a536b40bbe152df18da7 |
name: CI\n\non:\n push:\n branches-ignore: [\n # We don't need to run on renovate PRs.\n "renovate/**",\n # This is the branch the merge queue creates.\n "gh-readonly-queue/**",\n ]\n tags: [v0.*]\n pull_request:\n merge_group:\n\nenv:\n #\n # Dependency versioning\n #\n\n # Sourced from https://vulkan.lunarg.com/sdk/home#linux\n VULKAN_SDK_VERSION: "1.4.309"\n VULKAN_FULL_SDK_VERSION: "1.4.309.0"\n # Sourced from https://www.nuget.org/packages/Microsoft.Direct3D.WARP\n WARP_VERSION: "1.0.13"\n\n # Sourced from https://github.com/microsoft/DirectXShaderCompiler/releases\n #\n # Must also be changed in shaders.yaml\n DXC_RELEASE: "v1.8.2502"\n DXC_FILENAME: "dxc_2025_02_20.zip"\n\n # Sourced from https://archive.mesa3d.org/. Bumping this requires\n # updating the mesa build in https://github.com/gfx-rs/ci-build and creating a new release.\n MESA_VERSION: "24.3.4"\n # Corresponds to https://github.com/gfx-rs/ci-build/releases\n CI_BINARY_BUILD: "build20"\n\n # This is the MSRV used by `wgpu` itself and all surrounding infrastructure.\n REPO_MSRV: "1.84"\n # This is the MSRV used by the `wgpu-core`, `wgpu-hal`, and `wgpu-types` crates,\n # to ensure that they can be used with firefox.\n CORE_MSRV: "1.82.0"\n\n #\n # Environment variables\n #\n\n CARGO_INCREMENTAL: false\n CARGO_TERM_COLOR: always\n WGPU_DX12_COMPILER: dxc\n RUST_LOG: debug\n RUST_BACKTRACE: full\n PKG_CONFIG_ALLOW_CROSS: 1 # allow android to work\n RUSTFLAGS: -D warnings\n RUSTDOCFLAGS: -D warnings\n WASM_BINDGEN_TEST_TIMEOUT: 300 # 5 minutes\n CACHE_SUFFIX: d # cache busting\n WGPU_CI: true\n\n# We distinguish the following kinds of builds:\n# - native: build for the same target as we compile on\n# - web: build for the Web\n# - em: build for the Emscripten\n\n# For build time and size optimization we disable debug symbols\n# entirely on clippy jobs and reduce it to line-numbers\n# only for ones where we run tests.\n#\n# Additionally, we disable incremental builds entirely\n# as our caching system doesn't actually cache our crates.\n# It adds overhead to the build and another point of failure.\n\njobs:\n check:\n # runtime is normally 2-8 minutes\n #\n # currently high due to documentation time problems on mac.\n # https://github.com/rust-lang/rust/issues/114891\n timeout-minutes: 30\n\n strategy:\n fail-fast: false\n matrix:\n include:\n # Windows\n - name: Windows x86_64\n os: windows-2022\n target: x86_64-pc-windows-msvc\n tier: 1\n kind: native\n\n # Windows\n - name: Windows aarch64\n os: windows-2022\n target: aarch64-pc-windows-msvc\n tier: 2\n kind: native\n\n # MacOS\n - name: MacOS x86_64\n os: macos-14\n target: x86_64-apple-darwin\n tier: 1\n kind: native\n\n - name: MacOS aarch64\n os: macos-14\n target: aarch64-apple-darwin\n tier: 1\n kind: native\n\n # IOS\n - name: IOS aarch64\n os: macos-14\n target: aarch64-apple-ios\n tier: 2\n kind: native\n\n # VisionOS\n - name: VisionOS aarch64\n os: macos-14\n target: aarch64-apple-visionos\n kind: wgpu-only\n tier: 3\n extra-flags: -Zbuild-std\n\n # Linux\n - name: Linux x86_64\n os: ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n tier: 1\n kind: native\n\n - name: Linux aarch64\n os: ubuntu-22.04\n target: aarch64-unknown-linux-gnu\n tier: 1\n kind: native\n\n # Android\n - name: Android aarch64\n os: ubuntu-22.04\n target: aarch64-linux-android\n tier: 2\n kind: native\n\n # Android\n - name: Android ARMv7\n os: ubuntu-22.04\n target: armv7-linux-androideabi\n tier: 2\n kind: wgpu-only\n\n # Android\n - name: Android x86_64\n os: ubuntu-22.04\n target: x86_64-linux-android\n tier: 2\n kind: wgpu-only\n\n # OpenHarmony\n - name: OpenHarmony aarch64\n os: ubuntu-22.04\n target: aarch64-unknown-linux-ohos\n tier: 2\n kind: native\n\n # WebGPU/WebGL\n - name: WebAssembly\n os: ubuntu-22.04\n target: wasm32-unknown-unknown\n tier: 2\n kind: web\n\n - name: Emscripten\n os: ubuntu-22.04\n target: wasm32-unknown-emscripten\n tier: 2\n kind: wgpu-only\n\n - name: WebAssembly Core 1.0\n os: ubuntu-22.04\n target: wasm32v1-none\n tier: 2\n kind: no_std\n\n # 32-bit PowerPC Linux\n # Included to test support for `portable-atomic`\n - name: Linux ppc32\n os: ubuntu-22.04\n target: powerpc-unknown-linux-gnu\n tier: 2\n kind: wgpu-only\n\n name: Clippy ${{ matrix.name }}\n runs-on: ${{ matrix.os }}\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install toolchain (repo MSRV - tier 1 or 2)\n if: matrix.tier == 1 || matrix.tier == 2\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component clippy\n rustup target add ${{ matrix.target }} --toolchain ${{ env.REPO_MSRV }}\n rustup override set ${{ env.REPO_MSRV }}\n cargo -V\n\n # In order to build on platforms that require a nightly toolchain, we install stable as expected,\n # add the rust-src component, then tell stable to consider itself nightly by setting RUSTC_BOOTSTRAP=1.\n #\n # This is not formally "correct" thing to do, but it saves significant maintainer burden. If we were to\n # use a proper nightly toolchain we would have to manually find a date that works. Even with a date that is\n # carefully coordinated with the version of stable we are using, there are often mismatches of clippy lints\n # between nightly and stable. This is a real mess. By using RUSTC_BOOTSTRAP=1, we get access to all the nice\n # nightly features without needing to go through the hassle of maintaining a nightly toolchain.\n #\n # RUSTC_BOOTSTRAP=1 is how the rust project builds itself when bootstrapping the compiler, so while not "stable"\n # it has been around for many years and don't anticipate it going away any time soon.\n - name: Install toolchain (repo MSRV - tier 3)\n if: matrix.tier == 3\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component clippy,rust-src\n echo "RUSTC_BOOTSTRAP=1" >> "$GITHUB_ENV"\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = false\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: clippy-${{ matrix.target }}-${{ matrix.kind }}-${{ env.CACHE_SUFFIX }}\n\n - name: (Linux `aarch64`) Install `aarch64-linux-gnu` `g++`\n if: matrix.target == 'aarch64-unknown-linux-gnu'\n run: |\n set -e\n\n sudo apt-get update -y -qq\n\n sudo apt-get install g++-aarch64-linux-gnu\n\n - name: (Android) Add Android APK to `PATH`\n if: matrix.target == 'aarch64-linux-android'\n run: |\n # clang++ will be detected correctly by CC from path\n echo "$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH\n\n # the android sdk doesn't use the conventional name for ar, so explicitly set it.\n echo "AR_aarch64_linux_android=llvm-ar" >> "$GITHUB_ENV"\n\n # Building for wasm32 requires a series of specific tests for the WebGPU backend.\n - name: Check web\n if: matrix.kind == 'web'\n shell: bash\n run: |\n set -e\n\n # build for WebGPU\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --features glsl,spirv,fragile-send-sync-non-atomic-wasm\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --features glsl,spirv\n cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-deps --features glsl,spirv\n\n # check with no features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-default-features\n\n # all features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --all-features\n cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-deps --all-features\n\n # Building for platforms where the tests do not compile.\n - name: Check `wgpu` only\n if: matrix.kind == 'wgpu-only'\n shell: bash\n run: |\n set -e\n\n # check with no features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu -p wgpu-hal --no-default-features\n\n # Don't check samples since we use winit in our samples which has dropped support for Emscripten.\n\n # Check with all features.\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu-hal --all-features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu --all-features\n\n # Building for no_std platforms where every feature is enabled except "std".\n - name: Check `no_std`\n if: matrix.kind == 'no_std'\n shell: bash\n run: |\n set -e\n\n # check with no features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu-types --no-default-features\n\n # Check with all features except "std".\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu-types --no-default-features --features strict_asserts,fragile-send-sync-non-atomic-wasm,serde,counters\n\n # Building for native platforms with standard tests.\n - name: Check native\n if: matrix.kind == 'native'\n shell: bash\n run: |\n set -e\n\n # check with no features\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-default-features\n\n # Check with all features.\n cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features\n\n # build docs\n cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-features --no-deps\n\n - name: Check private item docs\n if: matrix.kind == 'native'\n shell: bash\n run: |\n set -e\n\n # wgpu_core package\n cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} \\n --package wgpu-core \\n --package wgpu-hal \\n --package naga \\n --all-features --no-deps --document-private-items\n\n # We run minimal checks on the MSRV of the core crates, ensuring that\n # its dependency tree does not cause issues for firefox.\n #\n # We don't test all platforms, just ones with different dependency stacks.\n check-core-msrv:\n # runtime is normally 1-3 minutes\n timeout-minutes: 10\n\n strategy:\n fail-fast: false\n matrix:\n include:\n # Windows\n - name: Windows x86_64\n os: windows-2022\n target: x86_64-pc-windows-msvc\n\n # MacOS\n - name: MacOS x86_64\n os: macos-14\n target: x86_64-apple-darwin\n\n # Linux\n - name: Linux x86_64\n os: ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n\n name: MSRV Check ${{ matrix.name }}\n runs-on: ${{ matrix.os }}\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install core MSRV toolchain\n run: |\n rustup toolchain install ${{ env.CORE_MSRV }} --no-self-update --profile=minimal --component clippy --target ${{ matrix.target }}\n rustup override set ${{ env.CORE_MSRV }}\n cargo -V\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = false\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: msrv-check-${{ matrix.target }}-${{ env.CACHE_SUFFIX }}\n\n - name: Reduce MSRV on dependencies\n shell: bash\n run: |\n set -e\n\n # 1.9.0 requires MSRV 1.84\n cargo update -p bytemuck_derive --precise 1.8.1\n\n - name: Check native\n shell: bash\n run: |\n set -e\n\n # check `wgpu-core` with all features. This will also get `wgpu-hal` and `wgpu-types`.\n cargo check --target ${{ matrix.target }} --all-features -p wgpu-core\n\n naga-minimal-versions:\n # runtime is normally 2 minutes\n timeout-minutes: 10\n\n name: MSRV naga Minimal Versions\n runs-on: ubuntu-22.04\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install core MSRV toolchain\n run: |\n rustup toolchain install ${{ env.CORE_MSRV }} --no-self-update --profile=minimal --component clippy\n rustup override set ${{ env.CORE_MSRV }}\n cargo -V\n\n - name: Install Nightly toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal\n cargo +${{ env.REPO_MSRV }} -V\n\n - name: Install `cargo-hack`\n uses: taiki-e/install-action@v2\n with:\n tool: cargo-hack\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n echo """\n [profile.dev]\n debug = false" >> .cargo/config.toml\n\n - name: Set minimal versions\n shell: bash\n run: |\n set -e\n\n cargo +${{ env.REPO_MSRV }} hack generate-lockfile --remove-dev-deps -Z minimal-versions -p naga -p naga-cli\n env:\n RUSTC_BOOTSTRAP: 1\n\n - name: Run Clippy\n shell: bash\n run: |\n set -e\n\n cargo clippy --all-features -p naga -p naga-cli\n\n wasm-test:\n # runtime is normally 2 minutes\n timeout-minutes: 10\n\n name: Test WebAssembly\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install repo MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component clippy --target wasm32-unknown-unknown\n rustup override set ${{ env.REPO_MSRV }}\n cargo -V\n\n - name: Install `wasm-pack`\n uses: taiki-e/install-action@v2\n with:\n tool: wasm-pack\n\n - name: Execute tests\n run: |\n cd wgpu\n wasm-pack test --headless --chrome --no-default-features --features wgsl,webgl --workspace\n\n gpu-test:\n # runtime is normally 5-15 minutes\n timeout-minutes: 30\n\n strategy:\n fail-fast: false\n matrix:\n include:\n # Windows\n - name: Windows x86_64\n os: windows-2022\n\n # Mac\n - name: Mac aarch64\n os: macos-14\n\n # Linux\n - name: Linux x86_64\n os: ubuntu-24.04\n\n name: Test ${{ matrix.name }}\n runs-on: ${{ matrix.os }}\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install repo MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal -c llvm-tools\n cargo -V\n\n - name: Install `cargo-nextest` and `cargo-llvm-cov`\n uses: taiki-e/install-action@v2\n with:\n tool: cargo-nextest,cargo-llvm-cov\n\n - name: Debug symbols to line-tables-only\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = "line-tables-only"\n EOF\n\n # Cache step must go before warp and mesa install on windows as they write into the\n # target directory, and rust-cache will overwrite the entirety of the target directory.\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: test-${{ matrix.os }}-${{ env.CACHE_SUFFIX }}\n workspaces: |\n . -> target\n xtask -> xtask/target\n\n - name: (Windows) Install DXC\n if: matrix.os == 'windows-2022'\n shell: bash\n run: |\n set -e\n\n curl.exe -L --retry 5 https://github.com/microsoft/DirectXShaderCompiler/releases/download/$DXC_RELEASE/$DXC_FILENAME -o dxc.zip\n 7z.exe e dxc.zip -odxc bin/x64/{dxc.exe,dxcompiler.dll}\n\n # We need to use cygpath to convert PWD to a windows path as we're using bash.\n cygpath --windows "$PWD/dxc" >> "$GITHUB_PATH"\n\n - name: (Windows) Install WARP\n if: matrix.os == 'windows-2022'\n shell: bash\n run: |\n set -e\n\n # Make sure dxc is in path.\n dxc --version\n\n curl.exe -L --retry 5 https://www.nuget.org/api/v2/package/Microsoft.Direct3D.WARP/$WARP_VERSION -o warp.zip\n 7z.exe e warp.zip -owarp build/native/bin/x64/d3d10warp.dll\n\n mkdir -p target/llvm-cov-target/debug/deps\n\n cp -v warp/d3d10warp.dll target/llvm-cov-target/debug/\n cp -v warp/d3d10warp.dll target/llvm-cov-target/debug/deps\n\n - name: (Windows) Install Mesa\n if: matrix.os == 'windows-2022'\n shell: bash\n run: |\n set -e\n\n curl.exe -L --retry 5 https://github.com/pal1000/mesa-dist-win/releases/download/$MESA_VERSION/mesa3d-$MESA_VERSION-release-msvc.7z -o mesa.7z\n 7z.exe e mesa.7z -omesa x64/{opengl32.dll,libgallium_wgl.dll,libglapi.dll,vulkan_lvp.dll,lvp_icd.x86_64.json}\n\n cp -v mesa/* target/llvm-cov-target/debug/\n cp -v mesa/* target/llvm-cov-target/debug/deps\n\n # We need to use cygpath to convert PWD to a windows path as we're using bash.\n echo "VK_DRIVER_FILES=`cygpath --windows $PWD/mesa/lvp_icd.x86_64.json`" >> "$GITHUB_ENV"\n echo "GALLIUM_DRIVER=llvmpipe" >> "$GITHUB_ENV"\n\n - name: (Windows) Install Vulkan SDK\n if: matrix.os == 'windows-2022'\n shell: bash\n run: |\n set -e\n\n curl.exe -L --retry 5 https://sdk.lunarg.com/sdk/download/${{ env.VULKAN_FULL_SDK_VERSION }}/windows/VulkanSDK-${{ env.VULKAN_FULL_SDK_VERSION }}-Installer.exe -o vulkan-sdk-installer.exe\n\n ./vulkan-sdk-installer.exe --accept-licenses --default-answer --confirm-command install\n\n echo "C:/VulkanSDK/${{ env.VULKAN_FULL_SDK_VERSION }}/Bin" >> "$GITHUB_PATH"\n\n - name: (Mac) Install Vulkan SDK\n if: matrix.os == 'macos-14'\n shell: bash\n run: |\n set -e\n\n curl -L --retry 5 https://sdk.lunarg.com/sdk/download/${{ env.VULKAN_FULL_SDK_VERSION }}/mac/vulkansdk-macos-${{ env.VULKAN_FULL_SDK_VERSION }}.zip -o vulkan-sdk.zip\n unzip vulkan-sdk.zip -d vulkan-sdk\n\n ls -l vulkan-sdk\n sudo ./vulkan-sdk/InstallVulkan-${{ env.VULKAN_FULL_SDK_VERSION }}.app/Contents/MacOS/InstallVulkan-${{ env.VULKAN_FULL_SDK_VERSION }} --root "$HOME/VulkanSDK" --accept-licenses --default-answer --confirm-command install\n\n echo "$HOME/VulkanSDK/macOS/bin" >> "$GITHUB_PATH"\n\n - name: (Linux) Install Vulkan SDK\n if: matrix.os == 'ubuntu-24.04'\n shell: bash\n run: |\n set -e\n\n sudo apt-get update -y -qq\n\n # vulkan sdk\n wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -\n sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-${{ env.VULKAN_SDK_VERSION }}-noble.list https://packages.lunarg.com/vulkan/${{ env.VULKAN_SDK_VERSION }}/lunarg-vulkan-$VULKAN_SDK_VERSION-noble.list\n\n sudo apt-get update\n sudo apt install -y vulkan-sdk\n\n - name: (Linux) Install Mesa\n if: matrix.os == 'ubuntu-24.04'\n shell: bash\n run: |\n set -e\n\n curl -L --retry 5 https://github.com/gfx-rs/ci-build/releases/download/$CI_BINARY_BUILD/mesa-$MESA_VERSION-linux-x86_64.tar.xz -o mesa.tar.xz\n mkdir mesa\n tar xpf mesa.tar.xz -C mesa\n\n # The ICD provided by the mesa build is hardcoded to the build environment.\n #\n # We write out our own ICD file to point to the mesa vulkan\n cat <<- EOF > icd.json\n {\n "ICD": {\n "api_version": "1.1.255",\n "library_path": "$PWD/mesa/lib/x86_64-linux-gnu/libvulkan_lvp.so"\n },\n "file_format_version": "1.0.0"\n }\n EOF\n\n echo "VK_DRIVER_FILES=$PWD/icd.json" >> "$GITHUB_ENV"\n echo "LD_LIBRARY_PATH=$PWD/mesa/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"\n echo "LIBGL_DRIVERS_PATH=$PWD/mesa/lib/x86_64-linux-gnu/dri" >> "$GITHUB_ENV"\n\n - name: Delete Naga snapshots\n shell: bash\n run: |\n set -e\n\n # Delete snapshots so we can ensure there aren't any excess output files.\n rm -r naga/tests/out\n\n - name: Run `wgpu-info`\n shell: bash\n run: |\n echo "$PATH"\n\n export RUST_LOG=trace\n\n # This needs to match the command in xtask/tests.rs\n cargo llvm-cov --no-cfg-coverage --no-report run --bin wgpu-info -- -vv\n\n - name: Run tests\n shell: bash\n run: |\n set -e\n\n cargo xtask test --llvm-cov\n\n - name: Check Naga snapshots\n # git diff doesn't check untracked files, we need to stage those then compare with HEAD.\n run: git add . && git diff --exit-code HEAD naga/tests/out\n\n - uses: actions/upload-artifact@v4\n if: always() # We want artifacts even if the tests fail.\n with:\n name: comparison-images-${{ matrix.os }}\n path: |\n **/*-actual.png\n **/*-difference.png\n\n - name: Generate coverage report\n id: coverage\n shell: bash\n continue-on-error: true\n run: |\n set -e\n\n cargo llvm-cov report --lcov --output-path lcov.info\n\n - name: Upload coverage report to Codecov\n uses: codecov/codecov-action@v5\n if: steps.coverage.outcome == 'success'\n with:\n files: lcov.info\n token: ${{ secrets.CODECOV_TOKEN }}\n\n doctest:\n # runtime is normally 2 minutes\n timeout-minutes: 10\n\n name: Doctest\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install repo MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component rustfmt\n rustup override set ${{ env.REPO_MSRV }}\n cargo -V\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: doctests-${{ env.CACHE_SUFFIX }}\n\n - name: Run doctests\n shell: bash\n run: |\n set -e\n\n cargo test --doc\n\n fmt:\n # runtime is normally 15 seconds\n timeout-minutes: 2\n\n name: Format & Typos\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install repo MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component rustfmt\n rustup override set ${{ env.REPO_MSRV }}\n cargo -V\n\n - name: Run `cargo fmt`\n run: |\n cargo fmt -- --check\n cargo fmt --manifest-path xtask/Cargo.toml -- --check\n cargo fmt --manifest-path naga/xtask/Cargo.toml -- --check\n\n - name: Install Taplo\n uses: uncenter/setup-taplo@v1\n with:\n version: "0.9.3"\n\n - name: Run `taplo fmt`\n run: taplo format --check --diff\n\n - name: Check for typos\n uses: crate-ci/typos@v1.31.1\n\n check-cts-runner:\n # runtime is normally 2 minutes\n timeout-minutes: 10\n\n name: Clippy cts_runner\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Install MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component clippy\n rustup override set ${{ env.REPO_MSRV }}\n cargo -V\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = false\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: cts-runner-${{ env.CACHE_SUFFIX }}\n\n - name: Build Deno\n run: |\n cargo clippy --manifest-path cts_runner/Cargo.toml\n\n # Separate job so that new advisories don't block CI.\n #\n # This job is not required to pass for PRs to be merged.\n cargo-deny-check-advisories:\n # runtime is normally 1 minute\n timeout-minutes: 5\n\n name: "cargo-deny advisories"\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Run `cargo deny check`\n uses: EmbarkStudios/cargo-deny-action@v2\n with:\n command: check advisories\n arguments: --all-features --workspace\n rust-version: ${{ env.REPO_MSRV }}\n\n cargo-deny-check-rest:\n # runtime is normally 1 minute\n timeout-minutes: 5\n\n name: "cargo-deny"\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n\n - name: Run `cargo deny check`\n uses: EmbarkStudios/cargo-deny-action@v2\n with:\n command: check bans licenses sources\n arguments: --all-features --workspace\n rust-version: ${{ env.REPO_MSRV }}\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\ci.yml | ci.yml | YAML | 26,279 | 0.95 | 0.043995 | 0.168639 | vue-tools | 677 | 2025-06-29T05:12:25.814834 | MIT | false | 89f45ef65ad2c04c5ed9434642faf7a0 |
name: Docs\n\non:\n pull_request:\n paths:\n - ".github/workflows/docs.yml"\n push:\n branches:\n - trunk\n\nenv:\n # This is the MSRV used by `wgpu` itself and all surrounding infrastructure.\n REPO_MSRV: "1.84"\n\n CARGO_INCREMENTAL: false\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: full\n\njobs:\n build:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n with:\n persist-credentials: false\n\n - name: Install documentation toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal\n rustup override set ${{ env.REPO_MSRV }}\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = false\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: doc-build\n\n - name: Build the docs\n run: |\n cargo doc --no-deps --lib --document-private-items\n env:\n RUSTDOCFLAGS: --cfg docsrs\n RUSTC_BOOTSTRAP: 1\n\n - name: Deploy the docs\n uses: JamesIves/github-pages-deploy-action@v4.7.3\n if: github.ref == 'refs/heads/trunk'\n with:\n token: ${{ secrets.WEB_DEPLOY }}\n folder: target/doc\n repository-name: gfx-rs/wgpu-rs.github.io\n branch: master\n target-folder: doc\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\docs.yml | docs.yml | YAML | 1,488 | 0.8 | 0.015625 | 0.018868 | node-utils | 109 | 2023-08-23T17:54:59.010020 | GPL-3.0 | false | be350e3b2bf83fe1e83625ac55eda598 |
name: cargo-generate\n\non:\n push:\n branches: ["*"]\n tags: [v0.*]\n pull_request:\n merge_group:\n\nenv:\n #\n # Dependency versioning\n #\n\n # This is the MSRV used by `wgpu` itself and all surrounding infrastructure.\n REPO_MSRV: "1.84"\n RUSTFLAGS: -D warnings\n\njobs:\n cargo-generate:\n timeout-minutes: 5\n\n runs-on: ubuntu-latest\n\n strategy:\n fail-fast: false\n matrix:\n include:\n - name: "01-hello-compute"\n path: "examples/standalone/01_hello_compute"\n - name: "02-hello-window"\n path: "examples/standalone/02_hello_window"\n - name: "custom_backend"\n path: "examples/standalone/custom_backend"\n\n name: "${{ matrix.name }}"\n\n steps:\n - uses: actions/checkout@v4\n\n # We can't rely on an override here, as that would only set\n # the toolchain for the current directory, not the newly generated project.\n - name: Install repo MSRV toolchain\n run: |\n rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal\n cargo -V\n\n - name: Disable debug symbols\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = false\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: cargo-generate-${{ matrix.name }}\n\n - name: Install `cargo-generate`\n uses: taiki-e/install-action@v2\n with:\n tool: cargo-generate\n\n - name: Run `cargo-generate`\n run: |\n cd ..\n cargo generate --path wgpu --name ${{ matrix.name }} ${{ matrix.path }}\n\n - name: Check generated files\n run: |\n cd ../${{ matrix.name }}/\n cat <<EOF >> Cargo.toml\n [patch.crates-io]\n wgpu = { path = "../wgpu/wgpu" }\n EOF\n cargo +${{ env.REPO_MSRV }} check\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\generate.yml | generate.yml | YAML | 1,941 | 0.8 | 0.0125 | 0.092308 | node-utils | 298 | 2024-12-02T13:55:31.243034 | GPL-3.0 | false | e6dd1061ebc0821b240d29738efb9f82 |
# Lazy jobs running on trunk post merges.\nname: Lazy\non:\n pull_request:\n paths:\n - '.github/workflows/lazy.yml'\n push:\n branches: [trunk]\n\nenv:\n CARGO_INCREMENTAL: false\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: full\n\njobs:\n parse-dota2:\n name: "Validate Shaders: Dota2"\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - run: mkdir naga/data\n\n - name: Download shaders\n run: curl https://user.fm/files/v2-5573e18b9f03f42c6ae53c392083da35/dota2-shaders.zip -o naga/data/all.zip\n\n - name: Unpack shaders\n run: |\n cd naga/data\n unzip all.zip\n\n - name: Build Naga\n run: |\n cd naga\n cargo build --release -p naga-cli\n\n - name: Convert shaders\n run: |\n cd naga\n for file in data/*.spv ; do echo "Translating" ${file} && ../target/release/naga --validate 27 ${file} ${file}.metal; done\n\n parse-vulkan-tutorial-shaders:\n name: "Validate Shaders: Sascha Willems Vulkan Tutorial"\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Download shaders\n run: cd naga && git clone https://github.com/SaschaWillems/Vulkan.git\n\n - name: Build Naga\n run: |\n cd naga\n cargo build --release -p naga-cli\n\n - name: Convert Metal shaders\n run: |\n # No needed to stop workflow if we can't validate one file\n set +e\n cd naga\n touch counter\n SUCCESS_RESULT_COUNT=0\n FILE_COUNT=0\n mkdir -p out\n find "Vulkan/data/shaders/glsl/" -name '*.spv' | while read fname;\n do\n echo "Convert: $fname"\n FILE_COUNT=$((FILE_COUNT+1))\n ../target/release/naga --validate 27 $(realpath ${fname}) out/$(basename ${fname}).metal\n if [[ $? -eq 0 ]]; then\n SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))\n fi\n echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter\n done\n cat counter\n\n dneto0_spirv-samples:\n name: "Validate Shaders: dneto0 spirv-samples"\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Download shaders\n run: |\n cd naga\n git clone https://github.com/dneto0/spirv-samples.git\n\n - name: Build Naga\n run: |\n cargo build --release -p naga-cli\n\n - name: Install `spirv-tools`\n run: |\n cd naga\n wget -q https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/linux-clang-release/continuous/1489/20210629-121459/install.tgz\n tar zxf install.tgz\n ./install/bin/spirv-as --version\n\n - name: Compile `spv` from `spvasm`\n run: |\n cd naga/spirv-samples\n mkdir -p spv\n\n find "./spvasm" -name '*.spvasm' | while read fname;\n do\n echo "Convert to spv with spirv-as: $fname"\n ../install/bin/spirv-as --target-env spv1.3 $(realpath ${fname}) -o ./spv/$(basename ${fname}).spv\n done;\n\n - name: Validate `spv` and generate `wgsl`\n run: |\n set +e\n cd naga/spirv-samples\n SUCCESS_RESULT_COUNT=0\n FILE_COUNT=0\n mkdir -p spv\n mkdir -p wgsl\n\n echo "==== Validate spv and generate wgsl ===="\n rm -f counter\n touch counter\n\n find "./spv" -name '*.spv' | while read fname;\n do\n echo "Convert: $fname"\n FILE_COUNT=$((FILE_COUNT+1))\n ../../target/release/naga --validate 27 $(realpath ${fname}) ./wgsl/$(basename ${fname}).wgsl\n if [[ $? -eq 0 ]]; then\n SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))\n fi\n echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter\n done\n cat counter\n\n - name: Validate output `wgsl`\n run: |\n set +e\n cd naga/spirv-samples\n SUCCESS_RESULT_COUNT=0\n FILE_COUNT=0\n\n rm -f counter\n touch counter\n\n find "./wgsl" -name '*.wgsl' | while read fname;\n do\n echo "Validate: $fname"\n FILE_COUNT=$((FILE_COUNT+1))\n ../../target/release/naga --validate 27 $(realpath ${fname})\n if [[ $? -eq 0 ]]; then\n SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))\n fi\n echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter\n done\n cat counter\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\lazy.yml | lazy.yml | YAML | 4,741 | 0.8 | 0.058065 | 0.015152 | awesome-app | 271 | 2024-06-10T13:34:29.186277 | BSD-3-Clause | false | 57f91612a06ea8a922858d5b041b6940 |
name: Publish\n\non:\n pull_request:\n paths:\n - '.github/workflows/publish.yml'\n push:\n branches:\n - trunk\n\nenv:\n CARGO_INCREMENTAL: false\n CARGO_TERM_COLOR: always\n RUST_BACKTRACE: full\n\njobs:\n publish:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n with:\n persist-credentials: false\n\n - name: Install Rust WASM target\n run: rustup target add wasm32-unknown-unknown\n\n - name: Get `wasm-bindgen` version\n run: |\n WASM_BINDGEN_VERSION=$(cargo metadata --format-version 1 --all-features | jq '.packages[] | select(.name == "wasm-bindgen") | .version' | tr -d '"')\n\n echo $WASM_BINDGEN_VERSION\n\n echo "WASM_BINDGEN_VERSION=$WASM_BINDGEN_VERSION" >> "$GITHUB_ENV"\n\n - name: Install `wasm-bindgen`\n run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION\n\n - name: Debug symbols to line-tables-only\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = "line-tables-only"\n EOF\n\n - name: Caching\n uses: Swatinem/rust-cache@v2\n with:\n key: publish-build\n\n - name: Build examples\n run: cargo xtask run-wasm --no-serve\n\n - name: Deploy WebGPU examples\n uses: JamesIves/github-pages-deploy-action@v4.7.3\n if: github.ref == 'refs/heads/trunk'\n with:\n token: ${{ secrets.WEB_DEPLOY }}\n folder: target/generated\n repository-name: gfx-rs/wgpu-rs.github.io\n branch: master\n target-folder: examples/\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\publish.yml | publish.yml | YAML | 1,677 | 0.7 | 0.015385 | 0 | node-utils | 233 | 2024-11-13T11:26:09.382035 | GPL-3.0 | false | 8f53c84e74c229c4833a32b7ee786ce5 |
name: Shaders\n\non:\n push:\n branches-ignore: [\n # We don't need to run on renovate PRs.\n "renovate/**",\n # This is the branch the merge queue creates.\n "gh-readonly-queue/**",\n ]\n tags: [v0.*]\n pull_request:\n merge_group:\n\nenv:\n # Sourced from https://vulkan.lunarg.com/sdk/home#linux\n #\n # We don't include the 4th version number, as it's not used in any URL.\n VULKAN_SDK_VERSION: "1.4.309"\n\n # Sourced from https://github.com/microsoft/DirectXShaderCompiler/releases\n #\n # Must also be changed in ci.yaml\n DXC_RELEASE: "v1.8.2502"\n DXC_FILENAME: "dxc_2025_02_20.zip"\n\njobs:\n naga-validate-windows:\n name: "Validate: HLSL"\n runs-on: windows-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Debug symbols to `line-tables-only`\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = "line-tables-only"\n EOF\n\n - uses: Swatinem/rust-cache@v2\n with:\n workspaces: |\n naga/xtask -> naga/xtask/target\n\n # We must have the FXC job before the DXC job, so the DXC PATH has priority\n # over the FXC PATH. This is because the windows kits also include an older\n # version of DXC, which we don't want to use.\n - name: Setup FXC\n run: |\n Get-Childitem -Path "C:\Program Files (x86)\Windows Kits\10\bin\**\x64\fxc.exe" `\n | Sort-Object -Property LastWriteTime -Descending `\n | Select-Object -First 1 `\n | Split-Path -Parent `\n | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append\n shell: powershell\n\n - name: Setup DXC\n shell: bash\n run: |\n set -e\n\n curl.exe -L --retry 5 https://github.com/microsoft/DirectXShaderCompiler/releases/download/$DXC_RELEASE/$DXC_FILENAME -o dxc.zip\n 7z.exe e dxc.zip -odxc bin/x64/{dxc.exe,dxcompiler.dll}\n\n # We need to use cygpath to convert PWD to a windows path as we're using bash.\n cygpath --windows "$PWD/dxc" >> "$GITHUB_PATH"\n\n - name: Validate\n shell: bash\n run: |\n set -e\n\n dxc --version\n\n cd naga\n cargo xtask validate hlsl dxc\n cargo xtask validate hlsl fxc\n\n naga-validate-macos:\n name: "Validate: MSL"\n runs-on: macos-14\n steps:\n - uses: actions/checkout@v4\n\n - name: Debug symbols to line-tables-only\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = "line-tables-only"\n EOF\n\n - uses: Swatinem/rust-cache@v2\n with:\n workspaces: |\n naga/xtask -> naga/xtask/target\n\n - run: |\n cd naga\n cargo xtask validate msl\n\n naga-validate-linux:\n name: "Validate: SPIR-V/GLSL/DOT/WGSL"\n runs-on: ubuntu-24.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Install Vulkan SDK\n shell: bash\n run: |\n set -e\n\n sudo apt-get update -y -qq\n\n # vulkan sdk\n wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -\n sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-$VULKAN_SDK_VERSION-noble.list https://packages.lunarg.com/vulkan/$VULKAN_SDK_VERSION/lunarg-vulkan-$VULKAN_SDK_VERSION-noble.list\n\n sudo apt-get update\n sudo apt install -y vulkan-sdk\n\n - name: Install Graphviz\n run: sudo apt-get install graphviz\n\n - name: Debug symbols to `line-tables-only`\n shell: bash\n run: |\n mkdir -p .cargo\n\n cat <<EOF >> .cargo/config.toml\n [profile.dev]\n debug = "line-tables-only"\n EOF\n\n - uses: Swatinem/rust-cache@v2\n with:\n workspaces: |\n naga/xtask -> naga/xtask/target\n\n - run: cd naga; cargo xtask validate spv\n\n - run: cd naga; cargo xtask validate glsl\n\n - run: cd naga; cargo xtask validate dot\n\n - run: cd naga; cargo xtask validate wgsl\n | dataset_sample\yaml\gfx-rs_wgpu\.github\workflows\shaders.yml | shaders.yml | YAML | 4,121 | 0.8 | 0 | 0.108333 | react-lib | 338 | 2024-01-08T02:36:14.464916 | Apache-2.0 | false | 968a4aad67e5ba9cdf2ecf497a7f8b6d |
version: 2\n\nupdates:\n - package-ecosystem: 'github-actions'\n directory: '/'\n schedule:\n interval: 'weekly'\n\n - package-ecosystem: 'npm'\n directory: '/'\n schedule:\n interval: 'weekly'\n ignore:\n - dependency-name: '*'\n update-types: ['version-update:semver-major']\n - dependency-name: '*lexical*'\n # Lexical must match svelte-lexical, updating manually.\n update-types: ['version-update:semver-minor']\n groups:\n npm-updates:\n update-types: [minor, patch]\n\n - package-ecosystem: 'cargo'\n directory: '/'\n schedule:\n interval: 'monthly'\n ignore:\n - dependency-name: '*'\n update-types: ['version-update:semver-major']\n groups:\n rust-updates:\n update-types: [minor, patch]\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\dependabot.yml | dependabot.yml | YAML | 780 | 0.8 | 0 | 0.034483 | vue-tools | 185 | 2023-08-31T00:16:58.124135 | BSD-3-Clause | false | 2131ecb08216cc0f0f3e9e577a447ee5 |
# https://github.com/actions/labeler#basic-examples\n\nrust:\n - changed-files:\n - any-glob-to-any-file: crates/**/*\n\n'@gitbutler/butler-bot':\n - changed-files:\n - any-glob-to-any-file: apps/butler-bot/**/*\n\n'@gitbutler/desktop':\n - changed-files:\n - any-glob-to-any-file: apps/desktop/**/*\n\n'@gitbutler/web':\n - changed-files:\n - any-glob-to-any-file: apps/web/**/*\n\n'@gitbutler/ui':\n - changed-files:\n - any-glob-to-any-file: packages/ui/**/*\n\n'@gitbutler/no-relative-imports':\n - changed-files:\n - any-glob-to-any-file: packages/no-relative-imports/**/*\n\n'@gitbutler/design-tokens':\n - changed-files:\n - any-glob-to-any-file: packages/design-tokens/**/*\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\pr-labeler.yml | pr-labeler.yml | YAML | 696 | 0.95 | 0 | 0.045455 | node-utils | 217 | 2024-02-08T04:47:20.061039 | MIT | false | b9648834b22cf77e6aed2ba35378c3d2 |
name: Bug Report\ndescription: Report an issue so we can improve\nlabels: [bug]\nbody:\n - type: input\n id: version\n attributes:\n label: Version\n description: Which version of GitButler are you running?\n placeholder: 0.14.1\n validations:\n required: true\n - type: dropdown\n id: operating-system\n attributes:\n label: Operating System\n description: Which operating system are you using?\n options:\n - macOS\n - Windows\n - Linux\n default: 0\n validations:\n required: true\n - type: dropdown\n id: distribution\n attributes:\n label: Distribution Method\n description: Which package of GitButler are you using?\n options:\n - dmg (Mac OS - Apple Silicon)\n - dmg (Mac OS - Intel)\n - msi (Windows)\n - winget (Windows)\n - deb (Linux)\n - rpm (Linux)\n - AppImage (Linux)\n - Flatpak (Linux)\n default: 0\n validations:\n required: true\n - type: textarea\n id: description\n attributes:\n label: Describe the issue\n description: Describe for us what the issue is and what you have tried so far to fix it. Add any extra useful information in this section. Feel free to use screenshots over a picture of your code) or a video explanation.\n validations:\n required: true\n - type: textarea\n id: repro\n attributes:\n label: How to reproduce (Optional)\n description: How do you trigger this bug? Please walk us through it step by step.\n placeholder: |\n 1. ...\n 2. ...\n 3. ...\n ...\n validations:\n required: false\n - type: textarea\n id: expected\n attributes:\n label: Expected behavior (Optional)\n description: Explain what you expected to actually have happened.\n placeholder: |\n 1. Setting ... option should not crash the application\n validations:\n required: false\n - type: textarea\n id: logs\n attributes:\n label: Relevant log output (Optional)\n description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.\n render: shell\n validations:\n required: false\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\ISSUE_TEMPLATE\1_bug.yml | 1_bug.yml | YAML | 2,212 | 0.85 | 0.025974 | 0 | awesome-app | 2 | 2024-05-01T17:07:47.266527 | Apache-2.0 | false | f9fcb95c312edecae3a6db491a72e78a |
name: Documentation\ndescription: Request to update or improve GitButler documentation\nlabels: [documentation]\nbody:\n - type: textarea\n attributes:\n label: What is the improvement or update you wish to see?\n description: The GitButler docs are missing information about X.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Is there any context that might help us understand?\n description: A clear description of any added context that might help us understand.\n validations:\n required: false\n - type: input\n attributes:\n label: Does the docs page already exist? If so, please link to it.\n description: https://docs.gitbutler.com/features/virtual-branches\n validations:\n required: false\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\ISSUE_TEMPLATE\2_documentation.yml | 2_documentation.yml | YAML | 770 | 0.95 | 0 | 0 | awesome-app | 794 | 2025-06-28T07:37:16.090766 | BSD-3-Clause | false | d6b07e0d14f6ea79e4b99acb9690d669 |
blank_issues_enabled: true\ncontact_links:\n - name: Get help from the community (Discord)\n url: https://discord.com/invite/MmFkmaJ42D\n about: Ask questions and discuss with other community members\n - name: Security\n url: https://gitbutler.com/.well-known/security.txt\n about: Security sensitive issues should be handled via the instructions in our `security.txt`.\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 377 | 0.8 | 0 | 0 | vue-tools | 898 | 2023-07-24T06:29:05.565511 | BSD-3-Clause | false | f6d84838304b9245729abe04ca516336 |
# https://github.com/actions/labeler#create-workflow\n\nname: Label Pull Requests\non:\n pull_request_target:\n\njobs:\n labeler:\n permissions:\n contents: read\n pull-requests: write\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n repository: 'gitbutlerapp/gitbutler'\n - uses: actions/labeler@v5\n with:\n configuration-path: '.github/pr-labeler.yml'\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\workflows\pr-labeler.yml | pr-labeler.yml | YAML | 425 | 0.8 | 0 | 0.058824 | react-lib | 203 | 2024-09-18T14:20:49.889978 | GPL-3.0 | false | 1e07ed706535886fd96fdf26b4833e0a |
name: build e2e-runner container\non:\n push:\n branches:\n - master\n paths:\n - 'apps/desktop/e2e/Dockerfile'\n\njobs:\n docker_publish:\n runs-on: ubuntu-latest\n permissions: write-all\n steps:\n - uses: actions/checkout@v4\n - name: Log in 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 container image\n uses: docker/build-push-action@v6\n with:\n context: 'apps/desktop/e2e'\n push: true\n tags: ghcr.io/gitbutler/e2e-runner:latest\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\workflows\push-e2e-img.yml | push-e2e-img.yml | YAML | 677 | 0.7 | 0 | 0 | vue-tools | 310 | 2024-12-14T17:24:00.077045 | BSD-3-Clause | false | 3da053771d4f6192d4cac35f69f93ded |
name: GitHub Actions Security Analysis with zizmor\n\non:\n push:\n branches: ['master']\n pull_request:\n branches: ['**']\n\njobs:\n zizmor:\n name: zizmor latest via PyPI\n runs-on: ubuntu-latest\n permissions:\n security-events: write\n # required for workflows in private repositories\n contents: read\n actions: read\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n with:\n persist-credentials: false\n\n - name: Install the latest version of uv\n uses: astral-sh/setup-uv@v5\n\n - name: Run zizmor\n run: uvx zizmor --format sarif . > results.sarif\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Upload SARIF file\n uses: github/codeql-action/upload-sarif@v3\n with:\n sarif_file: results.sarif\n category: zizmor\n | dataset_sample\yaml\gitbutlerapp_gitbutler\.github\workflows\zizmor.yml | zizmor.yml | YAML | 864 | 0.95 | 0.027778 | 0.032258 | vue-tools | 120 | 2024-01-10T21:14:47.694947 | Apache-2.0 | false | 292d96c478da4e09eed743a973c6f048 |
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\gitextensions_gitextensions\appveyor.experimental.yml | appveyor.experimental.yml | YAML | 6,696 | 0.8 | 0.118012 | 0.195489 | vue-tools | 902 | 2023-10-19T21:50:03.544575 | Apache-2.0 | false | 995b01a8f1b1dcada141d91e6e8eb279 |
version: 5.3.0.{build}\n\nbranches:\n except:\n - configdata\n - gh-pages\n - /experimental\/*/\n - /translations_*/\n\nmatrix:\n fast_finish: true\n\n# https://www.appveyor.com/docs/build-environment/#build-worker-images\nimage: Visual Studio 2022\n\nenvironment:\n # Disable the .NET logo in the console output.\n DOTNET_NOLOGO: true\n # Disable the .NET first time experience to skip caching NuGet packages and speed up the build.\n DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true\n # Use latest version of current used .NET version. 6.0 could use the latest of 6.0. See .\Scripts\Update-DotnetVersion.ps1\n GE_USE_LATEST_DOTNET: true\n\npull_requests:\n do_not_increment_build_number: true\n\ninit:\n - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))\n\ncache:\n # preserve "GitExtensions.PluginManager" directory, will be reset if appveyor.yml is modified\n - .\artifacts\publish\GitExtensions.PluginManager -> appveyor.yml\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- ps: |\n if($env:GE_USE_LATEST_DOTNET -eq $true)\n {\n .\eng\Update-DotnetVersion.ps1\n }\n- ps: |\n # Install the required .NET SDK\n Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"\n ./dotnet-install.ps1 -JsonFile global.json -InstallDir 'C:\Program Files\dotnet'\n # Remove the script so it doesn't "pollute" the build\n Remove-Item -Path .\dotnet-install.ps1\n- cmd: git submodule update --init --recursive\n- cmd: |-\n cd eng\n C:\\Python311\\python set_version_to.py -v %APPVEYOR_BUILD_VERSION% -t %APPVEYOR_BUILD_VERSION%\n cd ..\n git --version\n\n\n# to run your custom scripts instead of automatic MSBuild\nbuild_script:\n- ps: |\n $buildArgs = '/p:ContinuousIntegrationBuild=true'\n # if building a PR override the hash with the PR commit's 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 $gitCommit = $(git rev-parse --short $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT)\n $buildArgs += " /p:GitCommit=$gitCommit /p:GitSha=$($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT)"\n }\n- ps: |\n # build VC++\n dotnet build .\src\native\build.proj -c Release --verbosity q --nologo /bl:.\artifacts\log\native.binlog\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n- ps: |\n # build .NET\n $cmd = "dotnet build -c Release --verbosity q --nologo /bl:.\artifacts\log\build.binlog $buildArgs"\n Invoke-Expression $cmd\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n- ps: |\n # We are done with the build, reset all pending changes\n git reset --hard HEAD\n- ps: |\n # Verify that new strings (if any) have been processed and ready for localisation\n Push-Location .\src\app\GitExtensions\n dotnet msbuild /p:Configuration=Release /t:_UpdateEnglishTranslations /p:RunTranslationApp=true /p:ContinuousIntegrationBuild=true /v:m /bl:..\artifacts\log\localise.binlog\n Pop-Location\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n\n\n# to run your custom scripts instead of automatic tests\ntest_script:\n- ps: |\n dotnet test -c Release --no-restore --no-build --nologo --verbosity q --test-adapter-path:. --logger:Appveyor --logger:trx /bl:.\artifacts\log\tests.binlog\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n\n\n# scripts to run after tests\nafter_test:\n- ps: |\n Write-Host "Preparing build artifacts..."\n $cmd = "dotnet publish -c Release --no-build /bl:.\artifacts\log\publish.binlog $buildArgs"\n Invoke-Expression $cmd\n if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\n- ps: |\n if ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null -and $env:ARTIFACT_PUBLISH_PULL_REQUEST_MSI -eq 'true') {\n $msi = (Resolve-Path .\artifacts\Release\publish\GitExtensions-*.msi)[0].Path;\n Get-ChildItem $msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }\n }\n\nartifacts:\n - path: artifacts\Release\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- ps: |\n Get-ChildItem -recurse English*.xlf -ErrorAction SilentlyContinue `\n | ForEach-Object {\n Push-AppveyorArtifact "$_"\n }\n- ps: |\n Get-ChildItem -recurse artifacts\Release\TestsResults\*.trx -ErrorAction SilentlyContinue `\n | ForEach-Object {\n Push-AppveyorArtifact "$_"\n }\n- ps: |\n Get-ChildItem -Recurse artifacts\Release\**\*.dgml -ErrorAction SilentlyContinue `\n | ForEach-Object {\n Push-AppveyorArtifact "$_"\n }\n- ps: |\n Get-ChildItem -recurse artifacts\Release\TestsResults\*.trx | `\n ForEach-Object {\n $file = $_.FullName.Replace('[', '``[').Replace(']', '``]')\n #Write-Output "Processing $file"\n\n [xml]$xml = Get-Content -Path $file\n $xml.TestRun.Results.UnitTestResult | Where-Object outcome -eq 'Failed' | ForEach-Object {\n $errorMessage = "$($_.Output.ErrorInfo.Message)`r`n$($_.Output.ErrorInfo.StackTrace)`r`n"\n Write-Host $errorMessage -ForegroundColor Red\n }\n }\n | dataset_sample\yaml\gitextensions_gitextensions\appveyor.yml | appveyor.yml | YAML | 5,791 | 0.95 | 0.078947 | 0.174242 | node-utils | 734 | 2024-07-25T06:07:29.020315 | BSD-3-Clause | false | 560c40f90c467e6b5a084353a14aaa51 |
# 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\gitextensions_gitextensions\.github\archivarius.yml | archivarius.yml | YAML | 465 | 0.95 | 0.222222 | 0.142857 | node-utils | 139 | 2023-07-22T15:57:59.528237 | Apache-2.0 | false | 3c7d9b888c4acc40b6517cebfda91584 |
\n# You can add one username per supported platform and one custom link\nopen_collective: gitextensions\ncustom: https://github.com/gitextensions/gitextensions/wiki\n | dataset_sample\yaml\gitextensions_gitextensions\.github\FUNDING.yml | FUNDING.yml | YAML | 162 | 0.8 | 0 | 0.333333 | react-lib | 372 | 2024-05-12T01:37:04.087645 | Apache-2.0 | false | d07c9c4a6055a237e3fd6ee8f0b6a27a |
name: Bug\ndescription: Report a bug or other issue\nlabels: ':eyeglasses: status: needs review'\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking the time to fill out this bug report!\n\n ⚠️ Review existing issues to see whether someone else has already reported your issue.\n 📖 Please also read [CONTRIBUTING.md](https://github.com/gitextensions/gitextensions/blob/master/CONTRIBUTING.md).\n - type: textarea\n id: about\n attributes:\n label: Environment\n description: Use _Help > About_ in Git Extensions to copy this information to the clipboard automatically.\n value: |\n - GitExtensions version:\n - GIT version: \n - OS version: \n - .NET version: \n validations:\n required: true\n - type: textarea\n id: description\n attributes:\n label: Issue description\n description: |\n Be as specific and detailed as possible to help us triaging your issue. Screenshots and/or animations can be very useful in helping to understand the issue you're facing.\n\n Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.\n Tip: You can use https://www.screentogif.com/ to record animations and videos.\n validations:\n required: true\n - type: textarea\n id: steps\n attributes:\n label: Steps to reproduce\n description: Take some time to try and reproduce the issue, then explain how to do so here. \n validations:\n required: true\n - type: textarea\n id: regression\n attributes:\n label: Did this work in previous version of GitExtensions?\n description: If so, which version?\n validations:\n required: false\n - type: textarea\n id: diagnostics\n attributes:\n label: Diagnostics\n description: If relevant, as described at https://github.com/gitextensions/gitextensions/wiki/Diagnosing-problems.\n validations:\n required: false\n - type: markdown\n attributes:\n value: |\n ❤️ Git Extensions? Please consider supporting our collective: https://opencollective.com/gitextensions\n | dataset_sample\yaml\gitextensions_gitextensions\.github\ISSUE_TEMPLATE\bug_report.yml | bug_report.yml | YAML | 2,133 | 0.95 | 0.033898 | 0 | vue-tools | 975 | 2024-11-19T11:21:01.804336 | MIT | false | 47bf41cc1ce8e8780e8c1452c22aef8e |
blank_issues_enabled: false\ncontact_links:\n - name: If you have a general question\n url: https://github.com/gitextensions/gitextensions/discussions\n about: If you have a question about the app - ask it here\n - name: Issue with Git Extensions docs\n url: https://github.com/gitextensions/GitExtensionsDoc/issues/new\n about: Please open issues with the app's documentation in their repo\n - name: Issue with the Plugin Manager\n url: https://github.com/gitextensions/gitextensions.pluginmanager/issues/new\n about: Please open issues with the Plugin Manager their repo\n - name: Issue with AzureDevOpsCommitMessage plugin\n url: https://github.com/gitextensions/GitExtensions.AzureDevOpsCommitMessage/issues/new\n about: Please open issues with Azure DevOps commit message plugin in their repo\n - name: Issue with Gerrit plugin\n url: https://github.com/gitextensions/GitExtensions.GerritPlugin/issues/new\n about: Please open issues with the Gerrit plugin in their repo\n - name: Issue with GitLab plugin\n url: https://github.com/ahmeturun/GitExtensions.GitLab/issues/new\n about: Please open issues with the GitLab plugin in their repo\n - name: Issue with the Visual Studio extension\n url: https://github.com/gitextensions/gitextensions.vsix/issues/new\n about: Please open issues with the Visual Studio extension of the app in their repo | dataset_sample\yaml\gitextensions_gitextensions\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 1,382 | 0.8 | 0 | 0 | awesome-app | 342 | 2024-08-10T13:30:32.252271 | BSD-3-Clause | false | b7c606c47db4ad15062af0337a11f210 |
name: Feature Proposal\ndescription: Propose a new feature\nlabels: 'type: feature request'\nbody:\n - type: markdown\n attributes:\n value: |\n ⚠️ Review existing issues to see whether someone else has already requested this feature or created a similar issue.\n 📖 Please also read [CONTRIBUTING.md](https://github.com/gitextensions/gitextensions/blob/master/CONTRIBUTING.md).\n - type: textarea\n id: description\n attributes:\n label: Feature description\n description: |\n Think through your proposal and describe it clearly.\n\n Note that features are only added to the most recent version of Git Extensions.\n validations:\n required: true\n - type: textarea\n id: about\n attributes:\n label: Environment\n description: Use _Help > About_ in Git Extensions to copy this information to the clipboard automatically.\n value: |\n - GitExtensions version:\n - GIT version: \n - OS version: \n - .NET version: \n validations:\n required: true\n - type: markdown\n attributes:\n value: |\n ❤️ Git Extensions? Please consider supporting our collective: https://opencollective.com/gitextensions\n | dataset_sample\yaml\gitextensions_gitextensions\.github\ISSUE_TEMPLATE\feature_request.yml | feature_request.yml | YAML | 1,207 | 0.95 | 0 | 0 | node-utils | 262 | 2025-05-02T05:26:09.336836 | GPL-3.0 | false | 26a5413f93ee1157215edfb82a0cc0ea |
name: Git Checks\n\non: [pull_request]\n\njobs:\n block-fixup:\n runs-on: ubuntu-22.04\n\n steps:\n - uses: actions/checkout@v2.0.0\n - name: Check no !fixup commits\n uses: 13rac1/block-fixup-merge-action@v2.0.0\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\git.yml | git.yml | YAML | 220 | 0.7 | 0 | 0 | react-lib | 288 | 2025-06-01T11:46:39.709270 | Apache-2.0 | false | 132304f1df3576f383756690b3ea9e95 |
name: "Labeler: Build Predictor App"\n\non:\n # Allow dispatching the workflow via the Actions UI\n workflow_dispatch:\n inputs:\n rebuild:\n description: "Force a rebuild of the app"\n type: boolean\n\njobs:\n build-predictor:\n permissions:\n actions: write\n uses: dotnet/issue-labeler/.github/workflows/build-predictor.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n rebuild: ${{ inputs.rebuild }}\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-build-predictor.yml | labeler-build-predictor.yml | YAML | 446 | 0.8 | 0 | 0.066667 | node-utils | 257 | 2024-12-15T19:37:37.401024 | MIT | false | 4026b108aa026891b333522916f7bc8b |
name: "Labeler: Cache Retention"\n\non:\n schedule:\n - cron: "25 20 * * *" # 20:25 every day (arbitrary time daily)\n\n workflow_dispatch:\n\njobs:\n cache-retention:\n # Do not run the workflow on forks outside the 'gitextensions' org\n if: ${{ github.repository_owner == 'gitextensions' }}\n uses: dotnet/issue-labeler/.github/workflows/cache-retention.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-cache-retention.yml | labeler-cache-retention.yml | YAML | 413 | 0.8 | 0.076923 | 0.1 | vue-tools | 259 | 2025-01-20T23:29:31.109239 | GPL-3.0 | false | 0757a7401462b78bc3ab9efce36920ea |
name: "Labeler: Predict Issue Labels"\n\non:\n # Only automatically predict area labels when issues are originally opened\n issues:\n types: opened\n\n # Allow dispatching the workflow via the Actions UI, specifying ranges of numbers\n workflow_dispatch:\n inputs:\n issue_numbers:\n description: "Issue Numbers (comma-separated list of ranges)"\n type: string\n model_cache_key:\n description: "The cache key suffix to use for loading the model"\n type: string\n required: true\n default: "LIVE"\n\njobs:\n predict-issues:\n # Do not run the workflow on forks outside the 'gitextensions' org\n if: ${{ github.repository_owner == 'gitextensions' && (inputs.issue_numbers || github.event.issue.number) }}\n permissions:\n issues: write\n uses: dotnet/issue-labeler/.github/workflows/predict-issues.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n model_cache_key: ${{ inputs.model_cache_key }}\n issue_numbers: ${{ inputs.issue_numbers || github.event.issue.number }}\n label_prefix: "area: "\n threshold: 0.40\n default_label: "needs-area-label"\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-predict-issues.yml | labeler-predict-issues.yml | YAML | 1,138 | 0.95 | 0.0625 | 0.103448 | awesome-app | 933 | 2024-09-04T19:55:16.051531 | Apache-2.0 | false | d431f426b82fbade5b7657cd3fdcbda5 |
name: "Labeler: Predict Pull Labels"\n\non:\n # Per to the following documentation:\n # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target\n #\n # The `pull_request_target` event runs in the context of the base of the pull request, rather\n # than in the context of the merge commit, as the `pull_request` event does. This prevents\n # execution of unsafe code from the head of the pull request that could alter the repository\n # or steal any secrets you use in your workflow. This event allows your workflow to do things\n # like label or comment on pull requests from forks.\n #\n # Only automatically predict area labels when pull requests are first opened\n pull_request_target:\n types: opened\n branches:\n - 'main'\n - 'release/**'\n\n # Allow dispatching the workflow via the Actions UI, specifying ranges of numbers\n workflow_dispatch:\n inputs:\n pull_numbers:\n description: "Pull Numbers (comma-separated list of ranges)"\n type: string\n model_cache_key:\n description: "The cache key suffix to use for loading the model"\n type: string\n required: true\n default: "LIVE"\n\njobs:\n predict-pulls:\n # Do not run the workflow on forks outside the 'gitextensions' org\n if: ${{ github.repository_owner == 'gitextensions' && (inputs.pull_numbers || github.event.number) }}\n permissions:\n pull-requests: write\n uses: dotnet/issue-labeler/.github/workflows/predict-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n model_cache_key: ${{ inputs.model_cache_key }}\n pull_numbers: ${{ inputs.pull_numbers || github.event.number }}\n label_prefix: "area: "\n threshold: 0.40\n default_label: "needs-area-label"\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-predict-pulls.yml | labeler-predict-pulls.yml | YAML | 1,813 | 0.95 | 0.045455 | 0.292683 | vue-tools | 907 | 2024-11-06T18:23:23.942671 | BSD-3-Clause | false | 8a3987630ec0a0c93c9053bf1da12aad |
name: "Labeler: Promote Models"\n\non:\n # Dispatched via the Actions UI, promotes the staged models from\n # a staging slot into the prediction environment\n workflow_dispatch:\n inputs:\n promote_issues:\n description: "Issues: Promote Model"\n type: boolean\n required: true\n promote_pulls:\n description: "Pulls: Promote Model"\n type: boolean\n required: true\n model_cache_key:\n description: "The cache key suffix to promote into the 'LIVE' cache"\n type: string\n required: true\n default: "staging"\n backup_cache_key:\n description: "The cache key suffix to use for backing up the currently promoted model"\n type: string\n default: "backup"\n\npermissions:\n actions: write\n\njobs:\n labeler-promote-issues:\n if: ${{ inputs.promote_issues }}\n uses: dotnet/issue-labeler/.github/workflows/promote-issues.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n model_cache_key: ${{ inputs.model_cache_key }}\n backup_cache_key: ${{ inputs.backup_cache_key }}\n\n labeler-promote-pulls:\n if: ${{ inputs.promote_pulls }}\n uses: dotnet/issue-labeler/.github/workflows/promote-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n model_cache_key: ${{ inputs.model_cache_key }}\n backup_cache_key: ${{ inputs.backup_cache_key }}\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-promote.yml | labeler-promote.yml | YAML | 1,381 | 0.95 | 0.071429 | 0.052632 | node-utils | 731 | 2024-05-30T15:38:01.250182 | GPL-3.0 | false | aec792d35478e6630bbabf0f545290eb |
name: "Labeler: Train Models"\n\non:\n # Dispatched via the Actions UI, stages new models for promotion consideration\n # Each step of the workflow can be run independently: Download, Train, and Test\n workflow_dispatch:\n inputs:\n download_issues:\n description: "Issues: Download Data"\n type: boolean\n default: true\n train_issues:\n description: "Issues: Train Model"\n type: boolean\n default: true\n test_issues:\n description: "Issues: Test Model"\n type: boolean\n default: true\n download_pulls:\n description: "Pulls: Download Data"\n type: boolean\n default: true\n train_pulls:\n description: "Pulls: Train Model"\n type: boolean\n default: true\n test_pulls:\n description: "Pulls: Test Model"\n type: boolean\n default: true\n\n data_limit:\n description: "Max number of items to include in the model"\n type: number\n\n cache_key_suffix:\n description: "The cache key suffix to use for staging data/models (use 'LIVE' to bypass staging)"\n type: string\n required: true\n default: "staging"\n\njobs:\n labeler-train:\n permissions:\n issues: read\n pull-requests: read\n actions: write\n uses: dotnet/issue-labeler/.github/workflows/train.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1\n with:\n download_issues: ${{ inputs.download_issues }}\n train_issues: ${{ inputs.train_issues }}\n test_issues: ${{ inputs.test_issues }}\n download_pulls: ${{ inputs.download_pulls }}\n train_pulls: ${{ inputs.train_pulls }}\n test_pulls: ${{ inputs.test_pulls }}\n data_limit: ${{ inputs.data_limit && fromJSON(inputs.data_limit) || 0 }}\n cache_key_suffix: ${{ inputs.cache_key_suffix }}\n label_prefix: "area: "\n threshold: 0.40\n | dataset_sample\yaml\gitextensions_gitextensions\.github\workflows\labeler-train.yml | labeler-train.yml | YAML | 1,877 | 0.95 | 0.033333 | 0.035714 | awesome-app | 834 | 2023-10-09T03:27:21.067045 | BSD-3-Clause | false | 90458d9fa7a1e3073a6091774068c85c |
git:\n\n filters:\n - filter_type: file\n # all supported i18n types: https://docs.transifex.com/formats\n file_format: XLIFF\n source_language: en\n source_file: GitUI/Translation/English.xlf\n # path expression to translation files, must contain <lang> placeholder\n translation_files_expression: 'src/app/GitUI/Translation/<lang>.xlf'\n\n - filter_type: file\n # all supported i18n types: https://docs.transifex.com/formats\n file_format: XLIFF\n source_language: en\n source_file: src/app/GitUI/Translation/English.Plugins.xlf\n # path expression to translation files, must contain <lang> placeholder\n translation_files_expression: 'src/app/GitUI/Translation/<lang>.Plugins.xlf'\n\n settings:\n language_mapping:\n cs: Czech\n de: German\n es: Spanish\n es_AR: Spanish (Argentina)\n fr: French\n id: Indonesian\n it: Italian\n ja: Japanese\n ko: Korean\n lv: Latvian\n nl: Dutch\n pl: Polish\n pt: Portuguese\n pt_BR: Portuguese (Brazil)\n ro: Romanian\n ru: Russian\n tr: Turkish\n zh-Hans: Simplified Chinese\n zh-Hant: Traditional Chinese | dataset_sample\yaml\gitextensions_gitextensions\eng\transifex.yml | transifex.yml | YAML | 1,173 | 0.8 | 0 | 0.108108 | react-lib | 196 | 2023-10-30T15:43:22.822589 | MIT | false | cb0b91c9e08efd67952e3878b6e89e5d |
stages:\n - sync\n - preflight\n - prepare\n - build-images\n - fixtures\n - lint\n - test-frontend\n - test\n - post-test\n - review\n - qa\n - post-qa\n - pre-merge\n - pages\n - notify\n - release-environments\n - benchmark\n - ai-gateway\n\n# always use `gitlab-org` runners, however\n# in cases where jobs require Docker-in-Docker, the job\n# definition must be extended with `.use-docker-in-docker`\ndefault:\n image: $DEFAULT_CI_IMAGE\n tags:\n - $DEFAULT_JOB_TAG\n # All jobs are interruptible by default\n interruptible: true\n # Default job timeout doesn't work: https://gitlab.com/gitlab-org/gitlab/-/issues/387528\n timeout: 90m\n\n.default-ruby-variables: &default-ruby-variables\n RUBY_VERSION: "${RUBY_VERSION_DEFAULT}"\n OMNIBUS_GITLAB_CACHE_EDITION: "GITLAB_RUBY3_2"\n\n.next-ruby-variables: &next-ruby-variables\n RUBY_VERSION: "${RUBY_VERSION_NEXT}"\n OMNIBUS_GITLAB_CACHE_EDITION: "GITLAB_RUBY3_3"\n\n.default-branch-pipeline-failure-variables: &default-branch-pipeline-failure-variables\n CREATE_RAILS_FLAKY_TEST_ISSUES: "true"\n CREATE_RAILS_SLOW_TEST_ISSUES: "true"\n CREATE_RAILS_TEST_FAILURE_ISSUES: "true"\n GLCI_PUSH_RAILS_TEST_FAILURE_ISSUES_TO_GCS: "true"\n\n.default-merge-request-variables: &default-merge-request-variables\n ADD_SLOW_TEST_NOTE_TO_MERGE_REQUEST: "true"\n CREATE_RAILS_TEST_FAILURE_ISSUES: "false"\n FF_NETWORK_PER_BUILD: "true"\n FF_TIMESTAMPS: "true"\n FF_USE_FASTZIP: "true"\n NO_SOURCEMAPS: "true"\n GLCI_PUSH_RAILS_TEST_FAILURE_ISSUES_TO_GCS: "true"\n\n.if-merge-request-security-canonical-sync: &if-merge-request-security-canonical-sync\n if: '$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == "gitlab-org/security/gitlab" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_DEFAULT_BRANCH && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'\n\n.if-not-security-canonical-sync: &if-not-security-canonical-sync\n if: '$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH != "gitlab-org/security/gitlab" || $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_DEFAULT_BRANCH'\n\n.if-merge-request-labels-run-with-rails-next: &if-merge-request-labels-run-with-rails-next\n if: '($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train") && $CI_MERGE_REQUEST_LABELS =~ /pipeline:run-with-rails-next/'\n\nworkflow:\n name: '$PIPELINE_NAME'\n rules:\n # https://gitlab.com/gitlab-org/gitlab/-/issues/514740\n - if: '$GITLAB_USER_LOGIN == "gitlab-crowdin-bot" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_APPROVED != "true"'\n when: never\n - if: '$CI_PIPELINE_SOURCE == "pipeline" && $GITALY_TEST'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Gitaly Rails Test Pipeline'\n # If `$FORCE_GITLAB_CI` is set, create a pipeline.\n - if: '$FORCE_GITLAB_CI'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION forced'\n - if: '$START_AS_IF_FOSS'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION as-if-foss'\n # As part of the process of creating RCs automatically, we update stable\n # branches with the changes of the most recent production deployment. The\n # merge requests used for this merge a branch release-tools/X into a stable\n # branch. For these merge requests we don't want to run any pipelines, as\n # they serve no purpose and will run anyway when the changes are merged.\n - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^release-tools\/\d+\.\d+\.\d+-rc\d+$/ && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^[\d-]+-stable(-ee)?$/ && $CI_PROJECT_PATH == "gitlab-org/gitlab"'\n when: never\n - if: '$CI_MERGE_REQUEST_LABELS =~ /pipeline:run-in-ruby3_2/ || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^[\d-]+-stable(-ee)?$/'\n variables:\n <<: [*default-ruby-variables, *default-merge-request-variables]\n PIPELINE_NAME: 'Ruby $RUBY_VERSION MR'\n - if: '$CI_MERGE_REQUEST_LABELS =~ /Community contribution/'\n variables:\n <<: [*next-ruby-variables, *default-merge-request-variables]\n GITLAB_DEPENDENCY_PROXY_ADDRESS: ""\n PIPELINE_NAME: 'Ruby $RUBY_VERSION MR (community contribution)'\n # This work around https://gitlab.com/gitlab-org/gitlab/-/issues/332411 which prevents usage of dependency proxy\n # when pipeline is triggered by a project access token.\n # Example of project bot usernames (the format changed over time):\n # - project_278964_bot2\n # - project_278964_bot_7fb4d1cca8242cb399a0b8f483783120\n #\n # We set the DOCKER_AUTH_CONFIG variable to authenticate to Docker Hub to not be impacted by rate limitations\n # We don't set DOCKER_AUTH_CONFIG as a CI/CD group/project variable, because it would then have higher precedence than .gitlab-ci.yml,\n # and we would always reconfigure the docker deamon for any CI/CD pipeline.\n - if: '$CI_MERGE_REQUEST_IID && $GITLAB_USER_LOGIN =~ /project_\d+_bot/'\n variables:\n <<: [*next-ruby-variables, *default-merge-request-variables]\n GITLAB_DEPENDENCY_PROXY_ADDRESS: ""\n DOCKER_AUTH_CONFIG: "${DOCKER_AUTH_CONFIG_OVERRIDE}"\n PIPELINE_NAME: 'Ruby $RUBY_VERSION MR (triggered by a project token)'\n - <<: *if-merge-request-security-canonical-sync\n variables:\n <<: [*next-ruby-variables, *default-merge-request-variables]\n PIPELINE_NAME: '$CI_DEFAULT_BRANCH security->canonical sync'\n SKIP_MESSAGE: 'MR only contains changes from the security mirror, which have already been reviewed, tested and deployed.'\n - <<: *if-merge-request-labels-run-with-rails-next\n variables:\n <<: [*next-ruby-variables, *default-merge-request-variables]\n BUNDLE_GEMFILE: Gemfile.next\n # This variable can be specified in manual or scheduled pipelines to run CI with the next Rails version.\n # Specifying BUNDLE_GEMFILE: Gemfile.next wouldn't work because QA jobs require\n # BUNDLE_GEMFILE to be Gemfile even with the next Rails version pipelines.\n - if: '$CI_COMMIT_BRANCH == "rails-next" && $CI_PIPELINE_SOURCE == "schedule"'\n variables:\n <<: *next-ruby-variables\n BUNDLE_GEMFILE: Gemfile.next\n PIPELINE_NAME: 'Rails next version (Gemfile.next)'\n # For (detached) merge request pipelines.\n - if: '$CI_MERGE_REQUEST_IID'\n variables:\n <<: [*next-ruby-variables, *default-merge-request-variables]\n PIPELINE_NAME: 'Ruby $RUBY_VERSION MR'\n # For the scheduled pipelines, we set specific variables.\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule" && $BUILD_WITH_NEXT_RUBY_VERSION == "true"'\n variables:\n <<: *next-ruby-variables\n PIPELINE_NAME: 'Scheduled Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"'\n variables:\n <<: [*default-ruby-variables, *default-branch-pipeline-failure-variables]\n CRYSTALBALL: "true"\n PIPELINE_NAME: 'Scheduled Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n - if: '$CI_COMMIT_BRANCH == "ruby-next" && $CI_PIPELINE_SOURCE == "schedule"'\n variables:\n <<: *next-ruby-variables\n PIPELINE_NAME: 'Scheduled Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n # This work around https://gitlab.com/gitlab-org/gitlab/-/issues/332411 which prevents usage of dependency proxy\n # when pipeline is triggered by a project access token.\n # Example of project bot usernames (the format changed over time):\n # - project_278964_bot2\n # - project_278964_bot_7fb4d1cca8242cb399a0b8f483783120\n #\n # We set the DOCKER_AUTH_CONFIG variable to authenticate to Docker Hub to not be impacted by rate limitations\n # We don't set DOCKER_AUTH_CONFIG as a CI/CD group/project variable, because it would then have higher precedence than .gitlab-ci.yml,\n # and we would always reconfigure the docker deamon for any CI/CD pipeline.\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $GITLAB_USER_LOGIN =~ /project_\d+_bot/'\n variables:\n <<: [*default-ruby-variables, *default-branch-pipeline-failure-variables]\n GITLAB_DEPENDENCY_PROXY_ADDRESS: ""\n DOCKER_AUTH_CONFIG: "${DOCKER_AUTH_CONFIG_OVERRIDE}"\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch (triggered by a project token)'\n # For `$CI_DEFAULT_BRANCH` from wider community contributors, we don't want to run any pipelines on pushes,\n # because normally we want to run merge request pipelines and scheduled pipelines, not for repository synchronization.\n # This can avoid accidentally using up pipeline minutes quota while synchronizing the repository for wider community contributors.\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE !~ /^gitlab(-org|-cn)?($|\/)/'\n when: never\n # For `$CI_DEFAULT_BRANCH` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\n variables:\n <<: [*default-ruby-variables, *default-branch-pipeline-failure-variables]\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n # For tags, create a pipeline.\n - if: '$CI_COMMIT_TAG'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_TAG tag'\n # If `$GITLAB_INTERNAL` isn't set, don't create a pipeline.\n - if: '$GITLAB_INTERNAL == null'\n when: never\n # For stable, auto-deploy, and security branches, create a pipeline.\n - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable(-ee)?$/'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n - if: '$CI_COMMIT_BRANCH =~ /^\d+-\d+-auto-deploy-\d+$/'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n - if: '$CI_COMMIT_BRANCH =~ /^security\//'\n variables:\n <<: *default-ruby-variables\n PIPELINE_NAME: 'Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch'\n\nvariables:\n PG_VERSION: "14"\n DEFAULT_CI_IMAGE: "${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/ci/${BUILD_OS}-${OS_VERSION}-slim-ruby-${RUBY_VERSION}-golang-${GO_VERSION}-node-${NODE_VERSION}-postgresql-${PG_VERSION}:rubygems-${RUBYGEMS_VERSION}-git-${GIT_VERSION}-lfs-${LFS_VERSION}-chrome-${CHROME_VERSION}-yarn-${YARN_VERSION}-graphicsmagick-${GRAPHICSMAGICK_VERSION}"\n DEFAULT_JOB_TAG: "gitlab-org"\n GITLAB_LARGE_RUNNER_OPTIONAL: "gitlab-org" # overridden just in gitlab-org/gitlab\n GLCI_PRODUCTION_ASSETS_RUNNER_OPTIONAL: "gitlab-org-docker" # this is set to GITLAB_LARGE_RUNNER_OPTIONAL on gitlab-org/gitlab and default to docker runners for dind to work correctly\n DEFAULT_RSPEC_PREDICTIVE_JOB_TAGS: "${DEFAULT_JOB_TAG}" # Separated by commas, overridden in JiHu\n # We set $GITLAB_DEPENDENCY_PROXY to another variable (since it's set at the group level and has higher precedence than .gitlab-ci.yml)\n # so that we can override $GITLAB_DEPENDENCY_PROXY_ADDRESS in workflow rules.\n GITLAB_DEPENDENCY_PROXY_ADDRESS: "${GITLAB_DEPENDENCY_PROXY}"\n RAILS_ENV: "test"\n NODE_ENV: "test"\n BUNDLE_WITHOUT: "production:development"\n BUNDLE_INSTALL_FLAGS: "--jobs=$(nproc) --retry=3"\n BUNDLE_FROZEN: "true"\n BUNDLE_GEMFILE: Gemfile\n # we override the max_old_space_size to prevent OOM errors\n NODE_OPTIONS: --max-old-space-size=10240\n GIT_DEPTH: "20"\n # 'GIT_STRATEGY: clone' optimizes the pack-objects cache hit ratio\n GIT_STRATEGY: "clone"\n GIT_SUBMODULE_STRATEGY: "none"\n GET_SOURCES_ATTEMPTS: "3"\n # CI_FETCH_REPO_GIT_STRATEGY: "none" is from artifacts. "clone" is from cloning\n CI_FETCH_REPO_GIT_STRATEGY: "none"\n FORCE_COLOR: 1\n CLICOLOR_FORCE: 1\n\n FLAKY_RSPEC_SUITE_REPORT_PATH: rspec/flaky/report-suite.json\n FRONTEND_FIXTURES_MAPPING_PATH: crystalball/frontend_fixtures_mapping.json\n GITLAB_WORKHORSE_FOLDER: "gitlab-workhorse"\n JOB_METRICS_FILE_PATH: "${CI_PROJECT_DIR}/tmp/job-metrics.json"\n KNAPSACK_RSPEC_SUITE_REPORT_PATH: knapsack/report-master.json\n RSPEC_CHANGED_FILES_PATH: rspec/changed_files.txt\n RSPEC_FAIL_FAST_THRESHOLD: 20\n RSPEC_FAST_QUARANTINE_PATH: rspec/fast_quarantine-gitlab.txt\n RSPEC_LAST_RUN_RESULTS_FILE: rspec/rspec_last_run_results.txt\n RSPEC_MATCHING_JS_FILES_PATH: rspec/js_matching_files.txt\n RSPEC_MATCHING_TESTS_EE_PATH: rspec/matching_tests-ee.txt\n RSPEC_MATCHING_TESTS_FOSS_PATH: rspec/matching_tests-foss.txt\n RSPEC_MATCHING_TESTS_PATH: rspec/matching_tests.txt\n RSPEC_PACKED_TESTS_MAPPING_PATH: crystalball/packed-mapping.json\n RSPEC_PACKED_TESTS_MAPPING_ALT_PATH: crystalball/packed-mapping-alt.json\n RSPEC_PREDICTIVE_PIPELINE_TEMPLATE_YML: .gitlab/ci/rails/rspec-predictive.gitlab-ci.yml.erb\n RSPEC_PROFILING_FOLDER_PATH: rspec/profiling\n RSPEC_TESTS_MAPPING_PATH: crystalball/mapping.json\n RSPEC_TESTS_MAPPING_ALT_PATH: crystalball/mapping-alt.json\n RSPEC_VIEWS_INCLUDING_PARTIALS_PATH: rspec/views_including_partials.txt\n RSPEC_AUTO_EXPLAIN_LOG_PATH: auto_explain/auto_explain.ndjson.gz\n RUBYOPT: "--yjit"\n TMP_TEST_FOLDER: "${CI_PROJECT_DIR}/tmp/tests"\n TMP_TEST_GITLAB_WORKHORSE_PATH: "${TMP_TEST_FOLDER}/${GITLAB_WORKHORSE_FOLDER}"\n\n ES_JAVA_OPTS: "-Xms256m -Xmx256m"\n ELASTIC_URL: "http://elastic:changeme@elasticsearch:9200"\n BUNDLER_CHECKSUM_VERIFICATION_OPT_IN: "1"\n CACHE_CLASSES: "true"\n CHECK_PRECOMPILED_ASSETS: "true"\n RETRY_FAILED_TESTS_IN_NEW_PROCESS: "true"\n # Run with decomposed databases by default\n DECOMPOSED_DB: "true"\n SEC_DECOMPOSED_DB: "true"\n\n DOCS_GITLAB_REPO_SUFFIX: "ee"\n\n REVIEW_APPS_IMAGE: "${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}:gcloud-${GCLOUD_VERSION}-kubectl-1.30-helm-${HELM_VERSION}"\n REVIEW_APPS_DOMAIN: "gitlab-review.app"\n REVIEW_APPS_GCP_PROJECT: "gitlab-review-apps"\n REVIEW_APPS_GCP_REGION: "us-central1"\n\n REGISTRY_HOST: "registry.gitlab.com"\n REGISTRY_GROUP: "gitlab-org"\n\n # Disable useless network connections when installing some NPM packages.\n # See https://gitlab.com/gitlab-com/gl-security/engineering-and-research/inventory/-/issues/827#note_1203181407\n DISABLE_OPENCOLLECTIVE: "true"\n\n # This is set at the gitlab-org level, but we set it here for forks\n DANGER_DO_NOT_POST_INVALID_DANGERFILE_ERROR: "1"\n\n # Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/390313. This can be dropped whenever\n # https://github.com/ruby/ruby/pull/7663 lands in the Ruby interpreter.\n NOKOGIRI_LIBXML_MEMORY_MANAGEMENT: default\n\n # CI jobs behavior can be changed by changing the value of these variables in the project's CI/CD variables\n AVERAGE_KNAPSACK_REPORT: "true"\n ENABLE_DEPSCORE: "true"\n CACHE_ASSETS_AS_PACKAGE: "true"\n REUSE_FRONTEND_FIXTURES_ENABLED: "true"\n SIMPLECOV: "true"\n\ninclude:\n - local: .gitlab/ci/_skip.yml\n rules:\n - <<: *if-merge-request-security-canonical-sync\n - local: .gitlab/ci/version.yml\n - local: .gitlab/ci/*.gitlab-ci.yml\n rules:\n - <<: *if-not-security-canonical-sync\n - remote: 'https://gitlab.com/gitlab-org/frontend/untamper-my-lockfile/-/raw/main/templates/merge_request_pipelines.yml'\n rules:\n - <<: *if-not-security-canonical-sync\n - local: .gitlab/ci/includes/gitlab-com/*.gitlab-ci.yml\n rules:\n - if: '$CI_SERVER_HOST == "gitlab.com"'\n - if: '$CI_SERVER_HOST == "jihulab.com"'\n - local: .gitlab/ci/includes/as-if-jh.gitlab-ci.yml\n rules:\n # Only run as-if-jh triggerred pipelines for gitlab.com/gitlab-org/gitlab MRs that don't target stable branches\n # and that don't have the quarantine or pipeline::expedited labels.\n - if: '$CI_PROJECT_URL != "https://gitlab.com/gitlab-org/gitlab"'\n when: never\n - if: '$CI_MERGE_REQUEST_ID == null'\n when: never\n - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^[\d-]+-stable(-ee|-jh)?$/'\n when: never\n - if: '$CI_MERGE_REQUEST_LABELS =~ /quarantine/ || $CI_MERGE_REQUEST_LABELS =~ /pipeline::expedited/ || $CI_MERGE_REQUEST_LABELS =~ /pipeline:expedite/'\n when: never\n - when: always\n | dataset_sample\yaml\gitlabhq_gitlabhq\.gitlab-ci.yml | .gitlab-ci.yml | YAML | 16,080 | 0.95 | 0.170886 | 0.189189 | vue-tools | 762 | 2024-08-15T23:05:41.397485 | GPL-3.0 | false | d3c975b14e9fec15e3780cafeae07ac6 |
# Gitpod file reference\n# https://www.gitpod.io/docs/configure/workspaces/tasks\n\nimage: registry.gitlab.com/gitlab-org/gitlab-development-kit/gitpod-workspace:stable\ncheckoutLocation: gitlab-development-kit/gitlab\n\ntasks:\n\n - name: GDK\n # "command:" emits gitpod-start\n before: |\n START_UNIXTIME="$(date +%s)"\n echo START_UNIXTIME="$(date +%s)" > /workspace/gitpod_start_time.sh\n command: |\n # send signal to other tasks that Gitpod started\n gp sync-done gitpod-start\n echo "Waiting for other task to copy GDK.."\n gp sync-await gdk-copied && cd /workspace/gitlab-development-kit && gdk help\n\n - name: GitLab\n # "command:" emits gdk-copied\n init: |\n (\n set -e\n echo "$(date) – Copying GDK" | tee -a /workspace/startup.log\n cp -r $HOME/gitlab-development-kit /workspace/\n cd /workspace/gitlab-development-kit\n mv -v /workspace/gitlab-development-kit/secrets.yml /workspace/gitlab-development-kit/gitlab/config\n # ensure gdk.yml has correct instance settings\n gdk config set gitlab.rails.port 443 |& tee -a /workspace/startup.log\n gdk config set gitlab.rails.https.enabled true |& tee -a /workspace/startup.log\n gdk config set webpack.host 127.0.0.1 |& tee -a /workspace/startup.log\n gdk config set webpack.static false |& tee -a /workspace/startup.log\n gdk config set webpack.live_reload false |& tee -a /workspace/startup.log\n # reconfigure GDK\n echo "$(date) – Reconfiguring GDK" | tee -a /workspace/startup.log\n gdk reconfigure\n # run DB migrations\n echo "$(date) – Running DB migrations" | tee -a /workspace/startup.log\n make gitlab-db-migrate\n # stop GDK\n echo "$(date) – Stopping GDK" | tee -a /workspace/startup.log\n gdk stop\n echo "$(date) – GDK stopped" | tee -a /workspace/startup.log\n )\n command: |\n (\n set -e\n gp sync-done gdk-copied\n gp sync-await gitpod-start\n [[ -f /workspace/gitpod_start_time.sh ]] && source /workspace/gitpod_start_time.sh\n SECONDS=0\n cd /workspace/gitlab-development-kit\n # update GDK\n echo "$(date) – Updating GDK" | tee -a /workspace/startup.log\n export DEFAULT_BRANCH=$(git --git-dir=gitlab/.git branch --show-current)\n gdk config set gitlab.default_branch "$DEFAULT_BRANCH"\n gdk update\n # ensure gdk.yml has correct instance settings\n gdk config set gitlab.rails.hostname $(gp url 3000 | sed -e 's+^http[s]*://++')\n gdk config set gitlab.rails.port 443\n gdk config set gitlab.rails.https.enabled true\n gdk config set webpack.host 127.0.0.1\n gdk config set webpack.static false\n gdk config set webpack.live_reload false\n # reconfigure GDK\n echo "$(date) – Reconfiguring GDK" | tee -a /workspace/startup.log\n gdk reconfigure\n # start GDK\n echo "$(date) – Starting GDK" | tee -a /workspace/startup.log\n export DEV_SERVER_PUBLIC_ADDR=$(gp url 3808)\n export RAILS_HOSTS=$(gp url 3000 | sed -e 's+^http[s]*://++')\n gdk start\n # Run DB migrations\n if [ "$GITLAB_RUN_DB_MIGRATIONS" == true ]; then\n make gitlab-db-migrate\n fi\n cd /workspace/gitlab-development-kit/gitlab\n echo "--- on branch: $DEFAULT_BRANCH"\n echo "--- installing lefthook"\n bundle exec lefthook install\n echo "--- resetting db/structure.sql"\n git checkout db/structure.sql\n echo "--- waiting for GitLab"\n gp ports await 3000\n printf "Awaiting /-/readiness on $(gp url 3000) ..."\n # Check /-/readiness which returns JSON, but we're only interested in the exit code\n #\n # We use http://localhost:3000 instead of the public hostname because\n # it's no longer possible to access as specific cookies are required\n until curl --silent --no-buffer --fail http://localhost:3000/-/readiness > /dev/null 2>&1; do printf '.'; sleep 5; done && echo ""\n # Give Gitpod a few more seconds to set up everything ...\n sleep 5\n printf "$(date) – GitLab is up (took ~%.1f minutes)\n" "$((10*$SECONDS/60))e-1" | tee -a /workspace/startup.log\n gp preview $(gp url 3000) --external || true\n PREBUILD_LOG=(/workspace/.gitpod/prebuild-log-*)\n [[ -f /workspace/gitpod_start_time.sh ]] && printf "Took %.1f minutes from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitpod.yml being executed through to completion %s\n" "$((10*(($(date +%s)-${START_UNIXTIME}))/60))e-1" "$([[ -f "$PREBUILD_LOG" ]] && echo "With Prebuilds")"\n )\n\nports:\n - port: 2222 # sshd\n onOpen: ignore\n - port: 3000 # rails-web\n onOpen: notify\n - port: 3005 # gitlab-docs\n onOpen: notify\n - port: 3010 # gitlab-pages\n onOpen: ignore\n - port: 3808 # webpack\n onOpen: ignore\n - port: 5000 # auto_devops\n onOpen: ignore\n - port: 5778 # jaeger\n onOpen: ignore\n - port: 9000 # object_store / minio\n onOpen: ignore\n - port: 9122 # gitlab-shell\n onOpen: ignore\n\nvscode:\n extensions:\n - GitLab.gitlab-workflow\n - rebornix.ruby@0.28.1\n - wingrunr21.vscode-ruby@0.28.0\n - karunamurti.haml@1.4.1\n - octref.vetur@0.37.3\n - dbaeumer.vscode-eslint@2.4.0\n - DavidAnson.vscode-markdownlint@0.49.0\n - esbenp.prettier-vscode\n | dataset_sample\yaml\gitlabhq_gitlabhq\.gitpod.yml | .gitpod.yml | YAML | 5,418 | 0.95 | 0.023256 | 0.154472 | react-lib | 162 | 2024-02-02T20:28:04.889298 | BSD-3-Clause | false | d75b3b37a8b04167e7ffe0d28a446ed4 |
inherits_from:\n - .haml-lint_todo.yml\n# Whether to ignore frontmatter at the beginning of HAML documents for\n# frameworks such as Jekyll/Middleman\nskip_frontmatter: false\nexclude:\n - 'vendor/**/*'\n - 'spec/**/*'\n - 'ee/spec/**/*'\nrequire:\n - './haml_lint/linter/inline_javascript.rb'\n - './haml_lint/linter/no_plain_nodes.rb'\n\nlinters:\n AltText:\n enabled: true\n\n ClassAttributeWithStaticValue:\n enabled: true\n\n ClassesBeforeIds:\n enabled: false\n\n ConsecutiveComments:\n enabled: false\n\n ConsecutiveSilentScripts:\n enabled: false\n max_consecutive: 2\n\n DocumentationLinks:\n enabled: true\n include:\n - 'app/views/**/*.haml'\n - 'ee/app/views/**/*.haml'\n\n EmptyObjectReference:\n enabled: true\n\n EmptyScript:\n enabled: true\n\n FinalNewline:\n enabled: true\n present: true\n\n HtmlAttributes:\n enabled: true\n\n IdNames:\n enabled: false\n\n ImplicitDiv:\n enabled: true\n\n InlineJavaScript:\n enabled: true\n\n InlineStyles:\n enabled: false\n\n InstanceVariables:\n enabled: false\n\n LeadingCommentSpace:\n enabled: false\n\n LineLength:\n enabled: false\n max: 80\n\n MultilinePipe:\n enabled: true\n\n MultilineScript:\n enabled: true\n\n ObjectReferenceAttributes:\n enabled: true\n\n RepeatedId:\n enabled: false\n\n RuboCop:\n enabled: true\n ignored_cops:\n # These cops are incredibly noisy when it comes to HAML templates, so we\n # ignore them.\n - Layout/BlockAlignment\n - Layout/HashAlignment\n - Layout/IndentationConsistency\n - Layout/IndentationWidth\n - Layout/LineLength\n - Layout/TrailingWhitespace\n - Lint/Void\n - Naming/FileName\n - Layout/ElseAlignment\n - Style/FrozenStringLiteralComment\n - Style/IfUnlessModifier\n - Style/Next\n - Style/SoleNestedConditional\n - Style/StringLiteralsInInterpolation\n - Style/WhileUntilModifier\n - Cop/StaticTranslationDefinition\n\n # These cops should eventually get enabled\n\n # haml-lint force enables these: https://github.com/sds/haml-lint/blob/v0.51.0/config/forced_rubocop_config.yml\n - Layout/ArgumentAlignment\n - Layout/ArrayAlignment\n - Layout/ClosingParenthesisIndentation # See https://github.com/sds/haml-lint/issues/491\n - Layout/EndAlignment\n - Layout/SpaceInsideParens # See https://github.com/sds/haml-lint/issues/491\n\n - Cop/LineBreakAfterGuardClauses\n - Cop/LineBreakAroundConditionalBlock\n - Cop/ProjectPathHelper\n - Gitlab/FeatureAvailableUsage\n - Gitlab/Json\n - Gitlab/Rails/SafeFormat\n - GitlabSecurity/PublicSend\n - Layout/FirstHashElementIndentation\n - Layout/EmptyLineAfterGuardClause\n - Layout/EmptyLines\n - Layout/EmptyLinesAroundBlockBody\n - Layout/ExtraSpacing\n - Layout/InitialIndentation\n - Layout/LeadingCommentSpace\n - Layout/MultilineHashBraceLayout\n - Layout/SpaceAroundOperators\n - Layout/SpaceBeforeComma\n - Layout/SpaceBeforeFirstArg\n - Layout/SpaceInsideHashLiteralBraces\n - Layout/SpaceInsideStringInterpolation\n - Layout/TrailingEmptyLines\n - Lint/AmbiguousOperatorPrecedence\n - Lint/AssignmentInCondition\n - Lint/LiteralInInterpolation\n - Lint/ParenthesesAsGroupedExpression\n - Lint/RedundantStringCoercion\n - Lint/SafeNavigationConsistency\n - Lint/SymbolConversion\n - Lint/UnusedBlockArgument\n - Metrics/BlockNesting\n - Naming/VariableName\n - Performance/RedundantMatch\n - Performance/StringReplacement\n - Rails/LinkToBlank\n - Rails/OutputSafety\n - Rails/RequestReferer\n - Style/ColonMethodCall\n - Style/ConditionalAssignment\n - Style/FormatString\n - Style/HashSyntax\n - Style/IdenticalConditionalBranches\n - Style/IfInsideElse\n - Style/InlineDisableAnnotation\n - Style/MultilineTernaryOperator\n - Style/NegatedIf\n - Style/NestedTernaryOperator\n - Style/RedundantInterpolation\n - Style/SelfAssignment\n - Style/StringConcatenation\n - Style/TernaryParentheses\n - Style/TrailingCommaInHashLiteral\n - Style/UnlessElse\n - Style/WordArray\n - Style/ZeroLengthPredicate\n\n # WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/207950\n - Cop/UserAdmin\n # See https://gitlab.com/groups/gitlab-org/-/epics/7374.\n # This should eventually be enabled\n - Gitlab/AvoidGitlabInstanceChecks\n\n RubyComments:\n enabled: true\n\n SpaceBeforeScript:\n enabled: true\n\n SpaceInsideHashAttributes:\n enabled: true\n style: space\n\n Syntax:\n enabled: true\n\n Indentation:\n enabled: true\n character: space # or tab\n\n TagName:\n enabled: true\n\n TrailingEmptyLines:\n enabled: false\n\n TrailingWhitespace:\n enabled: true\n\n UnnecessaryInterpolation:\n enabled: true\n\n UnnecessaryStringOutput:\n enabled: true\n\n ViewLength:\n enabled: false\n | dataset_sample\yaml\gitlabhq_gitlabhq\.haml-lint.yml | .haml-lint.yml | YAML | 4,930 | 0.95 | 0.004785 | 0.052326 | react-lib | 884 | 2024-08-16T09:21:40.997079 | GPL-3.0 | false | 535683883e60ff2565fc7c4abb55487e |
inherit_gem:\n gitlab-styles:\n - rubocop-default.yml\n\nrequire:\n - ./rubocop/rubocop\n - rubocop-rspec\n # Always load these cop even if disabled by default so RuboCop knows about rules in TODOs.\n - rubocop/cop/internal_affairs\n\ninherit_from:\n <% unless ENV['REVEAL_RUBOCOP_TODO'] == '1' %>\n <% Dir.glob('.rubocop_todo/**/*.yml').each do |rubocop_todo_yaml| %>\n - '<%= rubocop_todo_yaml %>'\n <% end %>\n <% end %>\n - ./rubocop/rubocop-migrations.yml\n - ./rubocop/rubocop-usage-data.yml\n - ./rubocop/rubocop-code_reuse.yml\n <% Dir.glob('jh/rubocop/**/*.yml').each do |jh_rubocop_yaml| %>\n - '<%= jh_rubocop_yaml %>'\n <% end %>\n\ninherit_mode:\n merge:\n - Include\n - Exclude\n - AllowedPatterns\n\nAllCops:\n # The oldest supported Ruby version.\n TargetRubyVersion: 3.2\n TargetRailsVersion: 7.0\n DefaultFormatter: <%= ENV['CI'] == '1' ? 'clang' : 'progress' %>\n Exclude:\n - 'gems/**/*'\n - 'qa/gems/**/*'\n - 'vendor/**/*'\n - 'node_modules/**/*'\n - 'db/fixtures/**/*'\n - 'tmp/**/*'\n - 'bin/**/*'\n - 'generator_templates/**/*'\n - 'builds/**/*'\n - 'file_hooks/**/*'\n - 'workhorse/**/*'\n - 'shared/packages/**/*'\n - 'spec/support/*.git/**/*' # e.g. spec/support/gitlab-git-test.git\n # projects_controller.rb is used for testing LLM response and is very sensitive to whitespaces.\n - 'ee/spec/fixtures/llm/projects_controller.rb'\n # Use absolute path to avoid orphan directories with changed workspace root.\n CacheRootDirectory: <%= Dir.getwd %>/tmp\n MaxFilesInCache: 1_000_000\n NewCops: disable\n SuggestExtensions: false\n\nRails:\n Exclude:\n # User defined excludes on top (department) level don't cancel default\n # includes set by child cops. Directories below are not affected (tested\n # manually). Watch https://github.com/rubocop/rubocop/issues/11148 to\n # know when this comment can be removed.\n - 'danger/**/*'\n - 'tooling/danger/**/*'\n - 'rubocop/**/*'\n\nRails/Date:\n Exclude:\n # See https://gitlab.com/gitlab-org/gitlab/-/issues/502580\n - danger/database/Dangerfile\n\nRails/Pluck:\n Exclude:\n # See https://gitlab.com/gitlab-org/gitlab/-/issues/502580\n - 'tooling/danger/**/*'\n # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94047#note_1179689274\n AutoCorrect: false\n\n# Disabled by default and enabled via `.rubocop/internal_affairs.yml`.\nInternalAffairs:\n Enabled: false\n\nRSpec:\n Language:\n Includes:\n Examples:\n - run_permission_checks\n - run_group_permission_checks\n - it_should_email!\n - it_should_not_email!\n\nMetrics/ParameterLists:\n Exclude:\n # See https://gitlab.com/gitlab-org/gitlab/-/issues/356771\n - 'app/components/**/*'\n\nCop/AvoidKeywordArgumentsInSidekiqWorkers:\n Enabled: true\n Include:\n - 'app/workers/**/*'\n - 'ee/app/workers/**/*'\n\nCop/StaticTranslationDefinition:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nInternalAffairs/DeprecateCopHelper:\n Enabled: true\n Include:\n - spec/rubocop/**/*.rb\n\nLayout/LineLength:\n AllowedPatterns: ['^RSpec\.describe\s.*\sdo']\n Exclude:\n - 'ee/spec/controllers/concerns/routable_actions_spec.rb'\n - 'ee/spec/lib/gitlab/auth/group_saml/sso_enforcer_spec.rb'\n\nLint/Debugger:\n DebuggerMethods:\n PryShell:\n binding.pry_shell\n\nLint/EmptyFile:\n Exclude:\n - 'db/seeds.rb'\n - 'ee/db/embedding/seeds.rb'\n - 'ee/db/geo/seeds.rb'\n\n# This file has a lot of these, and how we name classes here is essential for how we\n# implement migration versions\nNaming/ClassAndModuleCamelCase:\n Exclude:\n - 'lib/gitlab/database/migration.rb'\n\n# This cop checks whether some constant value isn't a\n# mutable literal (e.g. array or hash).\nStyle/MutableConstant:\n Exclude:\n - 'db/migrate/**/*'\n - 'db/post_migrate/**/*'\n - 'ee/db/migrate/**/*'\n - 'ee/db/post_migrate/**/*'\n - 'ee/db/geo/migrate/**/*'\n\n# TODO: Move this to gitlab-styles\nStyle/SafeNavigation:\n Enabled: false\n\nStyle/AccessModifierDeclarations:\n AllowModifiersOnSymbols: true\n\n# Frozen String Literal\nStyle/FrozenStringLiteralComment:\n Enabled: true\n EnforcedStyle: always_true\n\nStyle/SpecialGlobalVars:\n EnforcedStyle: use_builtin_english_names\n\nStyle/SignalException:\n Exclude:\n # Danger defines its own `fail` method\n - '**/*/Dangerfile'\n - 'tooling/danger/**/*.rb'\n\nRSpec/SpecFilePathFormat:\n Exclude:\n - 'qa/**/*'\n - 'spec/frontend/fixtures/*'\n - 'ee/spec/frontend/fixtures/*'\n - 'spec/requests/api/v3/*'\n - 'spec/fixtures/**/*'\n CustomTransform:\n HTTPartyBasicAuth: httparty_basic_auth\n\nRSpec/SpecFilePathSuffix:\n Exclude:\n - 'qa/**/*'\n - 'spec/frontend/fixtures/*'\n - 'ee/spec/frontend/fixtures/*'\n - 'spec/requests/api/v3/*'\n - 'spec/fixtures/**/*'\n\n# Configuration parameters: AllowSubject.\nRSpec/MultipleMemoizedHelpers:\n Max: 25\n AllowSubject: true\n\nCapybara/TestidFinders:\n Include:\n - 'spec/features/**/*'\n - 'ee/spec/features/**/*'\n\nNaming/FileName:\n ExpectMatchingDefinition: true\n CheckDefinitionPathHierarchy: false\n Exclude:\n - '**/*/*.builder'\n - 'ee/bin/*'\n - 'config.ru'\n - 'config/**/*'\n - 'ee/config/**/*'\n - 'jh/config/**/*'\n - 'db/**/*'\n - 'ee/db/**/*'\n - 'ee/elastic/migrate/*'\n - 'lib/tasks/**/*.rake'\n - 'ee/lib/tasks/**/*.rake'\n - 'lib/generators/**/*'\n - 'ee/lib/generators/**/*'\n - 'scripts/**/*'\n - 'spec/**/*'\n - 'tooling/bin/**/*'\n - 'ee/spec/**/*'\n - 'jh/spec/**/*'\n - 'qa/bin/*'\n - 'qa/spec/**/*'\n - 'qa/qa/factories/**/*'\n - 'qa/qa/ee/factories/**/*'\n - 'qa/qa/specs/**/*'\n - 'qa/tasks/**/*.rake'\n - '**/*.ru'\n\n IgnoreExecutableScripts: true\n AllowedAcronyms:\n - EE\n - JSON\n - LDAP\n - SAML\n - SSO\n - IO\n - HMAC\n - QA\n - ENV\n - STL\n - PDF\n - SVG\n - CTE\n - DN\n - RSA\n - CI\n - CD\n - OAuth\n - CSP\n - CSV\n - SCA\n - SAN\n - CIDR\n - SPDX\n - MR\n - JWT\n - HLL\n - GPG\n - OTP\n - GID\n - AR\n - RSpec\n - ECDSA\n - ED25519\n - GitLab\n - JavaScript\n - VSCode\n - JetBrains\n # default ones:\n - CLI\n - DSL\n - ACL\n - API\n - ASCII\n - CPU\n - CSS\n - DNS\n - EOF\n - GUID\n - HTML\n - HTTP\n - HTTPS\n - ID\n - IP\n - JSON\n - LHS\n - QPS\n - RAM\n - RHS\n - RPC\n - SLA\n - SMTP\n - SQL\n - SSH\n - TCP\n - TLS\n - TTL\n - UDP\n - UI\n - UID\n - UUID\n - URI\n - URL\n - UTF8\n - VM\n - XML\n - XMPP\n - XSRF\n - XSS\n - GRPC\n\n# Check for the use of before with let_it_be when using "add_role" methods\n# e.g. add_guest, add_reporter, add_developer\nRSpec/BeforeAllRoleAssignment:\n Enabled: true\n\nRails/ApplicationRecord:\n Enabled: true\n Exclude:\n # Models in database migrations should not subclass from ApplicationRecord\n # as they need to be as decoupled from application code as possible\n - db/**/*.rb\n - lib/gitlab/background_migration/**/*.rb\n - ee/lib/ee/gitlab/background_migration/**/*.rb\n - lib/gitlab/database/**/*.rb\n - spec/**/*.rb\n - ee/db/**/*.rb\n - ee/spec/**/*.rb\n\nRails/ActiveRecordCallbacksOrder:\n Include:\n - app/models/**/*.rb\n - ee/app/models/**/*.rb\n\n# We disable this since network latency isn't an issue and schema changes execute in a few milliseconds.\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136251#note_1638949892.\nRails/BulkChangeTable:\n Enabled: false\n\nCop/DefaultScope:\n Enabled: true\n\nRails/FindBy:\n Enabled: true\n Include:\n - 'ee/app/**/*.rb'\n - 'ee/lib/**/*.rb'\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nRails/InverseOf:\n Include:\n - app/models/**/*.rb\n - ee/app/models/**/*.rb\n\nRails/MigrationTimestamp:\n Enabled: true\n Include:\n - db/migrate/*.rb\n - db/post_migrate/*.rb\n - ee/db/geo/migrate/*.rb\n - ee/db/geo/post_migrate/*.rb\n\n# This is currently exiting with a rubocop exception error and should be\n# resolved hopefully a future update\n# An error occurred while Rails/UniqueValidationWithoutIndex cop was inspecting\n# app/models/abuse_report.rb:15:2.\n# To see the complete backtrace run rubocop -d.\nRails/UniqueValidationWithoutIndex:\n Enabled: false\n\nRails/HelperInstanceVariable:\n Include:\n - app/helpers/**/*.rb\n - ee/app/helpers/**/*.rb\n\nRails/MailerName:\n Exclude:\n # See for the context on why it's excluded https://gitlab.com/gitlab-org/gitlab/-/issues/239356#note_956419227\n - 'app/mailers/notify.rb'\n\n\nRails/RakeEnvironment:\n # Context on why it's disabled: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/93419#note_1048223982\n Enabled: false\n\nRails/RenderInline:\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94064#note_1157289970\nRails/SquishedSQLHeredocs:\n Enabled: false\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96675#note_1094403693\nRails/WhereExists:\n Enabled: false\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94061#note_1160343775\nRails/SkipsModelValidations:\n Enabled: false\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/378105#note_1138487716\nRails/HasManyOrHasOneDependent:\n Enabled: false\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94019#note_1139714728\nRails/CreateTableWithTimestamps:\n Enabled: false\n\nRails/AvoidTimeComparison:\n Enabled: true\n\n# GitLab ###################################################################\n\nGitlab/ModuleWithInstanceVariables:\n Enable: true\n Exclude:\n # We ignore Rails helpers right now because it's hard to workaround it\n - app/helpers/**/*_helper.rb\n - ee/app/helpers/**/*_helper.rb\n # We ignore Rails mailers right now because it's hard to workaround it\n - app/mailers/emails/**/*.rb\n - ee/**/emails/**/*.rb\n # We ignore spec helpers because it usually doesn't matter\n - spec/support/**/*.rb\n - features/steps/**/*.rb\n\nGitlab/ConstGetInheritFalse:\n Enabled: true\n Exclude:\n - 'qa/bin/*'\n\nGitlab/ChangeTimezone:\n Enabled: true\n Exclude:\n - config/initializers/time_zone.rb\n\nGitlab/HTTParty:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nGitlab/Json:\n Enabled: true\n Exclude:\n - 'qa/**/*'\n - 'scripts/**/*'\n - 'lib/quality/**/*'\n - 'tooling/danger/**/*'\n\nGitlab/AvoidUploadedFileFromParams:\n Enabled: true\n Exclude:\n - 'lib/gitlab/middleware/multipart.rb'\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nGitlab/EventStoreSubscriber:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/496562\nGitlab/Ai/OrderConstants:\n Enabled: true\n Include:\n - 'ee/lib/ai/context/dependencies/config_files/constants.rb'\n\nGitlab/DocumentationLinks/HardcodedUrl:\n Enabled: true\n Exclude:\n - danger/**/*\n - ee/spec/**/*\n - haml_lint/**/*\n - keeps/**/*\n - qa/**/*\n - rubocop/**/*\n - scripts/**/*\n - spec/**/*\n - tooling/**/*\n\nGitlab/DocumentationLinks/Link:\n Enabled: true\n\nGitlabSecurity/PublicSend:\n Enabled: true\n Exclude:\n - 'config/**/*'\n - 'db/**/*'\n - 'features/**/*'\n - 'lib/**/*.rake'\n - 'qa/**/*'\n - 'spec/**/*'\n - 'ee/db/**/*'\n - 'ee/lib/**/*.rake'\n - 'ee/spec/**/*'\n\nDatabase/MultipleDatabases:\n Enabled: true\n Exclude:\n - 'ee/db/**/*.rb'\n - 'spec/migrations/**/*.rb'\n - 'lib/tasks/gitlab/db.rake'\n - 'ee/lib/ee/gitlab/background_migration/**/*.rb'\n - 'spec/lib/gitlab/background_migration/**/*.rb'\n - 'spec/lib/gitlab/database/**/*.rb'\n - 'spec/tasks/gitlab/db_rake_spec.rb'\n\nMigration/BatchMigrationsPostOnly:\n Enabled: true\n Include:\n - 'db/migrate/*.rb'\n - 'db/post_migrate/*.rb'\n\nMigration/EnsureFactoryForTable:\n Enabled: true\n Include:\n - 'db/migrate/*.rb'\n\nMigration/UnfinishedDependencies:\n Enabled: true\n Include:\n - 'db/migrate/*.rb'\n - 'db/post_migrate/*.rb'\n\nBackgroundMigration/FeatureCategory:\n Enabled: true\n Include:\n - 'lib/gitlab/background_migration/*.rb'\n\nBackgroundMigration/DictionaryFile:\n Enabled: true\n EnforcedSince: 20231018100907\n Include:\n - 'db/post_migrate/*.rb'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/442751\nGitlab/AvoidCurrentOrganization:\n Enabled: true\n Exclude:\n - 'app/controllers/**/*'\n - 'ee/app/controllers/**/*'\n - 'app/helpers/**/*'\n - 'ee/app/helpers/**/*'\n - 'app/views/**/*'\n - 'ee/app/views/**/*'\n - 'lib/api/**/*'\n - 'ee/lib/api/**/*'\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n - 'lib/gitlab/current_settings.rb'\n - 'lib/gitlab/middleware/organizations/current.rb'\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\n# See https://gitlab.com/groups/gitlab-org/-/epics/7374\nGitlab/AvoidGitlabInstanceChecks:\n Enabled: true\n Exclude:\n - 'db/migrate/*.rb'\n - 'db/post_migrate/*.rb'\n - 'ee/db/fixtures/**/*'\n\nGitlab/EeOnlyClass:\n Enabled: true\n Include:\n - 'ee/**/ee/**/*.rb'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/373194\nGitlab/RSpec/AvoidSetup:\n Enabled: true\n Include:\n - 'ee/spec/features/registrations/saas/**/*'\n - 'ee/spec/features/gitlab_subscriptions/trials/creation_*'\n - 'ee/spec/features/gitlab_subscriptions/trials/access_denied_spec.rb'\n - 'ee/spec/features/gitlab_subscriptions/trials/duo_pro/**/*'\n - 'ee/spec/features/gitlab_subscriptions/trials/duo_enterprise/**/*'\n\nRSpec/DuplicateSpecLocation:\n Enabled: true\n\n# https://docs.gitlab.com/ee/development/software_design.html#bounded-contexts\nGitlab/BoundedContexts:\n Enabled: true\n Exclude:\n - '**/lib/api/**/*'\n - 'ee/lib/ee/api/**/*'\n - '**/app/assets/**/*'\n - '**/app/channels/**/*'\n - '**/app/components/**/*'\n - '**/app/controllers/**/*'\n - '**/app/helpers/**/*'\n - '**/app/presenters/**/*'\n - '**/app/serializers/**/*'\n - '**/lib/tasks/**/*'\n - '**/app/views/**/*'\n - 'app/experiments/*_experiment.rb' # Experiments are short-lived. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/186484#note_2428354288\n - 'ee/app/experiments/*_experiment.rb'\n - 'ee/app/experiments/ee/application_experiment.rb'\n Include:\n - 'app/**/*'\n - 'ee/app/**/*'\n - 'lib/**/*'\n - 'ee/lib/**/*'\n\nGitlab/HardDeleteCalls:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n - 'ee/db/fixtures/**/*'\n - 'lib/tasks/**/*.rake'\n - 'ee/lib/tasks/**/*.rake'\n - 'app/services/groups/destroy_service.rb'\n - 'app/services/projects/destroy_service.rb'\n - 'app/workers/group_destroy_worker.rb'\n - 'app/workers/project_destroy_worker.rb'\n - 'app/services/namespaces/groups/adjourned_deletion_service.rb'\n - 'app/services/projects/adjourned_deletion_service.rb'\n\nGitlab/PolicyRuleBoolean:\n Enabled: true\n Include:\n - 'app/policies/**/*'\n - 'ee/app/policies/**/*'\n\nCop/InjectEnterpriseEditionModule:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nStyle/ReturnNil:\n Enabled: true\n\nCop/ActiveRecordAssociationReload:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nCop/ActiveModelErrorsDirectManipulation:\n Enabled: true\n\nGitlab/AvoidFeatureGet:\n Enabled: true\n\nGitlab/FeatureFlagKeyDynamic:\n Enabled: true\n\nRSpec/WebMockEnable:\n Enabled: true\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n Exclude:\n - 'spec/support/webmock.rb'\n\nNaming/PredicateName:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/93828#note_1050812797\nNaming/RescuedExceptionsVariableName:\n Enabled: false\n\nRSpec/AvoidTestProf:\n Include:\n - 'spec/tasks/**/*.rb'\n - 'ee/spec/tasks/**/*.rb'\n - 'spec/migrations/**/*.rb'\n - 'ee/spec/migrations/**/*.rb'\n - 'spec/lib/gitlab/background_migration/**/*.rb'\n - 'ee/spec/lib/gitlab/background_migration/**/*.rb'\n - 'ee/spec/lib/ee/gitlab/background_migration/**/*.rb'\n\nRSpec/AvoidConditionalStatements:\n Enabled: true\n Include:\n - 'spec/features/**/*.rb'\n - 'ee/spec/features/**/*.rb'\n\nRSpec/FactoriesInMigrationSpecs:\n Enabled: true\n Include:\n - 'spec/migrations/**/*.rb'\n - 'ee/spec/migrations/**/*.rb'\n - 'spec/lib/gitlab/background_migration/**/*.rb'\n - 'spec/lib/ee/gitlab/background_migration/**/*.rb'\n - 'ee/spec/lib/ee/gitlab/background_migration/**/*.rb'\n\nRSpec/FeatureCategory:\n Enabled: true\n Exclude:\n - 'qa/**/*.rb'\n - 'gems/**/*.rb'\n\nRSpec/FactoryBot/AvoidCreate:\n Enabled: true\n Include:\n - 'spec/presenters/**/*.rb'\n - 'spec/serializers/**/*.rb'\n - 'spec/helpers/**/*.rb'\n - 'spec/views/**/*.rb'\n - 'spec/components/**/*.rb'\n - 'spec/mailers/**/*.rb'\n - 'spec/routes/directs/*.rb'\n - 'spec/lib/sidebars/**/*.rb'\n - 'ee/spec/presenters/**/*.rb'\n - 'ee/spec/serializers/**/*.rb'\n - 'ee/spec/helpers/**/*.rb'\n - 'ee/spec/views/**/*.rb'\n - 'ee/spec/components/**/*.rb'\n - 'ee/spec/mailers/**/*.rb'\n - 'ee/spec/routes/directs/*.rb'\n - 'ee/spec/lib/sidebars/**/*.rb'\n\nRSpec/BeforeAll:\n Enabled: true\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n # Conflict with RSpec/AvoidTestProf\n Exclude:\n - 'spec/tasks/**/*.rb'\n - 'ee/spec/tasks/**/*.rb'\n - 'spec/migrations/**/*.rb'\n - 'ee/spec/migrations/**/*.rb'\n - 'spec/lib/gitlab/background_migration/**/*.rb'\n - 'ee/spec/lib/gitlab/background_migration/**/*.rb'\n - 'ee/spec/lib/ee/gitlab/background_migration/**/*.rb'\n - 'spec/lib/gitlab/database/**/*.rb'\n\nRSpec/FactoryBot/StrategyInCallback:\n Enabled: true\n Include:\n - 'spec/factories/**/*.rb'\n - 'ee/spec/factories/**/*.rb'\n\nCop/IncludeSidekiqWorker:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nGitlab/Union:\n Enabled: true\n Exclude:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nAPI/Base:\n Enabled: true\n Include:\n - 'lib/**/api/**/*.rb'\n - 'ee/**/api/**/*.rb'\n\nAPI/GrapeArrayMissingCoerce:\n Enabled: true\n Include:\n - 'lib/**/api/**/*.rb'\n - 'ee/**/api/**/*.rb'\n\nAPI/ClassLevelAllowAccessWithScope:\n Enabled: true\n Include:\n - 'lib/**/api/**/*.rb'\n - 'ee/lib/**/api/**/*.rb'\n\nCop/SidekiqOptionsQueue:\n Enabled: true\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nGraphql/ResolverType:\n Enabled: true\n Exclude:\n - 'app/graphql/resolvers/base_resolver.rb'\n Include:\n - 'app/graphql/resolvers/**/*'\n - 'ee/app/graphql/resolvers/**/*'\n\nGraphql/AuthorizeTypes:\n Enabled: true\n Include:\n - 'app/graphql/types/**/*'\n - 'ee/app/graphql/types/**/*'\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nGraphql/IDType:\n Enabled: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n\nGraphql/JSONType:\n Enabled: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nGraphql/OldTypes:\n Enabled: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n - 'spec/graphql/**/*'\n - 'spec/requests/api/graphql/**/*'\n - 'ee/spec/graphql/**/*'\n - 'ee/spec/requests/api/graphql/**/*'\n\nRSpec/EnvAssignment:\n Enable: true\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n Exclude:\n - 'spec/**/fast_spec_helper.rb'\n - 'ee/spec/**/fast_spec_helper.rb'\n - 'spec/**/spec_helper.rb'\n - 'ee/spec/**/spec_helper.rb'\n\nRSpec/EnvMocking:\n Enable: true\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n Exclude:\n - 'spec/**/fast_spec_helper.rb'\n - 'ee/spec/**/fast_spec_helper.rb'\n - 'spec/**/spec_helper.rb'\n - 'ee/spec/**/spec_helper.rb'\n\nRSpec/BeSuccessMatcher:\n Enabled: true\n Include:\n - 'spec/controllers/**/*'\n - 'ee/spec/controllers/**/*'\n - 'spec/support/shared_examples/controllers/**/*'\n - 'ee/spec/support/shared_examples/controllers/**/*'\n - 'spec/support/controllers/**/*'\n - 'ee/spec/support/controllers/**/*'\n\nScalability/FileUploads:\n Enabled: true\n Include:\n - 'lib/api/**/*.rb'\n - 'ee/lib/api/**/*.rb'\n\nGraphql/Descriptions:\n Enabled: true\n AutoCorrect: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n\nGraphql/EnumNames:\n Enabled: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n\nGraphql/EnumValues:\n Enabled: true\n Include:\n - 'app/graphql/**/*'\n - 'ee/app/graphql/**/*'\n\n# Cops for upgrade to gitlab-styles 3.1.0\nRSpec/ImplicitSubject:\n Enabled: false\n\n# Already covered by `RSpec::Configuration#on_potential_false_positives = :raise`.\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86429\nRSpec/UnspecifiedException:\n Enabled: false\n\nRSpec/HaveGitlabHttpStatus:\n Enabled: true\n Exclude:\n - 'spec/support/matchers/have_gitlab_http_status.rb'\n Include:\n - 'spec/**/*'\n - 'ee/spec/**/*'\n\nRSpec/ContextWording:\n Prefixes:\n - 'when'\n - 'with'\n - 'without'\n - 'for'\n - 'and'\n - 'on'\n - 'in'\n - 'as'\n - 'if'\n\nStyle/MultilineWhenThen:\n Enabled: false\n\n# We use EnforcedStyle of comparison here due to it being better\n# performing code as seen in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36221#note_375659681\nStyle/NumericPredicate:\n EnforcedStyle: comparison\n\nCop/BanCatchThrow:\n Enabled: true\n\nPerformance/ReadlinesEach:\n Enabled: true\n\nPerformance/ChainArrayAllocation:\n Enabled: true\n Include:\n - 'lib/gitlab/import_export/**/*'\n - 'ee/lib/gitlab/import_export/**/*'\n - 'ee/lib/ee/gitlab/import_export/**/*'\n\nRails/TimeZone:\n Enabled: true\n EnforcedStyle: 'flexible'\n Include:\n - 'app/controllers/**/*'\n - 'app/services/**/*'\n - 'lib/**/*'\n - 'spec/controllers/**/*'\n - 'spec/services/**/*'\n - 'spec/lib/**/*'\n - 'ee/app/controllers/**/*'\n - 'ee/app/services/**/*'\n - 'ee/spec/controllers/**/*'\n - 'ee/spec/services/**/*'\n - 'app/models/**/*'\n - 'spec/models/**/*'\n - 'ee/app/models/**/*'\n - 'ee/spec/models/**/*'\n - 'app/workers/**/*'\n - 'spec/workers/**/*'\n - 'ee/app/workers/**/*'\n - 'ee/spec/workers/**/*'\n - 'ee/lib/**/*'\n - 'ee/spec/lib/**/*'\n - 'spec/features/**/*'\n - 'ee/spec/features/**/*'\n\nRails/SaveBang:\n Enabled: true\n AllowImplicitReturn: false\n AllowedReceivers:\n - ActionDispatch::TestRequest\n - Tempfile\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n Exclude:\n - spec/models/wiki_page/**/*\n - spec/models/wiki_page_spec.rb\n\nCop/PutProjectRoutesUnderScope:\n Include:\n - 'config/routes/project.rb'\n - 'ee/config/routes/project.rb'\n\nCop/PutGroupRoutesUnderScope:\n Include:\n - 'config/routes/group.rb'\n - 'ee/config/routes/group.rb'\n\nMigration/ComplexIndexesRequireName:\n Exclude:\n - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/\n - !ruby/regexp /\Adb\/(post_)?migrate\/20200[1-7].*\.rb\z/\n\nMigration/ReferToIndexByName:\n Exclude:\n - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/\n - !ruby/regexp /\Adb\/(post_)?migrate\/20200[1-7].*\.rb\z/\n - !ruby/regexp /\Aee\/db\/geo\/(post_)?migrate\/201.*\.rb\z/\n\nMigration/PreventIndexCreation:\n Exclude:\n - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/\n - !ruby/regexp /\Adb\/(post_)?migrate\/2020.*\.rb\z/\n - !ruby/regexp /\Adb\/(post_)?migrate\/20210[1-6].*\.rb\z/\n\nMigration/SchemaAdditionMethodsNoPost:\n Enabled: true\n Include:\n - db/post_migrate/*.rb\n EnforcedSince: 20221024034228\n\nMigration/AsyncPostMigrateOnly:\n Enabled: true\n Include:\n - db/**/*.rb\n EnforcedSince: 20240115115029\n\nGitlab/RailsLogger:\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nRSpec/FactoryBot/InlineAssociation:\n Include:\n - 'spec/factories/**/*.rb'\n - 'ee/spec/factories/**/*.rb'\n\n# WIP: https://gitlab.com/gitlab-org/gitlab/-/issues/321982\nGitlab/NamespacedClass:\n Exclude:\n - 'config/**/*.rb'\n - 'db/**/*.rb'\n - 'ee/bin/**/*'\n - 'ee/db/**/*.rb'\n - 'ee/elastic/**/*.rb'\n - 'scripts/**/*'\n - 'spec/fixtures/migrations/**/*.rb'\n - 'spec/migrations/**/*.rb'\n - 'app/experiments/**/*_experiment.rb'\n - 'ee/app/experiments/**/*_experiment.rb'\n\nLint/HashCompareByIdentity:\n Enabled: true\n\nLint/RedundantSafeNavigation:\n Enabled: true\n\nStyle/ClassEqualityComparison:\n Enabled: true\n\n# WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/207950\nCop/UserAdmin:\n Enabled: true\n Exclude:\n - 'app/controllers/admin/sessions_controller.rb'\n - 'app/controllers/concerns/enforces_admin_authentication.rb'\n - 'app/policies/base_policy.rb'\n - 'lib/gitlab/auth/current_user_mode.rb'\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n - 'qa/**/*.rb'\n\nStyle/InlineDisableAnnotation:\n Enabled: true\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/327495\nStyle/RegexpLiteral:\n Enabled: false\n\nStyle/RegexpLiteralMixedPreserve:\n Enabled: true\n SupportedStyles:\n - slashes\n - percent_r\n - mixed\n - mixed_preserve\n EnforcedStyle: mixed_preserve\n\n# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94317#note_1139610896\nStyle/Lambda:\n EnforcedStyle: literal\n\nRSpec/TopLevelDescribePath:\n Exclude:\n - 'spec/fixtures/**/*.rb'\n - 'ee/spec/fixtures/**/*.rb'\n\nQA/SelectorUsage:\n Enabled: true\n Include:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n Exclude:\n - 'spec/rubocop/**/*_spec.rb'\n\nQA/FeatureFlags:\n Enabled: true\n Include:\n - 'qa/qa/specs/features/**/*.rb'\n\nPerformance/ActiveRecordSubtransactions:\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nPerformance/ActiveRecordSubtransactionMethods:\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n\nMigration/BatchedMigrationBaseClass:\n Enabled: false\n\nBackgroundMigration/AvoidSilentRescueExceptions:\n Enabled: false\n\nMigration/AvoidFinalizeBackgroundMigration:\n Include:\n - 'db/post_migrate/*.rb'\n\nStyle/ClassAndModuleChildren:\n Enabled: true\n\nFips/OpenSSL:\n Enabled: false\n\nGemfile/MissingFeatureCategory:\n Enabled: true\n Include:\n - 'Gemfile'\n\nGemspec/AvoidExecutingGit:\n Enabled: false\n\nLint/BinaryOperatorWithIdenticalOperands:\n Exclude:\n - '{,ee/,qa/,jh/}spec/**/*_{spec,shared_examples,shared_context}.rb'\n\nCop/SidekiqRedisCall:\n Enabled: true\n Exclude:\n - '{,ee/,jh/}spec/**/*'\n - 'lib/gitlab/database/migration_helpers.rb'\n - 'lib/gitlab/sidekiq_migrate_jobs.rb'\n - 'lib/gitlab/sidekiq_versioning.rb'\n\nCop/RedisQueueUsage:\n Enabled: true\n Exclude:\n - '{,ee/,jh/}spec/**/*'\n - 'config/initializers/sidekiq.rb'\n - 'lib/gitlab/instrumentation/redis.rb'\n - 'lib/gitlab/redis.rb'\n - 'lib/system_check/app/redis_version_check.rb'\n - 'lib/gitlab/mail_room.rb'\n - 'lib/gitlab/sidekiq_sharding/scheduled_enq.rb'\n - 'lib/gitlab/sidekiq_sharding/router.rb'\n - 'app/workers/concerns/application_worker.rb'\n - 'lib/gitlab/sidekiq_queue.rb'\n\nCop/SidekiqApiUsage:\n Enabled: true\n Exclude:\n - '{,ee/,jh/}spec/**/*'\n - 'db/post_migrate/**/*'\n - 'lib/gitlab/sidekiq_middleware/**/*'\n - 'lib/gitlab/background_migration/**/*'\n - 'lib/api/sidekiq_metrics.rb'\n - 'lib/gitlab/sidekiq_config.rb'\n - 'lib/gitlab/sidekiq_queue.rb'\n - 'config/initializers/sidekiq.rb'\n - 'config/initializers/forbid_sidekiq_in_transactions.rb'\n - 'lib/gitlab/sidekiq_sharding/scheduled_enq.rb'\n - 'lib/gitlab/sidekiq_sharding/router.rb'\n - 'lib/gitlab/redis/queues.rb'\n - 'app/workers/concerns/application_worker.rb'\n - 'config/initializers/active_job_shard_support.rb'\n\nCop/FeatureFlagUsage:\n Include:\n - 'lib/gitlab/redis/**/*.rb'\n - 'lib/gitlab/patch/**/*.rb'\n - 'lib/gitlab/instrumentation/**/*.rb'\n\nStyle/ArgumentsForwarding:\n Enabled: true\n UseAnonymousForwarding: false # Turn this on only after Ruby 3.2+ is required\n\nSearch/NamespacedClass:\n Enabled: true\n Exclude:\n - 'config/**/*.rb'\n - 'ee/config/**/*.rb'\n - 'db/**/*.rb'\n - 'ee/db/**/*.rb'\n - 'ee/bin/**/*'\n - 'ee/elastic/**/*.rb' # Advanced Search migrations issue: <>\n - 'scripts/**/*'\n - 'spec/migrations/**/*.rb'\n - 'app/experiments/**/*_experiment.rb'\n - 'ee/app/experiments/**/*_experiment.rb'\n - 'lib/gitlab/background_migration/**/*.rb'\n - 'ee/lib/ee/gitlab/background_migration/**/*.rb'\n - 'lib/gitlab/instrumentation/**/*.rb'\n - 'lib/gitlab/usage/metrics/instrumentations/**/*.rb'\n - 'ee/lib/gitlab/usage/metrics/instrumentations/**/*.rb'\n - 'lib/gitlab/sidekiq_middleware/pause_control/strategies/zoekt.rb'\n - 'lib/tasks/**/*.rake'\n - 'ee/lib/tasks/**/*.rake'\n\nSidekiqLoadBalancing/WorkerDataConsistency:\n Enabled: true\n Include:\n - 'app/workers/**/*'\n - 'ee/app/workers/**/*'\n\nSidekiq/EnforceDatabaseHealthSignalDeferral:\n Enabled: true\n Include:\n - 'app/workers/**/*'\n - 'ee/app/workers/**/*'\n\nGraphql/ResourceNotAvailableError:\n Exclude:\n # Definition of `raise_resource_not_available_error!`\n - 'lib/gitlab/graphql/authorize/authorize_resource.rb'\n\nRSpec/FactoryBot/LocalStaticAssignment:\n Include:\n - spec/factories/**/*.rb\n - ee/spec/factories/**/*.rb\n\nRails/TransactionExitStatement:\n Enabled: true\n\nSearch/AvoidCheckingFinishedOnDeprecatedMigrations:\n Include:\n - 'ee/app/models/**/*.rb'\n - 'ee/lib/elastic/**/*.rb'\n - 'ee/lib/gitlab/elastic/**/*.rb'\n - 'ee/spec/support/helpers/elasticsearch_helpers.rb'\n\n# See https://gitlab.com/gitlab-org/gitlab/-/issues/407233\nCop/ExperimentsTestCoverage:\n Enabled: true\n Include:\n - 'app/**/*'\n - 'lib/**/*'\n - 'ee/app/**/*'\n - 'ee/lib/**/*'\n\nRSpec/UselessDynamicDefinition:\n Exclude:\n - 'spec/factories/**/*'\n - 'ee/spec/factories/**/*'\n\nDatabase/AvoidUsingPluckWithoutLimit:\n Enabled: true\n Exclude:\n - 'spec/**/*.rb'\n - 'ee/spec/**/*.rb'\n - 'qa/qa/specs/**/*.rb'\n\nStyle/SymbolProc:\n AllowedMethods:\n - define_method\n - mail\n - respond_to\n # See https://gitlab.com/gitlab-org/gitlab/-/issues/434151\n - each_batch\n - each_sub_batch\n\nStyle/HashSyntax:\n EnforcedShorthandSyntax: either_consistent\n\nGitlab/LicenseAvailableUsage:\n Enabled: true\n Include:\n - 'app/models/application_setting.rb'\n - 'ee/app/models/ee/application_setting.rb'\n - 'lib/gitlab/current_settings.rb'\n\nGitlab/TokenWithoutPrefix:\n Enabled: true\n Include:\n - 'app/**/*'\n - 'lib/**/*'\n - 'ee/app/**/*'\n - 'ee/lib/**/*'\n\nRake/TopLevelMethodDefinition:\n Enabled: true\n Include:\n - '**/Rakefile'\n - 'lib/tasks/**/*.rake'\n - 'ee/lib/tasks/**/*.rake'\n\nRails/StrongParams:\n Enabled: true\n SafeAutoCorrect: false\n Include:\n - 'app/controllers/**/*'\n - 'ee/app/controllers/**/*'\n\nQA/FabricateUsage:\n Include:\n - 'qa/qa/specs/**/*_spec.rb'\n\nGitlab/NoFindInWorkers:\n Enabled: true\n Include:\n - app/workers/**/*\n - ee/app/workers/**/*\n\nTailwind/StringInterpolation:\n Enabled: true\n Include:\n - '{,ee/,jh/}app/helpers/**/*.rb'\n - '{,ee/,jh/}app/components/**/*.{haml,rb}'\n - '{,ee/,jh/}app/views/**/*.haml'\n\nCop/ActiveRecordDependent:\n Include:\n - ee/app/models/**/*.rb\n\nGitlab/Rails/AttrEncrypted:\n Enabled: true\n Include:\n - '{,ee/,jh/}app/models/**/*.rb'\n - 'db/migrate/*.rb'\n - '{,ee/,jh/}/lib/(ee/)?gitlab/background_migration/*.rb'\n\nMigration/PreventAddingAttrEncryptedColumns:\n Enabled: true\n Include:\n - 'db/migrate/*.rb'\n EnforcedSince: 20250311000000\n | dataset_sample\yaml\gitlabhq_gitlabhq\.rubocop.yml | .rubocop.yml | YAML | 30,957 | 0.95 | 0.006787 | 0.054878 | vue-tools | 385 | 2024-05-31T21:15:04.004572 | BSD-3-Clause | false | 35a02f12dc5410c1366ee4fb1aa3d80a |
version: 2\nupdates:\n - package-ecosystem: cargo\n directory: '/'\n schedule:\n interval: monthly\n commit-message:\n # Avoid non-"purposeful" prefix due to Dependabot misdetecting style (see `DEVELOPMENT.md`).\n prefix: ''\n groups:\n cargo:\n patterns: ['*']\n - package-ecosystem: github-actions\n directory: '/'\n schedule:\n interval: weekly\n commit-message:\n # Avoid non-"purposeful" prefix due to Dependabot misdetecting style (see `DEVELOPMENT.md`).\n prefix: ''\n groups:\n github-actions:\n patterns: ['*']\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\dependabot.yml | dependabot.yml | YAML | 579 | 0.8 | 0 | 0.090909 | vue-tools | 554 | 2024-01-18T21:25:36.997633 | BSD-3-Clause | false | e1357d9f90e3ea639d3558bd9447ecb3 |
name: Report undesirable behaviour 🐛\ndescription: Create an issue to help us improve\nbody:\n - type: markdown\n attributes:\n value: Thanks for contributing by creating an issue! ❤️\n - type: textarea\n attributes:\n label: Current behavior 😯\n description: Describe what happens instead of the expected behavior.\n - type: textarea\n attributes:\n label: Expected behavior 🤔\n description: Describe what should happen.\n - type: textarea\n attributes:\n label: Git behavior\n description: Describe what Git does under similar circumstances.\n - type: textarea\n attributes:\n label: Steps to reproduce 🕹\n description: Describe how we can reproduce the behaviour.\n placeholder: |\n 1.\n 2.\n 3. …\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\ISSUE_TEMPLATE\bug_report.yml | bug_report.yml | YAML | 786 | 0.7 | 0.038462 | 0 | vue-tools | 34 | 2024-05-22T14:24:14.187111 | MIT | false | 780c4b383d86da858652ccf782f727cc |
name: Feature request 💄\ndescription: Suggest an improvement\nlabels: ["enhancement"]\nbody:\n - type: markdown\n attributes:\n value: Thanks for contributing by creating an issue! ❤️\n - type: textarea\n attributes:\n label: Summary 💡\n description: Describe how it should work.\n - type: textarea\n attributes:\n label: Motivation 🔦\n description: >\n What are you trying to accomplish?\n How has the lack of this feature affected you?\n Are there other tools or libraries already showing how (_parts of_) it should work?\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\ISSUE_TEMPLATE\feature_request.yml | feature_request.yml | YAML | 578 | 0.7 | 0.055556 | 0 | react-lib | 193 | 2024-06-15T13:05:03.930487 | BSD-3-Clause | false | a8f554089d9fdebe9ee015b0a8a61c6b |
name: ci\n\non:\n push:\n branches:\n - main\n - 'run-ci/**'\n - '**/run-ci/**'\n tags-ignore:\n - '*'\n pull_request:\n branches:\n - main\n workflow_dispatch:\n\npermissions:\n contents: read\n\nenv:\n CARGO_TERM_COLOR: always\n CLICOLOR: '1'\n\njobs:\n pure-rust-build:\n runs-on: ubuntu-latest\n\n container: debian:stable-slim\n\n steps:\n - uses: actions/checkout@v4\n - name: Prerequisites\n run: |\n prerequisites=(\n ca-certificates\n curl\n gcc # rustc calls gcc to invoke the linker.\n libc-dev # rustc, in the toolchain we are using, dynamically links to the system libc.\n )\n apt-get update\n apt-get install --no-install-recommends -y -- "${prerequisites[@]}"\n shell: bash # This step needs `bash`, and the default in container jobs is `sh`.\n - name: Verify that we are in an environment with limited dev tools\n run: |\n set -x\n for package in cmake g++ libssl-dev make pkgconf pkg-config; do\n if dpkg-query --status -- "$package"; then\n exit 1\n fi\n done\n for cmd in cmake g++ make pkgconf pkg-config; do\n if command -v -- "$cmd"; then\n exit 1\n fi\n done\n - name: Install Rust via Rustup\n run: |\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs |\n sh -s -- -y --profile minimal\n - name: Add Rust tools to path\n run: echo "PATH=$HOME/.cargo/bin:$PATH" >> "$GITHUB_ENV"\n - name: Generate dependency tree\n run: cargo tree --locked --no-default-features --features max-pure > tree.txt\n - name: Scan for dependencies that build C or C++ code\n run: |\n pattern='.*\b(-sys|cc|cmake|pkg-config|vcpkg)\b.*'\n ! GREP_COLORS='ms=30;48;5;214' grep --color=always -Ex -C 1000000 -e "$pattern" tree.txt\n continue-on-error: true\n - name: Check for unrecognized *-sys dependencies\n run: |\n ! grep -qP '(?<!\b(linux-raw|libz-rs))-sys\b' tree.txt\n - name: Wrap cc1 (and cc1plus if present) to record calls\n run: |\n set -o noclobber # Catch any collisions with existing entries in /usr/local.\n\n # Define the wrapper script for a compiler driver (for cc1 or cc1plus). This wrapper\n # records calls, then delegates to the executable it wraps. When recording calls, writes\n # to the log are synchronized so fragments of separate log entries aren't interleaved,\n # even in concurrent runs. This wrapper knows what executable it is wrapping because,\n # when deployed, this wrapper (or a symlink) replaces that executable, which will itself\n # have been moved aside by being renamed with a `.orig` suffix, so this can call it.\n cat >/usr/local/bin/wrapper1 <<'EOF'\n #!/bin/sh\n set -e\n printf '%s\n' "$0 $*" |\n flock /run/lock/wrapper1.fbd136bd-9b1b-448d-84a9-e18be53ae63c.lock \\n tee -a -- /var/log/wrapper1.log ~/display >/dev/null # We'll link ~/display later.\n exec "$0.orig" "$@"\n EOF\n\n # Define the script that performs the wrapping. This script shall be run once for each\n # executable to be wrapped, renaming it with a `.orig` suffix and replacing it with a\n # symlink to the wrapper script, defined above.\n cat >/usr/local/bin/wrap1 <<'EOF'\n #!/bin/sh\n set -e\n dir="$(dirname -- "$1")"\n base="$(basename -- "$1")"\n cd -- "$dir"\n mv -- "$base" "$base.orig"\n ln -s -- /usr/local/bin/wrapper1 "$base"\n EOF\n\n # Define a helper file that, when sourced, wires up the `~/display` symlink `wrapper1`\n # uses to report calls as GitHub Actions step output (in addition to writing them to a\n # log file). This is needed because stdout and stderr are both redirected elsewhere when\n # the wrapper actually runs, and `/dev/tty` is not usable. This must be sourced in the\n # same step as the `cargo` command that causes wrapped executables to be run, because\n # different steps write to different pipe objects. (This also needs the shell that\n # sourced it to remain running. But that is not the cause of the underlying limitation.)\n cat >/usr/local/bin/set-display.sh <<'EOF'\n ln -s -- "/proc/$$/fd/1" ~/display\n EOF\n\n chmod +x /usr/local/bin/wrapper1 /usr/local/bin/wrap1\n mkdir /run/lock/wrapper1.fbd136bd-9b1b-448d-84a9-e18be53ae63c.lock\n\n find /usr/lib/gcc \( -name cc1 -o -name cc1plus \) \\n -print -exec /usr/local/bin/wrap1 {} \;\n - name: Build max-pure with limited dev tools and log cc1\n run: |\n . /usr/local/bin/set-display.sh\n cargo install --debug --locked --no-default-features --features max-pure --path .\n - name: Show logged C and C++ compilations (should be none)\n run: |\n ! cat /var/log/wrapper1.log\n continue-on-error: true\n\n test:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: Swatinem/rust-cache@v2\n - name: Setup dependencies\n run: |\n sudo apt-get update\n sudo apt-get install -y --no-install-recommends liblzma-dev\n - uses: extractions/setup-just@v3\n - uses: taiki-e/install-action@v2\n with:\n tool: nextest\n - name: test\n env:\n GIX_TEST_IGNORE_ARCHIVES: '1'\n run: just ci-test\n\n test-journey:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: Swatinem/rust-cache@v2\n - uses: extractions/setup-just@v3\n - name: Run journey tests\n run: just ci-journey-tests\n\n test-fast:\n strategy:\n matrix:\n os:\n - windows-latest\n - macos-latest\n - ubuntu-latest\n - ubuntu-24.04-arm\n\n runs-on: ${{ matrix.os }}\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: Swatinem/rust-cache@v2\n - name: Setup dependencies (macos)\n if: startsWith(matrix.os, 'macos')\n run: brew install openssl gnu-sed\n - name: cargo check default features\n if: startsWith(matrix.os, 'windows')\n run: cargo check --workspace --bins --examples\n - uses: taiki-e/install-action@v2\n with:\n tool: nextest\n - name: Test (nextest)\n env:\n GIX_TEST_CREATE_ARCHIVES_EVEN_ON_CI: '1'\n run: cargo nextest run --workspace --no-fail-fast\n - name: Doctest\n run: cargo test --workspace --doc --no-fail-fast\n - name: Check that tracked archives are up to date\n run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive.\n\n test-fixtures-windows:\n runs-on: windows-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: Swatinem/rust-cache@v2\n - uses: taiki-e/install-action@v2\n with:\n tool: nextest\n - name: Test (nextest)\n id: nextest\n env:\n GIX_TEST_IGNORE_ARCHIVES: '1'\n run: cargo nextest --profile=with-xml run --workspace --no-fail-fast\n continue-on-error: true\n - name: Check for errors\n run: |\n [xml]$junit_xml = Get-Content -Path 'target/nextest/with-xml/junit.xml'\n if ($junit_xml.testsuites.errors -ne 0) { exit 1 }\n - name: Collect actual failures\n run: |\n [xml]$junit_xml = Get-Content -Path 'target/nextest/with-xml/junit.xml'\n\n $actual_failures = $junit_xml.SelectNodes("//testcase[failure]") |\n ForEach-Object { "$($_.classname) $($_.name)" } |\n Sort-Object\n\n Write-Output $actual_failures\n Set-Content -Path 'actual-failures.txt' -Value $actual_failures\n - name: Compare expected and actual failures\n run: |\n # Fail on any differences, even unexpectedly passing tests, so they can be investigated.\n git --no-pager diff --no-index --exit-code --unified=1000000 --color=always -- `\n etc/test-fixtures-windows-expected-failures-see-issue-1358.txt actual-failures.txt\n\n test-32bit:\n strategy:\n matrix:\n container-arch: [ i386, arm32v7 ]\n include:\n - container-arch: i386\n runner-arch: amd64\n runner-os: ubuntu-latest\n host-triple: i686-unknown-linux-gnu\n - container-arch: arm32v7\n runner-arch: arm64\n runner-os: ubuntu-24.04-arm\n host-triple: armv7-unknown-linux-gnueabihf\n\n runs-on: ${{ matrix.runner-os }}\n\n container: ${{ matrix.container-arch }}/debian:stable-slim\n\n steps:\n - name: Prerequisites\n run: |\n prerequisites=(\n build-essential\n ca-certificates\n cmake\n curl\n git\n jq\n libssl-dev\n libstdc++6:${{ matrix.runner-arch }} # To support external 64-bit Node.js for actions.\n pkgconf\n )\n dpkg --add-architecture ${{ matrix.runner-arch }}\n apt-get update\n apt-get install --no-install-recommends -y -- "${prerequisites[@]}"\n shell: bash # This step needs `bash`, and the default in container jobs is `sh`.\n - uses: actions/checkout@v4\n - name: Install Rust via Rustup\n run: |\n # Specify toolchain to avoid possible misdetection based on the 64-bit running kernel.\n curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs |\n sh -s -- -y --default-host ${{ matrix.host-triple }} --profile minimal\n - name: Add Rust tools to path\n run: echo "PATH=$HOME/.cargo/bin:$PATH" >> "$GITHUB_ENV"\n - uses: Swatinem/rust-cache@v2\n - uses: taiki-e/install-action@v2\n with:\n tool: nextest\n - name: Make `system` scope nonempty for "GitInstallation" tests\n run: git config --system gitoxide.imaginary.arbitraryVariable arbitraryValue\n - name: Test (nextest)\n env:\n GIX_TEST_IGNORE_ARCHIVES: '1'\n run: cargo nextest run --workspace --no-fail-fast\n\n test-32bit-windows-size:\n runs-on: windows-latest\n\n env:\n TARGET: i686-pc-windows-msvc\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ env.TARGET }}\n - uses: Swatinem/rust-cache@v2\n - uses: taiki-e/install-action@v2\n with:\n tool: nextest\n - name: Test (nextest)\n run: cargo nextest run --target $env:TARGET --workspace --no-fail-fast size\n\n lint:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@master\n with:\n toolchain: stable\n components: clippy,rustfmt\n - uses: extractions/setup-just@v3\n - name: Run cargo clippy\n run: just clippy -D warnings -A unknown-lints --no-deps\n - name: Run cargo doc\n run: just doc\n - name: Run cargo fmt\n run: cargo fmt --all -- --check\n - name: Install cargo diet\n env:\n CARGO_DIET_TAG: v1.2.7\n run: |\n curl -LSfs "https://raw.githubusercontent.com/the-lean-crate/cargo-diet/refs/tags/$CARGO_DIET_TAG/ci/install.sh" |\n sh -s -- --git the-lean-crate/cargo-diet --target x86_64-unknown-linux-musl --tag "$CARGO_DIET_TAG"\n - name: Run cargo diet\n run: just check-size\n # Let's not fail CI for this, it will fail locally often enough, and a crate a little bigger\n # than allows is no problem either if it comes to that.\n continue-on-error: true\n\n # This job is not required for PR auto-merge, so that sudden announcement of a\n # new advisory does not keep otherwise OK pull requests from being integrated.\n cargo-deny-advisories:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - name: Install tomlq\n run: |\n # The runner already has the `yq` command but not its associated `tomlq` command.\n sudo apt-get update\n sudo apt-get install yq\n - name: Strict check, but omit gix-testtools\n uses: EmbarkStudios/cargo-deny-action@v2\n with:\n command: check advisories\n arguments: --workspace --all-features --exclude gix-testtools\n - name: Configure less strict check\n run: |\n filter='.advisories.ignore += [\n { id: "RUSTSEC-2025-0021", reason: "gix-testtools can’t upgrade from old gix-features yet" }\n ]'\n tomlq "$filter" deny.toml --toml-output > deny-but-ignore-RUSTSEC-2025-0021.toml\n - name: Less strict check, but include gix-testtools\n uses: EmbarkStudios/cargo-deny-action@v2\n with:\n command: check advisories\n arguments: --workspace --all-features\n command-arguments: --config deny-but-ignore-RUSTSEC-2025-0021.toml\n\n cargo-deny:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: EmbarkStudios/cargo-deny-action@v2\n with:\n command: check bans licenses sources\n arguments: --workspace --all-features\n\n wasm:\n name: WebAssembly\n\n runs-on: ubuntu-latest\n\n strategy:\n matrix:\n target: [ wasm32-unknown-unknown, wasm32-wasip1 ]\n\n env:\n TARGET: ${{ matrix.target }}\n\n steps:\n - uses: actions/checkout@v4\n - name: Install Rust\n run: |\n rustup update stable\n rustup default stable\n rustup target add "$TARGET"\n - uses: Swatinem/rust-cache@v2\n - name: 'WASI only: crates without feature toggle'\n if: endsWith(matrix.target, '-wasi')\n run: |\n set +x\n for name in gix-sec; do\n (cd -- "$name" && cargo build --target "$TARGET")\n done\n - name: crates without feature toggles\n run: |\n set +x\n for name in gix-actor gix-attributes gix-bitmap gix-chunk gix-command gix-commitgraph gix-config-value gix-date gix-glob gix-hash gix-hashtable gix-mailmap gix-object gix-packetline gix-path gix-pathspec gix-prompt gix-quote gix-refspec gix-revision gix-traverse gix-url gix-validate; do\n (cd -- "$name" && cargo build --target "$TARGET")\n done\n - name: features of gix-features\n run: |\n set +x\n for feature in progress parallel io-pipe crc32 zlib cache-efficiency-debug; do\n (cd gix-features && cargo build --features "$feature" --target "$TARGET")\n done\n - name: crates with 'wasm' feature\n run: |\n set +x\n for name in gix-pack; do\n (cd -- "$name" && cargo build --features wasm --target "$TARGET")\n done\n - name: gix-pack with all features (including wasm)\n run: cd gix-pack && cargo build --all-features --target "$TARGET"\n\n check-packetline:\n strategy:\n fail-fast: false\n matrix:\n os:\n - ubuntu-latest\n # We consider this script read-only and its effect is the same everywhere.\n # However, when changes are made to `etc/copy-packetline.sh`, re-enable the other platforms for testing.\n # - macos-latest\n # - windows-latest\n\n runs-on: ${{ matrix.os }}\n\n defaults:\n run:\n shell: bash # Use bash even on Windows, if we ever reenable windows-latest for testing.\n\n steps:\n - uses: actions/checkout@v4\n - name: Check that working tree is initially clean\n run: |\n set -x\n git status\n git diff --exit-code\n - name: Regenerate gix-packetline-blocking/src\n run: etc/copy-packetline.sh\n - name: Check that gix-packetline-blocking/src was already up to date\n run: |\n set -x\n git status\n git diff --exit-code\n\n # Check that only jobs intended not to block PR auto-merge are omitted as\n # dependencies of the `tests-pass` job below, so that whenever a job is\n # added, a decision is made about whether it must pass for PRs to merge.\n check-blocking:\n runs-on: ubuntu-latest\n\n env:\n # List all jobs that are intended NOT to block PR auto-merge here.\n EXPECTED_NONBLOCKING_JOBS: |-\n cargo-deny-advisories\n wasm\n tests-pass\n\n defaults:\n run:\n shell: bash # Without this, the shell here is `bash` but without `-o pipefail`.\n\n steps:\n - name: Find this workflow\n run: |\n relative_workflow_with_ref="${GITHUB_WORKFLOW_REF#"$GITHUB_REPOSITORY/"}"\n echo "WORKFLOW_PATH=${relative_workflow_with_ref%@*}" >> "$GITHUB_ENV"\n - uses: actions/checkout@v4\n with:\n sparse-checkout: ${{ env.WORKFLOW_PATH }}\n - name: Get all jobs\n run: yq '.jobs | keys.[]' -- "$WORKFLOW_PATH" | sort | tee all-jobs.txt\n - name: Get blocking jobs\n run: yq '.jobs.tests-pass.needs.[]' -- "$WORKFLOW_PATH" | sort | tee blocking-jobs.txt\n - name: Get jobs we intend do not block\n run: sort <<<"$EXPECTED_NONBLOCKING_JOBS" | tee expected-nonblocking-jobs.txt\n - name: Each job must block PRs or be declared not to\n run: |\n sort -m blocking-jobs.txt expected-nonblocking-jobs.txt |\n diff --color=always -U1000 - all-jobs.txt\n\n # Dummy job to have a stable name for the "all tests pass" requirement\n tests-pass:\n name: Tests pass\n\n needs:\n - pure-rust-build\n - test\n - test-journey\n - test-fast\n - test-fixtures-windows\n - test-32bit\n - test-32bit-windows-size\n - lint\n - cargo-deny\n - check-packetline\n - check-blocking\n\n if: always() # always run even if dependencies fail\n\n runs-on: ubuntu-latest\n\n steps:\n - name: Fail if ANY dependency has failed or cancelled\n if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')\n run: exit 1\n - name: OK\n run: exit 0\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\workflows\ci.yml | ci.yml | YAML | 18,218 | 0.95 | 0.064579 | 0.074236 | react-lib | 494 | 2024-02-07T06:32:33.631965 | MIT | false | bfa3e7884d487575ede482e7560588fe |
name: CIFuzz\n\non:\n pull_request:\n branches:\n - main\n paths:\n - '.github/**'\n - 'ci/**'\n - 'etc/**'\n - 'src/**'\n - 'tests/**'\n - 'cargo-*/**'\n - 'gix*/**'\n - '*.toml'\n - Makefile\n workflow_dispatch:\n\njobs:\n Fuzzing:\n runs-on: ubuntu-latest\n\n permissions:\n contents: none # The fuzzing actions don't use our github.token at all.\n\n steps:\n - name: Build Fuzzers\n id: build\n uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master\n with:\n oss-fuzz-project-name: gitoxide\n language: rust\n\n - name: Run Fuzzers\n uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master\n with:\n oss-fuzz-project-name: gitoxide\n language: rust\n fuzz-seconds: 600\n\n - name: Upload Crash\n uses: actions/upload-artifact@v4\n if: failure() && steps.build.outcome == 'success'\n with:\n name: artifacts\n path: ./out/artifacts\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\workflows\cifuzz.yml | cifuzz.yml | YAML | 1,014 | 0.8 | 0.021739 | 0 | react-lib | 794 | 2025-04-01T19:20:57.823948 | MIT | false | f306cab0228544ad86424eae42e7061c |
name: cron\n\non:\n schedule:\n - cron: '0 13,1 * * *'\n workflow_dispatch:\n\npermissions:\n contents: read\n\njobs:\n stress:\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n - uses: Swatinem/rust-cache@v2\n - name: stress\n run: make stress\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\workflows\cron.yml | cron.yml | YAML | 280 | 0.7 | 0 | 0 | python-kit | 408 | 2023-12-07T20:30:12.728267 | Apache-2.0 | false | 4d1785c0e10af0d89af56dc20a119b9b |
name: Minimum Supported Rust Version\n\non:\n push:\n branches:\n - main\n - 'run-ci/**'\n - '**/run-ci/**'\n tags-ignore:\n - '*'\n pull_request:\n branches:\n - main\n workflow_dispatch:\n\npermissions:\n contents: read\n\njobs:\n check-msrv:\n name: cargo check MSRV\n\n strategy:\n matrix:\n os:\n - windows-2022\n - ubuntu-latest\n\n runs-on: ${{ matrix.os }}\n\n env:\n # dictated by `firefox` to support the `helix` editor, but now probably effectively be controlled by `jiff`, which also aligns with `regex`.\n # IMPORTANT: adjust etc/msrv-badge.svg as well\n rust_version: 1.75.0\n\n steps:\n - uses: actions/checkout@v4\n - uses: extractions/setup-just@v3\n - run: |\n rustup toolchain install ${{ env.rust_version }} nightly --profile minimal --no-self-update\n rustup default ${{ env.rust_version }}\n cargo +nightly update -Zminimal-versions\n - run: just ci-check-msrv\n | dataset_sample\yaml\GitoxideLabs_gitoxide\.github\workflows\msrv.yml | msrv.yml | YAML | 987 | 0.8 | 0 | 0.055556 | vue-tools | 217 | 2025-01-14T08:21:26.177678 | BSD-3-Clause | false | a2406fa16dd93edd5f2025d6bfb1f472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.