Skip to content

Commit

Permalink
Trigger Actions for Backport PRs
Browse files Browse the repository at this point in the history
We need to use a PAT (personal access token) instead of the default
`GITHUB_TOKEN` as that doesn't trigger any workflow runs by design:

> When you use the repository's GITHUB_TOKEN to perform tasks, events
> triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch
> and repository_dispatch, will not create a new workflow run. This
> prevents you from accidentally creating recursive workflow runs.

Source: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow

The PAT used here is from our new bot: https://github.com/janusgraph-automations
So that should become the author of backporting PRs from now on.

This fixes #3635

Signed-off-by: Florian Hockmann <[email protected]>
  • Loading branch information
FlorianHockmann committed Jun 23, 2023
1 parent 36bf485 commit a12f862
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ on:
pull_request_target:
types: ["labeled", "closed"]

permissions:
actions: write
pull-requests: write
contents: write
repository-projects: write

jobs:
backport:
name: Backport PR
Expand All @@ -37,14 +31,14 @@ jobs:
- name: Backport Action
uses: sqren/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.ACCESS_TOKEN }}
auto_backport_label_prefix: backport/
add_original_reviewers: true

- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log

- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log
run: cat ~/.backport/backport.debug.log

1 comment on commit a12f862

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: a12f862 Previous: 3a7ba53 Ratio
org.janusgraph.JanusGraphSpeedBenchmark.basicAddAndDelete 21729.92100944222 ms/op 20132.68260361965 ms/op 1.08
org.janusgraph.GraphCentricQueryBenchmark.getVertices 1738.6317850183432 ms/op 1617.8956294193085 ms/op 1.07
org.janusgraph.MgmtOlapJobBenchmark.runClearIndex 223.6678980695652 ms/op 222.76279991304347 ms/op 1.00
org.janusgraph.MgmtOlapJobBenchmark.runReindex 594.6822797650794 ms/op 541.8996275500001 ms/op 1.10
org.janusgraph.JanusGraphSpeedBenchmark.basicCount 391.43808409121726 ms/op 368.0788711730627 ms/op 1.06
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 7147.360323413984 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingEmitRepeatSteps 45786.377207469995 ms/op
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithSmallBatch 38271.0101459 ms/op
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.vertexCentricPropertiesFetching 62935.788484699995 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getAllElementsTraversedFromOuterVertex 21878.41895092096 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithDoubleUnion 813.8178466912553 ms/op
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithUnlimitedBatch 6041.061926169658 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getNames 23585.549524290713 ms/op 19643.66567439762 ms/op 1.20
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesThreePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 10101.975764257144 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFilteredByAndStep 867.2563142263111 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFromMultiNestedRepeatStepStartingFromSingleVertex 31180.803507512388 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithCoalesceUsage 810.788311909888 ms/op
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 36439.932164000005 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getIdToOutVerticesProjection 509.2021066648288 ms/op
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithUnlimitedBatch 42105.8714275 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getNeighborNames 23661.684961217856 ms/op 19824.388658859913 ms/op 1.19
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingRepeatUntilSteps 24685.502377066987 ms/op
org.janusgraph.CQLMultiQueryBenchmark.getAdjacentVerticesLocalCounts 23918.366391733332 ms/op

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.