|
1 | 1 | name: FLASH usage analysis
|
2 | 2 |
|
3 | 3 | permissions:
|
| 4 | + contents: read |
4 | 5 | pull-requests: write
|
5 | 6 | issues: write
|
6 | 7 |
|
@@ -87,59 +88,63 @@ jobs:
|
87 | 88 | echo '${{ steps.bloaty-step.outputs.bloaty-summary-map }}' >> $GITHUB_OUTPUT
|
88 | 89 | echo "$EOF" >> $GITHUB_OUTPUT
|
89 | 90 |
|
90 |
| - post_pr_comment: |
91 |
| - name: Publish Results |
92 |
| - runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false] |
93 |
| - needs: [analyze_flash] |
94 |
| - env: |
95 |
| - V5X-SUMMARY-MAP-ABS: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-summary-map).vm-absolute) }} |
96 |
| - V5X-SUMMARY-MAP-PERC: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-summary-map).vm-percentage) }} |
97 |
| - V6X-SUMMARY-MAP-ABS: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-summary-map).vm-absolute) }} |
98 |
| - V6X-SUMMARY-MAP-PERC: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-summary-map).vm-percentage) }} |
99 |
| - if: ${{ github.event.pull_request }} |
100 |
| - steps: |
101 |
| - - name: Find Comment |
102 |
| - uses: peter-evans/find-comment@v3 |
103 |
| - id: fc |
104 |
| - with: |
105 |
| - issue-number: ${{ github.event.pull_request.number }} |
106 |
| - comment-author: 'github-actions[bot]' |
107 |
| - body-includes: FLASH Analysis |
108 |
| - |
109 |
| - - name: Set Build Time |
110 |
| - id: bt |
111 |
| - run: | |
112 |
| - echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT |
113 |
| -
|
114 |
| - - name: Create or update comment |
115 |
| - # This can't be moved to the job-level conditions, as GH actions don't allow a job-level if condition to access the env. |
116 |
| - if: | |
117 |
| - steps.fc.outputs.comment-id != '' || |
118 |
| - env.V5X-SUMMARY-MAP-ABS >= fromJSON(env.MIN_FLASH_POS_DIFF_FOR_COMMENT) || |
119 |
| - env.V5X-SUMMARY-MAP-ABS <= fromJSON(env.MIN_FLASH_NEG_DIFF_FOR_COMMENT) || |
120 |
| - env.V6X-SUMMARY-MAP-ABS >= fromJSON(env.MIN_FLASH_POS_DIFF_FOR_COMMENT) || |
121 |
| - env.V6X-SUMMARY-MAP-ABS <= fromJSON(env.MIN_FLASH_NEG_DIFF_FOR_COMMENT) |
122 |
| - uses: peter-evans/create-or-update-comment@v4 |
123 |
| - with: |
124 |
| - comment-id: ${{ steps.fc.outputs.comment-id }} |
125 |
| - issue-number: ${{ github.event.pull_request.number }} |
126 |
| - body: | |
127 |
| - ## 🔎 FLASH Analysis |
128 |
| - <details> |
129 |
| - <summary>px4_fmu-v5x [Total VM Diff: ${{ env.V5X-SUMMARY-MAP-ABS }} byte (${{ env.V5X-SUMMARY-MAP-PERC}} %)]</summary> |
130 |
| -
|
131 |
| - ``` |
132 |
| - ${{ needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-output }} |
133 |
| - ``` |
134 |
| - </details> |
135 |
| -
|
136 |
| - <details> |
137 |
| - <summary>px4_fmu-v6x [Total VM Diff: ${{ env.V6X-SUMMARY-MAP-ABS }} byte (${{ env.V6X-SUMMARY-MAP-PERC }} %)]</summary> |
138 |
| -
|
139 |
| - ``` |
140 |
| - ${{ needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-output }} |
141 |
| - ``` |
142 |
| - </details> |
143 |
| -
|
144 |
| - **Updated: _${{ steps.bt.outputs.timestamp }}_** |
145 |
| - edit-mode: replace |
| 91 | + # TODO: |
| 92 | + # This part of the workflow is causing errors, we should find a way to fix this and enable this test again |
| 93 | + # Track this issue https://github.com/PX4/PX4-Autopilot/issues/24408 |
| 94 | + # |
| 95 | + #post_pr_comment: |
| 96 | + #name: Publish Results |
| 97 | + #runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false] |
| 98 | + #needs: [analyze_flash] |
| 99 | + #env: |
| 100 | + #V5X-SUMMARY-MAP-ABS: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-summary-map).vm-absolute) }} |
| 101 | + #V5X-SUMMARY-MAP-PERC: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-summary-map).vm-percentage) }} |
| 102 | + #V6X-SUMMARY-MAP-ABS: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-summary-map).vm-absolute) }} |
| 103 | + #V6X-SUMMARY-MAP-PERC: ${{ fromJSON(fromJSON(needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-summary-map).vm-percentage) }} |
| 104 | + #if: ${{ github.event.pull_request }} |
| 105 | + #steps: |
| 106 | + #- name: Find Comment |
| 107 | + #uses: peter-evans/find-comment@v3 |
| 108 | + #id: fc |
| 109 | + #with: |
| 110 | + #issue-number: ${{ github.event.pull_request.number }} |
| 111 | + #comment-author: 'github-actions[bot]' |
| 112 | + #body-includes: FLASH Analysis |
| 113 | + |
| 114 | + #- name: Set Build Time |
| 115 | + #id: bt |
| 116 | + #run: | |
| 117 | + #echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT |
| 118 | + |
| 119 | + #- name: Create or update comment |
| 120 | + ## This can't be moved to the job-level conditions, as GH actions don't allow a job-level if condition to access the env. |
| 121 | + #if: | |
| 122 | + #steps.fc.outputs.comment-id != '' || |
| 123 | + #env.V5X-SUMMARY-MAP-ABS >= fromJSON(env.MIN_FLASH_POS_DIFF_FOR_COMMENT) || |
| 124 | + #env.V5X-SUMMARY-MAP-ABS <= fromJSON(env.MIN_FLASH_NEG_DIFF_FOR_COMMENT) || |
| 125 | + #env.V6X-SUMMARY-MAP-ABS >= fromJSON(env.MIN_FLASH_POS_DIFF_FOR_COMMENT) || |
| 126 | + #env.V6X-SUMMARY-MAP-ABS <= fromJSON(env.MIN_FLASH_NEG_DIFF_FOR_COMMENT) |
| 127 | + #uses: peter-evans/create-or-update-comment@v4 |
| 128 | + #with: |
| 129 | + #comment-id: ${{ steps.fc.outputs.comment-id }} |
| 130 | + #issue-number: ${{ github.event.pull_request.number }} |
| 131 | + #body: | |
| 132 | + ### 🔎 FLASH Analysis |
| 133 | + #<details> |
| 134 | + #<summary>px4_fmu-v5x [Total VM Diff: ${{ env.V5X-SUMMARY-MAP-ABS }} byte (${{ env.V5X-SUMMARY-MAP-PERC}} %)]</summary> |
| 135 | + |
| 136 | + #``` |
| 137 | + #${{ needs.analyze_flash.outputs.px4_fmu-v5x-bloaty-output }} |
| 138 | + #``` |
| 139 | + #</details> |
| 140 | + |
| 141 | + #<details> |
| 142 | + #<summary>px4_fmu-v6x [Total VM Diff: ${{ env.V6X-SUMMARY-MAP-ABS }} byte (${{ env.V6X-SUMMARY-MAP-PERC }} %)]</summary> |
| 143 | + |
| 144 | + #``` |
| 145 | + #${{ needs.analyze_flash.outputs.px4_fmu-v6x-bloaty-output }} |
| 146 | + #``` |
| 147 | + #</details> |
| 148 | + |
| 149 | + #**Updated: _${{ steps.bt.outputs.timestamp }}_** |
| 150 | + #edit-mode: replace |
0 commit comments