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

chore(ci): commit deleted files #692

Merged
merged 1 commit into from
Jun 14, 2022
Merged

chore(ci): commit deleted files #692

merged 1 commit into from
Jun 14, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jun 14, 2022

🧭 What and Why

Delete the files before applying the zip so that deleted files get commited too.

🧪 Test

CI

@millotp millotp self-assigned this Jun 14, 2022
@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 2b04d1a
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62a8ab9c88f2280008ad590d

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 14, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@millotp millotp changed the title chore(ci): commit delete files chore(ci): commit deleted files Jun 14, 2022
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Nice :)

Small comment if you want to investigate, otherwise feel free to merge!

@@ -242,7 +242,9 @@ jobs:
run: yarn cli cts run ${{ matrix.client.language }}

- name: Zip artifact before storing
run: zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x "**/node_modules**" "clients/algoliasearch-client-javascript/.yarn**" "**/.github**"
run:
zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x \
Copy link
Member

Choose a reason for hiding this comment

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

is the change here only the newline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added some folder to ignore, the java and php artifacts were multiple Mb, now less than 500Kb

Copy link
Member

Choose a reason for hiding this comment

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

ah yes that's great!!

@@ -62,7 +62,11 @@ runs:
- name: Unzip clients-javascript artifact
Copy link
Member

Choose a reason for hiding this comment

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

Do you know if output variables from main workflow are available here? We could maybe have some automated ones set to avoid hardcoding paths

Copy link
Member

Choose a reason for hiding this comment

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

we have testsToDelete and path computed at the matrix level, idk if it can help

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can pass the matrix but it would still require to write it for every language, might still be better than this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually it's an array so it would be a pain to find the correct client with the correct name and then rm, it's easier like that

@millotp millotp merged commit 9d4ddfe into main Jun 14, 2022
@millotp millotp deleted the chore/simple-gen-delete branch June 14, 2022 15:52
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