Skip to content
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

[JUJU-3600] Remove 32-bit word arch support #330

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SimonRichardson
Copy link
Member

Remove the arch package from the utils module. The arch package was only there to serve juju/juju directly. It dictated what was supported inside of juju. The juju project should dictate what architectures are supported, not a common utils package.

The arch package will be moved into juju/juju project, within the core package. In doing so, I've bumped this package to v4, to indicate the breaking change.

@SimonRichardson SimonRichardson self-assigned this Apr 25, 2023
Remove the arch package from the utils module. The arch package
was only there to serve juju/juju directly. It dictated what was
supported in side of juju. The juju project should dictate what
architectures are supported, not a common utils package.

The arch package will be moved into juju/juju project, within the
core package.
@SimonRichardson
Copy link
Member Author

The failures are not part of the changes:


----------------------------------------------------------------------
FAIL: ssh_gocrypto_test.go:294: SSHGoCryptoCommandSuite.TestStrictHostChecksAskNonTerminal

Server listening on 127.0.0.1:46545
[LOG] 0:00.002 ERROR juju.utils.ssh The authenticity of host '127.0.0.1:46545 (127.0.0.1:46545)' can't be established.
ssh-rsa key fingerprint is SHA256:Anr3LjZK8YVpjrxu79myrW9Hrb/wpcMNpVvTq/RcBm8.

ssh_gocrypto_test.go:47:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.errorString = &errors.errorString{s:"EOF"} ("EOF")


----------------------------------------------------------------------
FAIL: ssh_gocrypto_test.go:275: SSHGoCryptoCommandSuite.TestStrictHostChecksYes

Server listening on 127.0.0.1:42621
ssh_gocrypto_test.go:47:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.errorString = &errors.errorString{s:"EOF"} ("EOF")

OOPS: 54 passed, 1 skipped, 2 FAILED
--- FAIL: TestPackage (5.51s)

@SimonRichardson
Copy link
Member Author

/merge

@SimonRichardson SimonRichardson changed the title [JUJU-3600] Remove arch package [JUJU-3600] Remove 32-bit word arch support Apr 25, 2023
jujubot added a commit to juju/juju that referenced this pull request Apr 28, 2023
#15534

This is the first step in fixing the problematic arch supported list from LXD. Whilst investigating that bug, it seems that we still support 32-bit word sizes. Except that, we no longer want to support 32-bit word sizes with dqlite, as the number of jujud permutations explodes and so it's best to completely remove the support. We officially dropped support for 32-bit architectures over 3 years ago, although we didn't actively remove the code to drop support.

This brings in what the juju/utils arch support had, with the addition of a UnsupportedArches field, which will ensure that we can at least say what we use to support, but no longer do. This doesn't bring in the changes from [juju/utils PR](juju/utils#330) as technically we don't need a new version of juju/utils sans arch package to do this.

## Checklist

- [x] Code style: imports ordered, good names, simple structure, etc
- [x] Comments saying why design decisions were made
- [x] Go unit tests, with comments saying what you're testing

## QA steps

```sh
$ juju bootstrap lxd test --build-agent
```

## Bug reference

https://bugs.launchpad.net/juju/+bug/2013869
@SimonRichardson
Copy link
Member Author

/build

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