Repository navigation
perf(arrow-select): zip a primitive array with a scalar without MutableArrayData #33203
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: Apache-2.0 | ||
|
Check warning on line 1 in .github/workflows/dev_pr.yml
|
||
| # SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership | ||
| # SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements | ||
| name: dev_pr | ||
| concurrency: | ||
| group: ${{ github.repository }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.event.workflow_run.id }}-${{ github.workflow }} | ||
| cancel-in-progress: true | ||
| # Process PR changes and completed API scans. | ||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - synchronize | ||
| workflow_run: | ||
| workflows: [API changes] | ||
| types: [completed] | ||
| jobs: | ||
| process: | ||
| if: github.event_name == 'pull_request_target' | ||
| name: Process | ||
| runs-on: ubuntu-slim | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| - name: Assign GitHub labels | ||
| if: github.event.action == 'opened' || github.event.action == 'synchronize' | ||
| uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0 | ||
| with: | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| configuration-path: .github/workflows/dev_pr/labeler.yml | ||
| sync-labels: true | ||
| # Copy labels from linked issue if present, to help with changelog generation. | ||
| # For simplicity we just run once on open and for first linked issue; its trivial | ||
| # for maintainers to fix up the label manually for more complex cases. | ||
| copy-issue-labels: | ||
| name: Copy labels from (first) closing issue | ||
| if: github.event.action == 'opened' | ||
| needs: process | ||
| runs-on: ubuntu-slim | ||
| permissions: | ||
| issues: read | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | ||
| with: | ||
| script: | | ||
| const { node } = await github.graphql(` | ||
| query($id: ID!) { | ||
| node(id: $id) { | ||
| ... on PullRequest { | ||
| closingIssuesReferences(first: 1) { | ||
| nodes { number repository { nameWithOwner } } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| `, { id: context.payload.pull_request.node_id }); | ||
| const issue = node?.closingIssuesReferences?.nodes[0]; | ||
| const repository = `${context.repo.owner}/${context.repo.repo}`.toLowerCase(); | ||
| // just in case its referencing an external repo | ||
| if (!issue || issue.repository.nameWithOwner.toLowerCase() !== repository) return; | ||
| const labels = await github.paginate(github.rest.issues.listLabelsOnIssue, { | ||
| ...context.repo, issue_number: issue.number, per_page: 100, | ||
| }); | ||
| // these ones impact changelog generation the most | ||
| const allowedLabels = ['bug', 'enhancement', 'development-process', 'performance']; | ||
| const labelsToCopy = labels.map(label => label.name).filter(name => allowedLabels.includes(name)); | ||
| if (labelsToCopy.length) { | ||
| await github.rest.issues.addLabels({ | ||
| ...context.repo, issue_number: context.issue.number, | ||
| labels: labelsToCopy, | ||
| }); | ||
| } | ||
| label-api-change: | ||
| name: Label API changes | ||
| if: >- | ||
| github.event_name == 'workflow_run' && | ||
| github.event.workflow_run.event == 'pull_request' && | ||
| github.event.workflow_run.conclusion == 'success' | ||
| runs-on: ubuntu-slim | ||
| permissions: | ||
| actions: read | ||
| pull-requests: write | ||
| steps: | ||
| # Never check out PR code in this job: it has permission to add labels. | ||
| - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | ||
| with: | ||
| script: | | ||
| const run = context.payload.workflow_run; | ||
| if (run.path !== '.github/workflows/api_change.yml' || !run.head_repository) return; | ||
| const jobs = await github.paginate(github.rest.actions.listJobsForWorkflowRun, { | ||
| ...context.repo, run_id: run.id, filter: 'latest', per_page: 100, | ||
| }); | ||
| if (!jobs.some(job => job.steps?.some(step => | ||
| step.name === 'API changes detected' && step.conclusion === 'success'))) return; | ||
| // Fork PRs may be missing from workflow_run.pull_requests. Resolve | ||
| // them through the API and ignore runs for an outdated PR head. | ||
| const prs = await github.paginate(github.rest.pulls.list, { | ||
| ...context.repo, state: 'open', | ||
| head: run.head_repository.owner.login + ':' + run.head_branch, | ||
| per_page: 100, | ||
| }); | ||
| for (const pr of prs) { | ||
| if (pr.head.sha !== run.head_sha || | ||
| pr.head.repo?.full_name !== run.head_repository.full_name) continue; | ||
| await github.rest.issues.addLabels({ | ||
| ...context.repo, issue_number: pr.number, labels: ['api-change'], | ||
| }); | ||
| } | ||