Skip to content
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

Run regular XCM test #54

Closed
2 tasks
sander2 opened this issue Mar 3, 2023 · 3 comments
Closed
2 tasks

Run regular XCM test #54

sander2 opened this issue Mar 3, 2023 · 3 comments
Labels
enhancement New feature or request prio:high

Comments

@sander2
Copy link
Member

sander2 commented Mar 3, 2023

idea: cron job in github action on bridge/UI repo to test XCM every X hours with chopsticks to validate that XCM is still working considering runtime upgrades

If we ignore the UI part, it'll be straight forward to test - we can just have a ts script that does a bunch of xcm transfers, and then checks if the tokens arrived. I would suggest doing this in 2 steps:

  • Write TS script to make and check xcm transfers
  • Write a cron job or bash script to start a new chopsticks instance, and to launch the script (and report errors if there are any)
@bvotteler bvotteler mentioned this issue Mar 3, 2023
1 task
@bvotteler bvotteler added enhancement New feature or request prio:medium labels Mar 3, 2023
@nud3l
Copy link
Member

nud3l commented Mar 6, 2023

You don't actually need to write a cron job but rather write the cron job as a github action using the schedule trigger: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule

So something along those lines:

# in .github/workflows/xcm-prod-test.yml
on:
  schedule:
    - cron: '30 9 * * *'

jobs:
  test_interlay:
    runs-on: ubuntu-latest
    steps:
      - name: Test XCM Interlay
        run: yarn test ...
      - name: Create issue
        if: ${{ failure() }}
        uses: actions-cool/issues-helper@v3
        with:
          actions: 'create-issue'
          token: ${{ secrets.GITHUB_TOKEN }}
          title: 'xxxx'
          body: 'xxxx'
          labels: 'xx'

I think you can then also create an issue automatically when the workflow has failed with https://github.com/marketplace/actions/issues-helper#create-issue

@nud3l
Copy link
Member

nud3l commented Mar 6, 2023

@bvotteler
Copy link

Completed with PRs #57 and #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:high
Projects
Archived in project
Development

No branches or pull requests

3 participants