Skip to content

Setup an experimental SMACS repository to allow tooling scripts testing #19

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

justin-sadakhom
Copy link
Member

No description provided.

./gradlew clean build
./gradlew build
Copy link
Member Author

Choose a reason for hiding this comment

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

the clean task is unnecessary and will slow down build time

@@ -38,6 +38,7 @@ fragment IssueFragment on Issue {
# No need to get all pages as issues don't realistically have >100
connectedPrs(first: 5) {
nodes {
id
Copy link
Member Author

Choose a reason for hiding this comment

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

PR id is needed to add / remove a connection to 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.

the pipeline ids were hardcoded to our main zenhub board, which was problematic when we wanted to switch to using the test board for e2e / integration tests. ideally our github-zenhub-sdk code is agnostic to which board is being used, so this has been moved to ziro-cli

Comment on lines -18 to -28
@Test
fun whenGetIssuesByPipelineThenAtLeastZeroIssues() {
val issues = zenHubClient.getIssuesByPipeline(Pipeline.MERGE_READY)

if (issues.isNotEmpty()) {
assertTrue(issues[0].issueFragment.number > 0)
} else {
assertNotNull(issues)
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

this test isn't really usefull... it's not even a unit test (not fully mocked)

@caustin-ziro caustin-ziro self-requested a review May 27, 2025 13:58
@caustin-ziro caustin-ziro self-assigned this May 27, 2025
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