Skip to content

Infrang 6880 #505

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

Merged
merged 3 commits into from
Apr 9, 2025
Merged

Infrang 6880 #505

merged 3 commits into from
Apr 9, 2025

Conversation

ChrisScotMartin
Copy link
Contributor

@ChrisScotMartin ChrisScotMartin commented Mar 7, 2025

Jira

https://clever.atlassian.net/browse/INFRANG-6880

Description

With wag tests now running they will fail CI so they’ve been temporarily disabled. We don’t have good visibility into just how many tests are failing because when one test file fails it doesn’t run the next.

Marked individual failing tests with FAILED_TESTS and skipped them.

Still had to disable all db tests due to some generated tests failing that were not easy to skip.

All remaining failing tests are in db tests so re-enabling CI testing

Added a comment and reference to the ticket about DB tests not running so it's not a surprise.

Testing

Tests are what I was fixing here so... make test :-)

Checklist

  • Run make build
  • Run make generate
  • Update the current version in the /VERSION file. First line should be JUST the version e.g. v10.13.1. Then a blank line. Then release notes.

@ChrisScotMartin ChrisScotMartin requested a review from a team as a code owner March 7, 2025 21:57
@ChrisScotMartin ChrisScotMartin requested review from taylor-sutton and removed request for a team March 7, 2025 21:57
Copy link
Contributor

@taylor-sutton taylor-sutton left a comment

Choose a reason for hiding this comment

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

Nice work! I found it very easy from here to re-enable DB tests and investigate further, which is a good state to be in.

Having done that, I think you can improve the situation as far as explicitly marking which tests are failing with this patch:

modified   server/gendb/tests.go.tmpl
@@ -65,7 +65,8 @@ func RunDBTests(t *testing.T, dbFactory func() db.Interface) {
   {{- end }}
   {{- range $transactWithSchemaName := $xdbConfig.EnableTransactions }}
   {{- $transactWithModelName := pascalize $transactWithSchemaName }}
-  t.Run("TransactSave{{ $modelName }}And{{ $transactWithModelName }}", TransactSave{{ $modelName }}And{{ $transactWithModelName }}(dbFactory(), t))
+  /* FAILING TEST */
+  // t.Run("TransactSave{{ $modelName }}And{{ $transactWithModelName }}", TransactSave{{ $modelName }}And{{ $transactWithModelName }}(dbFactory(), t))
   {{- end }}
   {{- end }}
         {{- end }}

And then at a glance, it seems like there are only two tests remaining that are failing but not explicitly marked, which seem like they have to do with datetime.

Is there any point in releasing a new wag version (say, a patch version with this change?

@ChrisScotMartin
Copy link
Contributor Author

/* FAILING TEST */

Are you thinking I should make this change as part of this PR? It was hard to tell when to stop so I kept myself to a pretty strict time box.

And maybe? I debated doing that and chose not to as no application code was changed. Everything modified was in the build/test pipeline.

@taylor-sutton
Copy link
Contributor

/* FAILING TEST */

Are you thinking I should make this change as part of this PR? It was hard to tell when to stop so I kept myself to a pretty strict time box.

When I wrote that comment I was thinking "maybe not, either way is fine" but now I think yes, might as well since we know about it?

@ChrisScotMartin ChrisScotMartin merged commit 61e9c3b into master Apr 9, 2025
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.

2 participants