Skip to content

Conversation

@mashan555
Copy link

No description provided.

@github-actions
Copy link

github-actions bot commented Jan 19, 2026

Junie is failed!

Details: ❌ Junie execution returned an empty result.

This typically indicates an error during task processing.
Please check the Junie execution logs for details.

View job run

- name: Run Integration Tests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TEST_ORG: melotria

Choose a reason for hiding this comment

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

Suggested change
TEST_ORG: melotria
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TEST_ORG: ${{ vars.TEST_ORG || 'melotria' }}

Hardcoding TEST_ORG to melotria makes the test fail if the token doesn't have access to that specific organization. It's better to use a variable or default to the actor's username. Also, ensure GH_TOKEN secret is correctly set in the repository.


export const e2eConfig: E2EConfig = {
githubToken: process.env.GITHUB_TOKEN || "",
org: process.env.TEST_ORG || "melotria",

Choose a reason for hiding this comment

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

Suggested change
org: process.env.TEST_ORG || "melotria",
org: process.env.TEST_ORG || "melotria",

Consider using a more generic default or providing instructions on how to set TEST_ORG. If the E2E tests are intended to run on a personal fork, the organization name will differ.

describe("Trigger Junie in Issue", () => {
let repoName: string;

beforeAll(async () => {

Choose a reason for hiding this comment

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

Suggested change
beforeAll(async () => {
beforeAll(async () => {
try {
repoName = await createTestRepo();
await setupWorkflow(repoName);
} catch (error) {
console.error("Failed to set up test repository:", error);
throw error;
}
});

Adding error handling here will provide clearer logs when repository creation fails (e.g., due to 401 Unauthorized or 404 Not Found), making it easier to debug environment issues.

conditionIncludes
} from "../client/client";

describe("Trigger Junie in Issue", () => {

Choose a reason for hiding this comment

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

Suggested change
describe("Trigger Junie in Issue", () => {
describe.skipIf(!e2eConfig.githubToken)("Trigger Junie in Issue", () => {

The integration test fails in CI because it requires a GITHUB_TOKEN and a test organization. Skipping it when the token is missing allows the CI to pass for PRs from forks or without these secrets.

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