Skip to content

Conversation

@chylli-deriv
Copy link
Contributor

No description provided.

@chylli-deriv
Copy link
Contributor Author

test failed because we haven't set user key and python token yet

echo "Schama updated"
git add .
git commit -m 'update schema automatically'
git push -u origin
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we specify the branch to push?

'reason': 'want'}, 'account_closure can get right result'
with pytest.raises(ValueError, match='Required parameters missing: reason'):
await api.account_closure({})
assert (await api.exchange_rates({'exchange_rates': 1, 'base_currency': 'USD'})) == {'exchange_rates': 1,
Copy link
Contributor

@lim-deriv lim-deriv Aug 29, 2023

Choose a reason for hiding this comment

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

is this updated automatically by some script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test fixed manually by me.

only:
- master
- master
- update_schema

Choose a reason for hiding this comment

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

Since the update_schema is run daily. Are we configuring the trigger via the UI ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we needn't trigger via UI, this cron configuration will trigger it
Please let me know if I misunderstand you or you have a deeper think.

Choose a reason for hiding this comment

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

Previously since the trigger was missing i assumed you intended to add the trigger via the project settings rather than specifying the trigger in the yaml itself since as per the docs setting the trigger via the project settings seems to be the preferred approach. https://circleci.com/docs/migrate-scheduled-workflows-to-scheduled-pipelines/

command: |
git clone https://github.com/binary-com/deriv-developers-portal.git /tmp/deriv-developers-portal
curl -L https://cpanmin.us | perl - --sudo App::cpanminus
sudo cpanm -n Dir::Self File::Basename JSON::MaybeXS Log::Any Path::Tiny Template Syntax::Keyword::Try

Choose a reason for hiding this comment

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

Does it make sense to have a cpanfile for installing these dependencies ? Or is the dependencies too little to have a separate file for it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a python project. I'm installing dependencies for that script scripts/regen-py.pl . I don't think its necessary to maintain a cpanfile.

branches:
only:
- master
- master

Choose a reason for hiding this comment

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

EOF

Comment on lines 61 to 62
steps:
- checkout

Choose a reason for hiding this comment

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

the add_ssh_keys step is missing here. Do we need that to be able to push the updated schema to master ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should use a user deploy key to push to master.
I'm not sure the token in that add_ssh_keys step in docs-build-deploy has permission to write origin master or not.

@raunakkathuria raunakkathuria merged commit 183cb38 into deriv-com:master Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants