Skip to content

Commit

Permalink
feat: Added automatic update changlog action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-0314 committed Jul 3, 2024
1 parent d3934bf commit 55301fa
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 6 deletions.
145 changes: 145 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
name: Update Changelog

on:
push:
branches:
- add_changelog_action
schedule:
- cron: '0 16 * * *' # Runs every day at 0:00 Beijing Time (16:00 UTC)
workflow_dispatch:
inputs:
ref:
description: "Why trigger?"
required: true
type: string

permissions: write-all

jobs:
update_changelog:
runs-on: ubuntu-latest
strategy:
matrix:
branch:
- add_changelog_action
- main
- v6.5
- v6.6
- v6.7
- v6.8
- v6.9
- v7.1
- v7.2
- v7.3
- v7.4
- v7.5
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ matrix.branch }}
continue-on-error: true

- name: Check if branch exists
id: check_branch
run: |
if git show-ref --quiet refs/heads/${{ matrix.branch }}; then
echo "::set-output name=branch_exists::true"
else
echo "::set-output name=branch_exists::false"
fi
continue-on-error: true

- name: Set up Python
if: steps.check_branch.outputs.branch_exists == 'true'
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
python -m pip install --upgrade pip
pip install requests
- name: Download update_changelog.py if not main branch
# if: steps.check_branch.outputs.branch_exists == 'true' && matrix.branch != 'main'
run: |
echo "Downloading update_changelog.py from the main branch..."
rm -rf update_changelog.py || true
curl -O https://raw.githubusercontent.com/deepflowio/deepflow/add_changelog_action/update_changelog.py
- name: Run changelog update script
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
python update_changelog.py -B main CHANGELOG.md
# python update_changelog.py -B ${{ matrix.branch }} CHANGELOG.md
cat CHANGELOG.md
git fetch --all
echo $GITHUB_REF
if [[ "$GITHUB_REF" == "add_changelog_action" ]]; then
# List branches that match the pattern and process each branch
for BRANCH in $(git branch -r | grep -E 'origin/v[6-9]+\.[5-9]+|origin/v[7-9]+\.[0-9]+' | sed 's|origin/||'); do
echo "Processing branch $BRANCH..."
python update_changelog.py -B $BRANCH docs/CHANGELOG-`echo $BRANCH|sed 's|\.|-|' | sed 's|v||'`.md
done
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ matrix.branch }}

- name: Commit changes
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "jianchang@yunshan.net"
git checkout -b update-changelog-${{ matrix.branch }}
git add .
git commit -m "Update changelog for ${{ matrix.branch }}"
- name: Pull latest changes from remote branch
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
git pull origin ${{ matrix.branch }} --rebase
- name: Delete remote branch
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
git push origin --delete update-changelog-${{ matrix.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true

- name: Push changes
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
git push --set-upstream origin ${{ matrix.branch }}:update-changelog-${{ matrix.branch }} -f
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
if: steps.check_branch.outputs.branch_exists == 'true'
id: create_pr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update changelog for ${{ matrix.branch }}
branch: update-changelog-${{ matrix.branch }}
base: ${{ matrix.branch }}
title: Update changelog for ${{ matrix.branch }}
body: This PR updates the changelog with the latest changes.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Output PR ID
if: steps.check_branch.outputs.branch_exists == 'true'
run: |
echo "Pull Request ID: ${{ steps.create_pr.outputs.pull-request-number }}"
# - name: Merge Pull Request
# if: success() && steps.check_branch.outputs.branch_exists == 'true'
# run: |
# gh pr merge ${{ steps.create_pr.outputs.pull-request-number }} --merge --admin
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 45 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,52 @@
### Table of Contents

**[DeepFlow release v6.6](#66)**<br/>
**[Changelog for v6.5](https://github.com/deepflowio/deepflow/blob/v6.5/docsCHANGELOG-6-5.md)**<br/>
**[DeepFlow release main](#main)**<br/>
**[Changelog for v6.5](https://github.com/deepflowio/deepflow/blob/v6.5/docs/CHANGELOG-6-5.md)**<br/>

# v6.6 Changelog
# Changelog

### <a id="66"></a>DeepFlow release v6.6
### <a id="main"></a>DeepFlow release main

#### Bug Fix
* fix: agent - eBPF DNS cannot obtain network tuple data (#7131) [#7132](https://github.com/deepflowio/deepflow/pull/7132) by [yinjiping](https://github.com/yinjiping)
* fix: Ingester always update prometheus labels even if labels version has not changed [#7128](https://github.com/deepflowio/deepflow/pull/7128) by [lzf575](https://github.com/lzf575)
* fix: k8s refresh close keep alive [#7125](https://github.com/deepflowio/deepflow/pull/7125) by [askyrie](https://github.com/askyrie)
* fix: server controller changes prometheus label version when data doe… [#7116](https://github.com/deepflowio/deepflow/pull/7116) by [ZhengYa-0110](https://github.com/ZhengYa-0110)
* fix: agent - eBPF Enhance Mongo/SOFARPC/MySQL/HTTP2 proto-infer(#7110) [#7113](https://github.com/deepflowio/deepflow/pull/7113) by [yinjiping](https://github.com/yinjiping)
* fix: agent - add sleep before exiting [#7111](https://github.com/deepflowio/deepflow/pull/7111) by [yuanchaoa](https://github.com/yuanchaoa)
* fix: agent - incorrect grpc log collected by uprobe [#7199](https://github.com/deepflowio/deepflow/pull/7199) by [yuanchaoa](https://github.com/yuanchaoa)
* fix: getting wrong org-id and team-id when the Agent version is less than v6.5.9 [#7188](https://github.com/deepflowio/deepflow/pull/7188) by [lzf575](https://github.com/lzf575)
* fix: when modifying the TTL of the CK table fails, the connection to CK needs to be closed [#7185](https://github.com/deepflowio/deepflow/pull/7185) by [lzf575](https://github.com/lzf575)
* fix: Modify the value of team's short lcuuid corresponding to org_id [#7177](https://github.com/deepflowio/deepflow/pull/7177) by [jin-xiaofeng](https://github.com/jin-xiaofeng)
* fix: Only the default organization registers with tsdb [#7166](https://github.com/deepflowio/deepflow/pull/7166) by [jin-xiaofeng](https://github.com/jin-xiaofeng)
* fix: agent - eBPF Adjust syscall sendto() for IPv6 mapping to IPv4 [#7161](https://github.com/deepflowio/deepflow/pull/7161) by [yinjiping](https://github.com/yinjiping)
* fix: genesis reponse nil pointer [#7157](https://github.com/deepflowio/deepflow/pull/7157) by [askyrie](https://github.com/askyrie)
* fix: agent sync ignore loopback ip [#7152](https://github.com/deepflowio/deepflow/pull/7152) by [askyrie](https://github.com/askyrie)
* fix: agent - eBPF Ensure the Sofa protocol can reassemble [#7151](https://github.com/deepflowio/deepflow/pull/7151) by [yinjiping](https://github.com/yinjiping)
* fix: server static config PacketFanoutMode [#7147](https://github.com/deepflowio/deepflow/pull/7147) by [TomatoMr](https://github.com/TomatoMr)
* fix: Repair collector network card list display incomplete [#7146](https://github.com/deepflowio/deepflow/pull/7146) by [xiaochaoren1](https://github.com/xiaochaoren1)
* fix: server removes redundant function codes to avoid log errors [#7144](https://github.com/deepflowio/deepflow/pull/7144) by [ZhengYa-0110](https://github.com/ZhengYa-0110)
* fix: agent - eBPF Resolve missing fork() syscall on arm64 [#7143](https://github.com/deepflowio/deepflow/pull/7143) by [yinjiping](https://github.com/yinjiping)
* Fix prometheus data cannot be labeled with universal tags,if slow-decoder is used. [#7100](https://github.com/deepflowio/deepflow/pull/7100)

#### NEW FEATURE
* feat: Profile adjust decompression order [#7122](https://github.com/deepflowio/deepflow/pull/7122) by [xiaochaoren1](https://github.com/xiaochaoren1)
* feat: CK’s username and password support the use of special characters [#7119](https://github.com/deepflowio/deepflow/pull/7119) by [lzf575](https://github.com/lzf575)
* feat: add volcengine icon const [#7179](https://github.com/deepflowio/deepflow/pull/7179) by [askyrie](https://github.com/askyrie)
* feat: agent - support vhost user [#7164](https://github.com/deepflowio/deepflow/pull/7164) by [yuanchaoa](https://github.com/yuanchaoa)
* feat: Alarm_policy queue.metrics.overwritten and ingester.queue.metri… [#7173](https://github.com/deepflowio/deepflow/pull/7173) by [Ericsssss](https://github.com/Ericsssss)
* feat: Modify system alarm policy query_conditions columns [#7171](https://github.com/deepflowio/deepflow/pull/7171) by [Ericsssss](https://github.com/Ericsssss)
* feat: OTel’s HTTP protocol parsing optimization in l7_flow_log [#7136](https://github.com/deepflowio/deepflow/pull/7136) by [lzf575](https://github.com/lzf575)
* feat: deepflow-ctl ingester support debugging by org id [#7133](https://github.com/deepflowio/deepflow/pull/7133) by [lzf575](https://github.com/lzf575)
* feat: agent support setting PACKET_FANOUT [#7126](https://github.com/deepflowio/deepflow/pull/7126) by [TomatoMr](https://github.com/TomatoMr)
* feat: add volcengine cloud platform for server controller [#7090](https://github.com/deepflowio/deepflow/pull/7090) by [askyrie](https://github.com/askyrie)
* feat: agent directly reports metrics that can be used for alert [#7089](https://github.com/deepflowio/deepflow/pull/7089) by [TomatoMr](https://github.com/TomatoMr)
* feat: server directly reports metrics of load1_by_cpu_num that can be used for alert [#7088](https://github.com/deepflowio/deepflow/pull/7088) by [lzf575](https://github.com/lzf575)

#### Refactoring

* refactor: Change crate name [#7155](https://github.com/deepflowio/deepflow/pull/7155) by [rvql](https://github.com/rvql)

#### Performance

* perf: improve parsing RequestResource from http.url of OTel data [#7172](https://github.com/deepflowio/deepflow/pull/7172) by [lzf575](https://github.com/lzf575)
44 changes: 42 additions & 2 deletions docs/CHANGELOG-6-5.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
# v6.5 Changelog
### Table of Contents

### DeepFlow release v6.5
**[DeepFlow release v6.5](#v65)**<br/>

# Changelog

### <a id="v65"></a>DeepFlow release v6.5

#### New Feature
* feat: Add Changelog [#7095](https://github.com/deepflowio/deepflow/pull/7095)
* feat: CK’s username and password support the use of special characters [#7229](https://github.com/deepflowio/deepflow/pull/7119)

#### Bug Fix
* fix: agent - incorrect grpc log collected by uprobe [#7201](https://github.com/deepflowio/deepflow/pull/7201) by [yuanchaoa](https://github.com/yuanchaoa)
* fix: Modify the value of team's short lcuuid corresponding to org_id [#7176](https://github.com/deepflowio/deepflow/pull/7176) by [jin-xiaofeng](https://github.com/jin-xiaofeng)
* fix: Only the default organization registers with tsdb [#7169](https://github.com/deepflowio/deepflow/pull/7169) by [jin-xiaofeng](https://github.com/jin-xiaofeng)
* fix: agent - eBPF Adjust syscall sendto() for IPv6 mapping to IPv4 [#7159](https://github.com/deepflowio/deepflow/pull/7159) by [yinjiping](https://github.com/yinjiping)
* fix: agent sync ignore loopback ip [#7153](https://github.com/deepflowio/deepflow/pull/7153) by [askyrie](https://github.com/askyrie)
* fix: agent - eBPF Ensure the Sofa protocol can reassemble [#7150](https://github.com/deepflowio/deepflow/pull/7150) by [yinjiping](https://github.com/yinjiping)
* fix: Repair collector network card list display incomplete [#7148](https://github.com/deepflowio/deepflow/pull/7148) by [xiaochaoren1](https://github.com/xiaochaoren1)
* fix: server removes redundant function codes to avoid log errors [#7142](https://github.com/deepflowio/deepflow/pull/7142) by [ZhengYa-0110](https://github.com/ZhengYa-0110)
* fix: agent - eBPF Resolve missing fork() syscall on arm64 [#7140](https://github.com/deepflowio/deepflow/pull/7140) by [yinjiping](https://github.com/yinjiping)
* fix: agent - eBPF DNS cannot obtain network tuple data [#7131](https://github.com/deepflowio/deepflow/pull/7131) by [yinjiping](https://github.com/yinjiping)
* fix: Ingester always update prometheus labels even if labels version has not change [#7129](https://github.com/deepflowio/deepflow/pull/7129) by [lzf575](https://github.com/lzf575)
* fix: k8s refresh close keep alive [#7117](https://github.com/deepflowio/deepflow/pull/7117) by [askyrie](https://github.com/askyrie)
* fix: server controller changes prometheus label version when data doe… [#7115](https://github.com/deepflowio/deepflow/pull/7115) by [ZhengYa-0110](https://github.com/ZhengYa-0110)
* fix: agent - add sleep before exiting [#7112](https://github.com/deepflowio/deepflow/pull/7112) by [yuanchaoa](https://github.com/yuanchaoa)
* fix: agent - eBPF Enhance Mongo/SOFA/MySQL/HTTP2 protocol inference [#7110](https://github.com/deepflowio/deepflow/pull/7110) by [yinjiping](https://github.com/yinjiping)
* fix: prometheus data cannot be labeled with universal tags,if slow-de… [#7101](https://github.com/deepflowio/deepflow/pull/7101) by [lzf575](https://github.com/lzf575)
* fix: agent - eBPF uprobe HTTP2 is missing setting for l7_proto [#7093](https://github.com/deepflowio/deepflow/pull/7093) by [yinjiping](https://github.com/yinjiping)
* fix: prometheus data cannot be labeled with universal tags, if slow-decoder is used. [#7100](https://github.com/deepflowio/deepflow/pull/7100)
* fix: agent - eBPF strengthening protocol inference for SOFARPC and MySQL [#7110](https://github.com/deepflowio/deepflow/pull/7110)
* fix: server controller changes prometheus label version when data does not change actually. [#7115](https://github.com/deepflowio/deepflow/pull/7115)
* fix: Ingester always update prometheus labels even if labels version has not changed. [#7128](https://github.com/deepflowio/deepflow/pull/7128)

**[Changelog for v6.5](https://www.deepflow.io/docs/release-notes/release-6.5-ce)**<br/>


#### NEW FEATURE
* feat: add volcengine icon const [#7180](https://github.com/deepflowio/deepflow/pull/7180) by [askyrie](https://github.com/askyrie)
* feat: Dictionary adds auto-close connection [#7165](https://github.com/deepflowio/deepflow/pull/7165) by [xiaochaoren1](https://github.com/xiaochaoren1)
* feat: deepflow-ctl ingester support debugging by org id [#7163](https://github.com/deepflowio/deepflow/pull/7163) by [lzf575](https://github.com/lzf575)
* feat: add volcengine cloud platform for server controller [#7149](https://github.com/deepflowio/deepflow/pull/7149) by [askyrie](https://github.com/askyrie)
* feat: agent support setting PACKET_FANOUT [#7138](https://github.com/deepflowio/deepflow/pull/7138) by [TomatoMr](https://github.com/TomatoMr)
* feat: CK’s username and password support the use of special characters [#7120](https://github.com/deepflowio/deepflow/pull/7120) by [lzf575](https://github.com/lzf575)
* feat: server - add ebpf event type mem alloc/inuse [#7106](https://github.com/deepflowio/deepflow/pull/7106) by [rvql](https://github.com/rvql)
* feat: add change log [#7095](https://github.com/deepflowio/deepflow/pull/7095) by [Nick-0314](https://github.com/Nick-0314)


#### Refactoring
* refactor: Change crate name [#7158](https://github.com/deepflowio/deepflow/pull/7158) by [rvql](https://github.com/rvql)


#### OTHER
* Cp 65 73 [#7202](https://github.com/deepflowio/deepflow/pull/7202) by [lzf575](https://github.com/lzf575)
Loading

0 comments on commit 55301fa

Please sign in to comment.