Skip to content

Commit 5fc3c00

Browse files
committed
add usage mode 2 and 3
Signed-off-by: tjtanaa <[email protected]>
1 parent 118df5c commit 5fc3c00

File tree

6 files changed

+358
-205
lines changed

6 files changed

+358
-205
lines changed

.github/ISSUE_TEMPLATE/api_change.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/check_api_changes.yml

Lines changed: 0 additions & 143 deletions
This file was deleted.

README.md

Lines changed: 91 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
11
# How to use
22

3-
1. git clone this repository.
3+
## ✅ Summary
44

5-
2. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token)
5+
| Mode | Description | Config Field |
6+
|:----|:------------|:-------------|
7+
| 1 | Continuous monitoring | None |
8+
| 2 | Process a list of commits | `commit_list` |
9+
| 3 | Compare two commits | `compare_pair` |
10+
11+
12+
## Type of Usage:
13+
1. Monitor all commits since `start_commit`:
14+
2. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring.
15+
```json
16+
...
17+
"commit_list": [
18+
"commit_hash1",
19+
"commit_hash2",
20+
"commit_hash3"
21+
]
22+
...
23+
```
24+
3. Compare two specific commits only. Script will exit after comparison.
25+
```json
26+
...
27+
"compare_pair": [
28+
"old_commit_hash",
29+
"new_commit_hash"
30+
]
31+
...
32+
```
33+
34+
35+
## Usage Method 1:
36+
37+
1. Fork this repository. Then git clone the repository.
38+
39+
2. Create a file named `aiter_api_watcher_config.json` using `template_to_initialize_aiter_api_watcher_config.json`.
40+
41+
3. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token)
642
```
743
docker run -it \
844
--network=host \
@@ -19,11 +55,11 @@
1955
```
2056

2157

22-
3. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`.
58+
4. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`.
2359

2460
Example content of the `aiter_api_watcher.log`:
2561

26-
```console
62+
```text
2763
2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Starting aiter API watcher
2864
2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Monitoring 4 functions
2965
2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Check interval: 3600 seconds
@@ -78,4 +114,54 @@ Example content of the `aiter_api_watcher.log`:
78114
2025-04-26 17:47:32,088 - aiter_api_watcher - INFO - No API change for fmoe_fp8_blockscale_g1u1
79115
2025-04-26 17:47:45,163 - aiter_api_watcher - INFO - No API change for rocm_aiter_asm_fmoe.moe_sorting_ck
80116
2025-04-26 17:47:58,255 - aiter_api_watcher - INFO - No API change for rocm_aiter_asm_fmoe.asm_moe
81-
```
117+
```
118+
119+
## Usage Method 2:
120+
Follow the steps in Usage Method 1, with the following changes:
121+
122+
1. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring.
123+
```json
124+
...
125+
"commit_list": [
126+
"commit_hash1",
127+
"commit_hash2",
128+
"commit_hash3"
129+
]
130+
...
131+
```
132+
133+
Run the command as in Usage Method 1.
134+
135+
## Usage Method 2:
136+
Follow the steps in Usage Method 1, with the following changes:
137+
138+
1. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring.
139+
```json
140+
...
141+
"compare_pair": [
142+
"old_commit_hash",
143+
"new_commit_hash"
144+
]
145+
...
146+
```
147+
148+
Example console logs:
149+
```console
150+
...
151+
2025-04-27 15:23:42,995 - aiter_api_watcher - INFO - No API change for gemm_a8w8_CK between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb
152+
2025-04-27 15:23:56,000 - aiter_api_watcher - INFO - No API change for shuffle_weight between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb
153+
2025-04-27 15:23:56,449 - aiter_api_watcher - INFO - Exiting after comparing two commits
154+
```
155+
156+
Example logs:
157+
```text
158+
2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Starting aiter API watcher
159+
2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Monitoring 2 functions
160+
2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Check interval: 3600 seconds
161+
2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Checking for API changes...
162+
2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Comparing two commits: 365bd25a3f97673b291bc42f1459fbb51bf1c634 -> 28ceb1e2299c904229af0e45c38dde0efa7d14fb
163+
2025-04-27 15:23:42,995 - aiter_api_watcher - INFO - No API change for gemm_a8w8_CK between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb
164+
2025-04-27 15:23:56,000 - aiter_api_watcher - INFO - No API change for shuffle_weight between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb
165+
2025-04-27 15:23:56,449 - aiter_api_watcher - INFO - Exiting after comparing two commits
166+
```
167+

0 commit comments

Comments
 (0)