Skip to content

fix(#1182): remove FLYWAY_ENVIRONMENT and adjust mvnw args from analysis workflow#1184

Merged
Abradat merged 2 commits intomainfrom
bugfix/1182-analysis-workflows-backend-postgres-tests-job-fails-on-push-events-to-the-main-branch
Feb 11, 2026
Merged

fix(#1182): remove FLYWAY_ENVIRONMENT and adjust mvnw args from analysis workflow#1184
Abradat merged 2 commits intomainfrom
bugfix/1182-analysis-workflows-backend-postgres-tests-job-fails-on-push-events-to-the-main-branch

Conversation

@Abradat
Copy link
Collaborator

@Abradat Abradat commented Feb 11, 2026

Description

This pull request updates the workflow configuration in .github/workflows/analysis.yml to simplify environment variable handling for backend tests. The most important changes are grouped below by theme.

Workflow environment simplification:

  • Removed the FLYWAY_ENVIRONMENT environment variable from both the Oracle and Postgres test jobs, eliminating conditional logic based on the event type. [1] [2]

Build command updates:

  • For the Oracle test job, removed the -Dflyway-environment property from the Maven command, so it no longer passes this environment variable.
  • For the Postgres test job, changed the Maven command to explicitly set -Dflyway-environment=dev instead of referencing the removed environment variable.

Fixes #1182

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

How Has This Been Tested?

  • New unit tests
  • New integrated tests
  • New component tests
  • New end-to-end tests
  • New user flow tests
  • No new tests are required
  • Manual tests (description below)
  • Updated existing tests

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

…sis workflow

Remove the conditional FLYWAY_ENVIRONMENT workflow env from Oracle and Postgres test jobs. Update mvnw invocations: drop -Dflyway-environment for the Oracle job, and hardcode -Dflyway-environment=dev for the Postgres job. This simplifies the CI config and removes the previous github.event_name-based env expression.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the GitHub Actions Analysis workflow to simplify how backend test jobs choose their Flyway migration environment, addressing failures on push events to main (issue #1182).

Changes:

  • Removed the FLYWAY_ENVIRONMENT job-level env var from the backend Oracle and Postgres test jobs.
  • Updated Maven invocation for Postgres tests to always run with -Dflyway-environment=dev.
  • Removed -Dflyway-environment entirely from the Oracle test job Maven invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Update backend/README.md to remove guidance that sets the FLYWAY_ENVIRONMENT for Oracle. The Oracle example no longer exports FLYWAY_ENVIRONMENT=dev, and the Maven test command for Oracle drops -Dflyway-environment=dev. Added notes explaining that setting the flyway environment (env var or property) is unnecessary for Oracle-primary runs/tests since the intent is to run against the production-deployed backend. Minor formatting/spacing adjustments included.
@Abradat Abradat merged commit 6f8507a into main Feb 11, 2026
25 checks passed
@Abradat Abradat deleted the bugfix/1182-analysis-workflows-backend-postgres-tests-job-fails-on-push-events-to-the-main-branch branch February 11, 2026 23:44
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.

[BUGFIX]: Analysis workflow's backend Postgres tests job fails on push events to the main branch

3 participants