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

Update versioning information for dependencies, baseline & CI #312

Merged
merged 53 commits into from
Nov 2, 2020

Conversation

LinqLover
Copy link
Contributor

@LinqLover LinqLover commented Oct 7, 2020

This PR updates various versioning information for the project. Updated the baseline in order to make the whole project installable by using Metacello only, without installing any dependencies or SAR files separately. Refactored the CI configuration to remove some duplication and use Squeak-5.2, 5.3, and Trunk respectively.

Also increases timeouts for authentication handler test logic because in many cases, the authentication did not happen yet on CI before the tests timed out.

Adds description of installation via Metacello to the README.md (1be3f0f). These instructions already have been added to the wiki via https://github.com/hpi-swa-teaching/TelegramClient/wiki/Setup-Guide/3364dad29a019b66be4b266c3b528535016184b3.

Last but not least: Fixes a failing test on master due to assumed change on the server side (8170a51).

Might be squashed when merging.

@LinqLover
Copy link
Contributor Author

LinqLover commented Oct 7, 2020

@LinqLover LinqLover changed the title Update baseline Update versioning information for dependencies, baseline & CI Oct 7, 2020
LinqLover added a commit to LinqLover/TelegramBot that referenced this pull request Oct 12, 2020
- Add GitHub Action workflow (`.github/workflows/main.yml`) to run tests using smalltalkCI (`.smalltalk.ston`)
- Make integration tests CI-ready by providing:
  * secret variables for bot and client (they also have been defined in the [repository settings](https://github.com/LinqLover/TelegramBot/settings/secrets))
  * a test database for TelegramClient (see `assets/tests/tdlib.zip.gpg`) that works out of the box without using a new authentication code. It is encrypted using another secret variable.
  * revising the `TelegramBotIntegrationTest` running logic to make it more robust and fail-safe
- Fix baseline and specify missing dependencies
  * Create an extra package (`TelegramBot-Support-ShoutAttribute`) for extensions depending on the not-yet-released `ShoutAttribute` changeset (4680c53)
  * Add `BaselineOfTelegramBot >> #installPreviewDependencies` to install other not-yet-released proposals for the Squeak Trunk (works around Metacello/metacello#528 and Metacello/metacello#530)
  * Depend on [fork](https://github.com/LinqLover/TelegramClient) of [TelegramClient](https://github.com/hpi-swa-teaching/TelegramClient) until hpi-swa-teaching/TelegramClient#311, hpi-swa-teaching/TelegramClient#312 have been merged (528ae9a)
  * Add missing and remove superfluous extension methods
- API: Revise offset computation for getUpdates method (89c79a0)
- Fix `TelegramBotRequest >> #testSendAudio` (305755e)
- Add badges to `README.md` (7621356)
@LinqLover
Copy link
Contributor Author

@codeZeilen @Mrnikbobjeff Would someone of you like to give this PR a review? :-)

Copy link
Contributor

@Mrnikbobjeff Mrnikbobjeff left a comment

Choose a reason for hiding this comment

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

Looks good, some things should be touched again

@Mrnikbobjeff
Copy link
Contributor

Could we perhaps also close #308 while we are meddling with the release process. Simply ammed the time format specifier to include minutes and seconds and we should be good to go for our project size

@LinqLover
Copy link
Contributor Author

Could we perhaps also close #308 while we are meddling with the release process. Simply ammed the time format specifier to include minutes and seconds and we should be good to go for our project size

Implemented in 61f56c8 :-)

Copy link
Contributor

@Mrnikbobjeff Mrnikbobjeff left a comment

Choose a reason for hiding this comment

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

Looks good

@Mrnikbobjeff Mrnikbobjeff merged commit 1e26ffe into hpi-swa-teaching:master Nov 2, 2020
@LinqLover LinqLover deleted the update-baseline branch November 2, 2020 12:28
@LinqLover
Copy link
Contributor Author

Great, thanks for your time! :-)

LinqLover added a commit to LinqLover/TelegramBot that referenced this pull request Mar 22, 2021
When sending a message from the bot failed because the recipient has blocked the bot, no longer get stuck in the central update cycle by raising one TelegramBotError(403) after the other, but instead raise a dedicated TelegramBotFailure and proceed with the next update. Subclasses can refine the handling of blocked messages by overriding the hook #messageBlocked:withError:. Also introduced a new fancy Abort exception. 🤓

Fixes #17. Tests are included as well.

Also reverts baseline workaround solution from 528ae9a (hpi-swa-teaching/TelegramClient#311 and hpi-swa-teaching/TelegramClient#312 are merged now).
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.

2 participants