8000 1449 Integration test for triggering build in multiple authorized nodes environment by andpopov · Pull Request #1643 · pyrsia/pyrsia · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1449 Integration test for triggering build in multiple authorized nodes environment #1643

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

andpopov
Copy link

Part of: #1449
Test is provided as bash script and consists of following steps:

  1. Starts build pipeline, 2 authorized node and 2 regular nodes. All are started in separate processes.
    The logs and pids of started nodes are present inside directory: /tmp/pyrsia-manual-tests/.log and /tmp/pyrsia-manual-tests/.pid
  2. Triggers first build docker artifact from first authorized node
  3. Checks logs on all 4 nodes contain information about buit docker artifact
  4. Triggers second build docker artifact from second authorized node
  5. Checks logs on all 4 nodes contain information about buit docker artifact
  6. Stops all nodes

Test is located in pyrsia repository' by path: tests/test_multiple_authorized_nodes.sh
It requires to specify following paramters:

  • pyrsia home path
  • pyrsia build pipeline home path
    Example:
    test_multiple_authorized_nodes.sh $PYRSIA_HOME $PYRSIA_BUILD_PIPELINE_HOME

@andpopov andpopov requested a review from a team as a code owner February 21, 2023 08:10
@andpopov andpopov requested review from efrisch and erwin1 and removed request for a team February 21, 2023 08:10
@linux-foundation-easycla
Copy link
linux-foundation-easycla bot commented Feb 21, 2023

CLA Missing ID CLA Not Signed

pidlist="$pidlist$pid";
done
echo -e "\nPyrsia processes:"
ps -u -q $pidlist
Copy link
Member
@fishseabowl fishseabowl Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run the tests on Mac OS, it reports:

Pyrsia processes:
ps: No user named '-q'

Could you help to look into it? Thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added fix, @fishseabowl could you please to try it again?


kill_processes

echo ""; echo "All test scenarios are done successfully!"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to add a newline at the end of the file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fishseabowl
merged last changes from 'main'-branch and found that increasing of timeout for awaiting result 'pyrsia inspect-log docker --image' is required.
Please take a look.

Copy link
Member
@fishseabowl fishseabowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I finished testing, the Pyrsia process was not killed. Could you help to check it out? Thanks

@ihcomega56
Copy link
Contributor

Is it intentionally separated from the integration tests repo
https://github.com/pyrsia/pyrsia-integration-tests? Did we already decide move them to this repo?
Sorry if I missed something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0