Skip to content

Conversation

@maxwell-aiden
Copy link
Member

This is an automatic PR generated by the CI/CD pipeline. This will be automatically fast-forward merged if successful.

@maxwell-aiden
Copy link
Member Author

Pipeline Attempt on 12061525762 for 2b4c00c

https://github.com/MatrixAI/Polykey-CLI/actions/runs/12061525762

@tegefaulkes
Copy link
Contributor

@aryanjassal its failing on tests you added recently. You need to dig into this.

@aryanjassal
Copy link
Contributor

aryanjassal commented Nov 29, 2024

I pulled the repo and tried to run the tests, and they all passed. It could be due to fastcheck discovering an edge case.

@aryanjassal
Copy link
Contributor

This is happening due to fastcheck generating - as the vault name, and commander trying to parse any values starting with - as an option. I can update the vault regex to disallow -, or use quotation marks around the vault name.

The first option is the easiest, and the second option will take some time as this change needs to be implemented across all tests, but would be more robust in the future. Which one should I implement, @tegefaulkes?

@maxwell-aiden
Copy link
Member Author

Pipeline Attempt on 12078305328 for c6f7614

https://github.com/MatrixAI/Polykey-CLI/actions/runs/12078305328

@maxwell-aiden
Copy link
Member Author

Pipeline Succeeded on 12078305328 for c6f7614

https://github.com/MatrixAI/Polykey-CLI/actions/runs/12078305328

@maxwell-aiden maxwell-aiden merged commit c6f7614 into master Nov 29, 2024
25 checks passed
@CMCDragonkai
Copy link
Member

This is happening due to fastcheck generating - as the vault name, and commander trying to parse any values starting with - as an option. I can update the vault regex to disallow -, or use quotation marks around the vault name.

The first option is the easiest, and the second option will take some time as this change needs to be implemented across all tests, but would be more robust in the future. Which one should I implement, @tegefaulkes?

I would say that yes, if quoted, it's a legal name, if not quoted, it's not a legal name. So in some cases, the fast check generation should be more precise, or you should be expecting a parse error in those scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants