Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Nov 19, 2020
    • Damon P. Cortesi's avatar
      Enable enterprise cypress tests on release branch (#13809) · c607ce23
      Damon P. Cortesi authored
      * Enable enterprise cypress tests (#13756)
      
      * Get auditing.cy.spec to pass
      
      * Skip custom drill through tests until we replace them
      
      * A few updates to the whitelabel test case:
      - Move custom colors into constant variable to reference throughout
      - remove some 'it' blocks we didn't need to speed up tests
      - Remove a few 'wait's
      - Restructure tests to be a bit more in line with best practices
      
      * Update the snippet permissions test:
      - Create test for just creating snippet as admin
      - Create test for inability to create snippet as user by default
      - Quarantine the user snippet creation test
      
      * Rename sandboxes
      
      * Replace legacy ENABLE_ENTERPRISE_EDITION env variable with MB_EDITION
      
      * Add MB_EDITION env variable to Cypress test run
      
      * Fix admin settings `auth` cypress test (#13841) [ci skip]
      
      * Fix `snippet` Cypress test for CI (#13843)
      
      - related: https://github.com/metabase/metabase-enterprise/issues/543
      
      
      
      Co-authored-by: default avatarNemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
      c607ce23
  2. Nov 13, 2020
  3. Nov 09, 2020
    • Nemanja Glumac's avatar
      Port Cypress fixes/updates from `master` into `release-x.37.x` (#13743) · 8be8f81f
      Nemanja Glumac authored
      
      * Quarantine flaky tests (#13682) (#13683)
      
      * Quarantine flaky tests (#13682)
      
      * Add TODO note re: `describeWithToken`
      
      Co-authored-by: Nemanja Glumac
      
      * Add a circleci workflow that runs a set of Cypress smoketests (#12775)
      
      * Add a circleci nightly workflow that runs a bigger set of Cypress smoketests
      
      * Run this every hour while we're testing it, add a small fix to the admin test
      
      * Smoketests: Skip some known failing tests
      
      Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
      
      * Narrow down the quarantine for chart_drill spec (#13682) (#13699)
      
      * CI: Fix the cache key for uberjar for running smoketest (#13698)
      
      Smoketest for OSS edition (for now)
      
      * Fix `settings/settings.cy.spec.js` flakes (#13701)
      
      - isolated flake (`it.only("should surface an error when validation for any field fails (metabase#4506)", () => {...})`) passed 10x (https://github.com/nemanjaglumac/metabase-tests/actions/runs/348275781)
      - the whole spec passed 20x (https://github.com/nemanjaglumac/metabase-tests/actions/runs/348306177)
      
      * CI: Update uberjar oss key for smoketest (#13704)
      
      * Fix Cypress flakes in `dashboard/dashboard.cy.spec.js` file (#13703)
      
      * Fix flakes in `revisions screen` block
      
      * Improve test assertions (there were some rendering problems, so I adjusted the assertions)
      
      * Narrow down the quarantine for dash_drill spec (#13682) (#13706)
      
      * Fix `metrics.cy.spec.js` flakes (#13709)
      
      * Fix `metrics.cy.spec.js` flakes (#13682)
      
      * Refactor the test using API
      
      * Smoketest: run nightly at 1am PST (#13711)
      
      1 am PST = 09:00 UTC
      
      CircleCI cron is for UTC:
      https://circleci.com/docs/2.0/workflows/#scheduling-a-workflow
      
      * Upgrade Cypress to v5.5.0 (#13674)
      
      * Upgrade Cypress to v5.5.0
      
      * Needed to unset the `DISPLAY` ENV through `config.yml` to finally make this work! (Reference: https://github.com/cypress-io/cypress/issues/4034#issuecomment-486773042
      
      )
      
      * Improve `segments` tests with the use of API (#13718)
      
      * Unquarantine `scenarios/pulse/pulse.cy.spec.js` (#13727)
      
      * Unset `DISPLAY` ENV in smoketests CI group (#13732)
      
      * Unquarantine ee `custom_drill_through/drill_through.cy.spec.js` [ci skip] (#13734)
      
      * Unquarantine `question/nested.cy.spec.js` (#13733)
      
      Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
      Co-authored-by: default avatarDamon P. Cortesi <d.lifehacker@gmail.com>
      8be8f81f
  4. Nov 06, 2020
    • Cam Saul's avatar
      Mega build script improvements (#13638) · cfa6bf84
      Cam Saul authored
      * Mega build script improvements
      
      * Look for project.clj to determine root directory since we delete .git on CI for speed
      
      * If .git folder is missing (i.e., in CI) fail gracefully
      
      * Don't need to generate version file to run Cypress tests, right?
      
      * Build uberjar step can cache version.properties
      (so the Cypress test steps don't need to generate it again)
      
      * Flush caches
      
      * Update uberjar cache key
      cfa6bf84
  5. Oct 28, 2020
    • Ariya Hidayat's avatar
      Put yaml-lint into devDependencies (#13600) · 8be77462
      Ariya Hidayat authored
      * Put yaml-lint into devDependencies
      
      That way, the CI run is more reproducible (no need to install yaml-lint
      on the fly).
      
      * Attempt to lint YAML files via yarn run
      
      * Update the CI workflow dependency for yaml-linter
      8be77462
  6. Oct 23, 2020
  7. Oct 22, 2020
  8. Oct 15, 2020
    • Nemanja Glumac's avatar
      Convert e2e tests to Cypress (#13418) · b9ac0ef6
      Nemanja Glumac authored
      
      * Convert `drillthroughs.e2e` tests to Cypress (#13128) [ci skip]
      
      Convert e2e tests from drillthroughs.e2e.spec.js to Cypress tests:
      - frontend/test/metabase/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js
      - frontend/test/metabase/scenarios/visualizations/drillthroughs/dash_drill.cy.spec.js
      
      Note:Squashed all previous commits in a branch for cleaner output.
      Co-authored-by: @nemanjaglumac
      
      * Convert `Visualization.e2e` tests to Cypress (#13021) [ci skip]
      
      Convert e2e tests from Visualization.e2e.spec.js to Cypress tests:
          - frontend/test/metabase/scenarios/dashboard/text-box.cy.spec.js
      
      Original note by @Opalevanescence : "Some of these tests weren't in Cypress yet, so I added them in."
      
      Note: Squashed all previous commits in a branch for cleaner output.
      Co-authored-by: @nemanjaglumac
      
      * E2e to cy/port/dashboard (#13013) [ci skip]
      
      Convert e2e tests from dashboard.e2e.spec.js to Cypress tests:
      - frontend/test/metabase/scenarios/dashboard/dashboard.cy.spec.js
      
      Affected files:
      - frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js
      - frontend/test/metabase/scenarios/dashboard/parameters.cy.spec.js
      
      * Quarantined breaking Cypress tests (breaking changes introduced with the work on the dashboard UI)
      
      Note: Squashed all previous commits in a branch for cleaner output.
      Co-authored-by: @nemanjaglumac
      
      * Convert `alert.e2e` tests to Cypress (#12969) [ci skip]
      
      Convert e2e tests from alert.e2e.spec.js to Cypress tests:
      - frontend/test/metabase/scenarios/alert/alert.cy.spec.js
      - frontend/test/metabase/scenarios/alert/alert_auth.cy.spec.js
      
      * Quarantined breaking Cypress tests (cannot use email setup in CI)
      
      Note: Squashed all previous commits in a branch for cleaner output.
      Co-authored-by: @nemanjaglumac
      
      * Convert `initial_collection.e2e` tests to Cypress (#12968)
      
      Convert e2e tests from initial_collection.e2e.spec.js to Cypress tests:
      - frontend/test/metabase/scenarios/collection_defaults.cy.spec.js
      
      * Quarantined breaking Cypress tests (cannot use email setup in CI)
      
      Note: Squashed all previous commits in a branch for cleaner output.
      Co-authored-by: @nemanjaglumac
      
      * Delete `PivotByCategoryDrill` e2e test [ci skip]
      
      * Delete `metadata` e2e tests
      
      * Add `metadata` Cypress test [ci skip]
      
      - remapped column value (Product ID => Title)
      
      * Delete `SettingsAuthenticationOptions` e2e test [ci skip]
      
      NOTE: we already have similar CY test in `frontend/test/metabase/scenarios/admin/settings/settings.cy.spec.js`:
      - `it("should render the proper auth options", () => {...})`
      
      * Delete `segments` e2e test [ci skip]
      
      existing CY test file: `frontend/test/metabase/scenarios/admin/datamodel/segments.cy.spec.js`
      
      * Delete end-to-end related support and helper files
      
      * Remove e2e tests from CircleCI config [ci skip]
      
      * Delete references of e2e tests in documentation and replace them with Cypress [ci skip]
      
      * Fix and update dashboard related Cypress tests
      
      * Fix `parameters` cy test
      
      * Fix `metadata` failing test
      
      * Fix `parameters` failing test
      
      Note:
      - Asserting on "Rows 1-1 of 2000" was bad idea because card is different size in CI.
      - The number of visible rows directly depend on the card size
      
      Co-authored-by: default avatarJessica DeWitt <58329466+Opalevanescence@users.noreply.github.com>
      b9ac0ef6
  9. Oct 13, 2020
  10. Oct 09, 2020
    • Cam Saul's avatar
      New driver build scripts (#13383) (#13428) · 2468cac2
      Cam Saul authored
      * New driver build scripts and fix Google driver build
      
      * Install Clojure CLI in Circle CI
      
      * Fix driver build script
      
      * Build script fix :wrench:
      
      * More dox
      
      * Enforce minimum build Clojure CLI version and address feedback
      
      * New metabuild-common directory for shared stuff. Address some PR feedback
      2468cac2
    • Cam Saul's avatar
      New release build script (squashed) · 38a86abf
      Cam Saul authored
      38a86abf
    • Cam Saul's avatar
      New driver build scripts (#13383) · 4315dbed
      Cam Saul authored
      * New driver build scripts and fix Google driver build
      
      * Install Clojure CLI in Circle CI
      
      * Fix driver build script
      
      * Build script fix :wrench:
      
      * More dox
      
      * Enforce minimum build Clojure CLI version and address feedback
      
      * New metabuild-common directory for shared stuff. Address some PR feedback
      4315dbed
  11. Oct 08, 2020
  12. Oct 06, 2020
  13. Oct 02, 2020
    • Nemanja Glumac's avatar
      Feature/postgres cypress tests (#13311) · 1dc404aa
      Nemanja Glumac authored
      Add Postgress tests to Cypress test suite
      
      This commit is introducing a new feature by adding a possibility to test Postgress related issues. It adds an updated CI configuration that plays nice with [Docker QA database](https://github.com/metabase/metabase-qa) (postgress-12).
      It also adds a few repros, listed below:
      
      * Add repro for #12762
      * Add repro for #13263 (#13303)
      ---
      * Add an example for how to run metabase-qa postgres in CI
      * Add e2e test for adding/connecting PostgreSQL database (#13296)
      
      Co-authored-by: @dacort 
      1dc404aa
  14. Jun 15, 2020
  15. May 29, 2020
    • Cam Saul's avatar
      Faster CI (#12620) · 473ca0e5
      Cam Saul authored
      * Faster driver build strip-and-compress step by not loading Metabase core
      
      * New cache key for FE deps
      
      * Cache built drivers & local Maven installation of metabase-core
      
      * Only cache the built driver JARs
      
      * Cache built frontend
      
      * Change driver cache key
      
      * Try updating a specific driver [ci snowflake]
      
      * Try updating a different driver [ci redshift] [ci snowflake]
      
      * Need to cache driver checksums as well [ci snowflake] [ci redshift]
      
      * Tweak what's cached for drivers (again)
      473ca0e5
  16. May 28, 2020
  17. May 26, 2020
  18. May 14, 2020
  19. May 11, 2020
  20. Apr 15, 2020
    • Damon P. Cortesi's avatar
      Feature/cypress mongo (#12292) · 06f14c01
      Damon P. Cortesi authored
      * Add database-specific tests to Cypress (starting with Mongo)
      * Initial changes to Cypress to allow a limited set of tests to run
      * Include drivers in frontend uberjar
      06f14c01
  21. Mar 09, 2020
  22. Feb 25, 2020
  23. Feb 14, 2020
  24. Jan 28, 2020
  25. Jan 21, 2020
  26. Jan 10, 2020
  27. Jan 08, 2020
    • Walter Leibbrandt's avatar
      Fix LDAP groups sync regression (#11654) · 7d4bf340
      Walter Leibbrandt authored
      * Fix LDAP groups sync
      
      This is bug to LDAP servers that communicates group membership via the
      `memberOf` overlay, introduced by #11412, where attribute keys were all
      lower cased to support case insensitive matching. The hard-coded lookup
      of the `:memberOf` key was not similarly lower cased.
      
      * Save CircleCI-built uberjar as build artifact
      
      * Update comment to mention FreeIPA also uses `memberOf`
      7d4bf340
Loading