Skip to content
Snippets Groups Projects

Match address of host when checking whether to login

Merged Ian Baum requested to merge qa-geo-check-address into master
All threads resolved!

What does this MR do and why?

When running Geo QA specs, ensures that we check we are logged into the correct host when determining whether we need to login or not.

Prior to this, we only checked if we are on a login page, which was passing when we were on the primary login page

Closes #349390 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ian Baum

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • mentioned in issue #338713 (closed)

  • Ian Baum added 1 commit

    added 1 commit

    • 9b6cc4ed - Move login to a better location

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    • fb106222 - Don't check host if address is nil

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Author Maintainer

    In my dev environment, this is currently failing with an invalid session id. It looks like it is logging out of the primary node, but still not actually logging into the primary node. Need to debug further.

  • Ian Baum added 6402 commits

    added 6402 commits

    Compare with previous version

  • Ian Baum resolved all threads

    resolved all threads

  • Author Maintainer

    This was missing some large changes, rebased and we're looking better.

    • In my dev environment, I saw several failures due to timeout. I'm running a pipeline with a longer timeout by setting GEO_MAX_FILE_REPLICATION_TIME to 240

    • The GET::Geo job is currently failing with a 403 error. Looks like the account it is using doesn't have permission to access the buckets for terraform state.

  • Ian Baum added 10 commits

    added 10 commits

    • b4ea65b1 - Match address of host when checking whether to login
    • 9b6cc4ed - Move login to a better location
    • fb106222 - Don't check host if address is nil
    • 2deb7ff3 - Don't use named argument
    • c5755c41 - Adding debug message
    • 7e2b1192 - Adding more debugging info
    • 2330506d - Just visit the login page
    • e23fe7b7 - Even more debugging
    • 85ea091d - Merge branch 'qa-geo-check-address' of gitlab.com:gitlab-org/gitlab into qa-geo-check-address
    • b8d99471 - Remove debugging info

    Compare with previous version

  • Ian Baum mentioned in commit e58491d1

    mentioned in commit e58491d1

  • Ian Baum added 1 commit

    added 1 commit

    • e58491d1 - Match address of host when checking whether to login

    Compare with previous version

  • Author Maintainer

    I think this is ready for review.

    Ideally, the GET::Geo job would be a good indicator of the status, but it is currently failing due to an unrelated issue

    Custom pipeline using these changes can be seen here

  • Ian Baum changed milestone to %14.7

    changed milestone to %14.7

  • Ian Baum changed the description

    changed the description

  • Ian Baum requested review from @treagitlab

    requested review from @treagitlab

  • Tiffany Rea
  • Tiffany Rea
  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    • 5ad0a63c - Make on_login_page check for the host as well

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    • 8adac2b3 - Add missing address arg for sign_in check

    Compare with previous version

  • Tiffany Rea
  • Tiffany Rea
  • Tiffany Rea
  • Ian Baum added 1 commit

    added 1 commit

    • 164dd89a - Apply 2 suggestion(s) to 2 file(s)

    Compare with previous version

  • Ian Baum changed the description

    changed the description

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Ian Baum added 1 commit

    added 1 commit

    Compare with previous version

  • Tiffany Rea approved this merge request

    approved this merge request

  • :wave: @treagitlab, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Tiffany Rea
  • Tiffany Rea unapproved this merge request

    unapproved this merge request

  • Tiffany Rea approved this merge request

    approved this merge request

  • assigned to @acunskis

  • Andrejs Cunskis
  • Andrejs Cunskis requested review from @acunskis

    requested review from @acunskis

  • Andrejs Cunskis approved this merge request

    approved this merge request

  • Andrejs Cunskis resolved all threads

    resolved all threads

  • Andrejs Cunskis enabled an automatic merge when the pipeline for 90243b49 succeeds

    enabled an automatic merge when the pipeline for 90243b49 succeeds

  • Andrejs Cunskis mentioned in commit cf96c74e

    mentioned in commit cf96c74e

  • Ian Baum mentioned in commit d8d066de

    mentioned in commit d8d066de

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • added typemaintenance label and removed tooling (archive) label

  • Please register or sign in to reply
    Loading