Open anupama-pathirage opened 1 month ago
@Dilhasha commented on 2022-02-09:
While the above workflow can be used to collect and compare the time taken against a threshold, we need to come up with the following.
After deploying the changes from a PR merge to dev,
[x] Execute API requests to Package APIs
[x] Compare the execution time against the last record (whether it has increased more than 10% from previous execution time)
[x] Trigger a notification if there is an increase in time
[x] Append execution time results to a csv file in GH
@Dilhasha commented on 2022-02-15:
Main Steps:
Merge the changes from a PR to Dev Environment
Execute pipeline task for perf degradation[1]
Wait until the deployment is ready
Execute GH workflow for performance check
GH workflow[2] for performance check :
Run script to persist execution time [3]
Commit execution time record
Send notification for performance degradation - a Ballerina program[4] that reads and compares the last 2 entries(whether current execution has increased more than 10% from previous execution time) and sends a chat message if there is an increase
@Dilhasha cloned issue wso2-enterprise/ballerina-registry#1325 on 2022-01-21: