Skip to content

Conversation

aldy505
Copy link
Collaborator

@aldy505 aldy505 commented Sep 26, 2025

No description provided.

@aldy505 aldy505 marked this pull request as draft September 26, 2025 03:08
Copy link

codecov bot commented Sep 26, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
12 1 11 0
View the top 1 failed test(s) by shortest run time
_integration-test.test_02_backup::test_02_import
Stack Traces | 30.5s run time
setup_backup_restore_env_variables = None

    #x1B[0m#x1B[94mdef#x1B[39;49;00m #x1B[92mtest_02_import#x1B[39;49;00m(setup_backup_restore_env_variables):#x1B[90m#x1B[39;49;00m
        #x1B[90m# Bring postgres down and recreate the docker volume#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        subprocess.run([#x1B[33m"#x1B[39;49;00m#x1B[33mdocker#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mcompose#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33m--ansi#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mnever#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mdown#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m], check=#x1B[94mTrue#x1B[39;49;00m)#x1B[90m#x1B[39;49;00m
        #x1B[90m# We reset all DB-related volumes here and not just Postgres although the backups#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        #x1B[90m# are only for Postgres. The reason is to get a "clean slate" as we need the Kafka#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        #x1B[90m# and Clickhouse volumes to be back to their initial state as well (without any events)#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        #x1B[90m# We cannot just rm and create them as they still need the migrations.#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        #x1B[94mfor#x1B[39;49;00m name #x1B[95min#x1B[39;49;00m (#x1B[33m"#x1B[39;49;00m#x1B[33mpostgres#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mclickhouse#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mkafka#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m):#x1B[90m#x1B[39;49;00m
            subprocess.run([#x1B[33m"#x1B[39;49;00m#x1B[33mdocker#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mvolume#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mrm#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33mf#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m#x1B[33msentry-#x1B[39;49;00m#x1B[33m{#x1B[39;49;00mname#x1B[33m}#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m], check=#x1B[94mTrue#x1B[39;49;00m)#x1B[90m#x1B[39;49;00m
            subprocess.run([#x1B[33m"#x1B[39;49;00m#x1B[33mdocker#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mvolume#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33mcreate#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33mf#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m#x1B[33msentry-#x1B[39;49;00m#x1B[33m{#x1B[39;49;00mname#x1B[33m}#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m], check=#x1B[94mTrue#x1B[39;49;00m)#x1B[90m#x1B[39;49;00m
>           subprocess.run(#x1B[90m#x1B[39;49;00m
                [#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33mrsync#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33m-aW#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33m--super#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33m--numeric-ids#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33m--no-compress#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    #x1B[33m"#x1B[39;49;00m#x1B[33m--mkpath#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                    join(os.environ[#x1B[33m"#x1B[39;49;00m#x1B[33mRUNNER_TEMP#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m], #x1B[33m"#x1B[39;49;00m#x1B[33mvolumes#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33mf#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m#x1B[33msentry-#x1B[39;49;00m#x1B[33m{#x1B[39;49;00mname#x1B[33m}#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m, #x1B[33m"#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m),#x1B[90m#x1B[39;49;00m
                    #x1B[33mf#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m#x1B[.../docker/volumes/sentry-#x1B[39;49;00m#x1B[33m{#x1B[39;49;00mname#x1B[33m}#x1B[39;49;00m#x1B[33m/#x1B[39;49;00m#x1B[33m"#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                ],#x1B[90m#x1B[39;49;00m
                check=#x1B[94mTrue#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
                capture_output=#x1B[94mTrue#x1B[39;49;00m,#x1B[90m#x1B[39;49;00m
            )#x1B[90m#x1B[39;49;00m

#x1B[1m#x1B[31m_integration-test/test_02_backup.py#x1B[0m:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = True, timeout = None, check = True
popenargs = (['rsync', '-aW', '--super', '--numeric-ids', '--no-compress', '--mkpath', ...],)
kwargs = {'stderr': -1, 'stdout': -1}
process = <Popen: returncode: 23 args: ['rsync', '-aW', '--super', '--numeric-ids', '-...>
stdout = b''
stderr = b'rsync: [sender] change_dir ".../_temp/volumes/sentry-postgres" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]\n'
retcode = 23

    #x1B[0m#x1B[94mdef#x1B[39;49;00m #x1B[92mrun#x1B[39;49;00m(*popenargs,#x1B[90m#x1B[39;49;00m
            #x1B[96minput#x1B[39;49;00m=#x1B[94mNone#x1B[39;49;00m, capture_output=#x1B[94mFalse#x1B[39;49;00m, timeout=#x1B[94mNone#x1B[39;49;00m, check=#x1B[94mFalse#x1B[39;49;00m, **kwargs):#x1B[90m#x1B[39;49;00m
    #x1B[90m    #x1B[39;49;00m#x1B[33m"""Run command with arguments and return a CompletedProcess instance.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    The returned instance will have attributes args, returncode, stdout and#x1B[39;49;00m
    #x1B[33m    stderr. By default, stdout and stderr are not captured, and those attributes#x1B[39;49;00m
    #x1B[33m    will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,#x1B[39;49;00m
    #x1B[33m    or pass capture_output=True to capture both.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    If check is True and the exit code was non-zero, it raises a#x1B[39;49;00m
    #x1B[33m    CalledProcessError. The CalledProcessError object will have the return code#x1B[39;49;00m
    #x1B[33m    in the returncode attribute, and output & stderr attributes if those streams#x1B[39;49;00m
    #x1B[33m    were captured.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    If timeout is given, and the process takes too long, a TimeoutExpired#x1B[39;49;00m
    #x1B[33m    exception will be raised.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    There is an optional argument "input", allowing you to#x1B[39;49;00m
    #x1B[33m    pass bytes or a string to the subprocess's stdin.  If you use this argument#x1B[39;49;00m
    #x1B[33m    you may not also use the Popen constructor's "stdin" argument, as#x1B[39;49;00m
    #x1B[33m    it will be used internally.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    By default, all communication is in bytes, and therefore any "input" should#x1B[39;49;00m
    #x1B[33m    be bytes, and the stdout and stderr will be bytes. If in text mode, any#x1B[39;49;00m
    #x1B[33m    "input" should be a string, and stdout and stderr will be strings decoded#x1B[39;49;00m
    #x1B[33m    according to locale encoding, or by "encoding" if set. Text mode is#x1B[39;49;00m
    #x1B[33m    triggered by setting any of text, encoding, errors or universal_newlines.#x1B[39;49;00m
    #x1B[33m#x1B[39;49;00m
    #x1B[33m    The other arguments are the same as for the Popen constructor.#x1B[39;49;00m
    #x1B[33m    """#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
        #x1B[94mif#x1B[39;49;00m #x1B[96minput#x1B[39;49;00m #x1B[95mis#x1B[39;49;00m #x1B[95mnot#x1B[39;49;00m #x1B[94mNone#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
            #x1B[94mif#x1B[39;49;00m kwargs.get(#x1B[33m'#x1B[39;49;00m#x1B[33mstdin#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m) #x1B[95mis#x1B[39;49;00m #x1B[95mnot#x1B[39;49;00m #x1B[94mNone#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
                #x1B[94mraise#x1B[39;49;00m #x1B[96mValueError#x1B[39;49;00m(#x1B[33m'#x1B[39;49;00m#x1B[33mstdin and input arguments may not both be used.#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m)#x1B[90m#x1B[39;49;00m
            kwargs[#x1B[33m'#x1B[39;49;00m#x1B[33mstdin#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m] = PIPE#x1B[90m#x1B[39;49;00m
    #x1B[90m#x1B[39;49;00m
        #x1B[94mif#x1B[39;49;00m capture_output:#x1B[90m#x1B[39;49;00m
            #x1B[94mif#x1B[39;49;00m kwargs.get(#x1B[33m'#x1B[39;49;00m#x1B[33mstdout#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m) #x1B[95mis#x1B[39;49;00m #x1B[95mnot#x1B[39;49;00m #x1B[94mNone#x1B[39;49;00m #x1B[95mor#x1B[39;49;00m kwargs.get(#x1B[33m'#x1B[39;49;00m#x1B[33mstderr#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m) #x1B[95mis#x1B[39;49;00m #x1B[95mnot#x1B[39;49;00m #x1B[94mNone#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
                #x1B[94mraise#x1B[39;49;00m #x1B[96mValueError#x1B[39;49;00m(#x1B[33m'#x1B[39;49;00m#x1B[33mstdout and stderr arguments may not be used #x1B[39;49;00m#x1B[33m'#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                                 #x1B[33m'#x1B[39;49;00m#x1B[33mwith capture_output.#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m)#x1B[90m#x1B[39;49;00m
            kwargs[#x1B[33m'#x1B[39;49;00m#x1B[33mstdout#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m] = PIPE#x1B[90m#x1B[39;49;00m
            kwargs[#x1B[33m'#x1B[39;49;00m#x1B[33mstderr#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m] = PIPE#x1B[90m#x1B[39;49;00m
    #x1B[90m#x1B[39;49;00m
        #x1B[94mwith#x1B[39;49;00m Popen(*popenargs, **kwargs) #x1B[94mas#x1B[39;49;00m process:#x1B[90m#x1B[39;49;00m
            #x1B[94mtry#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
                stdout, stderr = process.communicate(#x1B[96minput#x1B[39;49;00m, timeout=timeout)#x1B[90m#x1B[39;49;00m
            #x1B[94mexcept#x1B[39;49;00m TimeoutExpired #x1B[94mas#x1B[39;49;00m exc:#x1B[90m#x1B[39;49;00m
                process.kill()#x1B[90m#x1B[39;49;00m
                #x1B[94mif#x1B[39;49;00m _mswindows:#x1B[90m#x1B[39;49;00m
                    #x1B[90m# Windows accumulates the output in a single blocking#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    #x1B[90m# read() call run on child threads, with the timeout#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    #x1B[90m# being done in a join() on those threads.  communicate()#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    #x1B[90m# _after_ kill() is required to collect that and add it#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    #x1B[90m# to the exception.#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    exc.stdout, exc.stderr = process.communicate()#x1B[90m#x1B[39;49;00m
                #x1B[94melse#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
                    #x1B[90m# POSIX _communicate already populated the output so#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    #x1B[90m# far into the TimeoutExpired exception.#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                    process.wait()#x1B[90m#x1B[39;49;00m
                #x1B[94mraise#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
            #x1B[94mexcept#x1B[39;49;00m:  #x1B[90m# Including KeyboardInterrupt, communicate handled that.#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                process.kill()#x1B[90m#x1B[39;49;00m
                #x1B[90m# We don't call process.wait() as .__exit__ does that for us.#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
                #x1B[94mraise#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
            retcode = process.poll()#x1B[90m#x1B[39;49;00m
            #x1B[94mif#x1B[39;49;00m check #x1B[95mand#x1B[39;49;00m retcode:#x1B[90m#x1B[39;49;00m
>               #x1B[94mraise#x1B[39;49;00m CalledProcessError(retcode, process.args,#x1B[90m#x1B[39;49;00m
                                         output=stdout, stderr=stderr)#x1B[90m#x1B[39;49;00m
#x1B[1m#x1B[31mE               subprocess.CalledProcessError: Command '['rsync', '-aW', '--super', '--numeric-ids', '--no-compress', '--mkpath', '.../_temp/volumes/sentry-postgres/', '.../docker/volumes/sentry-postgres/']' returned non-zero exit status 23.#x1B[0m

#x1B[1m#x1B[.../usr/lib/python3.12/subprocess.py#x1B[0m:571: CalledProcessError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@aldy505
Copy link
Collaborator Author

aldy505 commented Sep 26, 2025

Could it possibly be the version number of a package we depends on?

@aminvakil
Copy link
Collaborator

Currently ubuntu-latest is ubuntu-24.04 (https://github.com/actions/runner-images?tab=readme-ov-file#available-images).

And this has also happened on another PR (#3965).

@aldy505
Copy link
Collaborator Author

aldy505 commented Sep 26, 2025

Currently ubuntu-latest is ubuntu-24.04 (https://github.com/actions/runner-images?tab=readme-ov-file#available-images).

And this has also happened on another PR (#3965).

Yeah I should've just set ubuntu-22.04 :(

@aldy505 aldy505 closed this Sep 26, 2025
@aldy505 aldy505 deleted the aldy505/ci/try-different-runner branch September 26, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants