No instructions on compiling & running tests · Issue #220 · npgsql/doc · GitHub
Skip to content

No instructions on compiling & running tests #220

Open

Description

@TibbsTerry

Are there any details regarding contributing? and or getting the solution to compile etc.?

I've encountered various issue trying to compile & run unit tests
(Win10, VS2022, branch stable)

  • Solution file format VS2019 won't work because of no support for .Net6 SDK
  • Nuget configuration missing/wrong
    Error NU1507 There are 5 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source.
    Adding Nuget.config from main branch seems to fix this
  • Tests rely on Postgres installed locally
    No instructions on on this, eg Postgres versions needed
    No details on 'npgsql_tests' role needed eg permissions. (or a script to create the role)
  • 6117 of 16826 tests fail
    some examples:

Npgsql.EntityFrameworkCore.PostgreSQL.CommandInterceptionNpgsqlTestBase+CommandInterceptionNpgsqlTest.Intercept_non_query_one_app_and_one_injected_interceptor(async: False)
Npgsql.PostgresException : 53300: sorry, too many clients already

Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.NpgsqlDatabaseModelFactoryTest.Column_collation_is_set
Npgsql.PostgresException : 42809: "BlogsView" is not a table

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.LegacyNpgsqlTypeMappingTest.GenerateSqlLiteral_returns_timestamptz_datetime_literal
Assert.StartsWith() Failure:
Expected: TIMESTAMPTZ '1997-12-17 07:37:16+10:00
Actual: TIMESTAMPTZ '1997-12-17 07:37:16+11:00...

Activity

  1. transferred this issue fromnpgsql/efcore.pgon Jul 8, 2022
  2. added this to the 7.0.0 milestone on Jul 8, 2022
  3. self-assigned this
    on Jul 8, 2022
  4. roji commented on Jul 8, 2022

    @roji
    Member

    Yeah, we definitely should add some documentation. There's this page for setting up PG for the tests, but it's insufficient.

    Here are some immediate answers, I'll try to add real docs at some point on all of this.

    • I haven't updated the "stable" branch so much in recent times. To work on a patch release, check out the latest hotfix/6.0.x branch and work on that. It shouldn't have the nuget.config issue you mentioned above.
    • For the "sorry, too many clients already", you'll need to bump up your PostgreSQL max_connection setting; 200 should do it.
    • For the last two errors, these shouldn't happen - can you plaese open two individual issues in the EFCore.PG repo to track these?
  5. removed this from the 7.0.0 milestone on Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions