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

fix(ci): rm deleted files #432

Merged
merged 6 commits into from
Apr 26, 2022
Merged

fix(ci): rm deleted files #432

merged 6 commits into from
Apr 26, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Apr 26, 2022

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

Follow up of #408 :(

As seen in #413, the CI still does not push deleted files.

Explanations:

TLDR: push deleted files.

Relying on the CI to push deleted files will never work as we rely on cache.
The cache is updated for files that exists, if they don’t exists, they are not cached/cache is not updated.
Since we restore cache before pushing code, we don’t know the file is deleted.
We need to push file deletion in our PRs (the pre-commit hook allows it already)

🧪 Test

CI

@shortcuts shortcuts requested a review from a team April 26, 2022 12:57
@shortcuts shortcuts self-assigned this Apr 26, 2022
@shortcuts shortcuts requested review from eunjae-lee and millotp and removed request for a team April 26, 2022 12:57
@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit e319792
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/6268390e0209ba00080159ab

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 26, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.

@shortcuts shortcuts marked this pull request as ready for review April 26, 2022 14:39
@shortcuts shortcuts enabled auto-merge (squash) April 26, 2022 14:45
@@ -0,0 +1,234 @@
#!/bin/sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you gen those files by hand ?
They should be generated by #427 but there is an issue

Copy link
Member Author

Choose a reason for hiding this comment

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

It has been pending for 3 PRs so I've pushed them trying to find where it was failing, but I've then realized it was in the composite cache path

@shortcuts shortcuts merged commit fd6b910 into main Apr 26, 2022
@shortcuts shortcuts deleted the fix/ci-push-deleted-files branch April 26, 2022 18:35
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Apr 26, 2022
algolia/api-clients-automation#432

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
algolia-bot added a commit to algolia/algoliasearch-client-java that referenced this pull request Apr 26, 2022
algolia/api-clients-automation#432

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
algolia-bot added a commit to algolia/algoliasearch-client-php that referenced this pull request Apr 26, 2022
algolia/api-clients-automation#432

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
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.

3 participants