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

Failing unit test for Autolinks sync #520

Closed

Conversation

stevoland
Copy link
Contributor

No modifications are made if the number of existing and configured autolinks is equal.

Seems to be a conflict in the mergeDeep behaviour with the other plugins. Removing the condition around this line fixes it https://github.com/github/safe-settings/blob/main-enterprise/lib/mergeDeep.js#L88

As a side note, currently 18 unit tests are failing (hopefully because they have become incorrect). Running the tests on CI should be a priority. The failing tests can be skipped and fixed incrementally. I'm happy to contribute to getting the the above PR merged.

Thanks

No modifications are made if the number of existing and configured autolinks is equal
Comment on lines +32 to +34
{ id: '1', key_prefix: 'SAME-', url_template: 'https://same/<num>', is_alphanumeric: true },
{ id: '2', key_prefix: 'REMOVE-', url_template: 'https://test/<num>', is_alphanumeric: true },
{ id: '3', key_prefix: 'NEW_URL-', url_template: 'https://old-url/<num>', is_alphanumeric: true },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove any line for the test to pass

@decyjphr
Copy link
Collaborator

resolved the merge conflicts in #598 but seeing the tests fail. Need to spend a little bit more time to resolve this.

@decyjphr
Copy link
Collaborator

@stevoland Seems like the later PRs resolved this. I think we can close this without merging.

@stevoland stevoland closed this Feb 28, 2024
@stevoland stevoland deleted the autolinks-test-fail branch February 28, 2024 17:41
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