-
Notifications
You must be signed in to change notification settings - Fork 8
Selenium Work flow enhancements #4065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
khaledyoussef24
wants to merge
74
commits into
development
Choose a base branch
from
development_selenium_workflow_enhancement
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
ec50ef0
fix(workflow): make 'network' input a choice type for workflow_dispatch
khaledyoussef24 6c4fc38
adding branch choosing and making lerna only runs on local
khaledyoussef24 6c76dd6
adding workflow to be build on any network or to run on the current n…
khaledyoussef24 eb49c47
removing local from choices
khaledyoussef24 bee5702
fixing checkout
khaledyoussef24 20ba723
fixing checkout
khaledyoussef24 d13f8c8
fixing checkout
khaledyoussef24 aa1e941
fixing confest.py
khaledyoussef24 0a3ce83
fixing workflow link
khaledyoussef24 49c7eb6
fixing workflow link
khaledyoussef24 4499676
fixing workflow link
khaledyoussef24 2b5a8c3
fixing workflow link
khaledyoussef24 5a7b0c9
fixing url work flow
khaledyoussef24 ffb01f6
fixing url work flow
khaledyoussef24 249b528
fixing url work flow
khaledyoussef24 7d9a2a9
trial 1
khaledyoussef24 01b1d7f
trial
khaledyoussef24 02ec2c1
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 e433efc
trial
khaledyoussef24 866d15d
trial
khaledyoussef24 a852a3d
trial
khaledyoussef24 eca183b
trial
khaledyoussef24 d313e5f
trial
khaledyoussef24 52e4a30
checking
khaledyoussef24 d57645b
trying remote
khaledyoussef24 b84de32
trying remote
khaledyoussef24 6c5b3f3
trying remote
khaledyoussef24 d3dac8c
step1
khaledyoussef24 e5bd3e4
step2
khaledyoussef24 c4a0be9
step3
khaledyoussef24 9bf7a40
trial 2 step 1
khaledyoussef24 cbf78ea
trial 2 step 2
khaledyoussef24 169a685
startegy 2
khaledyoussef24 f3a82e5
startegy 2 update 1
khaledyoussef24 076c6f1
startegy 2 update 2
khaledyoussef24 77e12e5
startegy 2 update 3
khaledyoussef24 8fd7e10
startegy 2 update 4
khaledyoussef24 9dae3e2
startegy 2 update 5
khaledyoussef24 668942f
startegy 2 update 6
khaledyoussef24 b4f0fd0
startegy 2 update 9
khaledyoussef24 1ebf141
fixing work flow uses
khaledyoussef24 430fa6c
fixing the priniting of the seed
khaledyoussef24 7632715
fixing the priniting of the seed
khaledyoussef24 0ab59b3
fixing the priniting of the seed
khaledyoussef24 6b6ba4e
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 da31eb2
Merge branch 'development' of https://github.com/threefoldtech/tfgrid…
khaledyoussef24 6c91ead
fixing seeds field
khaledyoussef24 dcf3ca8
fixing seeds field
khaledyoussef24 2321878
fixing seeds field
khaledyoussef24 5465f43
workflow enhancements
khaledyoussef24 fb17a23
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 708b34c
workflow fixes
khaledyoussef24 e3b0f32
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 14751b5
fixes for different enviroment
khaledyoussef24 796a89b
fixes for different enviroment
khaledyoussef24 f1febdb
fixes for different enviroment
khaledyoussef24 8b52fb1
adding local run
khaledyoussef24 4f8c7da
adding network selection to local
khaledyoussef24 f2b2e12
adding network selection to local
khaledyoussef24 8edc1c4
adding network selection to local and only one network to run
khaledyoussef24 d5b7cf5
add package
khaledyoussef24 550b164
add package
khaledyoussef24 5eaca7e
add package
khaledyoussef24 2af0033
add package
khaledyoussef24 98793f5
add package
khaledyoussef24 fe66173
adding config.ini
khaledyoussef24 d8d9f13
editing flow
khaledyoussef24 8dc45f0
editing the local build message
khaledyoussef24 b7934ec
editing the local build message
khaledyoussef24 b222f43
Add selenium brance yo get tests from it
ramezsaeed c5287d0
run on ramez brance for fixes 2.8.0
ramezsaeed 7c251b3
run node tests only
ramezsaeed 623b6a0
export stellar network test/main for local build
ramezsaeed 56d332b
add print and run one test
ramezsaeed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,40 +2,109 @@ name: Playground Selenium Tests | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
env: | ||
description: "Target environment" | ||
type: choice | ||
required: true | ||
options: | ||
- dev | ||
- qa | ||
- test | ||
- main | ||
branch: | ||
type: choice | ||
description: "Git branch to test" | ||
required: true | ||
default: "development" | ||
options: | ||
- "development" | ||
- "development_seleium_2.8.0_fixes" | ||
local: | ||
description: "Build Local Environment" | ||
type: boolean | ||
default: false | ||
schedule: | ||
- cron: "0 6 * * *" | ||
|
||
jobs: | ||
selenium-run: | ||
selenium: | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.env }} | ||
steps: | ||
- name: Checkout | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setting up Python | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install system dependencies | ||
run: sudo apt-get update && sudo apt-get install -y xclip | ||
- name: Installing all necessary packages | ||
run: pip install -r packages/playground/tests/frontend_selenium/requirements.txt | ||
- name: Node install | ||
|
||
- name: Install Python requirements | ||
run: pip install -r packages/playground/tests/frontend_selenium/requirements.txt | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.15 | ||
|
||
- name: Yarn install | ||
run: yarn install | ||
- name: Lerna Build | ||
|
||
|
||
# - name: Generate local config | ||
# if: ${{ inputs.local }} | ||
# working-directory: packages/playground/public | ||
# run: MODE=${{ inputs.env }} bash ../scripts/build-env.sh | ||
Comment on lines
+55
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this commented |
||
- name: Generate local config | ||
if: ${{ inputs.local }} | ||
working-directory: packages/playground/public | ||
run: | | ||
if [[ "${{ inputs.env }}" == "dev" || "${{ inputs.env }}" == "qa" ]]; then | ||
export STELLAR_NETWORK="test" | ||
else | ||
export STELLAR_NETWORK="main" | ||
fi | ||
export MODE=${{ inputs.env }} | ||
echo "Using MODE=$MODE and STELLAR_NETWORK=$STELLAR_NETWORK" | ||
|
||
|
||
- name: Build packages when local | ||
if: ${{ inputs.local }} | ||
run: yarn lerna run build | ||
- name: Yarn Serve | ||
|
||
- name: Build env config when local | ||
if: ${{ inputs.local }} | ||
working-directory: packages/playground/public | ||
run: bash ../scripts/build-env.sh | ||
|
||
- name: Start playground app | ||
if: ${{ inputs.local }} | ||
run: make run project=playground & | ||
- name: Wait for localhost | ||
|
||
- name: Wait for local app | ||
if: ${{ inputs.local }} | ||
run: sleep 60 | ||
- name: Run tests | ||
working-directory: ./packages/playground/tests/frontend_selenium | ||
|
||
- name: Update Config.ini | ||
run: | | ||
CONFIG=packages/playground/tests/frontend_selenium/Config.ini | ||
if [ -f "$CONFIG" ]; then | ||
if [ "${{ inputs.local }}" == "true" ]; then | ||
sed -i 's/^net =.*/net = local/' "$CONFIG" | ||
else | ||
sed -i "s/^net =.*/net = ${{ inputs.env }}/" "$CONFIG" | ||
fi | ||
else | ||
echo "::warning::Config.ini not found at $CONFIG. Skipping config update." | ||
fi | ||
|
||
- name: Run selenium tests | ||
working-directory: packages/playground/tests/frontend_selenium | ||
env: | ||
TFCHAIN_MNEMONICS: ${{ secrets.TFCHAIN_MNEMONICS }} | ||
# TFCHAIN_MNEMONICS: ${{ secrets.TFCHAIN_MNEMONICS.${{ inputs.env }} }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this commented? |
||
TFCHAIN_NODE_MNEMONICS: ${{ secrets.TFCHAIN_NODE_MNEMONICS }} | ||
STELLAR_ADDRESS: ${{ secrets.STELLAR_ADDRESS }} | ||
EMAIL: ${{ secrets.EMAIL }} | ||
run: python -m pytest -v | ||
run: python -m pytest -v tests/Farms/test_node.py::test_node_details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that still needed?