Skip to content

Add root-level GitHub Actions CI/CD pipeline for PR validation#15

Merged
michellechang02 merged 3 commits intomainfrom
copilot/add-ci-cd-pipeline
Apr 24, 2026
Merged

Add root-level GitHub Actions CI/CD pipeline for PR validation#15
michellechang02 merged 3 commits intomainfrom
copilot/add-ci-cd-pipeline

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

  • Fix Spotless formatting violations in backend controller and tests (apply formatter)
  • Re-run backend Spotless check/build to confirm CI passes
  • Reply to PR comment with the commit hash

Copilot AI changed the title [WIP] Add CI/CD pipeline to validate all PRs before merging Add root-level GitHub Actions CI/CD pipeline for PR validation Apr 24, 2026
Copilot AI requested a review from michellechang02 April 24, 2026 21:44
@michellechang02
Copy link
Copy Markdown
Owner

@copilot Address the failing ci/cd errors Skip to content
michellechang02
wikipediafinder
Repository navigation
Code
Issues
2
(2)
Pull requests
2
(2)
Agents
Actions
Projects
Wiki
Security and quality
Insights
Settings
Back to pull request #15
Add root-level GitHub Actions CI/CD pipeline for PR validation #1
All jobs
Run details
Annotations
1 error and 1 warning
Backend – Build & Test
failed now in 26s
Search logs
1s
1s
0s
1s
0s
21s
Run ./gradlew spotlessCheck --no-daemon
Downloading https://services.gradle.org/distributions/gradle-8.5-bin.zip
............10%.............20%............30%.............40%.............50%............60%.............70%.............80%............90%.............100%

Welcome to Gradle 8.5!

Here are the highlights of this release:

  • Support for running on Java 21
  • Faster first use with Kotlin DSL
  • Improved error and warning messages

For more details see https://docs.gradle.org/8.5/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.5/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build

Task :spotlessInternalRegisterDependencies
Task :spotlessJava
Task :spotlessJavaCheck FAILED

FAILURE: Build failed with an exception.
3 actionable tasks: 3 executed

  • What went wrong:
    Execution failed for task ':spotlessJavaCheck'.

The following files had format violations:
src/main/java/com/wikipediafinder/backend/controller/MyController.java
@@ -36,8 +36,7 @@
··public·ResponseEntity·getResults(
······@RequestParam·String·startinglink,·@RequestParam·String·endinglink)·{
····try·{
-······BFSResult·result·=
-··········bfs.getPathWithStats(new·PageNode(startinglink),·new·PageNode(endinglink));
+······BFSResult·result·=·bfs.getPathWithStats(new·PageNode(startinglink),·new·PageNode(endinglink));

       ······if·(result.getPath()·==·null)·{
       ········return·new·ResponseEntity<>(
  src/test/java/com/wikipediafinder/backend/controller/MyControllerTest.java
      @@ -41,8 +41,7 @@
       ····when(bfs.getPathWithStats(any(PageNode.class),·any(PageNode.class)))
       ········.thenReturn(
       ············new·BFSResult(
      -················Arrays.asList(
      -····················"https://en.wikipedia.org/wiki/A",·"https://en.wikipedia.org/wiki/B"),
      +················Arrays.asList("https://en.wikipedia.org/wiki/A",·"https://en.wikipedia.org/wiki/B"),
       ················2));
       
       ····mockMvc

Run './gradlew :spotlessApply' to fix these violations.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org./

BUILD FAILED in 20s
Error: Process completed with exit code 1.
0s
0s
0s
0s
0s
Footer
© 2026 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Community
Docs
Contact
Manage cookies
Do not share my personal information

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 24, 2026

@copilot Address the failing ci/cd errors Skip to content
[michell...

Applied Spotless formatting fixes in MyController and MyControllerTest to resolve the backend CI failure. Commit: 9db3d93.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • en.wikipedia.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -Dorg.gradle.internal.worker.tmpdir=/home/REDACTED/work/wikipediafinder/wikipediafinder/backend/build/tmp/test/work -Dorg.gradle.native=false @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath1283025735162428581txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea worker.org.gradle.process.internal.worker.GradleWorkerMain &#39;Gradle Test Executor 1&#39; (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@michellechang02 michellechang02 marked this pull request as ready for review April 24, 2026 22:19
@michellechang02 michellechang02 merged commit a0b631d into main Apr 24, 2026
2 checks passed
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.

Add CI/CD pipeline to validate all PRs from now on prior to merging with master

2 participants