Commit Graph

962 Commits

Author SHA1 Message Date
yatinappsmith
655548d948
CI: Fix label Checker (#32770)
Fix label Checker
2024-04-18 14:38:17 +05:30
yatinappsmith
4e6f3c599e
CI: Check for valid cypress tags (#32764)
## Description
Add a check to validate PRs

Fixes #`32763`  


## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Integrated a new workflow step to validate tags in pull requests,
providing guidance for corrections and halting the workflow if tags are
incorrect.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-18 13:20:59 +05:30
Hetu Nandu
7a02a1764b
ci: [Cypress Test Results] Remove code wrappers from commit refs (#32543) 2024-04-10 15:06:16 +05:30
Shrikant Sharat Kandula
7c89a3bad0
ci: Better and more visible colors (#32541) 2024-04-10 13:33:02 +05:30
Shrikant Sharat Kandula
08ef7ad53b
ci: Weekly schedule for Caddy route tests 2024-04-08 12:19:16 +05:30
Shrikant Sharat Kandula
5968f87be0
ci: Show default TED tag when blank 2024-04-06 10:09:57 +05:30
Nidhi
74b9ac16ba
ci: Delete jobs that are not part of SDLC process anymore (#32461) 2024-04-05 19:20:29 +05:30
Nidhi
a258690356
ci: Delete Build DP via ops.appsmith and Add label for Cyp fix (#32455) 2024-04-05 16:50:46 +05:30
Nidhi
055b0dffa9
ci: Remove unused Cypress related jobs (#32450) 2024-04-05 15:01:20 +05:30
Nidhi
f75f0871d5
ci: Removing perf-test related jobs (#32447) 2024-04-05 14:06:23 +05:30
Shrikant Sharat Kandula
bdd130d95c
ci: Show TED tag used in run name and summary (#32445)
This is to make it apparent what TED tag was used to run a workflow, so
that runs that happened with an unstable (non `latest`) tag of TED
aren't taken seriously.
2024-04-05 12:09:02 +05:30
Nidhi
f544e7ca49
ci: Removing DocumentDB related jobs (#32436) 2024-04-05 11:11:23 +05:30
Nidhi
0b5349231c
ci: Removing pr-test-file-check since it does not seem to be a requirement today (#32435) 2024-04-05 11:10:51 +05:30
Nidhi
7c7038c87a
ci: Removing ci-merge-check workflow as it is not required anymore (#32434) 2024-04-05 11:10:30 +05:30
Gurudatt S A
7a596f5ab6
fix: fix typo in pr-test-file-check.yml (#32422) 2024-04-05 06:52:55 +05:30
yatinappsmith
2af8c4ef42
CI: Change TBP Schedule (#32319)
Change TBP Schedule

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Chores**
- Modified the schedule for running the workflow to trigger every 6
hours instead of every 3 hours on weekdays.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-02 12:10:42 +05:30
Arpit Mohan
86cd40982b
ci: Upgrading the github action steps from Node 16 to Node 20. (#32004)
## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._

This is a maintenance fix that removes the warnings in our CI runs to
make it more readable.
Refer:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]  
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8386795331>
> Commit: `2b1bfe7ed505ad9ba67bfe9211d50ebabb8ea0ce`
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8386795331&attempt=1"
target="_blank">Click here!</a>
> All cypress tests have passed 🎉🎉🎉

<!-- end of auto-generated comment: Cypress test results  -->



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Updated DockerHub login action across multiple workflows to version 3
for enhanced security and performance.
- Updated various GitHub Actions to newer versions in different
workflows for improved compatibility and performance.
- Modified file path pattern in a workflow step for consistency and
clarity.
- Updated setup actions for Java to version 4 for better Java
environment setup.
- Updated setup-node version in a workflow and adjusted comments for
Cypress test results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-01 15:41:43 +05:30
Shrikant Sharat Kandula
efc0428682
ci: Checkout repo so package.json is available 2024-03-31 08:21:39 +05:30
Shrikant Sharat Kandula
38cefce9af
ci: Add dashboard link in PR comment (#32205)
[Slack
conversation](https://theappsmith.slack.com/archives/C0134BAVDB4/p1711545944961399).
2024-03-28 13:27:30 +05:30
Shrikant Sharat Kandula
0291ef7e46
ci: Allow special chars in PR body (#32089)
Currently, we get the value of the PR body into a variable, by injecting
it into a variable definition. This has two problems:

1. If the PR body has a `'` character in it, then the string definition
will terminate there, and cause an syntax error in the rest of the
script.
2. This is prone to [script injections as documented by
GitHub](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections).
2024-03-27 08:58:27 +05:30
Valera Melnikov
92c72ee20e
chore: update node version and appropriate git workflows (#31486)
## Description
- update node version and appropriate git workflow
- added the path to webpack cache folder, this should speed up bundle
creation about a minute

[Test, build and push Docker
Image](https://github.com/appsmithorg/appsmith/actions/runs/8421752151)
[Build Client, Server & Run only
Cypress](https://github.com/appsmithorg/appsmith/actions/runs/8421752151)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Chores**
- Updated actions/cache and actions/setup-node to v4 across various
workflows for improved caching and Node.js setup.
- Modified the `yarn install` command to use `--immutable` flag,
enhancing dependency management.
- **Documentation**
- Updated comments within workflows to include cautionary and important
notes, ensuring better clarity.
- **Refactor**
	- Adjusted caching paths and keys for more efficient caching behavior.
- Changed Node.js installation to version 20.11.1 in Dockerfile,
aligning with the latest version for better performance and security.
- **Tests**
- Modified assertion in `getCurrentLocationSaga` test to check for the
presence of a property, improving test accuracy.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Aman Agarwal <aman@appsmith.com>
2024-03-26 14:12:11 +03:00
Shrikant Sharat Kandula
54832b6ac3
ci: Fix TED tag 2024-03-19 14:29:27 +05:30
Shrikant Sharat Kandula
7f56d70fb9
ci: Make TED image tag configurable (#31815)
With this, we should be able to set the image tag (`latest` or `nightly`
for example), to be used for the TED run for Cypress tests.

Unless we already have a different method to run Cypress with nightly
TED, this should give us that flexibility.
2024-03-19 11:57:59 +05:30
Nidhi
c5c3dc4caf
ci: Modified older ok-to-test job to redirect to the new one (#31673) 2024-03-12 10:01:44 +05:30
Nidhi
3756e94d91
ci: Prettify and remove redundancies (#31638) 2024-03-09 17:48:13 +05:30
Nidhi
86f5e8617e
ci: Prettify and remove redundancies (#31637) 2024-03-09 13:46:56 +05:30
Nidhi
01954c15d6
ci: Prettify and remove redundancies (#31635) 2024-03-09 13:24:38 +05:30
Nidhi
96655ec988
ci: Prettify and remove redundancies (#31634) 2024-03-09 12:56:02 +05:30
Nidhi
3b10f233cd
ci: Make Cypress results show up in body as well (#31631) 2024-03-09 09:55:50 +05:30
Nidhi
cd8cefd965
ci: Inherit secrets in workflow call to integrations tests (#31630) 2024-03-09 09:08:47 +05:30
Nidhi
73a7e3e8e7
ci: Make sure target is release branch for new flow (#31628) 2024-03-09 02:37:45 +05:30
Nidhi
d948bb6e1f
ci: Added an alternate ok-to-test path (#31626) 2024-03-09 02:30:19 +05:30
Hetu Nandu
b612a717f5
ci: Possible fix for Integration tests result update failures (#31600)
In testing we saw that updating `ci-test-result` has a chance of failing
if the correct check is not found.

When we are creating the `ci-test-result` check via the Github Api, it
successfully marked the PR check with the result. It did not seem to
have any issue even if a `ci-test-result` job already existed

By removing the logic of finding an existing check of the same name, and
always creating the check, we assume this will improve the PR check
updates

fixes: #31601
2024-03-08 11:17:00 +05:30
Shrikant Sharat Kandula
6e8febd971
ci: Set rate limiting to high value in CI 2024-03-08 09:40:38 +05:30
Shrikant Sharat Kandula
46787932d4
ci: Record server tests that errored, not just failed 2024-03-05 16:18:18 +05:30
Shrikant Sharat Kandula
960085e8c3
ci: Add $PWD/ prefix for failed tests faile (#31457) 2024-03-04 14:59:49 +05:30
Shrikant Sharat Kandula
30f8eddc29
ci: Fix another place with excessive logging in server build 2024-02-29 16:18:48 +05:30
Shrikant Sharat Kandula
5d00f87baf
ci: Change debug logs for server test failures 2024-02-29 15:29:51 +05:30
Shrikant Sharat Kandula
d831f289e5
ci: Add some debug info for failed server build 2024-02-29 12:00:34 +05:30
Shrikant Sharat Kandula
2eb14cad7c
ci: Collect failed server tests from Surefire reports (#31366)
The current `TestResultLoggerExtension` extension only finds failed
tests from the server module, and not from any of the plugin or other
modules.

To fix this, this PR collects failed tests using the Surefire XML test
reports already generated by the `mvn test` command.
2024-02-29 07:10:39 +05:30
Shrikant Sharat Kandula
c66990d64d
ci: Fix arg for re-running server unit-tests 2024-02-27 19:09:37 +05:30
Shrikant Sharat Kandula
8677240da6
ci: Don't print curl command output in server-build 2024-02-26 20:18:24 +05:30
Aishwarya-U-R
30300bb6a4
test: Cypress | Replacing some external api's with TED + Flaky fix (#31118)
## Description
- This PR does some clean up of comments - in DeployHelper.ts
- This PR replaced external image api with TED mock api in
ServerSide/OnLoadTests/OnLoadActions_Spec.ts
- Extrenal example api to TED in Widgets/Image/Image_spec.js
- Extrenal api links in
app/client/cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js
to TED api's
- Flaky fixes /ServerSide/LoginTests/LoginFailure_spec.js - for EE CI
run failure (Added multiple Dynamic checks)
- support command.js method LoginUser() - added Dynamic check
- Encapsulated Datasources/Arango_Basic_Spec.ts into conditional check
to run in CE alone, instead of entirely skipping, since its failing in
EE due to chrome crash

#### Media
#### Type of change
- Script fix (non-breaking change which fixes an issue)

## Testing
#### How Has This Been Tested?
- [X] Cypress CI runs

## Checklist:
#### QA activity:
- [X] Added `Test Plan Approved` label after Cypress tests were reviewed

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Updated Cypress regression tests to use flower images instead of cat
images for API calls.
- Modified limited test configurations to run with different spec files.
- Adjusted GitHub Actions workflow to change `matrix_count` values based
on the event type and retrieve PR number for manual triggers.
	- Updated Docker image tag in CI tests to `nightly`.

- **Refactor**
- Enhanced `DataManager` class with new properties for flower image
URLs.
- Improved `EntityExplorer` class method to ensure more reliable
triggering of events.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-23 13:18:01 +05:30
yatinappsmith
bda53ce421
CI: Trigger auto-analysis for cypress runs (#30659)
## Description

#### PR fixes following issue(s)
Fixes # (issue number)

#### Media

#### Type of change
- New feature (non-breaking change which adds functionality)

## Testing

#### How Has This Been Tested?

- [X] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress

#### Test Plan

## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Introduced a new step in the CI/CD pipeline to trigger an automated
analysis workflow.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-12 06:29:17 +05:30
Shrikant Sharat Kandula
ff49dd859f
ci: Exclude duplicates in failed tests message 2024-02-09 17:26:26 +05:30
Shrikant Sharat Kandula
dbe138778a
ci: Add server failed tests as PR comment (#30888)
And, don't show duplicates. Not sure why we're seeing duplicates though.
2024-02-06 16:07:43 +05:30
Shrikant Sharat Kandula
11c55b7aec
ci: Print failed tests to Action Summary (#30853)
This should show the failed test list in the GitHub actions summary so
we don't have to load the _extremely large_ full log file of the server
tests, just to see the list of tests that failed.
2024-02-02 10:32:40 +05:30
Shrikant Sharat Kandula
67c444e2a5
chore: Show commit SHA instead of SNAPSHOT version (#30850)
Show the commit SHA in the version popup, instead of a snapshot version
number like `v1.11-SNAPSHOT`. But if the version number doesn't have a
`-SNAPSHOT` at the end, we show the version number as is. So if it's
`v1.12`, we show that instead of the commit SHA.


![shot-2024-02-02-02-09-14](https://github.com/appsmithorg/appsmith/assets/120119/c0fe70f7-5c49-4191-8cb8-262e6c7710bc)
2024-02-02 09:52:34 +05:30
Shrikant Sharat Kandula
7a1e17ee8e
ci: Use a variable for client runner (#30787)
We should be able to switch back-and-forth faster with this.
2024-01-31 14:47:59 +05:30
Shrikant Sharat Kandula
5e746bca91
ci: Switch client-build to default runners 2024-01-31 12:52:14 +05:30