From 5e07a13ffd6e212edadb20eeb532e940cf65ca88 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Fri, 22 Sep 2023 03:29:37 +0900 Subject: [PATCH 1/2] feat: add workflow telemetry --- .github/workflows/workflow_telemetry.yaml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/workflow_telemetry.yaml diff --git a/.github/workflows/workflow_telemetry.yaml b/.github/workflows/workflow_telemetry.yaml new file mode 100644 index 00000000..1875c1c5 --- /dev/null +++ b/.github/workflows/workflow_telemetry.yaml @@ -0,0 +1,26 @@ +name: workflow telemetry +# run on both branch push and tag push +on: + workflow_dispatch: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + dotnet-console: + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: dotnet build + run: dotnet build ./src/dotnet/console/ -c Debug + - name: dotnet test + run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions + - name: dotnet publish + run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console From 3d880ae0af60a212de338552d599a683885c4026 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:31:58 +0000 Subject: [PATCH 2/2] [auto commit] update context --- contexts/export/pull_request_opened.sh | 36 ++++----- contexts/github/pull_request_opened.json | 94 ++++++++++++------------ contexts/runner/pull_request_opened.json | 2 +- 3 files changed, 66 insertions(+), 66 deletions(-) diff --git a/contexts/export/pull_request_opened.sh b/contexts/export/pull_request_opened.sh index 94b30d77..a0981cb0 100644 --- a/contexts/export/pull_request_opened.sh +++ b/contexts/export/pull_request_opened.sh @@ -30,16 +30,16 @@ declare -x GITHUB_ACTOR="guitarrapc" declare -x GITHUB_ACTOR_ID="3856350" declare -x GITHUB_API_URL="https://api.github.com" declare -x GITHUB_BASE_REF="main" -declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_e4b67fd4-01cf-4483-8377-36a6e07c658d" +declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_5b121aff-e598-406d-a1ba-76cd0939e1de" declare -x GITHUB_EVENT_NAME="pull_request" declare -x GITHUB_EVENT_PATH="/home/runner/work/_temp/_github_workflow/event.json" declare -x GITHUB_GRAPHQL_URL="https://api.github.com/graphql" -declare -x GITHUB_HEAD_REF="feature/upload" +declare -x GITHUB_HEAD_REF="feature/workflow_telemetry" declare -x GITHUB_JOB="dump-context" -declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_e4b67fd4-01cf-4483-8377-36a6e07c658d" -declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_e4b67fd4-01cf-4483-8377-36a6e07c658d" -declare -x GITHUB_REF="refs/pull/107/merge" -declare -x GITHUB_REF_NAME="107/merge" +declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_5b121aff-e598-406d-a1ba-76cd0939e1de" +declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_5b121aff-e598-406d-a1ba-76cd0939e1de" +declare -x GITHUB_REF="refs/pull/108/merge" +declare -x GITHUB_REF_NAME="108/merge" declare -x GITHUB_REF_PROTECTED="false" declare -x GITHUB_REF_TYPE="branch" declare -x GITHUB_REPOSITORY="guitarrapc/githubactions-lab" @@ -48,16 +48,16 @@ declare -x GITHUB_REPOSITORY_OWNER="guitarrapc" declare -x GITHUB_REPOSITORY_OWNER_ID="3856350" declare -x GITHUB_RETENTION_DAYS="90" declare -x GITHUB_RUN_ATTEMPT="1" -declare -x GITHUB_RUN_ID="6265614144" -declare -x GITHUB_RUN_NUMBER="165" +declare -x GITHUB_RUN_ID="6265665654" +declare -x GITHUB_RUN_NUMBER="169" declare -x GITHUB_SERVER_URL="https://github.com" -declare -x GITHUB_SHA="9dafd65be0980fa8a48a21b258e368507db46b1b" -declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_e4b67fd4-01cf-4483-8377-36a6e07c658d" -declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_e4b67fd4-01cf-4483-8377-36a6e07c658d" +declare -x GITHUB_SHA="013094c17440254d5b10c343da19aae5721fa51e" +declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_5b121aff-e598-406d-a1ba-76cd0939e1de" +declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_5b121aff-e598-406d-a1ba-76cd0939e1de" declare -x GITHUB_TRIGGERING_ACTOR="guitarrapc" declare -x GITHUB_WORKFLOW="auto dump context" -declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/107/merge" -declare -x GITHUB_WORKFLOW_SHA="9dafd65be0980fa8a48a21b258e368507db46b1b" +declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/108/merge" +declare -x GITHUB_WORKFLOW_SHA="013094c17440254d5b10c343da19aae5721fa51e" declare -x GITHUB_WORKSPACE="/home/runner/work/githubactions-lab/githubactions-lab" declare -x GOROOT_1_19_X64="/opt/hostedtoolcache/go/1.19.13/x64" declare -x GOROOT_1_20_X64="/opt/hostedtoolcache/go/1.20.8/x64" @@ -66,14 +66,14 @@ declare -x GRADLE_HOME="/usr/share/gradle-8.3" declare -x HOME="/home/runner" declare -x HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS="3650" declare -x HOMEBREW_NO_AUTO_UPDATE="1" -declare -x INVOCATION_ID="8de78c8711484d20b8a49a124f444b59" +declare -x INVOCATION_ID="6309ac5a2ad64dfdb91201a62a3dec55" declare -x ImageOS="ubuntu22" declare -x ImageVersion="20230917.1.0" declare -x JAVA_HOME="/usr/lib/jvm/temurin-11-jdk-amd64" declare -x JAVA_HOME_11_X64="/usr/lib/jvm/temurin-11-jdk-amd64" declare -x JAVA_HOME_17_X64="/usr/lib/jvm/temurin-17-jdk-amd64" declare -x JAVA_HOME_8_X64="/usr/lib/jvm/temurin-8-jdk-amd64" -declare -x JOURNAL_STREAM="8:17849" +declare -x JOURNAL_STREAM="8:17007" declare -x LANG="C.UTF-8" declare -x LEIN_HOME="/usr/local/lib/lein" declare -x LEIN_JAR="/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar" @@ -88,12 +88,12 @@ declare -x POWERSHELL_DISTRIBUTION_CHANNEL="GitHub-Actions-ubuntu22" declare -x PWD="/home/runner/work/githubactions-lab/githubactions-lab" declare -x RUNNER_ARCH="X64" declare -x RUNNER_ENVIRONMENT="github-hosted" -declare -x RUNNER_NAME="GitHub Actions 28" +declare -x RUNNER_NAME="GitHub Actions 40" declare -x RUNNER_OS="Linux" declare -x RUNNER_PERFLOG="/home/runner/perflog" declare -x RUNNER_TEMP="/home/runner/work/_temp" declare -x RUNNER_TOOL_CACHE="/opt/hostedtoolcache" -declare -x RUNNER_TRACKING_ID="github_8ba76bd0-14dc-4a1f-ab8c-af71613c92df" +declare -x RUNNER_TRACKING_ID="github_39951c9f-b292-4fc2-ac7e-b8e3e5b16503" declare -x RUNNER_USER="runner" declare -x RUNNER_WORKSPACE="/home/runner/work/githubactions-lab" declare -x SELENIUM_JAR_PATH="/usr/share/java/selenium-server.jar" @@ -109,7 +109,7 @@ declare -x STATS_UE="true" declare -x STATS_V3PS="true" declare -x STATS_VMD="true" declare -x SWIFT_PATH="/usr/share/swift/usr/bin" -declare -x SYSTEMD_EXEC_PID="569" +declare -x SYSTEMD_EXEC_PID="572" declare -x USER="runner" declare -x VCPKG_INSTALLATION_ROOT="/usr/local/share/vcpkg" declare -x XDG_CONFIG_HOME="/home/runner/.config" diff --git a/contexts/github/pull_request_opened.json b/contexts/github/pull_request_opened.json index ca8e5d5a..d2a395b2 100644 --- a/contexts/github/pull_request_opened.json +++ b/contexts/github/pull_request_opened.json @@ -1,14 +1,14 @@ { - "token": "ghs_sl9rictjfcnVXC3jchiWwB88I1aZDo0IQMAa", + "token": "ghs_TWuxiaGTFWAte8OWLHEpwmR5XZxsQf19jkhc", "job": "dump-context", - "ref": "refs/pull/107/merge", - "sha": "9dafd65be0980fa8a48a21b258e368507db46b1b", + "ref": "refs/pull/108/merge", + "sha": "013094c17440254d5b10c343da19aae5721fa51e", "repository": "guitarrapc/githubactions-lab", "repository_owner": "guitarrapc", "repository_owner_id": "3856350", "repositoryUrl": "git://github.com/guitarrapc/githubactions-lab.git", - "run_id": "6265614144", - "run_number": "165", + "run_id": "6265665654", + "run_number": "169", "retention_days": "90", "run_attempt": "1", "artifact_cache_size_limit": "10", @@ -20,41 +20,41 @@ "actor": "guitarrapc", "triggering_actor": "guitarrapc", "workflow": "auto dump context", - "head_ref": "feature/upload", + "head_ref": "feature/workflow_telemetry", "base_ref": "main", "event_name": "pull_request", "event": { "action": "opened", - "number": 107, + "number": 108, "pull_request": { "_links": { "comments": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/107/comments" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/108/comments" }, "commits": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107/commits" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108/commits" }, "html": { - "href": "https://github.com/guitarrapc/githubactions-lab/pull/107" + "href": "https://github.com/guitarrapc/githubactions-lab/pull/108" }, "issue": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/107" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/108" }, "review_comment": { "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/comments{/number}" }, "review_comments": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107/comments" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108/comments" }, "self": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108" }, "statuses": { - "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/statuses/2d6f50d8cae61313e33d50c0c2085af6afd292b9" + "href": "https://api.github.com/repos/guitarrapc/githubactions-lab/statuses/5e07a13ffd6e212edadb20eeb532e940cf65ca88" } }, "active_lock_reason": null, - "additions": 14, + "additions": 26, "assignee": null, "assignees": [], "author_association": "OWNER", @@ -155,7 +155,7 @@ }, "private": false, "pulls_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls{/number}", - "pushed_at": "2023-09-21T18:25:05Z", + "pushed_at": "2023-09-21T18:29:59Z", "releases_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/releases{/id}", "size": 804, "squash_merge_commit_message": "COMMIT_MESSAGES", @@ -181,7 +181,7 @@ "watchers_count": 32, "web_commit_signoff_required": false }, - "sha": "6243f49aefd45ee79ad5484379f262f598076630", + "sha": "e1b0652f2156d53963755d8d75c72fcd2e0f342a", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/3856350?v=4", "events_url": "https://api.github.com/users/guitarrapc/events{/privacy}", @@ -204,19 +204,19 @@ } }, "body": null, - "changed_files": 3, + "changed_files": 1, "closed_at": null, "comments": 0, - "comments_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/107/comments", + "comments_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/108/comments", "commits": 1, - "commits_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107/commits", - "created_at": "2023-09-21T18:25:05Z", - "deletions": 9, - "diff_url": "https://github.com/guitarrapc/githubactions-lab/pull/107.diff", + "commits_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108/commits", + "created_at": "2023-09-21T18:29:58Z", + "deletions": 0, + "diff_url": "https://github.com/guitarrapc/githubactions-lab/pull/108.diff", "draft": false, "head": { - "label": "guitarrapc:feature/upload", - "ref": "feature/upload", + "label": "guitarrapc:feature/workflow_telemetry", + "ref": "feature/workflow_telemetry", "repo": { "allow_auto_merge": false, "allow_forking": true, @@ -310,7 +310,7 @@ }, "private": false, "pulls_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls{/number}", - "pushed_at": "2023-09-21T18:25:05Z", + "pushed_at": "2023-09-21T18:29:59Z", "releases_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/releases{/id}", "size": 804, "squash_merge_commit_message": "COMMIT_MESSAGES", @@ -336,7 +336,7 @@ "watchers_count": 32, "web_commit_signoff_required": false }, - "sha": "2d6f50d8cae61313e33d50c0c2085af6afd292b9", + "sha": "5e07a13ffd6e212edadb20eeb532e940cf65ca88", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/3856350?v=4", "events_url": "https://api.github.com/users/guitarrapc/events{/privacy}", @@ -358,9 +358,9 @@ "url": "https://api.github.com/users/guitarrapc" } }, - "html_url": "https://github.com/guitarrapc/githubactions-lab/pull/107", - "id": 1525369231, - "issue_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/107", + "html_url": "https://github.com/guitarrapc/githubactions-lab/pull/108", + "id": 1525376111, + "issue_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/issues/108", "labels": [], "locked": false, "maintainer_can_modify": false, @@ -371,20 +371,20 @@ "merged_at": null, "merged_by": null, "milestone": null, - "node_id": "PR_kwDOD1icfM5a60mP", - "number": 107, - "patch_url": "https://github.com/guitarrapc/githubactions-lab/pull/107.patch", + "node_id": "PR_kwDOD1icfM5a62Rv", + "number": 108, + "patch_url": "https://github.com/guitarrapc/githubactions-lab/pull/108.patch", "rebaseable": null, "requested_reviewers": [], "requested_teams": [], "review_comment_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/comments{/number}", "review_comments": 0, - "review_comments_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107/comments", + "review_comments_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108/comments", "state": "open", - "statuses_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/statuses/2d6f50d8cae61313e33d50c0c2085af6afd292b9", - "title": "feat: bump upload-artifacts to @v4 & set retention-period", - "updated_at": "2023-09-21T18:25:05Z", - "url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/107", + "statuses_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/statuses/5e07a13ffd6e212edadb20eeb532e940cf65ca88", + "title": "feat: add workflow telemetry", + "updated_at": "2023-09-21T18:29:58Z", + "url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls/108", "user": { "avatar_url": "https://avatars.githubusercontent.com/u/3856350?v=4", "events_url": "https://api.github.com/users/guitarrapc/events{/privacy}", @@ -491,7 +491,7 @@ }, "private": false, "pulls_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/pulls{/number}", - "pushed_at": "2023-09-21T18:25:05Z", + "pushed_at": "2023-09-21T18:29:59Z", "releases_url": "https://api.github.com/repos/guitarrapc/githubactions-lab/releases{/id}", "size": 804, "ssh_url": "git@github.com:guitarrapc/githubactions-lab.git", @@ -538,20 +538,20 @@ "server_url": "https://github.com", "api_url": "https://api.github.com", "graphql_url": "https://api.github.com/graphql", - "ref_name": "107/merge", + "ref_name": "108/merge", "ref_protected": false, "ref_type": "branch", "secret_source": "Actions", - "workflow_ref": "guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/107/merge", - "workflow_sha": "9dafd65be0980fa8a48a21b258e368507db46b1b", + "workflow_ref": "guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/108/merge", + "workflow_sha": "013094c17440254d5b10c343da19aae5721fa51e", "workspace": "/home/runner/work/githubactions-lab/githubactions-lab", "action": "__run_4", "event_path": "/home/runner/work/_temp/_github_workflow/event.json", "action_repository": "", "action_ref": "", - "path": "/home/runner/work/_temp/_runner_file_commands/add_path_e4b67fd4-01cf-4483-8377-36a6e07c658d", - "env": "/home/runner/work/_temp/_runner_file_commands/set_env_e4b67fd4-01cf-4483-8377-36a6e07c658d", - "step_summary": "/home/runner/work/_temp/_runner_file_commands/step_summary_e4b67fd4-01cf-4483-8377-36a6e07c658d", - "state": "/home/runner/work/_temp/_runner_file_commands/save_state_e4b67fd4-01cf-4483-8377-36a6e07c658d", - "output": "/home/runner/work/_temp/_runner_file_commands/set_output_e4b67fd4-01cf-4483-8377-36a6e07c658d" + "path": "/home/runner/work/_temp/_runner_file_commands/add_path_5b121aff-e598-406d-a1ba-76cd0939e1de", + "env": "/home/runner/work/_temp/_runner_file_commands/set_env_5b121aff-e598-406d-a1ba-76cd0939e1de", + "step_summary": "/home/runner/work/_temp/_runner_file_commands/step_summary_5b121aff-e598-406d-a1ba-76cd0939e1de", + "state": "/home/runner/work/_temp/_runner_file_commands/save_state_5b121aff-e598-406d-a1ba-76cd0939e1de", + "output": "/home/runner/work/_temp/_runner_file_commands/set_output_5b121aff-e598-406d-a1ba-76cd0939e1de" } diff --git a/contexts/runner/pull_request_opened.json b/contexts/runner/pull_request_opened.json index c1a5f708..3c9e86a8 100644 --- a/contexts/runner/pull_request_opened.json +++ b/contexts/runner/pull_request_opened.json @@ -1,7 +1,7 @@ { "os": "Linux", "arch": "X64", - "name": "GitHub Actions 28", + "name": "GitHub Actions 40", "environment": "github-hosted", "tool_cache": "/opt/hostedtoolcache", "temp": "/home/runner/work/_temp",